/* Debt Consolidation v2 — tool-specific layer (styles/app.css)
   Loads LAST, after the kit: tokens → tool-shell → report v2 → input v2 →
   this file. Only what is unique to THIS tool lives here. Everything the kit
   already owns — hero tile, section rules, cards, fields, repeater, report
   pages, .n-* shapes — is NOT restated. No tokens are redefined (§1) and no
   inline styles anywhere (§6).

   Contents:
   1. input screen: native spinner suppression, the "at these terms" readout
   2. the mobile live screen (#mv) — this tool's dark-shell components
   3. print trims that keep both report pages on one sheet each             */

/* ═══════════ 1. INPUT SCREEN ═══════════ */

/* the custom .spin chevrons own the rate fields — hide the native (tiny)
   number-input spinner so there aren't two sets of arrows */
#newRate::-webkit-inner-spin-button,#newRate::-webkit-outer-spin-button,
#mRate::-webkit-inner-spin-button,#mRate::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
#newRate,#mRate{-moz-appearance:textfield;appearance:textfield;}

/* "(min)" marker on a card's payment label */
#pg1 .rep-row .d-min{color:var(--rp-lime-ink);letter-spacing:.4px;}

/* live readout in the "At these terms" card: four stat tiles, cream fill,
   the freed-up figure carries the lime */
#pg1 .loan-read{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#pg1 .loan-read .rc{border:1px solid var(--rp-line);border-radius:10px;background:var(--rp-card);padding:10px 12px;min-width:0;}
#pg1 .loan-read .rc .l{font-size:9px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;color:var(--rp-mut);}
#pg1 .loan-read .rc .v{font-size:19px;font-weight:800;letter-spacing:-.7px;color:var(--rp-navy);font-variant-numeric:tabular-nums;margin-top:2px;}
#pg1 .loan-read .rc.lime{border-color:var(--rp-limeline);background:var(--rp-limebg);}
#pg1 .loan-read .rc.lime .v{color:var(--rp-lime-ink);}

/* ═══════════ 1b. HERO ACTIONS + SAVED SCENARIOS ═══════════ */

/* ── hero action buttons ──
   The tutorial link and the saved-scenarios toggle both live at the bottom of the
   hero tile, replacing the full-width strip that used to sit under it. On the navy
   gradient they read as translucent outlined pills: white bold label, lime glyph,
   one uniform height. .hero-btn is used for both an <a> and a <button>, so every
   browser default either element brings has to be reset. */
#pg1 .hero-acts{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px;}
#pg1 .hero-btn{
  display:inline-flex;align-items:center;gap:8px;
  height:36px;padding:0 15px;box-sizing:border-box;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.26);border-radius:10px;
  color:#fff;font-family:inherit;font-size:12.5px;font-weight:800;letter-spacing:-.1px;
  text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:background .15s,border-color .15s;
}
#pg1 .hero-btn:hover{background:rgba(255,255,255,.14);border-color:rgba(188,214,74,.6);}
/* Pressed look while the panel it controls is open (scenarios.js adds .on). */
#pg1 .hero-btn.on{background:rgba(188,214,74,.16);border-color:var(--rp-pill,#bcd64a);}
#pg1 .hero-btn .hb-ico{
  display:flex;align-items:center;
  color:var(--rp-pill,#bcd64a);font-size:13px;font-weight:800;
}
/* Count chip on the button — the only signal that saved records exist while the
   panel is shut, so it has to read clearly against the navy. */
#pg1 .hero-btn .scen-count{
  font-size:9.5px;font-weight:800;letter-spacing:.6px;
  color:var(--rp-pill-ink,#16290a);background:var(--rp-pill,#bcd64a);
  border-radius:5px;padding:2px 6px;margin-left:2px;
}
#pg1 .scen-count[hidden]{display:none;}

/* ── the panel the hero button toggles ──
   A plain card in the form flow, directly above "The client" so it sits next to
   the fields a Load writes into. No header of its own: the hero button IS the
   header. */
#pg1 .scen-panel{
  margin:18px 0 0;padding:15px 17px 16px;
  background:#fff;border:1px solid var(--rp-line,#e4e0d6);
  border-left:4px solid var(--rp-pill,#bcd64a);border-radius:11px;
  box-shadow:0 2px 8px rgba(16,50,79,.07);
}
/* The panel's children are display:flex, which outranks the UA [hidden] rule —
   restate it or the collapsed panel renders wide open. */
#pg1 .scen-panel[hidden]{display:none;}

/* ── load confirmation: one-shot highlight on the first card ──
   After a Load the drawer's own note is scrolled off above, so this is what
   confirms the values changed at the place the officer is now looking. A brief
   lime ring, then back to normal — no lingering state to clear.
   `forwards` is deliberately NOT used: the card must end on its own styling. */
@keyframes scenFlash{
  0%  {box-shadow:0 0 0 0 rgba(188,214,74,0);   border-color:var(--rp-line,#e4e0d6);}
  18% {box-shadow:0 0 0 4px rgba(188,214,74,.45);border-color:var(--rp-lime,#7f9a16);}
  100%{box-shadow:0 0 0 0 rgba(188,214,74,0);   border-color:var(--rp-line,#e4e0d6);}
}
#pg1 .fcard.scen-flash{animation:scenFlash 1.15s ease-out;}
/* Respect a reduced-motion preference: the scroll still happens, the pulse does
   not. An officer who has asked the OS for less motion gets less motion. */
@media (prefers-reduced-motion:reduce){
  #pg1 .fcard.scen-flash{animation:none;}
}
/* The scroll target is focused programmatically when framed — no visible ring
   for that, but keyboard focus keeps its indicator. */
#pg1 #dealSection:focus:not(:focus-visible){outline:none;}

/* ── explanatory note (the storage disclosure) ── */
#pg1 .scen-note{
  margin:0 0 14px;padding:10px 13px;border-radius:9px;
  background:var(--rp-card,#fbfaf7);border:1px solid var(--rp-line,#e4e0d6);
  border-left:3px solid var(--rp-lime,#7f9a16);
  font-size:11px;font-weight:700;line-height:1.5;color:var(--rp-ink2,#41607a);
}

/* ── the list ── */
#pg1 .scen-list{display:flex;flex-direction:column;gap:8px;}
#pg1 .scen-empty{
  padding:16px 14px;border:1px dashed var(--iv-line,#dfe4e9);border-radius:10px;
  font-size:11.5px;font-weight:700;color:var(--rp-mut,#7a8a98);text-align:center;
}
#pg1 .scen-empty b{color:var(--rp-ink2,#41607a);}
#pg1 .scen-row{
  display:flex;align-items:center;gap:14px;padding:11px 14px;
  background:var(--rp-card,#fbfaf7);border:1px solid var(--iv-line,#dfe4e9);
  border-radius:10px;
}
#pg1 .scen-meta{flex:1;min-width:0;}
#pg1 .scen-nm{
  font-size:12.5px;font-weight:800;color:var(--rp-ink,#10324f);letter-spacing:-.2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#pg1 .scen-sub{font-size:10px;font-weight:700;color:var(--rp-mut,#7a8a98);margin-top:2px;font-variant-numeric:tabular-nums;}
#pg1 .scen-acts{display:flex;gap:7px;flex:0 0 auto;}

/* ── results-page action bar: three ranks, one shape ──
   Every control is the same 40px height and 10px radius so the row reads as a
   single band; only the fill changes with importance:
     · "← Edit Inputs"    text back-link, no border, no fill
     · "Save scenario"    outlined secondary — white fill, hairline
     · "Print / Save PDF" solid primary — navy fill, white label
   These override the pill geometry .btn-primary/.btn-secondary carry from
   hfg-tool-shell.css (border-radius:999px and its hard offset shadow), which is
   why each property is restated rather than inherited. */
#pg2 .pg2-actions{display:flex;align-items:center;gap:11px;}
#pg2 .pg2-actions .btn-secondary,
#pg2 .pg2-actions .btn-primary,
#pg2 .pg2-actions .scen-btn{
  height:40px;padding:0 18px;box-sizing:border-box;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border-radius:10px;box-shadow:none;transform:none;
  font-family:inherit;font-size:13px;font-weight:800;letter-spacing:-.1px;
  cursor:pointer;transition:background .15s,border-color .15s,color .15s;
}
#pg2 .pg2-actions #backBtn{
  padding:0 6px;background:none;border:1px solid transparent;
  color:var(--rp-ink2,#41607a);
}
#pg2 .pg2-actions #backBtn:hover{background:none;color:var(--rp-ink,#10324f);text-decoration:underline;}
#pg2 .pg2-actions #scenSaveBtn2{
  background:#fff;border:1px solid var(--iv-line,#dfe4e9);color:var(--rp-ink,#10324f);
}
#pg2 .pg2-actions #scenSaveBtn2:hover{background:#fff;border-color:var(--rp-navy,#103a5c);color:var(--rp-navy,#103a5c);}
#pg2 .pg2-actions .btn-primary{
  background:var(--rp-navy,#103a5c);border:1px solid var(--rp-navy,#103a5c);color:#fff;
}
#pg2 .pg2-actions .btn-primary:hover{background:var(--rp-grad1,#1d5c84);border-color:var(--rp-grad1,#1d5c84);transform:none;}

/* ── buttons: a compact variant of .btn-secondary ──
   Matched to builder-incentive, which is the source of truth for this component.
   There, .btn-secondary picks up the command-center hard offset shadow
   (box-shadow:3px 3px 0 var(--cc-ink)) from a LATER layer in its copy of
   hfg-tool-shell.css, and #pg1 .scen-btn overrides border/radius/fill but NOT
   the shadow — so the shadow is part of the intended look, then presses in on
   hover and flattens on :active.

   This tool's copy of the kit predates that layer and defines no --cc-ink, so
   the ink is stated as a fallback rather than added to the shared token file
   (a tool stylesheet must never define a kit token). Restated here instead of
   inherited, which also keeps it independent of when this repo's kit is updated.

   NOTE: the results-bar copies stay FLAT — #pg2 .pg2-actions .scen-btn below
   sets box-shadow:none at (1,2,0) and outranks this (1,1,0). That is deliberate
   and is exactly what builder-incentive does: the hard shadow is a page-1
   treatment, and the results bar is one uniform band. */
#pg1 .scen-btn,#pg2 .scen-btn{
  padding:7px 13px;font-size:11px;font-weight:800;border-radius:8px;
  letter-spacing:.2px;cursor:pointer;font-family:inherit;
  background:#fff;border:1px solid var(--iv-line,#dfe4e9);color:var(--rp-ink2,#41607a);
  box-shadow:3px 3px 0 var(--cc-ink,#13283a);
  transition:background .15s,border-color .15s,color .15s,box-shadow .16s,transform .14s;
}
#pg1 .scen-btn:hover,#pg2 .scen-btn:hover{border-color:var(--rp-grad1,#1d5c84);color:var(--rp-ink,#10324f);}
/* The press-in is scoped to #pg1 DELIBERATELY. Written as #pg2 .scen-btn:hover
   it would be (1,2,0) — a tie with #pg2 .pg2-actions .scen-btn's
   transform:none/box-shadow:none, won on source order — and the results-bar
   button would press in, breaking the one-uniform-band rule. In
   builder-incentive the press-in arrives via .btn-secondary:hover at (0,1,1),
   which LOSES to that ID rule; scoping to #pg1 reproduces the same outcome
   without depending on a tie. */
#pg1 .scen-btn:hover{transform:translate(1px,1px);box-shadow:2px 2px 0 var(--cc-ink,#13283a);}
#pg1 .scen-btn:active{transform:translate(3px,3px);box-shadow:0 0 0 var(--cc-ink,#13283a);}
/* A disabled trigger must not look pressable. */
#pg1 .scen-btn:disabled{transform:none;box-shadow:3px 3px 0 var(--cc-ink,#13283a);}
/* Honour a reduced-motion preference: keep the shadow change, drop the shift. */
@media (prefers-reduced-motion:reduce){
  #pg1 .scen-btn,#pg1 .scen-btn:hover,#pg1 .scen-btn:active{transform:none;transition:none;}
}
#pg1 .scen-btn.primary,#pg2 .scen-btn.primary{background:var(--rp-navy,#103a5c);border-color:var(--rp-navy,#103a5c);color:#fff;}
#pg1 .scen-btn.primary:hover,#pg2 .scen-btn.primary:hover{background:var(--rp-grad1,#1d5c84);}
/* Destructive actions take the one red — never a second warning hue. */
#pg1 .scen-btn.danger,#pg2 .scen-btn.danger{color:var(--rp-red,#c4503e);border-color:var(--rp-redline,#e6c4bd);}
#pg1 .scen-btn.danger:hover,#pg2 .scen-btn.danger:hover{background:var(--rp-redpale1,#fbeeea);border-color:var(--rp-red,#c4503e);color:var(--rp-red,#c4503e);}
#pg1 .scen-btn:disabled,#pg2 .scen-btn:disabled{opacity:.5;cursor:not-allowed;}

/* ── footer: clear-all + its two-step inline confirm ── */
#pg1 .scen-foot{margin-top:14px;padding-top:13px;border-top:1px solid var(--iv-line2,#eceff2);}
#pg1 .scen-foot[hidden]{display:none;}
#pg1 .scen-confirm{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11.5px;font-weight:800;color:var(--rp-red,#c4503e);}
#pg1 .scen-confirm[hidden]{display:none;}

/* ── status line, shared by the drawer and both save popovers ──
   Transient: scenarios.js makeNote() clears it after ~5s, and a pg1 ⇄ pg2 switch
   clears it immediately, so a confirmation can never sit on a view it does not
   belong to. Warnings are sticky and exempt. The rise-in makes it read as a
   toast rather than as page furniture; removal is instant, because `hidden` is
   binary and cannot be transitioned out. */
@keyframes scenNoteIn{
  from{opacity:0;transform:translateY(-4px);}
  to  {opacity:1;transform:translateY(0);}
}
#pg1 .scen-msg,#pg1 .scen-save-msg,#pg2 .scen-save-msg{
  margin-top:11px;padding:8px 12px;border-radius:8px;
  background:var(--rp-limebg,#f2f6df);border:1px solid var(--rp-limeline,#d6e29a);
  font-size:11px;font-weight:700;line-height:1.5;color:var(--rp-lime-ink,#5f7414);
  animation:scenNoteIn .18s cubic-bezier(.2,.7,.2,1);
}
/* .pg2-bar and .submit-wrap are flex rows, so the toast would otherwise sit
   beside the buttons and fight the space-between distribution. Own row. */
#pg2 .scen-save-msg,#pg1 .scen-save-msg{flex:0 0 100%;}
@media (prefers-reduced-motion:reduce){
  #pg1 .scen-msg,#pg1 .scen-save-msg,#pg2 .scen-save-msg{animation:none;}
}
#pg1 .scen-msg.warn,#pg1 .scen-save-msg.warn,#pg2 .scen-save-msg.warn{
  background:var(--rp-redpale1,#fbeeea);border-color:var(--rp-redline,#e6c4bd);color:var(--rp-redink,#9a5448);
}
#pg1 .scen-msg[hidden],#pg1 .scen-save-msg[hidden],#pg2 .scen-save-msg[hidden]{display:none;}

/* ── the naming popover ──
   Anchored absolutely to its trigger, NOT position:fixed: framed in the portal
   there is no local viewport, so a fixed overlay centres against the entire
   document height and can land off-screen. Default opens upward (the submit bar
   is at the page bottom); .scen-pop--below flips it for the results-page bar. */
#pg1 .scen-save-wrap,#pg2 .scen-save-wrap{position:relative;display:flex;flex:0 0 auto;}
#pg1 .scen-pop,#pg2 .scen-pop{
  position:absolute;bottom:calc(100% + 9px);right:0;z-index:60;width:290px;
  display:flex;flex-direction:column;gap:7px;padding:15px 16px 14px;
  background:#fff;border:1px solid var(--iv-line,#dfe4e9);border-radius:12px;
  box-shadow:0 10px 28px rgba(16,50,79,.16);text-align:left;
}
#pg1 .scen-pop--below,#pg2 .scen-pop--below{bottom:auto;top:calc(100% + 9px);}
#pg1 .scen-pop[hidden],#pg2 .scen-pop[hidden]{display:none;}
#pg1 .scen-pop-ttl,#pg2 .scen-pop-ttl{font-size:12.5px;font-weight:800;color:var(--rp-ink,#10324f);letter-spacing:-.2px;}
#pg1 .scen-pop-sub,#pg2 .scen-pop-sub{font-size:10.5px;font-weight:700;line-height:1.45;color:var(--rp-mut,#7a8a98);}
#pg1 .scen-pop label,#pg2 .scen-pop label{
  font-size:10px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;
  color:var(--rp-mut,#7a8a98);margin-top:3px;
}
#pg1 .scen-pop input,#pg2 .scen-pop input{
  width:100%;box-sizing:border-box;height:36px;padding:0 11px;
  border:1px solid var(--iv-line,#dfe4e9);border-radius:9px;background:var(--iv-fill,#fbfaf7);
  font-family:inherit;font-size:13px;font-weight:700;color:var(--rp-ink,#10324f);
}
#pg1 .scen-pop input:focus,#pg2 .scen-pop input:focus{
  outline:none;border-color:var(--rp-grad1,#1d5c84);box-shadow:0 0 0 3px rgba(29,92,132,.14);
}
#pg1 .scen-pop-acts,#pg2 .scen-pop-acts{display:flex;justify-content:flex-end;gap:7px;margin-top:4px;}

/* The submit bar is a flex row; the save wrapper sits left of Generate. */
#pg1 .submit-wrap{flex-wrap:wrap;}

/* ── PRINT: the drawer and both save controls are screen-only chrome ── */
@media print{
  #pg1 .scen-panel,#pg1 .scen-save-wrap,#pg2 .scen-save-wrap,
  #pg1 .scen-save-msg,#pg2 .scen-save-msg,#pg1 .hero-acts{display:none!important;}
}

/* ═══════════ 2. MOBILE LIVE SCREEN (#mv) ═══════════ */

/* series colors for ReportKit.linePaths() on the dark shell — the report
   uses the kit's a/b/c slots; the mobile screen keeps its brighter set */
#mv .n-lng{stroke:#345169;stroke-width:1;stroke-dasharray:2 4;opacity:.5;}
#mv .n-lng.zero{stroke:#345169;stroke-dasharray:none;opacity:1;}
#mv .n-lnt{fill:#9fb3c4;font-size:13px;font-weight:700;}
#mv .n-s-nothing{stroke:#e07a52;}
#mv .n-s-spend{stroke:#5fa8c4;}
#mv .n-s-hero{stroke:#bcd64a;}
#mv .n-g-hero stop:first-child{stop-color:#bcd64a;stop-opacity:.26;}
#mv .n-g-spend stop:first-child{stop-color:#5fa8c4;stop-opacity:.2;}
#mv .dc-k-nothing{background:#e07a52;}
#mv .dc-k-spend{background:#5fa8c4;}
#mv .dc-k-hero{background:#bcd64a;}

/* live banner (this tool's mobile hero) */
#mv .dc-banner{margin:6px 0 4px;padding:24px 22px 20px;text-align:center;color:var(--ink);position:relative;overflow:hidden;border-radius:22px;border:1px solid var(--line);background:linear-gradient(158deg,var(--panel2),var(--panel) 78%);}
#mv .dc-banner .bk{font-size:12px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--mut);}
#mv .dc-banner .dcbig{font-size:44px;font-weight:800;letter-spacing:-1.6px;line-height:1.02;margin:6px 0 2px;color:var(--lime);font-variant-numeric:tabular-nums;}
#mv .dc-banner .dctag{font-size:13px;color:var(--ink2);font-weight:600;}
#mv .dc-banner .dcgoal{display:inline-block;margin-top:12px;background:var(--lime);color:#06243c;font-weight:800;font-size:12px;border-radius:30px;padding:7px 15px;}
#mv .dc-stat2{display:flex;background:var(--bg2);border:1px solid var(--line);border-radius:14px;margin-top:15px;overflow:hidden;}
#mv .dc-stat2 .c{flex:1;padding:11px 8px;text-align:center;}
#mv .dc-stat2 .c + .c{border-left:1px solid var(--line);}
#mv .dc-stat2 .c .l{font-size:11px;color:var(--ink2);font-weight:700;}
#mv .dc-stat2 .c .v{font-size:17px;font-weight:800;margin-top:3px;font-variant-numeric:tabular-nums;letter-spacing:-.4px;}
#mv .dc-stat2 .c.now .v{color:var(--red);}
#mv .dc-stat2 .c.aft .v{color:var(--lime);}

/* debt cards (stacked, add/remove) */
#mv .mdb{background:var(--bg2);border:1px solid var(--line);border-radius:15px;padding:12px 13px;margin-bottom:11px;}
#mv .mdb-h{display:flex;align-items:center;gap:9px;margin-bottom:9px;}
#mv .mdb-h .box{flex:1;margin:0;}
#mv .mdb-rm{width:34px;height:38px;flex:0 0 auto;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--mut);font-size:19px;line-height:1;cursor:pointer;}
#mv .mdb-rm:disabled{opacity:.35;}
#mv .mdb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
#mv .mfld{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:7px 10px;min-width:0;}
#mv .mfld .ml{font-size:10.5px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--mut);margin-bottom:2px;}
#mv .mfld .ml .mdb-min{color:var(--lime);text-transform:none;letter-spacing:0;}
#mv .mfld .mi{display:flex;align-items:center;gap:3px;}
#mv .mfld input{width:100%;min-width:0;background:transparent;border:none;outline:none;color:var(--ink);font-size:16px;font-weight:800;font-family:inherit;font-variant-numeric:tabular-nums;}
#mv .mfld .af{font-size:13px;color:var(--mut);font-weight:700;}
#mv .mfld.ro .mi{color:var(--ink2);font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;}
#mv .mdb-add{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:transparent;border:1px dashed var(--line);color:var(--ink2);font-size:13.5px;font-weight:800;border-radius:13px;padding:11px;cursor:pointer;font-family:inherit;margin-top:2px;}
#mv .mdb-tot{display:flex;justify-content:space-between;align-items:baseline;padding:11px 2px 2px;font-size:13.5px;}
#mv .mdb-tot .l{color:var(--ink2);font-weight:700;}
#mv .mdb-tot .v{font-weight:800;font-variant-numeric:tabular-nums;}
#mv .minnote{font-size:11px;color:var(--mut);margin-top:7px;line-height:1.45;}

/* new-loan readout chips */
#mv .dc-read{display:flex;gap:9px;margin-top:13px;}
#mv .dc-read .rc{flex:1;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0;}
#mv .dc-read .rc .v{font-size:17px;font-weight:800;letter-spacing:-.4px;font-variant-numeric:tabular-nums;}
#mv .dc-read .rc .l{font-size:10px;color:var(--mut);font-weight:700;margin-top:1px;}

#mv .row.rowpad{padding:6px 0 2px;}
#mv .usehint{font-size:12px;color:var(--mut);padding:9px 2px 4px;line-height:1.5;}
#mv .dc-sl{font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--ink);margin:16px 0 11px;}

/* minimum-payment trap */
#mv .dc-trap{position:relative;background:linear-gradient(135deg,rgba(196,80,62,.16),rgba(196,80,62,.05));border:1px solid rgba(196,80,62,.42);border-radius:18px;padding:16px 17px;margin-bottom:6px;}
#mv .dc-trap .tag{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#fff;background:var(--red);border-radius:7px;padding:4px 9px;}
#mv .dc-trap .bn{font-size:34px;font-weight:800;letter-spacing:-1.2px;color:var(--red);margin:11px 0 2px;font-variant-numeric:tabular-nums;}
#mv .dc-trap p{margin:5px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink);}
#mv .dc-trap b{color:var(--red);font-weight:800;}

/* one-payment bars */
#mv .dc-bars{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:6px;}
#mv .dc-bars .br{margin-top:13px;}
#mv .dc-bars .br:first-of-type{margin-top:0;}
#mv .dc-bars .brh{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;margin-bottom:5px;}
#mv .dc-bars .brh .l{color:var(--ink2);font-weight:700;}
#mv .dc-bars .brh .v{font-weight:800;font-variant-numeric:tabular-nums;}
#mv .dc-bars .track{height:30px;border-radius:9px;background:var(--bg2);overflow:hidden;}
#mv .dc-bars .fill{height:100%;border-radius:9px;display:flex;align-items:center;padding-left:11px;font-size:12px;font-weight:800;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;}
#mv .dc-bars .fill.now{background:linear-gradient(90deg,#27628a,#3f87b0);}
#mv .dc-bars .fill.aft{background:linear-gradient(90deg,#9fb71f,#bcd64a);color:#16290a;}

/* chart card (dark) */
#mv .dc-chartcard{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:15px 14px 10px;margin-bottom:13px;}
#mv .dc-chartcard .ct{font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--mut);margin:0 2px 8px;}
#mv .dc-chartcard .cleg{display:flex;flex-wrap:wrap;gap:11px;margin:0 2px 8px;font-size:11.5px;color:var(--ink2);font-weight:700;}
#mv .dc-chartcard .cleg i{display:inline-block;width:14px;height:4px;border-radius:2px;margin-right:5px;vertical-align:2px;}
#mv .dc-chartcard .cleg i.dash{height:0;border-top:3px dashed #5fa8c4;background:none;border-radius:0;}

/* plan note */
#mv .dc-note{background:linear-gradient(135deg,rgba(188,214,74,.15),rgba(188,214,74,.04));border:1px solid rgba(188,214,74,.4);border-radius:14px;padding:13px 14px;margin:0 0 6px;font-size:13px;line-height:1.5;color:var(--ink);}
#mv .dc-note b{color:var(--lime);font-weight:800;}

/* Graph /me headshot on the mobile share sheet. mobile-view.js emits
   .lo .av > img when profile.js fetched a photo; the shell rule gives .av its
   navy circle but nothing makes the <img> fill it, so without these the
   headshot overflows the circle as a raw square. */
#mv .sheet .lo .av{overflow:hidden;}
#mv .sheet .lo .av img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;}

/* ── mobile saved scenarios ──
   The drawer reuses the shell's own .card / .ch.tog / .chev section-header
   pattern (hfg-tool-shell.css), so only the rows and the inline save form need
   styling here. Dark-shell tokens, same as the rest of #mv. */
#mv .scen-hint{font-size:11.5px;color:var(--mut);font-weight:600;line-height:1.4;margin-bottom:11px;}
#mv .scen-empty{
  padding:14px 12px;border:1px dashed var(--line);border-radius:12px;
  font-size:12px;font-weight:600;color:var(--mut);text-align:center;
}
#mv .scen-empty b{color:var(--ink2);}
#mv .scen-row{
  display:flex;align-items:center;gap:11px;padding:11px 13px;margin-bottom:8px;
  background:var(--bg2);border:1px solid var(--line);border-radius:13px;
}
#mv .scen-meta{flex:1;min-width:0;}
#mv .scen-nm{font-size:13px;font-weight:800;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#mv .scen-sub{font-size:10.5px;font-weight:600;color:var(--mut);margin-top:2px;font-variant-numeric:tabular-nums;}
#mv .scen-acts{display:flex;gap:6px;flex:0 0 auto;}
/* 44px minimum hit target — the mobile floor for anything interactive. */
#mv .scen-acts button{
  min-height:44px;padding:0 12px;border-radius:10px;cursor:pointer;
  background:var(--panel2);border:1px solid var(--line);color:var(--ink2);
  font-family:inherit;font-size:11.5px;font-weight:800;
}
#mv .scen-acts button.danger{color:var(--red);border-color:var(--red);}
#mv .scen-msg{
  margin-top:10px;padding:9px 12px;border-radius:11px;
  background:rgba(188,214,74,.10);border:1px solid rgba(188,214,74,.35);
  font-size:12px;font-weight:700;line-height:1.45;color:var(--lime);
  animation:scenNoteIn .18s ease-out;   /* transient, same as desktop */
}
@media (prefers-reduced-motion:reduce){ #mv .scen-msg{animation:none;} }
#mv .scen-msg.warn{background:rgba(196,80,62,.12);border-color:var(--red);color:var(--red);}
#mv .scen-msg[hidden]{display:none;}
#mv .scen-inline{display:flex;flex-direction:column;gap:9px;margin-top:10px;}
#mv .scen-inline[hidden]{display:none;}
#mv .scen-inline-acts{display:flex;gap:9px;}
#mv .scen-inline-acts .mbtn{flex:1;}
#mv .scen-confirm{display:flex;flex-direction:column;gap:9px;margin-top:10px;}
#mv .scen-confirm[hidden]{display:none;}
#mv .scen-confirm .ct{font-size:12.5px;font-weight:800;color:var(--red);line-height:1.4;}

/* Graph autofill status note on the mobile LO card. scripts/profile.js writes
   into #m_loNote by id and unhides it; mobile-view.js renders it inside the LO
   card. The redesign copy had no Graph layer and dropped both. */
#mv .lo-auto-note{background:rgba(188,214,74,.1);border:1px solid rgba(188,214,74,.32);border-radius:11px;padding:9px 12px;margin:10px 0 2px;font-size:12px;line-height:1.5;color:var(--ink2);}

/* mobile raster-PDF capture (scripts/report-pdf.js): SVG charts are
   pre-rasterized onto sibling canvases via blob: URLs because html2canvas
   loads inline SVG as data: images, which img-src blocks. Class-based so the
   swap survives html2canvas's DOM clone. */
.pdf-svg-raster{display:block;width:100%;height:auto;}
.pdf-svg-hidden{display:none!important;}

/* Mobile share overlay: "Print / Save PDF" (#m_shPdf) is HIDDEN for now
   (on-device PDF still being figured out — later sprint; desktop print
   unaffected). The native-share PDF pipeline itself SHIPS — report-pdf.js is
   live and ToolApp.sharePdf() drives it; only the button is parked, so
   re-enable by removing the button's `hidden` attr in mobile-view.js.
   The .actions button rule in hfg-tool-shell.css sets display:flex, which
   outranks the UA [hidden]{display:none}, so the attribute alone won't hide
   it — this override forces it. */
#mv .shov .actions button[hidden]{display:none!important;}

/* ═══════════ 3. REPORT PRINT TRIMS ═══════════
   This report is denser than the kit default: two panel pairs, a chart, a
   fine-print grid and the steps grid on one sheet each. The page box is the
   sheet (§4) — these trims keep the composition inside 10.04in and nothing
   here changes the geometry the kit owns. */
.rp .n-lleg{font-size:9px;gap:4px 14px;}
@media print{
  #pg2{padding:0!important;min-height:0!important;}
  .report-shell{overflow:visible;}
  .rp .n-panel,.rp .n-chartbox,.rp .n-pbox,.rp .n-hero,.rp .n-tos,.rp .n-steps,.rp .n-lo2{break-inside:avoid;}
}
