/* RetireNerd Planner — Stress Tests and Scenarios pages (2026-10-06, js/48). Same column, padding and canvas as the
   Paycheck / Taxes / Net Worth pages; compact tops (the header already names the page); the stress tests open
   with their results — no run or collapse buttons. Colors are theme tokens only. */
@media (min-width:1001px){
  #stressView, #scenariosView { grid-column:2 !important; grid-row:2 !important; min-width:0 !important; margin:0 !important;
    padding:28px 34px 54px !important; background:var(--compass-canvas, var(--c-gray-99)) !important; border-radius:0 0 20px 0 !important; }
}
#stressView .hero, #scenariosView .hero { background:transparent !important; }
#stressView .hero::after, #scenariosView .hero::after { display:none !important; }
@layer compassNavTop {
  html body :is(#stressView, #scenariosView) .section-title h2 { font-size:19px !important; line-height:1.3 !important; display:flex; align-items:center; }
  html body :is(#stressView, #scenariosView) .section-title { margin-top:26px !important; margin-bottom:12px !important; padding-bottom:0 !important; border:0 !important; }
  html body :is(#stressView, #scenariosView) .section-title .section-icon-wrap { display:none !important; }
  html body #stressView .hero.pg-hero { margin-bottom:0 !important; }
  html body #stressView #section05Title { margin-top:10px !important; }
  /* Opened with results: the buttons that ran or folded them away aren't needed. */
  html body #stressView .runbtn, html body #stressView .yb-collapse, html body #histStaleBanner, html body #seqRiskStaleBanner { display:none !important; }
  html body #stressView #historicalBacktestPanel, html body #stressView #historicalBacktestPanel + * { margin-top:0 !important; }
  html body #stressView .panel { padding-top:18px !important; }
  html body #stressView #histResults, html body #stressView #seqRiskContent { margin-top:0 !important; }
  html body #stressView:not(.is-empty) #stressEmpty, html body #stressView.is-empty > :not(.hero):not(#stressEmpty) { display:none !important; }
  html body #stressView .pg-wait { margin:10px 0 0; font-size:13px; color:var(--muted); }
  @media (max-width:700px){
    html body :is(#stressView, #scenariosView) .section-title { margin-top:18px !important; }
  }
}

/* (2026-10-16) the compact summary and crisis cards are replaced by compass-stress.css. */
/* 2026-10-23 copy pass: empty pages are "No results yet." and the Go to Plan Details button. */
#dashView .tx-empty, #stressView .tx-empty { text-align:center; padding:44px 24px; }
#dashView .tx-empty strong, #stressView .tx-empty strong { display:block; font-size:15px; color:var(--c-slate-25); margin-bottom:16px; }
/* "Of it, retirement income" under "Income so far this year" (2026-10-27 Batch 3f): the same field style, a little apart; its message in the error color */
@layer studio { html body #toolView #incomeSoFarField > .sofar-ret.field { margin:12px 0 0 !important; padding:0 !important; width:100%; } } /* the Studio layer's own !important field margins (#toolView .pp-grid .field) need a stronger selector in it */
#toolView #incomeSoFarField .rd-note.is-bad { color:var(--c-red-50b); font-weight:600; }
/* The rest of this year (2026-10-27 Batch 3e, option B of _audits/2026-10-27-rest-of-year-mockup.html; js/88): the note under the Cash Flow,
   Taxes and Paycheck charts, a table's first row "Rest of 2026 / Oct–Dec · 3 months", shaded, the Paycheck line under its headline, and the
   Paycheck chart's first slot. Theme tokens only. */
.roy-note { margin:10px 0 0; font-size:13.5px; line-height:1.5; color:var(--s-muted, var(--c-slate-55)); }
.roy-note b { color:var(--s-ink2, var(--c-slate-35)); font-weight:600; }
.roy-note .qm { margin-left:6px; vertical-align:-2px; }
.fcj-table tr.roy-row > th, .fcj-table tr.roy-row > td { background:rgba(var(--c-slate-65-rgb), 0.08); }
.fcj-table tr.roy-row small { display:block; font-size:11.5px; font-weight:500; color:var(--s-muted, var(--c-slate-55)); }
.roy-pc { display:inline-block; margin:8px 0 2px; padding:7px 12px; border:1px solid var(--s-line, var(--c-gray-90)); border-radius:12px; background:rgba(var(--c-slate-65-rgb), 0.07); font-size:14px; line-height:1.4; color:var(--s-ink2, var(--c-slate-35)); }
.roy-pc b { color:var(--s-ink, var(--c-slate-15)); font-weight:600; }
.roy-hatch { stroke:rgba(var(--c-slate-45-rgb), 0.14); stroke-width:2; }
.roy-slot { stroke:none; }
.roy-split { stroke:var(--c-slate-65b); stroke-width:1; stroke-dasharray:4 3; }
.roy-split-t { font-size:11.5px; font-weight:600; fill:var(--s-muted, var(--c-slate-55)); }
.pc2-xl.roy-xl { font-weight:700; fill:var(--s-ink2, var(--c-slate-35)); }

/* F1 (2026-11-10): Projections and Roth Conversions before a result — "No results yet" and nothing else under the title
   (Projections showed only its planning note, Roth Conversions empty controls). js/48 sets .pg-noresult. */
#resultsView .pg-empty, #rothView .pg-empty { text-align:center; padding:44px 24px; }
#resultsView .pg-empty strong, #rothView .pg-empty strong { display:block; font-size:15px; color:var(--c-slate-25); margin-bottom:16px; }
@layer studio { :is(#resultsView, #rothView).pg-noresult > :not(.hero):not(.pg-empty) { display:none !important; } }
