/* Compass — Retirement details (step 2) as the approved mockup, design/studio-retirement-details.html (2026-10-11).
   Layout by js/55a-details-layout.js, behavior by js/55-details.js. In the "studio" cascade layer (declared first in
   index.html) so these rules outrank the theme's own !important card rules; they apply in every theme. */
@layer studio {
  #toolView .rd-away { display:none !important; }
  #toolView .rd-group[hidden], #toolView .ssc-who[hidden], #toolView .rd-ss-sp[hidden] { display:none !important; }

  /* two cards side by side: you · your spouse; spending and Social Security across; what you add · match; assumptions · estate */
  html.studio #toolView .rd-group.rd-ss { grid-column:1 / -1; }
  html.studio #toolView .panel:not(.rd-has-spouse) > .rd-group.rd-you { grid-column:1 / -1; }
  html.studio #toolView .rd-spouse { --chip-bg:var(--s-violet-l); --chip-fg:var(--s-violet); --chip-ic:var(--ic-users); }
  html.studio #toolView .rd-group.rd-you .inputs-grid, html.studio #toolView .rd-group.rd-spouse .inputs-grid { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
  html.studio #toolView .rd-group.rd-spouse .contrib-field { grid-column:1 / -1; }

  /* the year beside each age */
  /* the year on its own line under the name (the tip ? stays beside the name), so every label in the row is two
     lines and the boxes line up — "Retirement age · 2034" wrapped in a narrow column and pushed its box down */
  #toolView .field > label:has(> .rd-cap) { flex-wrap:wrap; }
  #toolView .field > label:has(> .rd-cap)::after { order:2; }
  #toolView .rd-cap { order:3; flex-basis:100%; font-size:12px; font-weight:500; line-height:1.3; color:var(--s-muted, var(--c-slate-55)); white-space:nowrap; }
  #toolView .rd-cap:empty { display:none; }
  #toolView .rd-note { margin:10px 0 0; font-size:12.5px; line-height:1.5; color:var(--s-muted, var(--c-slate-55)); }
  #toolView .rd-note[hidden] { display:none !important; }
  #toolView .rd-link { color:var(--s-blue, var(--c-blue-50)); font-weight:600; text-decoration:underline; text-underline-offset:3px; }

  /* spending eases with age, as a sentence */
  #toolView .rd-ease { grid-column:1 / -1 !important; margin:14px 0 0; }
  #toolView .rd-ease-s { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; font-size:14px; line-height:2; color:var(--s-ink2, var(--c-slate-35)); }
  #toolView .rd-ease-box { display:inline-flex; align-items:center; gap:2px; font-weight:700; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .rd-ease-box input { width:64px !important; min-width:0 !important; height:36px !important; min-height:0 !important; padding:0 8px !important; text-align:right; font-weight:700 !important; }
  #toolView .rd-ease-until { display:inline-flex; align-items:center; gap:6px; }
  #toolView .rd-ease-until.off { color:var(--s-muted, var(--c-slate-55)); } /* not faded: a dashed box says it waits for a percent */
  #toolView .rd-ease-until.off input { border-style:dashed !important; color:var(--s-muted, var(--c-slate-55)) !important; }

  /* Social Security by claim age */
  #toolView .ssc { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:20px; }
  #toolView .rd-group:not(.rd-has-sp) .ssc:has(> .ssc-who[hidden]) { grid-template-columns:minmax(0, 1fr); }
  #toolView .ssc-h { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; margin-bottom:8px; font-size:12.5px; color:var(--s-muted, var(--c-slate-55)); }
  #toolView .ssc-h b { font-size:14px; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .ssc-rec { color:var(--s-blue, var(--c-blue-50)); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
  #toolView .ssc-ages { display:grid; grid-template-columns:repeat(9, minmax(0, 1fr)); gap:4px; }
  #toolView .ssc-ages button { display:flex !important; flex-direction:column; align-items:center; gap:1px; min-width:0 !important; height:auto !important; min-height:0 !important; padding:7px 2px 6px !important;
    border:1px solid var(--s-line2, var(--c-gray-90)) !important; border-radius:10px !important; background:var(--s-card, var(--c-gray-99)) !important; box-shadow:none !important; font:inherit; cursor:pointer; color:var(--s-ink, var(--c-slate-15)) !important; }
  #toolView .ssc-ages button i { font-style:normal; font-size:11.5px; font-weight:700; color:var(--s-muted, var(--c-slate-55)) !important; }
  #toolView .ssc-ages button b { font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; color:inherit !important; }
  #toolView .ssc-ages button.fra { border-style:dashed !important; }
  #toolView .ssc-ages button.on { border-color:var(--s-blue, var(--c-blue-50)) !important; background:var(--s-blue-l, var(--c-gray-95)) !important; box-shadow:0 0 0 2px rgba(var(--s-blue-rgb), .18) !important; }
  #toolView .ssc-ages button.on i { color:var(--s-blue-d, var(--c-blue-50)) !important; } /* the darker accent: 4.18:1 on the chip (2026-10-13 audit) */
  #toolView .ssc-pick { margin:10px 0 0; font-size:13px; line-height:1.5; color:var(--s-ink2, var(--c-slate-35)); }
  #toolView .rd-ss-own { margin-top:16px; }
  #toolView .rd-ss-own > summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--s-blue, var(--c-blue-50)); }
  #toolView .rd-ss-sub { margin:12px 0 6px; font-size:12.5px; font-weight:700; color:var(--s-ink2, var(--c-slate-35)); }

  /* Assumptions and Estate: one line with Change on every screen (js/17's fold; it was phone-only) */
  #toolView .rd-group.rd-assume > .rd-fold, #toolView .rd-group.rd-heirs > .rd-fold { display:flex !important; align-items:center; justify-content:space-between; gap:12px; margin:0 0 4px; }
  #toolView .rd-fold-sum { font-size:13.5px; color:var(--s-ink2, var(--c-slate-35)); }
  /* (outranks Studio's "html.studio #toolView .rd-group .inputs-grid:not()…" display:grid) */
  html.studio #toolView .rd-group.rd-collapsed > .inputs-grid:not([data-a]):not([data-b]):not([data-c]), #toolView .rd-group.rd-collapsed > .inputs-grid,
  html.studio #toolView .rd-group.rd-collapsed > .st-more:not([data-a]):not([data-b]):not([data-c]), #toolView .rd-group.rd-collapsed > .rd-group-h > p { display:none !important; }

  /* ---- five steps (2026-10-11, design/studio-plan-flow.html) ---- */
  #toolView .rd-sp-only[hidden], #toolView .rd-group.rd-health[hidden], #toolView .rd-back[hidden], #expBackToPlan[hidden], #toolView #rdPlannerLater[hidden] { display:none !important; }
  html.studio #toolView .rd-group.rd-saving, html.studio #toolView .rd-group.rd-health, html.studio #toolView .rd-group.rd-draw { grid-column:1 / -1; }
  html.studio #toolView .rd-health { --chip-bg:var(--s-teal-l); --chip-fg:var(--s-teal); --chip-ic:var(--ic-heart); }
  html.studio #toolView .rd-draw { --chip-bg:var(--s-blue-l); --chip-fg:var(--s-blue); --chip-ic:var(--ic-trend); }
  html.studio #toolView .rd-saving { --chip-bg:var(--s-green-l); --chip-fg:var(--s-green); --chip-ic:var(--ic-wallet); }
  /* Work and saving: "You", "Your employer's match", "Your spouse" */
  #toolView .rd-sub { margin:16px 0 8px; font-size:13px; font-weight:700; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .rd-saving > .rd-sub:first-of-type { margin-top:0; }
  #toolView .rd-sub .fld-opt { margin-left:6px; font-weight:600; }
  /* About you: filing status and state get room for their words ("Married Filing Jointly" was cut off) */
  html.studio #toolView .rd-group.rd-you .inputs-grid:not([data-a]):not([data-b]):not([data-c]):not([data-d]) { grid-template-columns:repeat(6, minmax(0, 1fr)) !important; } /* (outranks Studio's three-column rule) */
  html.studio #toolView .rd-group.rd-you .inputs-grid > * { grid-column:span 2 !important; }
  html.studio #toolView .rd-group.rd-you .inputs-grid > .field:has(#filingStatus), html.studio #toolView .rd-group.rd-you .inputs-grid > .field:has(#hhState) { grid-column:span 3 !important; }
  html.studio #toolView .rd-group.rd-you .inputs-grid > #hhBox, html.studio #toolView .rd-group.rd-you .inputs-grid > .hh-box, html.studio #toolView .rd-group.rd-you .inputs-grid > :not(.field) { grid-column:1 / -1 !important; }
  /* a pension, under Social Security */
  #toolView .rd-inc { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px; padding:12px 14px; border:1px solid var(--s-line2, var(--c-gray-90)); border-radius:12px; }
  #toolView .rd-inc-t { font-size:13.5px; line-height:1.45; color:var(--s-ink2, var(--c-slate-35)); }
  #toolView .rd-inc-t b { color:var(--s-ink, var(--c-slate-15)); }
  #toolView .rd-inc-t .fld-opt { margin-left:4px; }
  #toolView .rd-inc-btn { margin-left:auto !important; }
  /* Health care card: js/53's box and Before Medicare, without boxes of their own */
  #toolView .rd-health .hc-box { margin:0 !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; }
  #toolView .rd-health .hc-box .hc-head > b { display:none; }
  #toolView .rd-health .hc-box .hc-head { justify-content:flex-end; margin:-44px 0 10px; min-height:24px; pointer-events:none; }
  #toolView .rd-health .hc-box .hc-head > * { pointer-events:auto; }
  #toolView .rd-health #pmRowYou .pm-seg, #toolView .rd-health #pmRowSpouse .pm-seg { display:none !important; } /* each person's marketplace / COBRA choice is on their own health card (2026-10-11); the subsidy rows keep their On / Off */
  #toolView .rd-health #preMedBlock { margin:16px 0 0 !important; padding:14px 0 0 !important; border:0 !important; border-top:1px solid var(--s-line, var(--c-gray-90)) !important; border-radius:0 !important; background:none !important; }
  /* How you'll draw it: the method, spending that eases, which accounts pay first (from Review) */
  #toolView .rd-draw .rd-ease { margin:16px 0 0; }
  #toolView .rd-draw .rd-pay { margin:18px 0 0 !important; padding:16px 0 0 !important; border:0 !important; border-top:1px solid var(--s-line, var(--c-gray-90)) !important; border-radius:0 !important; background:none !important; box-shadow:none !important; }
  #toolView .rd-draw .rd-pay .pay-plan-head h3 { margin:0 0 4px !important; font-size:14px !important; }
  /* the way back from the Expense Planner */
  #expBackToPlan { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 14px; padding:10px 14px; border-radius:12px; background:var(--s-blue-l, var(--c-gray-95)); color:var(--s-ink, var(--c-slate-15)); font-size:13.5px; }
  #expBackToPlan .preset-btn { margin-left:auto; }

  /* ---- each person's cards (2026-10-11, design/studio-person-flow.html; js/55a, js/55) ---- */
  #toolView .pp-panel { display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; align-items:start; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; }
  #toolView .pp-panel > input[type=hidden] { display:none; }
  #toolView .pp-card { min-width:0; padding:18px 20px; border:1px solid var(--s-line, var(--c-gray-90)); border-radius:var(--s-r, 16px); background:var(--s-card, var(--c-gray-99)); box-shadow:var(--s-sh, none); }
  #toolView .pp-card.pp-health, #toolView .pp-card.pp-income { grid-column:1 / -1; }
  #toolView .pp-h h3 { margin:0 0 12px; font-size:16px; font-weight:700; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .pp-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
  #toolView .pp-grid > :not(.field) { grid-column:1 / -1; }
  #toolView .pp-grid .field { margin:0 !important; min-width:0; }
  #toolView .pp-dates .pp-grid > .field:has(#filingStatus), #toolView .pp-dates .pp-grid > .field:has(#hhState) { grid-column:span 1; }
  #toolView .pp-dates .pp-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); } /* name · born · retire at · plan until */
  #toolView .pp-dates .pp-grid > .field:has(#filingStatus), #toolView .pp-dates .pp-grid > .field:has(#hhState) { grid-column:span 2; }
  #toolView .pp-row { border-top:1px solid var(--s-line, var(--c-gray-90)); padding:12px 0; }
  #toolView .pp-card > .pp-h + .pp-row { border-top:0; padding-top:0; }
  #toolView .pp-rh { display:flex; align-items:center; gap:12px; }
  #toolView .pp-q { flex:1; min-width:0; font-size:14px; font-weight:600; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .pp-q small { display:block; margin-top:1px; font-size:12.5px; font-weight:500; color:var(--s-muted, var(--c-slate-55)); }
  #toolView .pp-row.is-off .pp-q { color:var(--s-ink2, var(--c-slate-35)); font-weight:500; }
  #toolView .pp-rb { margin-top:12px; }
  #toolView .pp-rb[hidden], #toolView .pp-rh[hidden], #toolView .pp-ways[hidden], #toolView .pp-seg[hidden], #toolView .pp-ask[hidden] { display:none !important; }
  #toolView .pp-sub { display:grid; gap:8px; margin:12px 0; padding:10px 12px; border-radius:12px; background:var(--s-bg, var(--c-gray-95)); }
  #toolView .pp-sub .pp-q { font-weight:500; }
  /* the Yes / No switch */
  #toolView .pp-sw { position:relative; flex:none; display:inline-flex; align-items:center; width:74px !important; min-width:0 !important; height:30px !important; min-height:0 !important; padding:0 0 0 30px !important; border:0 !important; border-radius:999px !important; background:var(--s-track, var(--c-gray-85)) !important; box-shadow:none !important; cursor:pointer; font:inherit; }
  #toolView .pp-sw::before { content:''; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:var(--c-gray-99); box-shadow:0 1px 2px rgba(var(--c-shadow-rgb), .25); transition:left .15s; }
  #toolView .pp-sw .pp-sw-t { font-size:12.5px; font-weight:700; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .pp-sw[aria-checked="true"] { background:var(--s-blue, var(--c-blue-50)) !important; padding:0 30px 0 12px !important; }
  #toolView .pp-sw[aria-checked="true"]::before { left:47px; }
  #toolView .pp-sw[aria-checked="true"] .pp-sw-t { color:var(--c-gray-99); }
  #toolView .pp-sw:focus-visible { outline:2px solid var(--s-blue, var(--c-blue-50)); outline-offset:2px; }
  /* moved option sections: no box of their own */
  #toolView .pp-rb > [id$="Section"] { margin:0 !important; padding:0 !important; border:0 !important; background:none !important; }
  #toolView .pp-rb > [id$="Section"] > .section-desc { font-size:12.5px; color:var(--s-muted, var(--c-slate-55)); margin:0 0 10px !important; }
  /* health: timeline, choices, care use */
  #toolView .pp-tlbar { display:flex; overflow:hidden; border-radius:10px; margin:0 0 10px; font-size:11.5px; font-weight:700; }
  #toolView .pp-tlbar span { padding:6px 8px; color:var(--c-gray-99); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
  #toolView .pp-tlbar .t-w { background:var(--c-green-55); } #toolView .pp-tlbar .t-p { background:var(--c-teal-50); } #toolView .pp-tlbar .t-r { background:var(--c-teal-40); }
  #toolView .pp-tlbar .t-c { background:var(--c-amber-55); } #toolView .pp-tlbar .t-g { background:var(--c-orange-60); } #toolView .pp-tlbar .t-m { background:var(--s-blue, var(--c-blue-50)); }
  #toolView .pp-why { margin:0 0 8px; font-size:12.5px; line-height:1.5; color:var(--s-ink2, var(--c-slate-35)); }
  #toolView .pp-ask { margin:12px 0 8px; font-size:14px; font-weight:600; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .pp-ask small { display:block; margin-top:2px; font-size:12.5px; font-weight:500; color:var(--s-muted, var(--c-slate-55)); }
  #toolView .pp-retiree { margin-top:10px; } #toolView .pp-retiree[hidden] { display:none !important; } /* the retiree plan's cost, under the answer that picks it (2026-10-11) */
  #toolView .pp-ways { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:8px; }
  #toolView .pp-way { display:block; text-align:left; padding:10px 12px !important; height:auto !important; min-height:0 !important; border:1px solid var(--s-line2, var(--c-gray-90)) !important; border-radius:12px !important; background:var(--s-card, var(--c-gray-99)) !important; box-shadow:none !important; font:inherit; cursor:pointer; color:var(--s-ink, var(--c-slate-15)) !important; }
  #toolView .pp-way b { display:block; font-size:13.5px; } #toolView .pp-way span { display:block; margin-top:2px; font-size:12px; line-height:1.4; color:var(--s-muted, var(--c-slate-55)); }
  #toolView .pp-way.on { border-color:var(--s-blue, var(--c-blue-50)) !important; background:var(--s-blue-l, var(--c-gray-95)) !important; box-shadow:0 0 0 2px rgba(var(--s-blue-rgb), .15) !important; }
  #toolView .pp-way[disabled] { opacity:.5; cursor:not-allowed; }
  #toolView .pp-mini { grid-column:1 / -1; display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:4px; font-size:12.5px; color:var(--s-muted, var(--c-slate-55)); }
  #toolView .pp-seg { display:inline-flex; gap:2px; padding:3px; border-radius:10px; background:var(--s-bg, var(--c-gray-95)); }
  #toolView .pp-seg button { height:30px !important; min-height:0 !important; padding:0 12px !important; border:0 !important; border-radius:8px !important; background:transparent !important; box-shadow:none !important; font:inherit; font-size:12.5px; font-weight:600; color:var(--s-muted, var(--c-slate-55)) !important; cursor:pointer; }
  #toolView .pp-seg button.on { background:var(--s-card, var(--c-gray-99)) !important; color:var(--s-ink, var(--c-slate-15)) !important; box-shadow:0 1px 3px rgba(var(--c-shadow-rgb), .12) !important; }
  #toolView .pp-health .pp-grid:has(#medCoverage2) { display:none !important; } /* the spouse's selects: driven by the buttons above */

  @media (max-width:760px){
    #toolView .pp-panel { grid-template-columns:minmax(0, 1fr); }
    #toolView .pp-card { padding:14px; }
    #toolView .pp-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    #toolView .pp-dates .pp-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    #toolView .pp-ways { grid-template-columns:minmax(0, 1fr); }
  }

  @media (max-width:760px){
    html.studio #toolView .rd-group.rd-you .inputs-grid:not([data-a]):not([data-b]):not([data-c]):not([data-d]) { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
    html.studio #toolView .rd-group.rd-you .inputs-grid > * { grid-column:span 1 !important; }
    html.studio #toolView .rd-group.rd-you .inputs-grid > .field:has(#filingStatus), html.studio #toolView .rd-group.rd-you .inputs-grid > .field:has(#hhState) { grid-column:1 / -1 !important; }
    #toolView .rd-inc-btn { margin-left:0 !important; }
    #toolView .rd-health .hc-box .hc-head { margin-top:0; justify-content:flex-start; }
  }
  @media (max-width:760px){
    #toolView .ssc { grid-template-columns:minmax(0, 1fr); }
    #toolView .ssc-ages { grid-template-columns:repeat(5, minmax(0, 1fr)); }
    html.studio #toolView .rd-group.rd-you .inputs-grid, html.studio #toolView .rd-group.rd-spouse .inputs-grid { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
  }
  /* Social Security: three ways to the full-retirement-age amount, and the estimate from pay (js/55 strip, js/32b; 2026-10-11) */
  #toolView .ssc-btn { display:inline !important; height:auto !important; min-height:0 !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; font:inherit !important; font-weight:600 !important; cursor:pointer; }
  #toolView .ssc-3 { display:block; }
  #toolView .ssc-3 ol { margin:6px 0 0; padding-left:20px; display:grid; gap:4px; color:var(--s-ink2, var(--c-slate-35)); font-size:13px; line-height:1.5; }
  #toolView .ssc-rough { font-size:12.5px !important; color:var(--s-ink2, var(--c-slate-35)) !important; }
  #toolView .ssc-est { margin:10px 0 4px; padding:12px 14px; border:1px solid var(--s-line2, var(--c-gray-90)); border-radius:12px; background:var(--s-bg, var(--c-gray-99)); }
  #toolView .ssc-est[hidden], #toolView .ssc-est .field[hidden] { display:none !important; }
  #toolView .ssc-est-h, #toolView .ssc-est-pay { margin:0 0 8px; font-size:13px; line-height:1.5; color:var(--s-ink2, var(--c-slate-35)); }
  #toolView .ssc-est-h a, #toolView .ssc-est-acts a { color:var(--s-blue, var(--c-blue-50)); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
  #toolView .ssc-est-out { margin:10px 0; font-size:13.5px; line-height:1.5; color:var(--s-ink, var(--c-slate-15)); }
  #toolView .ssc-est-acts { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; font-size:13px; }
  #toolView #poRow_Spouse .po-switch { display:none !important; } /* Survivor years: on whenever a spouse is in the plan (step 1 · Who's in the plan) — 2026-10-11 */
}

/* Choices that are questions look like buttons (2026-10-13; user: "Does your spending above include health care? they do not
   look like two buttons"). In Plan Details every two- or three-way answer (Yes / No, Off / On, Low / Typical / High, Just me /
   Me and a spouse, whose account, the cash rate …) is a row of separate outlined buttons, 44px tall to tap; the chosen one
   is filled blue with a check. View switches elsewhere (Today's $ / Future $) keep the compact segmented look. */
@layer studio {
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) { display:flex !important; flex-wrap:wrap !important; gap:8px !important; padding:0 !important; background:transparent !important; border:0 !important; box-shadow:none !important; overflow:visible !important; }
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button { flex:1 1 auto !important; min-width:72px; min-height:44px !important; height:auto !important; padding:8px 14px !important; border:1.5px solid var(--s-line2) !important; border-radius:10px !important;
    background:var(--s-card) !important; color:var(--s-ink) !important; font-size:14px !important; font-weight:600 !important; line-height:1.25 !important; white-space:normal !important; box-shadow:none !important; opacity:1; }
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:hover { background:var(--s-hover) !important; }
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:is(.is-on, .on, .active, [aria-pressed="true"], [aria-checked="true"]) { border-color:var(--s-blue) !important; background:var(--s-blue-l) !important; color:var(--s-blue-d) !important; }
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:is(.is-on, .on, .active, [aria-pressed="true"], [aria-checked="true"])::before { content:'✓ '; font-weight:700; }
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:is(.is-off, :disabled) { opacity:.45; cursor:not-allowed; }
  html.studio #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:focus-visible { outline:2px solid var(--s-blue) !important; outline-offset:2px !important; }
}

/* Phones (2026-10-13, js/59-mobile.js): a chosen card alone with Change; long notes in three lines with More; the timeline's
   names under the bar; the Social Security dropdown; full-width price boxes; the result bar's "Still needed" on its own line. */
@layer studio {
  #toolView .mb-change, #toolView .mb-more { display:inline-flex; align-items:center; min-height:36px; margin:4px 0 6px; padding:4px 2px; border:0; background:none; color:var(--s-blue); font:inherit; font-size:14px; font-weight:600; text-decoration:underline; cursor:pointer; }
  #toolView .mb-change[hidden], #toolView .mb-more[hidden] { display:none !important; }
  #toolView .pp-tlkey { display:none; }
  html.studio #toolView .ssc-howbox { display:block; }
  html.studio #toolView .ssc-how-l { display:block; margin:0 0 6px; font-size:14px; font-weight:600; color:var(--s-ink); }
  html.studio #toolView select.ssc-how { width:100%; min-height:44px; padding:8px 12px; border:1.5px solid var(--s-line2); border-radius:10px; background:var(--s-card); color:var(--s-ink); font:inherit; font-size:15px; }
  html.studio #toolView .ssc-how-n { margin:8px 0 0; font-size:13px; line-height:1.5; color:var(--s-muted); }
  @media (max-width:600px){
    #toolView .pp-ways.mb-folded > .pp-way:not(.on) { display:none !important; }
    #toolView .mb-clamp { display:-webkit-box !important; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden !important; max-height:4.6em !important; padding-bottom:0 !important; margin-bottom:0 !important; }
    #toolView .pp-tlbar { height:12px; margin-bottom:6px; } #toolView .pp-tlbar span { font-size:0 !important; padding:0 !important; }
    #toolView .pp-tlkey { display:grid; gap:2px; margin:0 0 10px; padding:0; list-style:none; font-size:13px; color:var(--s-ink2); }
    #toolView .pp-tlkey li { display:flex; align-items:center; gap:8px; } #toolView .pp-tlkey i { flex:none; width:12px; height:12px; border-radius:3px; }
    #toolView .pp-tlkey .t-w { background:var(--c-green-55); } #toolView .pp-tlkey .t-p { background:var(--c-teal-50); } #toolView .pp-tlkey .t-r { background:var(--c-teal-40); }
    #toolView .pp-tlkey .t-c { background:var(--c-amber-55); } #toolView .pp-tlkey .t-g { background:var(--c-orange-60); } #toolView .pp-tlkey .t-m { background:var(--s-blue); }
    #preMedBlock .field, #preMedBlock .field input { width:100% !important; max-width:none !important; min-width:0 !important; }
    /* the result and the live switch on the first row; "Still needed: … Go" on its own row below */
    html.studio #liveBar.lb { flex-wrap:wrap !important; row-gap:4px !important; }
    html.studio #liveBar .lb-side { display:contents !important; }
    html.studio #liveBar .lb-main { order:1; flex:1 1 auto; min-width:0; }
    html.studio #liveBar .lb-live { order:2; }
    html.studio #liveBar .lb-state { order:3; } html.studio #liveBar .lb-btn { order:4; }
    html.studio #liveBar .lb-state.lb-warn { flex:1 1 calc(100% - 80px) !important; white-space:normal !important; }
  }
}
/* the start age still to choose (js/55 ssAgeAsk, 2026-10-13) */
@layer studio { html.studio #toolView .ssc-ask { display:block; margin:0 0 4px; color:var(--s-orange); font-weight:700; } }
/* Glide Path → Apply it to (js/60-glide.js, 2026-10-13) */
@layer studio {
  html.studio #toolView .glide-accts { margin-top:14px; }
  html.studio #toolView .glide-h { margin:0 0 6px; font-size:14px; font-weight:600; color:var(--s-ink); }
  html.studio #toolView .glide-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px; }
  html.studio #toolView .glide-acct { display:flex; align-items:center; gap:10px; min-height:44px; padding:8px 12px; border:1.5px solid var(--s-line2); border-radius:10px; background:var(--s-card); cursor:pointer; }
  html.studio #toolView .glide-acct:has(input:checked) { border-color:var(--s-blue); background:var(--s-blue-l); }
  html.studio #toolView .glide-acct input { width:18px; height:18px; flex:none; accent-color:var(--s-blue); }
  html.studio #toolView .glide-acct b { display:block; font-size:14px; color:var(--s-ink); } html.studio #toolView .glide-acct small { display:block; font-size:12px; color:var(--s-muted); }
  html.studio #toolView .glide-note { margin:8px 0 0; font-size:13px; line-height:1.5; color:var(--s-muted); }
  /* several paths (2026-10-14): each its shares, when it starts and ends, and its accounts */
  html.studio #toolView .glide-first[hidden] { display:none !important; }
  html.studio #toolView .glide-path + .glide-path { margin-top:16px; padding-top:14px; border-top:1px solid var(--s-line); }
  html.studio #toolView .glide-path-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; font-size:15px; color:var(--s-ink); }
  html.studio #toolView .glide-rm { width:44px; height:44px; border:1px solid var(--s-line2); border-radius:10px; background:var(--s-card); color:var(--s-ink2); font:inherit; font-size:20px; line-height:1; cursor:pointer; }
  html.studio #toolView .glide-grid { grid-template-columns:repeat(4, minmax(0, 1fr)) !important; margin:0 0 12px !important; }
  html.studio body #toolView .glide-path .glide-lab { display:block; margin:0 0 6px; font-size:12.5px; font-weight:600; line-height:1.3; color:var(--s-ink2); }
  html.studio #toolView .glide-when-row { display:flex; gap:8px; min-width:0; }
  html.studio #toolView .glide-when-row select { flex:1 1 auto; min-width:0; }
  html.studio #toolView .glide-when-row .glide-age { flex:0 0 76px; width:76px; min-width:0; }
  html.studio #toolView .glide-when-row .glide-age[hidden] { display:none !important; }
  html.studio #toolView .glide-acct.is-other small { color:var(--s-ink2); }
  html.studio #toolView .glide-add { display:inline-flex; align-items:center; min-height:44px; margin-top:14px; padding:0 14px; border:1px dashed var(--s-line2); border-radius:10px; background:var(--s-card); font:inherit; font-weight:600; color:var(--s-link); cursor:pointer; }
  html.studio #toolView .glide-add:focus-visible, html.studio #toolView .glide-rm:focus-visible { outline:2px solid var(--s-blue); outline-offset:2px; }
}
@media (max-width:900px){ @layer studio { html.studio #toolView .glide-grid { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; } } }
@media (max-width:420px){ @layer studio { html.studio #toolView .glide-grid { grid-template-columns:minmax(0, 1fr) !important; } } }

/* Plan Details audit fixes (2026-10-13, ui-ux-pro-max: contrast 4.5:1, 24 px targets / 44 px on phones, nothing under 13 px).
   In the studio layer (declared first, in index.html): its !important outranks every other layer's; the selectors (an id) outrank
   the theme's own rules in it. */
@layer studio {
  /* units inside fields ($, /yr, % a year): 2.58:1 → the muted text color */
  html body #toolView .unit-box > .unit-pre, html body #toolView .unit-box > .unit-suf { color:var(--s-muted, var(--c-slate-55)) !important; }
  /* labels a little under 4.5:1 */
  html body #toolView :is(.nw-seg, .pp-way span) { color:var(--s-ink2, var(--c-slate-25)) !important; }
  html.studio.studio-dark body .compass-plan-step:is(.active, .is-active, [aria-current="step"]) .compass-step-number { background:var(--s-blue-btn) !important; } /* white on it: 5.85:1 */
  html.studio body .compass-plan-step:not(.active):not(.is-active):not([aria-current="step"]):not(.is-todo) .compass-step-number { color:var(--s-ink2) !important; } /* 4.44:1 */
  html body #toolView .hc-tag.ok { color:var(--c-green-35) !important; }
  html body #toolView :is(.mf-chev, .mf-check) { color:var(--s-muted, var(--c-slate-55)) !important; }
  /* dark: links in the accent, and white on the accent */
  html.studio.studio-dark body #toolView :is(.mb-more, .mb-change, .ssc-rec, .rd-ss-own summary, .pp-tlbar .t-m, a) { color:var(--s-link) !important; }
  html.studio.studio-dark body #toolView :is(.pp-sw[aria-checked="true"], .plan-step-next, .runbtn, .mc-cta, .mc-cta-button) { background:var(--s-blue-btn) !important; border-color:var(--s-blue-btn) !important; }
  html.studio.studio-dark body #toolView .pp-sw[aria-checked="true"] .pp-sw-t { color:var(--s-on) !important; }
  /* the ? help: 24 px (WCAG 2.2 AA minimum), 44 px to tap on phones */
  html body #toolView .qm { position:relative !important; width:24px !important; height:24px !important; font-size:13px !important; vertical-align:middle; }
  /* nothing under 13 px */
  html body #toolView :is(#planAgeEstimateLink, .fra i, [data-ssc] i, .pay-tax, .pay-move button, .mf-step-num, .mm-risk span, .mm-who, .mm-add, #activeAllocIndicator, #activeAllocIndicator strong, .compass-step-todo, .hc-tag, .pay-rank, .compass-mix-label span, .fld-opt, .rd-cap) { font-size:13px !important; }
  /* every control at least 24 px (WCAG 2.2 AA) */
  html body #toolView :is(summary, .ssc-rec, .ssc-btn, .xm-pct input) { min-height:24px !important; }
  html body #toolView summary { display:flex; align-items:center; }
  html body #toolView a.ssc-rec { display:inline-flex !important; align-items:center; }
  @media (max-width:760px){
    html body #toolView :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select) { min-height:44px !important; }
    html body #toolView :is(.ssc-rec, summary, #pensionLumpRun, .mm-act, .po-chev, .mb-change, .mb-more, #planAgeEstimateLink, .mm-upd-btn, .acct-chip, #runSimBtn) { min-height:44px !important; }
    html body #toolView :is(.ssc-rec, #pensionLumpRun, .mm-act, .po-chev, .mb-change, .mb-more, #planAgeEstimateLink) { display:inline-flex !important; align-items:center; }
    html body #toolView .mm-act { min-width:44px !important; }
    /* the switch and the ? keep their look; their tap area grows to 44 px */
    html body #toolView .pp-sw::after, html body #toolView .qm::after { content:''; position:absolute; left:50%; top:50%; width:max(100%, 44px); height:44px; transform:translate(-50%, -50%); }
  }
}

/* Folding cards in steps 1 and 2 (js/63, 2026-10-13): a header row per card — ✓ or !, title, one-line summary, chevron */
@layer studio {
  html body #toolView .pp-card.pf-closed > :not(.pp-h) { display:none !important; }
  html body #toolView .pp-card.pf-closed .pp-h h3 { margin:0 !important; }
}
#toolView .pp-h h3.pf-h3 { margin:0 0 12px; }
#toolView .pf-row { display:grid; grid-template-columns:28px minmax(0,1fr) 24px; gap:12px; align-items:center; width:100%; min-height:52px; padding:2px 0; border:0; background:transparent; font:inherit; color:inherit; text-align:left; cursor:pointer; }
#toolView .pf-row:focus-visible { outline:3px solid var(--s-blue, var(--c-teal-50)); outline-offset:4px; border-radius:10px; }
#toolView .pf-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
#toolView .pf-title { font-size:16px; font-weight:700; color:var(--s-ink, var(--c-slate-15)); }
#toolView .pf-sum { font-size:14.5px; font-weight:400; line-height:1.4; color:var(--s-muted, var(--c-slate-55)); }
#toolView .pp-card:not(.pf-closed) .pf-sum { display:none; } /* open: the fields say it */
#toolView .pf-dot { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; font-size:14px; font-weight:700; }
#toolView .pf-dot.pf-done { background:var(--c-green-85); color:var(--c-green-35); }
#toolView .pf-dot.pf-need { background:var(--c-amber-90b); color:var(--c-amber-35); }
#toolView .pf-chev { width:10px; height:10px; justify-self:center; border-right:2px solid var(--s-muted, var(--c-slate-55)); border-bottom:2px solid var(--s-muted, var(--c-slate-55)); transform:rotate(45deg); transition:transform .15s; }
#toolView .pp-card.pf-closed .pf-chev { transform:rotate(-45deg); }
@media (prefers-reduced-motion:reduce){ #toolView .pf-chev { transition:none; } }

/* ---------------------------------------------------------------- Spending, tidied (2026-10-14; user picked B in the Spending review:
   both design skills). One spending figure, the easing age only once there's a percent, tax notes as grey text, one ? per heading,
   44 px on phones, Where extra money goes as one line with Change. In @layer studio: Studio's !important wins otherwise. */
@layer studio {
  /* one figure: what the plan spends, its parts under it (js/53) */
  html.studio body #toolView .spend-planner-card.has-all #spendPlannerTotal { display:none !important; }
  html.studio body #toolView .spend-planner-all strong { font-size:28px; font-weight:700; letter-spacing:-.01em; color:var(--s-ink, var(--c-slate-15)); font-variant-numeric:tabular-nums; }
  html.studio body #toolView .spend-planner-all .spend-planner-unit { font-size:15px !important; color:var(--s-ink2, var(--c-slate-35)) !important; }
  html.studio body #toolView .spend-source-field > .qm[hidden] { display:none !important; }
  html.studio body #toolView .spend-planner-all { margin:0 0 10px; }
  /* the "?" of the hidden second "Spending" label (js/47) sat alone on a phone */
  html.studio body #toolView #spendSourceLabel.q-sr .qm, html.studio body #toolView #spendSourceLabel.q-sr + .qm { display:none !important; }
  /* the easing age only once there's a percent (js/55 ease) */
  html.studio body #toolView .rd-ease-until.off { display:none !important; }
  /* the accounts: tax notes as grey text under the name, not blue pills that look like links */
  html.studio body #toolView .pay-body { display:block !important; }
  html.studio body #toolView .pay-body strong { display:block !important; font-size:15px !important; }
  html.studio body #toolView .pay-body .pay-tax { display:inline !important; margin:0 !important; padding:0 !important; background:none !important; border:0 !important; border-radius:0 !important; color:var(--s-muted, var(--c-slate-55)) !important; font-size:13.5px !important; font-weight:500 !important; }
  html.studio body #toolView .pay-body .pay-tax + .pay-tax::before { content:"· "; }
  html.studio body #toolView .pay-move { gap:8px !important; }
  /* Where extra money goes: one line until Change (js/58) */
  html.studio body #toolView .xm-sum { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
  html.studio body #toolView .xm-sum p { flex:1; min-width:200px; margin:0; font-size:15px; color:var(--s-ink2, var(--c-slate-35)); }
  html.studio body #toolView .xm-sum b { color:var(--s-ink, var(--c-slate-15)); }
  html.studio body #toolView .xm-toggle { min-height:40px; padding:0 16px; font-size:15px; font-weight:600; border:1px solid var(--s-line2, var(--c-gray-85)); background:var(--s-card, var(--panel)); color:var(--s-ink, var(--c-slate-15)); border-radius:10px; cursor:pointer; }
  html.studio body #toolView .xm-card.xm-closed > :not(.xm-sum) { display:none !important; }
  html.studio body #toolView .xm-card:not(.xm-closed) > .xm-h { display:none; } /* the line above says it */
  html.studio body #toolView .xm-card:not(.xm-closed) > .xm-sum { margin-bottom:10px; }
  html.studio body #toolView .xm-name small { font-size:13px !important; }
  html.studio body #toolView .xm-pct input { min-height:36px !important; width:72px !important; }
  @media (max-width:760px){
    html.studio body #toolView :is(.spend-source-row .toggle-btn, .pay-presets .preset-btn, .spend-planner-open, .xm-toggle, .xm-add, .xm-btn) { min-height:44px !important; height:auto !important; }
    html.studio body #toolView .toggle-row.spend-source-row > .toggle-btn.toggle-btn { min-height:44px !important; }
    /* the card's heading is the row above on a phone: its ? sat alone on a line, now beside One amount / Itemize */
    html.studio body #toolView .mf-row[aria-expanded="true"] + .rd-group.rd-spend { position:relative; }
    html.studio body #toolView .mf-row[aria-expanded="true"] + .rd-group.rd-spend > .rd-group-h { position:absolute !important; top:10px; right:0; margin:0 !important; z-index:1; } /* Studio's 36 px rule is one class stronger */
    html.studio body #toolView .pay-move button { width:44px !important; height:44px !important; font-size:13px !important; }
    html.studio body #toolView .pay-presets { gap:8px !important; }
    html.studio body #toolView .xm-pct input { min-height:44px !important; }
  }
}

/* ---------------------------------------------------------------- Health care costs, tidied (2026-10-14; user picked B in the Health
   care review): the subsidy warning first, one row per person (before 65 · from 65), the first retired year, the prices, then
   the three settings as switches. js/53 draws the table, js/46 the switches, js/51b the warning (#pmWhy, now in #hcWhySlot). */
@layer studio {
  html.studio body #toolView #preMedBlock.pm-in-table > :is(.th-h, .th-intro, .pm-row) { display:none !important; }
  html.studio body #toolView #preMedBlock.pm-in-table { padding-top:0 !important; border-top:0 !important; margin-top:8px !important; }
  html.studio body #toolView .hc-tab td { white-space:normal !important; overflow-wrap:anywhere !important; }
  html.studio body #toolView .hc-tag.ok { color:var(--s-ink, var(--c-slate-15)) !important; }
  html.studio body #toolView #hcWhySlot:empty { display:none !important; }
  html.studio body #toolView #hcWhySlot .pm-why-warn { margin:4px 0 12px !important; padding:10px 14px !important; border-radius:12px !important; background:var(--c-sand-95b) !important; color:var(--c-amber-35) !important; font-size:15px !important; line-height:1.5 !important; }
  html.studio body #toolView #hcWhySlot .pm-why-warn[hidden] { display:none !important; }
  html.studio body #toolView #hcWhySlot .pm-why-warn a { color:inherit !important; font-weight:700 !important; text-decoration:underline !important; display:inline-flex !important; align-items:center !important; min-height:24px !important; }
  html.studio body #toolView .hc-tab { width:100% !important; border-collapse:collapse !important; margin:4px 0 8px !important; font-size:14.5px !important; }
  html.studio body #toolView .hc-tab thead th { text-align:left !important; font-size:13.5px !important; font-weight:600 !important; color:var(--s-muted, var(--c-slate-55)) !important; padding:0 10px 6px 0 !important; border-bottom:1px solid var(--s-line2, var(--c-gray-85)) !important; }
  html.studio body #toolView .hc-tab tbody th { text-align:left !important; font-weight:700 !important; font-size:15px !important; padding:10px 10px 10px 0 !important; vertical-align:top !important; white-space:nowrap !important; color:var(--s-ink, var(--c-slate-15)) !important; }
  html.studio body #toolView .hc-tab td { padding:10px 10px 10px 0 !important; vertical-align:top !important; border-bottom:1px solid var(--s-line, var(--c-gray-90)) !important; color:var(--s-ink2, var(--c-slate-35)) !important; }
  html.studio body #toolView .hc-tab tbody th { border-bottom:1px solid var(--s-line, var(--c-gray-90)) !important; }
  html.studio body #toolView .hc-tab td b { display:block !important; font-weight:600 !important; color:var(--s-ink, var(--c-slate-15)) !important; }
  html.studio body #toolView .hc-tab .yr { display:block !important; font-size:13.5px !important; color:var(--s-muted, var(--c-slate-55)) !important; }
  html.studio body #toolView .hc-foot { font-size:14px !important; color:var(--s-muted, var(--c-slate-55)) !important; }
  html.studio body #toolView #hcCostSlot .pm-cost { margin:0 0 8px !important; font-size:14px !important; color:var(--s-ink2, var(--c-slate-35)) !important; }
  /* the settings: a label, a switch, one line under it */
  html.studio body #toolView .pm-guard.pm-has-sw { display:grid !important; grid-template-columns:minmax(0,1fr) auto !important; align-items:center !important; column-gap:16px !important; row-gap:2px !important; }
  html.studio body #toolView .pm-guard.pm-has-sw[hidden] { display:none !important; } /* (2026-10-14: the rule above outranked hidden, so a row that didn't apply still showed) */
  html.studio body #toolView .pm-guard.pm-has-sw > .pm-seg { display:none !important; }
  html.studio body #toolView .pm-guard.pm-has-sw > label { grid-column:1 !important; grid-row:1 !important; margin:0 !important; font-size:15.5px !important; font-weight:700 !important; }
  html.studio body #toolView .pm-guard.pm-has-sw > .pm-sw { grid-column:2 !important; grid-row:1 / span 2 !important; }
  html.studio body #toolView .pm-guard.pm-has-sw > :not(label):not(.pm-sw):not(input) { grid-column:1 !important; }
  html.studio body #toolView .pm-sw { min-height:30px !important; position:relative !important; width:52px !important; height:30px !important; border-radius:999px !important; border:0 !important; padding:0 !important; background:var(--c-gray-75) !important; cursor:pointer !important; flex:none !important; }
  html.studio body #toolView .pm-sw::after { content:""; position:absolute !important; top:3px !important; left:3px !important; width:24px !important; height:24px !important; border-radius:50% !important; background:var(--s-on, var(--c-gray-99)) !important; transition:left .15s !important; }
  html.studio body #toolView .pm-sw::before { content:""; position:absolute !important; inset:-7px !important; } /* a 44 px tap area */
  html.studio body #toolView .pm-sw[aria-checked="true"] { background:var(--s-blue-btn, var(--c-teal-50)) !important; }
  html.studio body #toolView .pm-sw[aria-checked="true"]::after { left:25px !important; }
  html.studio body #toolView .pm-sw:focus-visible { outline:3px solid var(--c-teal-50) !important; outline-offset:2px !important; }
  @media (prefers-reduced-motion:reduce){ html.studio body #toolView .pm-sw::after { transition:none !important; } }
  @media (max-width:760px){
    html.studio body #toolView .hc-tab thead { display:none !important; }
    html.studio body #toolView .hc-tab tr { display:grid !important; grid-template-columns:1fr !important; padding:8px 0 !important; border-bottom:1px solid var(--s-line, var(--c-gray-90)) !important; }
    html.studio body #toolView .hc-tab :is(td, tbody th) { display:block !important; border:0 !important; padding:2px 0 !important; }
    html.studio body #toolView .hc-tab td:nth-of-type(2)::before { content:"From 65: "; font-size:13.5px !important; color:var(--s-muted, var(--c-slate-55)) !important; }
    html.studio body #toolView #hcWhySlot .pm-why-warn a { min-height:44px !important; }
    html.studio body #toolView #preMedBlock .inputs-grid { grid-template-columns:1fr !important; } /* the prices' boxes were too narrow for $1,250 /mo each */
  }
}

/* ---------------------------------------------------------------- Review & run as one checklist (2026-10-14; user picked A in the
   Review & run review): the plan's parts in groups, a row per option, Assumptions and Estate as rows (their Edit opens them
   here, js/17); the step ends with the result and one button (#runSimBtn: See results when current, else Run the plan).
   On this step the glance and "Active in your plan" cards and the "Running with" line are hidden: the list says it. */
@layer studio {
  html.studio body #toolView .rv-g { margin:16px 0 0 !important; font-size:13.5px !important; font-weight:600 !important; color:var(--s-muted, var(--c-slate-55)) !important; }
  html.studio body #toolView .rv-g + .rv-list { margin-top:4px !important; }
  html.studio body #toolView .rv-list li b .rv-opt { display:inline !important; }
  /* "Required entries are present" (js/17; it shows only when nothing is missing): the result line below says it */
  html.studio.rv-step body #toolView .rn-input-check, html.studio.rv-step body #toolView .mf-row:has(+ .rn-input-check), html.studio.rv-step body #toolView .mf-row:has(+ * > .rn-input-check) { display:none !important; }
  html.studio body #toolView .rv-opt { font-size:13.5px !important; font-weight:500 !important; color:var(--s-muted, var(--c-slate-55)) !important; margin-left:4px; }
  html.studio body #toolView .rv-h span { font-size:14px !important; }
  html.studio body #toolView details.rv-more > summary { list-style:none !important; display:flex !important; align-items:center !important; min-height:44px !important; cursor:pointer; font-size:15px !important; font-weight:600 !important; color:var(--s-link, var(--c-teal-40)) !important; border-top:1px solid var(--s-line, var(--c-gray-95)) !important; }
  html.studio body #toolView details.rv-more > summary::-webkit-details-marker { display:none; }
  html.studio body #toolView details.rv-more[open] > summary { display:none !important; }
  html.studio body #toolView details.rv-more > .rv-list { margin-top:0 !important; }
  html.studio.rv-step .compass-plan-glance, html.studio.rv-step body #toolView #activeAllocIndicator { display:none !important; }
  html.studio.rv-step body #toolView .rd-group.rd-collapsed:is(.rd-assume, .rd-heirs) { display:none !important; }
  html.studio.rv-step body #toolView .mf-row:has(+ .rd-group.mf-folded:is(.rd-assume, .rd-heirs)) { display:none !important; } /* the phone's folded rows: the list's last rows say them; Edit opens the group */
  html.studio:not(.rv-step) body #toolView .rv-ready { display:none !important; } /* 2026-10-14: it showed as an empty card under Back / Next on the other steps */
  html.studio.rv-step body #toolView .rv-ready { display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:12px 18px !important; margin:16px 0 0 !important; padding:16px 18px !important; border:1px solid var(--s-line2, var(--c-gray-85)) !important; border-radius:14px !important; background:var(--s-card, var(--panel)) !important; }
  html.studio body #toolView .rv-res { flex:1 1 240px !important; min-width:0 !important; }
  html.studio body #toolView .rv-res b { display:block !important; font-size:22px !important; font-weight:700 !important; color:var(--s-ink, var(--c-slate-15)) !important; }
  html.studio body #toolView .rv-res span { display:block !important; font-size:14.5px !important; color:var(--s-muted, var(--c-slate-55)) !important; }
  html.studio body #toolView .rv-ready.rv-cur .rv-res b::before { content:""; display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--c-green-45); margin-right:8px; vertical-align:3px; }
  html.studio body #toolView .rv-acts { flex:0 0 auto !important; }
  html.studio body #toolView .rv-acts #runSimBtn { width:auto !important; min-width:200px !important; margin:0 !important; }
  html.studio body #toolView .rv-acts #runSimBtn .mc-cta-subtitle { display:none !important; } /* "Monte Carlo Analysis" */
  @media (max-width:700px){ html.studio body #toolView .rv-acts, html.studio body #toolView .rv-acts #runSimBtn { width:100% !important; } }
}

/* Savings (2026-10-14 review): labels in sentence case at 13 px+, "(optional)" readable, the status line in ink, not link-blue. */
@layer studio {
  html.studio body #toolView .mm-facts span { text-transform:none !important; letter-spacing:0 !important; font-size:13.5px !important; font-weight:600 !important; }
  html.studio body #toolView .aw-list-h { text-transform:none !important; letter-spacing:0 !important; font-size:13.5px !important; }
  html.studio body #toolView .aw-lbl { font-size:14px !important; }
  html.studio body #toolView .aw-opt { font-size:13px !important; color:var(--s-muted, var(--c-slate-55)) !important; }
  html.studio body #toolView #portfolioSaveStatus, html.studio body #toolView #portfolioSaveStatus span { color:var(--s-muted, var(--c-slate-55)) !important; }
  html.studio body #toolView .acct-kind, html.studio body #toolView .acct-add-btn, html.studio body #toolView .aw-hit { border-radius:12px !important; font-weight:inherit !important; }
  html.studio body #toolView .aw-hit { border-radius:0 !important; }
  html.studio body #toolView .acct-add-btn { font-weight:600 !important; }
}

/* Plan options as one list, one pattern (2026-10-14, js/22): a row per option — icon, name with ?, the full summary,
   Change, the switch; inside, the fields then "In your plan: …". Options that are off: a line each with Add.
   In @layer studio with #toolView: Studio's own tile rules (compass-studio.css) are !important too. */
@layer studio {
  html.studio body #toolView #planOptionsList .po-sec-rows { display:flex !important; flex-direction:column !important; gap:8px !important; }
  html.studio body #toolView #planOptionsList .po-row { grid-column:auto !important; border-radius:14px !important; box-shadow:none !important; overflow:visible !important; }
  html.studio body #toolView #planOptionsList .po-head { display:grid !important; grid-template-columns:auto auto minmax(0, 1fr) auto auto !important; grid-template-rows:auto auto !important; align-items:center !important; gap:2px 8px !important; padding:12px 14px !important; min-height:0 !important; }
  html.studio body #toolView #planOptionsList .po-main { grid-column:1 !important; grid-row:1 !important; flex-direction:row !important; align-items:center !important; gap:12px !important; min-height:40px; min-width:0; }
  html.studio body #toolView #planOptionsList .po-icon { flex:0 0 36px !important; width:36px !important; height:36px !important; }
  html.studio body #toolView #planOptionsList .po-text strong { font-size:16px !important; line-height:1.3 !important; }
  html.studio body #toolView #planOptionsList .po-sum { grid-column:1 / 4 !important; grid-row:2 !important; padding-left:48px !important; cursor:pointer; display:block !important; -webkit-line-clamp:unset !important; padding-right:0 !important; margin:0 !important; font-size:14.5px !important; line-height:1.45 !important; font-weight:400 !important; color:var(--s-ink2) !important; overflow:visible !important; white-space:normal !important; }
  html.studio body #toolView #planOptionsList .po-sum:empty { display:none !important; }
  html.studio body #toolView #planOptionsList .po-qm { grid-column:2 !important; grid-row:1 !important; align-self:center !important; justify-self:start !important; }
  html.studio body #toolView #planOptionsList .po-chev { grid-column:4 !important; grid-row:1 / 3 !important; margin-left:4px !important; align-self:center !important; justify-self:auto !important; width:auto !important; min-width:0 !important; height:auto !important; min-height:40px !important; padding:0 12px !important;
    font:inherit !important; font-size:15px !important; font-weight:600 !important; color:var(--s-link) !important; background:var(--s-card) !important; border:1px solid var(--s-line2) !important; border-radius:10px !important; white-space:nowrap !important; cursor:pointer; }
  html.studio body #toolView #planOptionsList .po-chev::before, html.studio body #toolView #planOptionsList .po-chev::after { content:none !important; display:none !important; }
  html.studio body #toolView #planOptionsList .po-chev[hidden] { display:none !important; }
  html.studio body #toolView #planOptionsList .po-chev:hover { border-color:var(--s-link) !important; }
  html.studio body #toolView #planOptionsList .po-switch { grid-column:5 !important; grid-row:1 / 3 !important; min-height:44px !important; display:inline-flex !important; align-items:center !important; }
  html.studio body #toolView #planOptionsList .po-switch-track { width:48px !important; height:28px !important; }
  html.studio body #toolView #planOptionsList .po-switch-knob { width:22px !important; height:22px !important; }
  html.studio body #toolView #planOptionsList .po-switch[aria-checked="true"] .po-switch-knob { left:23px !important; }
  html.studio body #toolView #planOptionsList .po-row.is-open { border:1px solid var(--s-blue) !important; box-shadow:none !important; }
  html.studio body #toolView #planOptionsList .po-row.is-open > .po-head { background:none !important; }
  html.studio body #toolView #planOptionsList .po-row > .po-body { padding:2px 14px 14px 62px !important; border-top:0 !important; }
  html.studio body #toolView #planOptionsList .po-folded { display:none !important; }
  html.studio body #toolView #planOptionsList .po-res { margin:12px 0 0 !important; padding:10px 12px !important; border-radius:10px !important; background:var(--s-bg) !important; font-size:14.5px !important; line-height:1.5 !important; color:var(--s-ink2) !important; }
  html.studio body #toolView #planOptionsList .po-res:empty { display:none !important; }
  /* the moved panels: their fields, not a card in the card (Property & debts keeps its own balance-sheet design) */
  html.studio body #toolView #planOptionsList .po-row:not(#poRow_NetWorth) .po-body .section-title { display:none !important; }
  html.studio body #toolView #planOptionsList .po-row:not(#poRow_NetWorth) .po-body .panel { margin:8px 0 0 !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; border-radius:0 !important; }
  html.studio body #toolView #planOptionsList .po-flat { margin:8px 0 0 !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; border-radius:0 !important; }
  html.studio body #toolView #planOptionsList .po-lump2 { position:relative !important; margin-top:12px !important; padding:12px 52px 0 0 !important; border-top:1px solid var(--s-line) !important; }
  html.studio body #toolView #planOptionsList .po-lump2[hidden] { display:none !important; }
  html.studio body #toolView #planOptionsList .po-rm { position:absolute; top:12px; right:0; width:44px; height:44px; border:1px solid var(--s-line2); border-radius:10px; background:var(--s-card); color:var(--s-ink2); font:inherit; font-size:20px; line-height:1; cursor:pointer; }
  html.studio body #toolView #planOptionsList .po-add1 { display:inline-flex; align-items:center; min-height:44px; margin-top:10px; padding:0 14px; border:1px dashed var(--s-line2); border-radius:10px; background:var(--s-card); font:inherit; font-weight:600; color:var(--s-link); cursor:pointer; }
  html.studio body #toolView #planOptionsList .po-add1[hidden] { display:none !important; }
  html.studio body #toolView #planOptionsList .po-rm:focus-visible, html.studio body #toolView #planOptionsList .po-add1:focus-visible, html.studio body #toolView #planOptionsList .po-chip:focus-visible { outline:2px solid var(--s-blue); outline-offset:2px; }
  html.studio body #toolView #planOptionsList #advSpouseWrap select { min-width:16em; }
  /* group names in sentence case */
  html.studio body #toolView #planOptionsList .po-group-name { font-size:14px !important; font-weight:600 !important; letter-spacing:0 !important; text-transform:none !important; color:var(--s-muted) !important; }
  html.studio body #toolView #planOptionsList .po-count { font-weight:600; }
  /* not in your plan: a line each — icon, name and what it does, Add */
  html.studio body #toolView #planOptionsList .po-chips { display:flex !important; flex-direction:column !important; gap:8px !important; }
  html.studio body #toolView #planOptionsList .po-chip:not([hidden]):not([style*="display:none"]):not([style*="display: none"]) { display:grid !important; grid-template-columns:36px minmax(0, 1fr) auto !important; align-items:center !important; gap:4px 12px !important; width:100%; min-height:60px !important; padding:12px 14px !important; border-radius:14px !important; font-weight:400 !important; }
  html.studio body #toolView #planOptionsList .po-chip::before, html.studio body #toolView #planOptionsList .po-chip::after { content:none !important; display:none !important; }
  html.studio body #toolView #planOptionsList .po-chip > .po-icon { position:static !important; order:0 !important; margin:0 !important; width:36px !important; height:36px !important; border:0 !important; border-radius:10px !important; display:grid !important; place-items:center !important; background:var(--s-track) !important; color:var(--s-ink2) !important; font-size:inherit !important; }
  html.studio body #toolView #planOptionsList .po-chip > .po-icon::after { content:none !important; }
  html.studio body #toolView #planOptionsList .po-chip > .po-icon svg { width:20px; height:20px; }
  html.studio body #toolView #planOptionsList .po-chip-t { display:flex; flex-direction:column; gap:2px; min-width:0; color:var(--s-ink) !important; font-weight:400 !important; }
  html.studio body #toolView #planOptionsList .po-chip-t b { font-size:16px; font-weight:700; color:var(--s-ink) !important; }
  html.studio body #toolView #planOptionsList .po-chip-t small { font-size:14.5px; line-height:1.45; color:var(--s-ink2) !important; }
  html.studio body #toolView #planOptionsList .po-chip-add { display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border:1px solid var(--s-line2); border-radius:10px; background:var(--s-card); font-size:15px; font-weight:600; color:var(--s-ink) !important; }
  html.studio body #toolView #planOptionsList .po-chip:hover .po-chip-add { border-color:var(--s-link); color:var(--s-link) !important; }
}
@media (max-width:700px){ @layer studio {
  html.studio body #toolView #planOptionsList .po-head { grid-template-columns:auto auto minmax(0, 1fr) auto !important; padding:10px 12px !important; }
  html.studio body #toolView #planOptionsList .po-switch { grid-column:4 !important; grid-row:1 !important; }
  html.studio body #toolView #planOptionsList .po-sum { grid-column:1 / -1 !important; }
  html.studio body #toolView #planOptionsList .po-chev { grid-column:1 / -1 !important; grid-row:3 !important; justify-self:end !important; margin:6px 0 0 !important; min-height:44px !important; }
  html.studio body #toolView #planOptionsList .po-icon { display:grid !important; }
  html.studio body #toolView #planOptionsList .po-row > .po-body { padding:2px 12px 14px !important; }
  html.studio body #toolView #planOptionsList .po-chip:not([hidden]):not([style*="display:none"]):not([style*="display: none"]) { grid-template-columns:36px minmax(0, 1fr) !important; }
  html.studio body #toolView #planOptionsList .po-chip-add { grid-column:2; justify-self:start; min-height:44px; }
  html.studio body #toolView #planOptionsList #advSpouseWrap select { min-width:0; width:100%; }
} }

/* Rental income: each property's rent, then Other rental income (2026-10-14, js/61 rentList) */
@layer studio {
  html.studio #toolView .rent-props { display:flex; flex-direction:column; gap:8px; margin:12px 0 4px; }
  html.studio #toolView .rent-prop { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--s-line); border-radius:12px; background:var(--s-card); }
  html.studio #toolView .rent-prop > span { flex:1 1 auto; min-width:0; }
  html.studio #toolView .rent-prop b { display:block; font-size:15px; color:var(--s-ink); }
  html.studio #toolView .rent-prop small { display:block; font-size:13.5px; line-height:1.45; color:var(--s-ink2); }
  html.studio #toolView .rent-go { flex:none; min-height:40px; padding:0 12px; border:1px solid var(--s-line2); border-radius:10px; background:var(--s-card); font:inherit; font-size:15px; font-weight:600; color:var(--s-link); cursor:pointer; }
  html.studio #toolView .rent-add { align-self:flex-start; display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border:1px dashed var(--s-line2); border-radius:10px; background:var(--s-card); font:inherit; font-weight:600; color:var(--s-link); cursor:pointer; }
  html.studio #toolView .rent-go:focus-visible, html.studio #toolView .rent-add:focus-visible { outline:2px solid var(--s-blue); outline-offset:2px; }
  html.studio #toolView .rent-other-h { margin-top:16px; }
}
@media (max-width:520px){ @layer studio { html.studio #toolView .rent-prop { flex-wrap:wrap; } html.studio #toolView .rent-go { min-height:44px; } } }

/* One-time money as a list (2026-10-14, js/62): each item its type, when (whose age), amount, account and tax */
@layer studio {
  html.studio body #toolView .lump-item { padding:12px 0 4px; }
  html.studio body #toolView .lump-item + .lump-item { border-top:1px solid var(--s-line); }
  html.studio body #toolView .lump-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; font-size:15px; color:var(--s-ink); }
  html.studio body #toolView .lump-item .glide-lab { display:block; margin:0 0 6px; font-size:12.5px; font-weight:600; line-height:1.3; color:var(--s-ink2); }
  html.studio body #toolView .lump-item .glide-lab em { font-style:normal; font-weight:400; color:var(--s-muted); }
  html.studio body #toolView .lump-grid { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; margin:0 !important; }
  html.studio body #toolView .lump-item .glide-when-row .lump-who { flex:1 1 auto; min-width:0; }
  html.studio body #toolView .lump-item .glide-when-row .lump-age { flex:0 0 72px; width:72px; }
  html.studio body #toolView .lump-item .glide-when-row:not(:has(select)) .lump-age { flex:1 1 auto; width:auto; }
  html.studio body #toolView .lump-list .glide-add { margin-top:10px; }
}
@media (max-width:900px){ @layer studio { html.studio body #toolView .lump-grid { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; } } }
@media (max-width:600px){ @layer studio { html.studio body #toolView .lump-grid { grid-template-columns:minmax(0, 1fr) !important; } } }

/* Other income as a list per person (2026-10-14, js/64) */
@layer studio {
  html.studio body #toolView .oi-item { padding:10px 0 4px; }
  html.studio body #toolView .oi-item + .oi-item { border-top:1px solid var(--s-line); }
  html.studio body #toolView .oi-item .lump-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; font-size:15px; color:var(--s-ink); }
  html.studio body #toolView .oi-item .glide-lab { display:block; margin:0 0 6px; font-size:12.5px; font-weight:600; line-height:1.3; color:var(--s-ink2); }
  html.studio body #toolView .oi-grid { grid-template-columns:repeat(4, minmax(0, 1fr)) !important; margin:0 !important; }
  html.studio body #toolView .oi-item .glide-when-row select { flex:1 1 auto; min-width:0; }
  html.studio body #toolView .oi-item .glide-when-row .glide-age { flex:0 0 76px; width:76px; }
  html.studio body #toolView .oi-item .glide-when-row > .unit-box { flex:0 0 92px !important; width:92px !important; min-width:0 !important; }
  html.studio body #toolView .oi-item .glide-when-row > .unit-box .glide-age { width:100% !important; flex:1 1 auto; }
  html.studio body #toolView .oi-item .glide-when-row > select { flex:1 1 auto; min-width:96px; }
  html.studio body #toolView .oi-list .glide-add { margin-top:10px; }
}
@media (max-width:1100px){ @layer studio { html.studio body #toolView .oi-grid { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; } } }
@media (max-width:600px){ @layer studio { html.studio body #toolView .oi-grid { grid-template-columns:minmax(0, 1fr) !important; } } }
/* Pensions as a list (2026-10-14, js/65): the oi-item layout; Compare spans the row */
@layer studio {
  html.studio body #toolView .pen-item .pl-cmp { grid-column:1 / -1; }
  html.studio body #toolView .pen-list .glide-add { margin-top:10px; }
}
@layer studio { html.studio body #toolView .oi-item .glide-lab em { font-style:normal; font-weight:400; color:var(--s-muted); } }

/* Roth page → more conversion windows (2026-10-14, js/70): the same list pattern as the plan's lists */
@layer studio {
  html.studio body #rothView .rc-more { margin-top:16px; padding-top:14px; border-top:1px solid var(--s-line); }
  html.studio body #rothView .rc-more-h { margin:0 0 4px; font-size:15px; font-weight:700; color:var(--s-ink); }
  html.studio body #rothView .rc-more .oi-item { padding:10px 0 4px; }
  html.studio body #rothView .rc-more .oi-item + .oi-item { border-top:1px solid var(--s-line); }
  html.studio body #rothView .rc-more .lump-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 6px; font-size:15px; color:var(--s-ink); }
  html.studio body #rothView .rc-more .glide-lab { display:block; margin:0 0 6px; font-size:12.5px; font-weight:600; line-height:1.3; color:var(--s-ink2); }
  html.studio body #rothView .rc-more .oi-grid { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; margin:0 !important; }
  html.studio body #rothView .rc-more .glide-rm { width:44px; height:44px; border:1px solid var(--s-line2); border-radius:10px; background:var(--s-card); color:var(--s-ink2); font:inherit; font-size:20px; line-height:1; cursor:pointer; }
  html.studio body #rothView .rc-more .glide-add { display:inline-flex; align-items:center; min-height:44px; margin-top:12px; padding:0 14px; border:1px dashed var(--s-line2); border-radius:10px; background:var(--s-card); font:inherit; font-weight:600; color:var(--s-link); cursor:pointer; }
  html.studio body #rothView .rc-more .glide-note { margin:8px 0 0; font-size:13px; line-height:1.5; color:var(--s-muted); }
  html.studio body #rothView .rc-more .glide-add:focus-visible, html.studio body #rothView .rc-more .glide-rm:focus-visible { outline:2px solid var(--s-blue); outline-offset:2px; }
}
@media (max-width:700px){ @layer studio { html.studio body #rothView .rc-more .oi-grid { grid-template-columns:minmax(0, 1fr) !important; } } }

/* An account's savings (2026-10-14, accounts.js contribHtml): dollars or % of pay, its ages, its own match */
@layer studio {
  html.studio body #toolView .aw-seg-sm { margin:0 0 8px; }
  html.studio body #toolView .aw-seg-sm button { height:40px; font-size:13.5px; }
  html.studio body #toolView .aw-2col { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 12px; margin-top:8px; }
  html.studio body #toolView .aw-2col .aw-money { margin-bottom:0; }
}
@media (max-width:420px){ @layer studio { html.studio body #toolView .aw-2col { grid-template-columns:minmax(0, 1fr); } } }

/* How you'll pay: a different order from an age (2026-10-14, js/13 renderPayOrderAges) */
@layer studio {
  html.studio body #toolView .pay-ages { margin-top:12px; }
  html.studio body #toolView .pay-age { margin-top:12px; padding-top:12px; border-top:1px solid var(--s-line); }
  html.studio body #toolView .pay-age-h { display:flex; align-items:center; gap:10px; margin:0 0 8px; font-size:14px; font-weight:600; color:var(--s-ink2); }
  html.studio body #toolView .pay-age-h .pay-age-in { width:84px; min-height:44px; padding:0 10px; border:1px solid var(--s-line2); border-radius:10px; font:inherit; font-size:15px; }
  html.studio body #toolView .pay-age-h .glide-rm { margin-left:auto; }
  html.studio body #toolView .pay-order-sm li { min-height:44px; }
}

/* Property & debts, Expense Planner off: in the goal, or on top (2026-10-14, js/61 onTopRender) */
@layer studio {
  html.studio body #toolView #nwOnTop .nw-ontop-q { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:6px !important; margin:12px 0 4px !important; font-size:14px !important; font-weight:600 !important; color:var(--s-ink2) !important; }
  html.studio body #toolView #nwOnTop .prop-seg { display:inline-flex !important; flex-wrap:wrap !important; gap:0 !important; padding:3px !important; border-radius:12px !important; background:var(--s-track) !important; }
  html.studio body #toolView #nwOnTop .prop-seg button { min-height:40px !important; padding:6px 14px !important; border:0 !important; border-radius:9px !important; background:transparent !important; font:inherit !important; font-size:14px !important; font-weight:600 !important; color:var(--s-ink2) !important; cursor:pointer !important; }
  html.studio body #toolView #nwOnTop .prop-seg button.on { background:var(--s-card) !important; color:var(--s-link) !important; box-shadow:0 1px 3px rgba(var(--s-shadow-rgb), 0.16) !important; }
  html.studio body #toolView #nwOnTop .prop-seg button:focus-visible { outline:2px solid var(--s-blue) !important; outline-offset:1px !important; }
}

/* Already getting Social Security (2026-10-14, js/55): this month's check and the age it started, side by side */
@layer studio {
  html.studio body #toolView .ssc-now { display:grid !important; grid-template-columns:repeat(auto-fit, minmax(150px, 220px)) !important; gap:12px !important; margin:10px 0 0 !important; }
  html.studio body #toolView .ssc-now .field { margin:0 !important; }
  html.studio body #toolView .ssc-now .glide-lab { display:block; margin:0 0 6px; font-size:12.5px; font-weight:600; line-height:1.3; color:var(--s-ink2); }
  html.studio body #toolView .rd-retired { margin:4px 0 10px !important; }
}

/* Spending (2026-10-14 journey map): "How you'll draw it" folds to one line on wider screens (js/55); the order before any
   account; the subsidy line on Review & run (js/51b) */
@layer studio {
  @media (min-width:701px){
    html.studio body #toolView .rd-group.rd-draw > .rd-fold { display:flex !important; align-items:center; justify-content:space-between; gap:12px; margin:0 0 4px; }
    html.studio body #toolView .rd-group.rd-draw.rd-collapsed > :not(.rd-group-h):not(.rd-fold) { display:none !important; }
  }
  html.studio body #toolView #payOrderList .pay-none { display:block !important; padding:10px 2px !important; font-size:13.5px; color:var(--s-muted); }
  html.studio body #toolView .rv-aca-why { margin:0 0 12px !important; padding:10px 14px !important; border-radius:12px !important; background:var(--c-sand-95b) !important; color:var(--c-amber-35) !important; font-size:13.5px; line-height:1.5; }
  html.studio body #toolView .rv-aca-why[hidden] { display:none !important; }
  html.studio body #toolView .rv-aca-why a { color:inherit !important; font-weight:700 !important; text-decoration:underline !important; }
}

/* Review & run (2026-10-14 journey map): one line per thing to fix with its own Go to; Run says how many are left; the
   glance panel only on Review; the bar above the steps hidden on a computer (the top bar names the plan, js/19) */
@layer studio {
  html.studio body #toolView .sim-warn-list { list-style:none !important; margin:8px 0 0 !important; padding:0 !important; display:grid !important; gap:8px !important; }
  html.studio body #toolView .sim-warn-list li { display:flex !important; align-items:center !important; justify-content:space-between !important; gap:12px !important; flex-wrap:wrap !important; }
  html.studio body #toolView .sim-warn-list li > span { flex:1 1 260px !important; min-width:0 !important; }
  html.studio body #toolView .sim-warn-list .sim-warn-btn { flex:none !important; margin:0 !important; }
  html.studio body #toolView .sim-warn-notes { margin:10px 0 0 !important; font-size:13px; color:var(--s-muted); }
  html.studio body #toolView #runSimBtn.rv-blocked { opacity:.55 !important; }
  html.studio:not(.rv-step) body #toolView .compass-plan-glance { display:none !important; }
  html.studio body .plan-bar.plan-bar-desk-off { display:none !important; }
  html.studio body .compass-workspace-header #planBarTour { margin-right:8px; }
}
@layer studio {
  @media (min-width:1651px){ html.studio:not(.rv-step) body #toolView:not([style*="display: none"]) { grid-template-columns:minmax(0,1fr) !important; } } /* no empty right column without the glance panel */
}

/* Person cards (2026-10-14 journey map): the match as one sentence; one short line under a switch */
@layer studio {
  html.studio body #toolView .rd-match { margin:10px 0 0 !important; }
  html.studio body #toolView .rd-short { margin:6px 0 10px !important; }
}
/* Plan Details as wide as the Plan Summary (2026-10-15; user: "the sections that have inputs look very long on desktop. the
   buttons are all the way to the right … formatted like the plan summary in size. the rest pages can take the whole screen"):
   the steps and their cards in one 960px column on the left on a computer; results pages keep the full width. */
@layer studio {
  @media (min-width:1001px){
    html.studio body #toolView .compass-main-flow { width:100% !important; max-width:var(--rn-report-width, 960px) !important; margin-inline:0 auto !important; } /* on the left, as the Plan Summary sits */
    html.studio body #toolView:not([style*="display: none"]) { grid-template-columns:minmax(0,1fr) !important; }
  }
}
@layer studio { html.studio body #toolView #pmVerdict { margin:6px 0 0 !important; } html.studio body #toolView #pmVerdict[hidden] { display:none !important; } }
@layer studio { html.studio body #toolView #pmVerdict .pm-verdict-note { display:block !important; margin-top:4px !important; font-size:13px !important; line-height:1.45 !important; color:var(--c-slate-45) !important; } }
/* How you'll draw it, folded: the withdrawal strategy by name on its own line (2026-10-15) */
@layer studio { html.studio body #toolView .rd-fold-draw .rd-fold-sum .rd-fold-wd { display:block; margin:0 0 2px; font-size:15px; font-weight:700; color:var(--s-ink, var(--c-slate-25)); }
  html.studio body #toolView .rd-fold-draw .rd-fold-sum > span { display:block; } }

/* Choices as radio cards (2026-10-15; user: "all of these type of highlighted buttons do not look professional", pointing at a
   settings-style radio list): a thin border, a ring on the left, and the chosen one a filled dot on a soft gray — no blue
   fill, no check. Plan Details' two- and three-way answers, whose account, the health-plan cards, the property questions
   and the Social Security ages (a ring above the age there). */
@layer studio {
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button, html.studio body #toolView .pp-way, html.studio body .prop-card .prop-seg button {
    position:relative !important; display:flex !important; align-items:center !important; justify-content:flex-start !important; text-align:left !important;
    padding:10px 14px 10px 40px !important; border:1px solid var(--s-line2) !important; border-radius:10px !important;
    background:var(--s-card) !important; color:var(--s-ink) !important; font-weight:500 !important; box-shadow:none !important; }
  html.studio body #toolView .pp-way { display:block !important; padding:12px 14px 12px 40px !important; }
  html.studio body .prop-card .prop-q-open .prop-seg button { display:flex !important; flex-direction:column !important; align-items:flex-start !important; padding:10px 18px 10px 44px !important; }
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button::before, html.studio body #toolView .pp-way::before, html.studio body .prop-card .prop-seg button::before {
    content:'' !important; position:absolute; left:14px; top:50%; width:16px; height:16px; margin-top:-8px; box-sizing:border-box;
    border:1.5px solid var(--s-faint); border-radius:50%; background:var(--s-card); }
  html.studio body #toolView .pp-way::before { top:14px; margin-top:0; }
  html.studio body .prop-card .prop-q-open .prop-seg button::before { left:18px; }
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:hover, html.studio body #toolView .pp-way:hover, html.studio body .prop-card .prop-seg button:hover { border-color:var(--s-faint) !important; }
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:is(.is-on, .on, .active, [aria-pressed="true"], [aria-checked="true"]), html.studio body #toolView .pp-way.on, html.studio body .prop-card .prop-seg button.on {
    border-color:var(--s-faint) !important; background:var(--s-bg) !important; color:var(--s-ink) !important; box-shadow:none !important; }
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:is(.is-on, .on, .active, [aria-pressed="true"], [aria-checked="true"])::before, html.studio body #toolView .pp-way.on::before, html.studio body .prop-card .prop-seg button.on::before {
    border-color:var(--s-blue); background:var(--s-blue); box-shadow:inset 0 0 0 3px var(--s-card); }
  html.studio body #toolView .pp-way.on span { color:var(--s-ink2) !important; }
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button:has(> small) { flex-direction:column !important; align-items:flex-start !important; justify-content:center !important; gap:1px; }
  html.studio body #toolView :is(.pm-seg, .aw-seg, .acct-seg, .pp-seg) > button > small { display:block; font-size:12.5px; font-weight:400; color:var(--s-muted, var(--s-ink2)); }
  /* the Social Security ages: the same ring, above the age */
  html.studio body #toolView .ssc-ages button::before { content:''; width:12px; height:12px; margin:0 0 3px; box-sizing:border-box; border:1.5px solid var(--s-faint); border-radius:50%; background:var(--s-card); }
  html.studio body #toolView .ssc-ages button:hover { border-color:var(--s-faint) !important; }
  html.studio body #toolView .ssc-ages button.on { border-color:var(--s-faint) !important; background:var(--s-bg) !important; box-shadow:none !important; }
  html.studio body #toolView .ssc-ages button.on::before { border-color:var(--s-blue); background:var(--s-blue); box-shadow:inset 0 0 0 2.5px var(--s-card); }
  html.studio body #toolView .ssc-ages button.on i { color:var(--s-ink2) !important; }
}

/* Roth page: the first window as the same card as the others (2026-10-15, js/70); its old rows stay hidden */
@layer studio {
  html.studio body #rothView #rothSection.rc-has-first > .field.rc-line:has(#rothConversionStrategyLabel), html.studio body #rothView #rothSection.rc-has-first > #rothYouHead,
  html.studio body #rothView #rothSection.rc-has-first > .inputs-grid.rc-grid, html.studio body #rothView #rothSection.rc-has-first > #rothSpouseBlock,
  html.studio body #rothView #rothSection.rc-has-first > #rothConvTaxSourceField { display:none !important; }
  html.studio body #rothView .rc-more.rc-first { margin-top:0; padding-top:0; border-top:0; }
  html.studio body #rothView .rc-first [hidden] { display:none !important; }
  html.studio body #rothView .rc-first .oi-grid > .field { margin:0 !important; padding:0 !important; justify-content:flex-start !important; }
  html.studio body #rothView .rc-first .oi-grid > .field > label { display:block !important; height:auto !important; min-height:0 !important; margin:0 0 6px !important; padding:0 !important; font-size:12.5px !important; font-weight:600 !important; line-height:1.3 !important; letter-spacing:0 !important; text-transform:none !important; color:var(--s-ink2) !important; }
  html.studio body #rothView .rc-first.rf-two .oi-grid > :nth-child(10) { order:3; } /* Both: whose · how much · tax, then each person's row */
  html.studio body #rothView .rc-first.rf-two .oi-grid > :nth-child(n+3):nth-child(-n+9) { order:4; }
}

/* TIPS ladder 1 as the same card as the others (2026-10-15, js/71): its hints show, a line between ladders */
@layer studio {
  html.studio body #toolView .tips-first .ofl > label .fld-opt, html.studio body #toolView .tips-first label .fld-opt { display:inline !important; margin-left:0 !important; padding:0 !important; border:0 !important; background:none !important; font-size:inherit !important; font-weight:400 !important; color:var(--s-muted) !important; vertical-align:baseline !important; }
  html.studio body #toolView #tipsMoreList > .oi-item:first-child { border-top:1px solid var(--s-line); }
}

/* Check your plan as grouped cards (2026-10-15; user picked B, _audits/2026-10-15-check-plan-options.html, js/19): a card per
   group with its icon and how many parts need you; each row a button that opens its part, with ✓ or ! and a chevron. */
@layer studio {
  html.studio body #toolView .rv-gs { columns:2; column-gap:14px; margin-top:16px; }
  html.studio body #toolView .rv-card { break-inside:avoid; margin:0 0 14px; border:1px solid var(--s-line2); border-radius:14px; overflow:hidden; background:var(--s-card); }
  html.studio body #toolView .rv-ch { display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--s-bg); border-bottom:1px solid var(--s-line); }
  html.studio body #toolView .rv-ch b { flex:1; min-width:0; font-size:15px; color:var(--s-ink); }
  html.studio body #toolView .rv-ch small { flex:none; font-size:13px; font-weight:600; }
  html.studio body #toolView .rv-ch small.ok { color:var(--s-green-ink) !important; } html.studio body #toolView .rv-ch small.no { color:var(--c-amber-35) !important; }
  html.studio body #toolView .rv-chip { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; flex:none; }
  html.studio body #toolView .rv-c-you, html.studio body #toolView .rv-c-two { background:var(--s-blue-l); color:var(--s-blue-d); }
  html.studio body #toolView .rv-c-money { background:var(--s-green-l); color:var(--s-green-ink); }
  html.studio body #toolView .rv-c-extra { background:var(--s-violet-l); color:var(--s-violet); }
  html.studio body #toolView .rv-c-assume { background:var(--s-orange-l); color:var(--s-orange); }
  html.studio body #toolView .rv-card .rv-row { display:flex !important; align-items:center !important; gap:10px !important; width:100% !important; min-height:56px !important; height:auto !important; margin:0 !important; padding:11px 14px !important;
    border:0 !important; border-top:1px solid var(--s-line) !important; border-radius:0 !important; background:var(--s-card) !important; box-shadow:none !important; text-align:left !important; font:inherit !important; color:var(--s-ink) !important; cursor:pointer; }
  html.studio body #toolView .rv-card .rv-ch + .rv-row { border-top:0 !important; }
  html.studio body #toolView .rv-card .rv-row:hover { background:var(--s-bg) !important; }
  html.studio body #toolView .rv-card .rv-row:focus-visible { outline:2px solid var(--s-blue) !important; outline-offset:-2px !important; }
  html.studio body #toolView .rv-row .rv-t { flex:1; min-width:0; display:block; }
  html.studio body #toolView .rv-row .rv-t > b { display:block; font-size:14.5px; font-weight:700; color:var(--s-ink); }
  html.studio body #toolView .rv-row .rv-t > span { display:block; margin-top:1px; font-size:13.5px; line-height:1.45; color:var(--s-ink2); }
  html.studio body #toolView .rv-row .rv-t .rv-miss { color:var(--s-amber-ink, var(--c-amber-35)) !important; font-weight:600; }
  html.studio body #toolView .rv-mark { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; flex:none; font-size:12px; font-weight:800; background:var(--s-green-l); color:var(--s-green-ink); }
  html.studio body #toolView .rv-mark.no { background:var(--s-amber-l); color:var(--s-amber-ink, var(--c-amber-35)); }
  html.studio body #toolView .rv-mark.add { background:var(--s-blue-l); color:var(--s-blue-d); }
  html.studio body #toolView .rv-chev { flex:none; font-size:22px; line-height:1; color:var(--s-faint); }
}
@media (max-width:760px){ @layer studio { html.studio body #toolView .rv-gs { columns:1; } } }

/* Step 4 · Property & debts (2026-10-15, js/73): the Property & Debts panel and Rental income, each with its own question */
@layer studio {
  html.studio body #toolView #propStepBody > .pd-part { display:block !important; margin:0 0 18px; padding:18px 20px; border:1px solid var(--s-line); border-radius:var(--s-r, 16px); background:var(--s-card); box-shadow:var(--s-sh, none); } /* a white card, as it was in Plan options (2026-10-15) */
  html.studio body #toolView #propStepBody > .pd-part.pd-off { display:none !important; }
  html.studio body #toolView #propStepBody #section02oTitle { display:none !important; } /* the step's own title says it */
  html.studio body #toolView #propStepBody #section02nTitle { margin-top:0 !important; }
}
@layer studio { html.studio body #toolView .rv-c-prop { background:var(--s-violet-l); color:var(--s-violet); } html.studio body #toolView .rv-c-extra { background:var(--s-teal-l); color:var(--s-teal); } }
/* Health care & state tax in Spending (2026-10-15, js/73): always shown there, with its own question */
@layer studio {
  html.studio body #toolView .th-spend-box > .th-in-spend { display:block !important; margin:0 0 18px; padding:18px 20px; border:1px solid var(--s-line); border-radius:var(--s-r, 16px); background:var(--s-card); }
  html.studio body #toolView .th-in-spend #section02cTitle { margin-top:0 !important; }
}
@layer studio {
  html.studio body #toolView :is(#propStepBody, .th-spend-box) .rn-section-toggle { display:none !important; } /* a step part, not a panel to collapse */
  html.studio body #toolView #propStepBody .pd-folded { display:none !important; }
}
/* Your dates / their dates (2026-10-15, user: "make fields aligned"): every box has its caption line, empty or not, so the
   name, birth year, retire-at and plan-until boxes start at the same height */
@layer studio {
  html.studio body #toolView :is([data-slot="you-dates"], [data-slot="sp-dates"]) .rd-cap:empty { display:block !important; visibility:hidden; }
  html.studio body #toolView :is([data-slot="you-dates"], [data-slot="sp-dates"]) .rd-cap:empty::before { content:'\00a0'; }
  html.studio body #toolView :is([data-slot="you-dates"], [data-slot="sp-dates"]) { align-items:start !important; }
}
