/* The first projection has one focused task per step; the full editor stays intact. */
#startingPlanDialog{box-sizing:border-box;padding:0;border:1px solid #d6e2d9;border-radius:22px;background:#fbfcf9;color:#29423b;width:min(720px,calc(100vw - 48px));max-width:none;max-height:var(--budget-dialog-height,calc(100dvh - 32px));height:min(820px,var(--budget-dialog-height,calc(100dvh - 32px)));overflow:hidden;box-shadow:0 24px 90px #173c3038;margin:auto}
#startingPlanDialog::backdrop{background:#244b4266;backdrop-filter:blur(5px)}
#startingPlanDialog form{height:100%;min-height:0;display:flex;flex-direction:column;margin:0}
.starting-header{display:flex;justify-content:space-between;align-items:center;padding:22px 32px 12px;flex-shrink:0}
.starting-brand{display:flex;align-items:center;gap:9px;font-size:23px;color:#174d42;font-weight:750}.starting-brand span{font-size:17px;letter-spacing:-.4px}
.starting-close{background:none;border:0;color:#64786e;font-size:28px;width:44px;height:44px;cursor:pointer;border-radius:8px}.starting-close:hover{background:#edf3ed}
.starting-progress{padding:0 32px 20px;border-bottom:1px solid #e1e8df;flex-shrink:0}.starting-progress p{display:flex;justify-content:space-between;margin:0 0 14px;font-size:12px;color:#63776d}.starting-progress p span{font-weight:650;color:#174d42}.starting-progress ol{display:flex;list-style:none;gap:10px;padding:0;margin:0}.starting-progress li{flex:1;border-top:3px solid #dfe6dc;padding-top:10px;font-size:12px;color:#5f7166;display:flex;align-items:center;gap:6px}.starting-progress li span{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#edf1e9;font-size:11px}.starting-progress li[aria-current]{color:#174d42;border-color:#174d42;font-weight:700}.starting-progress li[aria-current] span{background:#174d42;color:white}.starting-progress li.done{border-color:#8cba99;color:#3c7257}
#startingPlanDialog .starting-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:30px 40px 24px;scroll-padding:18px}
.starting-heading{margin-bottom:26px}.starting-heading h1{font-size:32px;line-height:1.16;letter-spacing:-1px;font-weight:700;margin:0 0 12px;color:#174d42}.starting-heading h1:focus{outline:none}.starting-heading p{font-size:15px;line-height:1.55;color:#64776d;margin:0}
.starting-question{padding:0;border:0;margin:0 0 28px}.starting-question legend{font-size:14px;font-weight:650;margin-bottom:12px}.starting-choices{display:flex;flex-wrap:wrap;gap:10px}.starting-choice{display:flex;align-items:center;gap:10px;cursor:pointer;padding:14px 18px;border:1px solid #d6e0d9;border-radius:12px;background:white;min-height:48px;box-sizing:border-box;font-size:15px;line-height:1.3}.starting-choice:has(input:checked){border-color:#5b9476;background:#edf5ed;box-shadow:inset 0 0 0 1px #5b9476}.starting-choice input,.starting-remember input{accent-color:#174d42;width:19px;height:19px;flex:0 0 19px;margin:0}.starting-person{margin-bottom:24px}.starting-person h3{font-size:16px;margin:24px 0 12px}.starting-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:16px 0}.starting-fields:empty{display:none}.starting-fields>.starting-field:only-child{grid-column:1/-1}
.starting-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;color:#304d42}.starting-field>span{font-weight:600}.starting-field small{font-size:12px;line-height:1.5;color:#5f7166;font-weight:400}.starting-field-wrap{position:relative;display:flex;align-items:center}.starting-field-wrap>span{position:absolute;left:16px;color:#74857a;pointer-events:none}.starting-field input,.starting-field select{box-sizing:border-box;background:#fff;border:1px solid #cad9d0;color:#29453a;border-radius:11px;font:inherit;font-size:18px;min-height:56px;padding:12px 16px;width:100%;min-width:0}.starting-field select{font-size:18px}.starting-field-wrap:has(>span) input{padding-left:36px;text-align:right}.starting-field input:focus,.starting-field select:focus{outline:3px solid #397b5f;outline-offset:2px;border-color:#4b8b68}.starting-field input[aria-invalid=true]{border-color:#ad5142}.starting-benefits{margin-top:20px}.starting-benefits>p{font-size:13px;margin:0 0 8px;color:#677a70}.starting-benefits .starting-choice{font-size:13px;min-height:44px;padding:10px 12px}.starting-account{padding:16px 0;border-bottom:1px solid #e0e7de}.starting-account .starting-choice{border:0;background:none;box-shadow:none;padding:0;min-height:32px;font-weight:650}.starting-account>p{font-size:12px;color:#6b7f73;margin:4px 0 0 29px}.starting-context{font-size:13px;line-height:1.6;color:#61766a;background:#eff4ec;padding:15px 17px;border-radius:12px;margin:20px 0}.starting-assumptions{margin:22px 0;font-size:13px;color:#61766a}.starting-assumptions summary{cursor:pointer;min-height:36px}.starting-assumptions p{line-height:1.6}.starting-remember{display:flex;gap:12px;align-items:flex-start;font-size:13px;margin-top:26px}.starting-remember small{display:block;font-size:12px;line-height:1.5;color:#5f7166;margin-top:4px}.starting-save{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:26px 0 0;font-size:12px;color:#5f7166}.starting-save button{font-size:12px;min-height:36px}#startingPlanDialog .starting-footer{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:20px;padding:18px 32px;border-top:1px solid #dce5db;background:#fbfcf9;flex-shrink:0}.starting-footer .btn{min-height:48px;padding:13px 24px;min-width:190px;font-size:15px}.starting-footer .textbtn{font-size:13px;min-height:44px}

#getStartedDialog .welcome-primary{min-height:0}#getStartedDialog #guideQuestions,#getStartedDialog .welcome-remember{display:none}#getStartedDialog .welcome-heading{margin-bottom:24px}#getStartedDialog .welcome-setup .welcome-heading h2{font-size:38px;line-height:1.15;max-width:12ch}#getStartedDialog .welcome-setup .welcome-heading .muted{font-size:16px;line-height:1.6;max-width:36ch}#getStartedDialog .welcome-landing{align-items:center}.welcome-start-outline{display:grid;gap:16px;margin:26px 0 30px;padding:0;list-style:none}.welcome-start-outline li{display:flex;align-items:center;gap:12px;font-size:14px;color:#476451}.welcome-start-outline span{display:grid;place-items:center;background:#e6f0e2;border-radius:50%;width:28px;height:28px;color:#366449;font-size:12px;font-weight:700}.welcome-start-note{font-size:12px;color:#5f7166;margin:10px 0 0}
@media(max-width:700px){#startingPlanDialog{position:fixed;inset:auto;top:calc(var(--budget-dialog-top,8px) - 8px);left:var(--budget-dialog-left,50%);transform:translateX(-50%);margin:0;width:100vw;max-width:100vw;height:calc(var(--budget-dialog-height,calc(100dvh - 16px)) + 16px);max-height:calc(var(--budget-dialog-height,calc(100dvh - 16px)) + 16px);border:0;border-radius:0;box-shadow:none}.starting-header{padding:10px 20px 5px}.starting-brand span{font-size:16px}.starting-progress{padding:0 22px 16px}.starting-progress p{margin-bottom:10px}.starting-progress li{font-size:11px;gap:4px;padding-top:8px}.starting-progress ol{gap:7px}#startingPlanDialog .starting-body{padding:25px 24px 18px}.starting-heading h1{font-size:29px;letter-spacing:-.8px}.starting-heading p{font-size:14px}.starting-heading{margin-bottom:24px}.starting-fields{gap:12px}.starting-field{font-size:13px}.starting-field input,.starting-field select{font-size:16px}.starting-field input{min-height:54px}.starting-choices>.starting-choice{flex:1;justify-content:center;padding:14px 12px;font-size:14px}.starting-benefits .starting-choice{font-size:13px;padding:10px 8px}.starting-footer{padding:12px 20px max(12px,env(safe-area-inset-bottom));gap:12px}.starting-footer .btn{min-width:0;flex:1;font-size:14px;padding:12px}.starting-footer .textbtn{font-size:12px}.starting-save span{max-width:none;text-align:right}.starting-account .starting-fields{grid-template-columns:1fr}}
@media(max-width:999px){#getStartedDialog[data-welcome-view=intro] .welcome-primary>:not(.welcome-brand){display:none}#getStartedDialog[data-welcome-view=setup] #welcomeExample{display:block}#getStartedDialog .welcome-setup .welcome-heading h2{font-size:30px}}

@media(prefers-reduced-motion:reduce){#startingPlanDialog *{scroll-behavior:auto}}

@media(max-width:999px){#getStartedDialog[data-welcome-view=intro] #getStartedGuardDock:has(.transition-guard:not([hidden])){display:block}#getStartedDialog[data-welcome-view=intro]:has(.transition-guard:not([hidden])) #welcomeExample{display:none}}

/* Desktop introduction explains the decisions the tool can help users explore. */
.welcome-benefits,.welcome-start-reassurance{display:none}
@media(min-width:1000px){
 #getStartedDialog .welcome-setup .welcome-heading h2{max-width:19ch}
 #getStartedDialog .welcome-setup .welcome-heading .muted{max-width:52ch}
 #getStartedDialog .welcome-benefits{display:grid;gap:22px;list-style:none;padding:0;margin:28px 0 30px}
 .welcome-benefits li{position:relative;padding-left:20px;color:#476451}
 .welcome-benefits li::before{content:"";position:absolute;left:0;top:8px;width:6px;height:6px;border-radius:50%;background:#719b7c}
 .welcome-benefits strong{display:block;font-size:16px;line-height:1.4;font-weight:650;color:#294d3f}
 .welcome-benefits p{margin:4px 0 0;font-size:14px;line-height:1.55;max-width:52ch}
 #getStartedDialog .welcome-start-reassurance{display:block;font-size:13px;line-height:1.55;color:#65796c;margin:0 0 14px;max-width:56ch}
}

#startingPlanDialog .starting-benefits{border-top:1px solid #dce5db;border-bottom:1px solid #dce5db;padding:0}
#startingPlanDialog .starting-benefits>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:54px;font-size:14px;font-weight:600;color:#345d4d}
#startingPlanDialog .starting-benefits>summary::-webkit-details-marker{display:none}
#startingPlanDialog .starting-benefits>summary small{font-size:12px;font-weight:400;color:#5f7166;margin-left:6px}
#startingPlanDialog .starting-benefits[open]{padding-bottom:18px}
#startingPlanDialog .starting-benefits>p{line-height:1.55;margin:0 0 14px;font-size:13px}
.starting-disclosure-icon{font-size:20px;font-weight:400}.starting-benefits[open] .starting-disclosure-icon{font-size:0}.starting-benefits[open] .starting-disclosure-icon::after{content:"−";font-size:20px}
.starting-benefit-note>span{display:block}.starting-benefit-note .textbtn{font:inherit;color:#315e4c;text-decoration:underline;text-underline-offset:3px;padding:3px 0}

#startingPlanDialog .starting-field input{scroll-margin-top:48px}

/* Keep reassurance beside Save draft at standard phone widths; wrap the row only when needed for larger text. */
.starting-save{gap:8px;flex-wrap:wrap}
.starting-save button{flex-shrink:0}
.starting-save span{margin-left:auto;text-align:right}
.starting-field-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px}
.starting-field-head label{font-weight:600;line-height:1.4}
.starting-field [data-starting-equivalent]:empty{display:none}

/* Comfortable targets without adding another control or row. */
.starting-account .starting-choice,.starting-assumptions summary,.starting-save button{min-height:44px}

/* Keep draft actions at the same height while each step scrolls independently. */
#startingPlanDialog .starting-save{flex-shrink:0;margin:0;padding:0 40px 12px}
@media(max-width:700px){#startingPlanDialog .starting-save{padding:0 24px 8px}}


/* Short entries get proportionate fields. */
#startingPlanDialog .starting-field-wrap{width:100%;max-width:280px}
#startingPlanDialog [data-starting-step="0"] .starting-fields{max-width:420px;gap:18px}
#startingPlanDialog [data-starting-step="0"] .starting-field-wrap{max-width:100%}
#startingPlanDialog .starting-income-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;margin:16px 0 24px}
#startingPlanDialog .starting-income-row>.starting-fields{display:contents}
#startingPlanDialog .starting-income-row>.starting-fields>.starting-field{grid-column:auto}
#startingPlanDialog .starting-income-row>.starting-field>span{display:flex;align-items:center;min-height:36px}
#startingPlanDialog .starting-income-row select{max-width:280px}
#startingPlanDialog [data-starting-step="2"] .starting-field small{max-width:58ch}
@media(max-width:540px){
 #startingPlanDialog .starting-income-row{grid-template-columns:1fr;gap:18px}
}
#startingPlanDialog [data-starting-step="0"] .starting-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px;gap:18px}
#startingPlanDialog [data-starting-step="0"] .starting-choice{padding:12px 14px}
@media(max-width:359px){
 #startingPlanDialog [data-starting-step="0"] .starting-choices{grid-template-columns:1fr}
 body.starting-plan-page #startingPlanDialog [data-starting-step="3"] .starting-heading{margin-bottom:12px}
 #startingPlanDialog [data-starting-step="3"] .starting-account-options{margin-bottom:12px}
 #startingPlanDialog .starting-owner-accounts tbody th{padding:6px 0}
 #startingPlanDialog [data-starting-step="3"] .starting-account-choices .starting-choice{padding-block:6px}
}
#startingPlanDialog .starting-field-caption{display:flex;align-items:center;gap:4px;min-width:0}
#startingPlanDialog .field-info{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-height:32px;margin:0;padding:0;border:0;background:transparent;color:#61766a;font:inherit;font-size:14px;cursor:help}
#startingPlanDialog .starting-chrome{flex-shrink:0}
#startingPlanDialog .starting-title-row{display:grid;grid-template-columns:minmax(0,max-content) minmax(5.5rem,1fr);align-items:center;gap:8px}
#startingPlanDialog .starting-title-row h1{margin:0}
#startingPlanDialog .starting-account-help-link{justify-self:end;min-height:44px;padding:0;font-size:13px;line-height:1.4;text-align:right;text-decoration:underline;text-underline-offset:3px;color:#426453}
#startingPlanDialog [data-starting-step="3"] .starting-heading{margin-bottom:12px}
#startingPlanDialog [data-starting-step="3"] .starting-heading p{margin-top:2px}
#startingPlanDialog .starting-account-guide{padding:12px 14px;margin:0 0 14px;background:#eff4ee;border:1px solid #d5e0d7;border-radius:10px;font-size:14px;line-height:1.5}
#startingPlanDialog .starting-account-guide dl,#startingPlanDialog .starting-account-guide dd{margin:0}
#startingPlanDialog .starting-account-guide dl>div+div,#startingPlanDialog .starting-account-guide p{margin:8px 0 0}
#startingPlanDialog .starting-account-guide dt{font-weight:650}
#startingPlanDialog .starting-account-options{border:0;padding:0;margin:0 0 12px;min-width:0}
#startingPlanDialog .starting-account-options legend{font-size:14px;font-weight:650;color:#345d4d;margin-bottom:8px}
#startingPlanDialog .starting-account-choices{display:grid;gap:4px}
#startingPlanDialog .starting-account-choices .starting-choice{min-height:44px;padding:6px 12px;gap:10px;line-height:1.35;font-weight:600}
#startingPlanDialog .starting-account-example{display:inline-block;font-size:13px;line-height:1.35;font-weight:400;color:#536b60}
#startingPlanDialog .starting-owner-accounts{width:100%;table-layout:fixed;border-collapse:collapse;color:#304d42;margin:0}
#startingPlanDialog .starting-owner-accounts th{color:#304d42;background:transparent;position:static;text-align:left;font-size:14px;line-height:1.35;font-weight:600;padding:8px 0}
#startingPlanDialog .starting-owner-accounts thead th{color:#345d4d;padding:0 0 6px}
#startingPlanDialog .starting-owner-accounts thead th:not(:first-child){text-align:center;width:54px}
#startingPlanDialog .starting-owner-accounts tbody tr{border-top:1px solid #d5e0d7}
#startingPlanDialog .starting-owner-accounts td{padding:0}
#startingPlanDialog .starting-owner-choice{display:grid;place-items:center;width:100%;min-height:44px;cursor:pointer}
#startingPlanDialog .starting-owner-choice input{accent-color:#174d42;width:19px;height:19px;margin:0;cursor:pointer}
#startingPlanDialog #startingBalances{container-type:inline-size;margin-top:16px;padding-top:12px;border-top:1px solid #d5e0d7}
#startingPlanDialog #startingBalances h2{margin:0 0 10px;font-size:18px;line-height:1.3;color:#244c40}
#startingPlanDialog .starting-empty-accounts{margin:0;color:#536b60;font-size:14px;line-height:1.5}
#startingPlanDialog .starting-savings-group+.starting-savings-group{margin-top:18px}
#startingPlanDialog .starting-savings-group h3{margin:0 0 3px;padding:7px 10px;border-radius:7px;background:#edf4ee;color:#285446;font-size:15px;line-height:1.35;font-weight:650}
#startingPlanDialog .starting-balance-group{padding:8px 0}
#startingPlanDialog .starting-balance-group+.starting-balance-group,#startingPlanDialog .starting-balance-group.starting-employer{border-top:1px solid #d5e0d7}
#startingPlanDialog .starting-account-details{margin-top:7px}
#startingPlanDialog .starting-account-details .starting-field-head label{font-weight:500}
#startingPlanDialog .starting-workplace-cap:empty{display:none!important}
#startingPlanDialog .starting-workplace-cap{margin:3px 0 8px;padding:8px 10px;background:#edf4ee;border-radius:7px;color:#3b5d50;font-size:13px;line-height:1.45}
#startingPlanDialog .starting-savings-group:has(.starting-workplace-cap:not(:empty)) .starting-account-details [data-starting-equivalent]{display:none}
#startingPlanDialog #startingBalances .starting-field{
 --starting-amount-width:clamp(min(9rem,55cqi),44cqi,15rem);
 display:grid;grid-template-columns:minmax(0,1fr) var(--starting-amount-width);align-items:center;gap:4px 10px;
}
#startingPlanDialog #startingBalances .starting-field-head{min-height:24px}
#startingPlanDialog #startingBalances .starting-field-wrap{grid-column:2}
#startingPlanDialog #startingBalances .starting-field-wrap>span{left:10px}
#startingPlanDialog #startingBalances .starting-field-wrap input{min-height:48px;padding:8px 10px 8px 24px;font-size:1rem}
#startingPlanDialog #startingBalances .starting-field>:is(small,.dialog-field-error){grid-column:1/-1}
#startingPlanDialog #startingBalances .starting-field>[data-starting-equivalent]{text-align:right}
#startingPlanDialog .starting-contribution-controls{
 --starting-contribution-width:clamp(6rem,calc(100cqi - 14rem),var(--starting-amount-width));
 grid-column:2;display:grid;grid-template-columns:3.5rem var(--starting-contribution-width);align-items:stretch;min-width:0;
 border:1px solid #cad9d0;border-radius:11px;background:white;
}
#startingPlanDialog .starting-unit{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;border-inline-end:1px solid #d5e0d7;background:#f1f6f1;border-radius:10px 0 0 10px;color:#345d4d;font-size:.8125rem;white-space:nowrap}
#startingPlanDialog .starting-unit::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg)}
#startingPlanDialog .starting-unit select{position:absolute;inset:0;width:100%;height:100%;min-height:0;opacity:0;cursor:pointer;font-size:1rem}
#startingPlanDialog .starting-unit:has(select:focus-visible){outline:2px solid #397b5f;outline-offset:-3px}
#startingPlanDialog #startingBalances .starting-contribution-controls input{min-height:46px;padding-inline:8px 10px;border:0;border-radius:0 10px 10px 0;background:transparent;text-align:right}
#startingPlanDialog #startingBalances .starting-contribution-controls input:focus{outline-offset:-3px}
#startingPlanDialog .starting-contribution-controls:has(input[aria-invalid=true],select[aria-invalid=true]){border-color:#ad5142}
@container (max-width:18.99rem){
 #startingPlanDialog .starting-account-main .starting-field-head{grid-column:1/-1}
}
@container (max-width:19.49rem){
 #startingPlanDialog #startingBalances .starting-field:has(.starting-contribution-controls) .starting-field-head{grid-column:1/-1}
 #startingPlanDialog .starting-contribution-controls{--starting-contribution-width:var(--starting-amount-width);grid-column:1/-1;justify-self:end}
}
@container (min-width:19.5rem){
 #startingPlanDialog #startingBalances .starting-field:has(.starting-contribution-controls){grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
}
@media(min-width:601px){
 #startingPlanDialog .starting-account-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
#startingPlanDialog .starting-save{padding:0 24px;margin:0;justify-content:flex-end}
body.draft-autosave-on #startingPlanDialog .starting-save{display:none}

/* The phone shell stays anchored while only its fields scroll. Keep chrome dimensions
   identical with and without the keyboard, including small visual viewports. */
html:has(body.starting-plan-page){height:100%;overflow:hidden;overscroll-behavior:none}
body.starting-plan-page{display:block;position:relative;height:100%;min-height:0;overflow:hidden;margin:0;padding:0;background:#fbfcf9}
body.starting-plan-page #startingPlanDialog{position:absolute;inset:auto;top:var(--starting-viewport-top,0px);left:0;transform:none;margin:0;padding:0;width:100%;max-width:none;height:var(--starting-viewport-height,100dvh);max-height:none;overflow:hidden;border:0;border-radius:0;box-shadow:none}
body.starting-plan-page #startingPlanDialog form{height:100%;min-height:0}
body.starting-plan-page #startingPlanDialog .starting-chrome{position:relative;flex:0 0 auto;z-index:30;background:#fbfcf9}
body.starting-plan-page #startingPlanDialog .starting-header{padding:6px 18px 2px}
body.starting-plan-page #startingPlanDialog .starting-brand span{font-size:15px}
body.starting-plan-page #startingPlanDialog .starting-progress{padding:0 20px 10px}
body.starting-plan-page #startingPlanDialog .starting-progress p{display:none}
body.starting-plan-page #startingPlanDialog .starting-progress ol{display:flex}
body.starting-plan-page #startingPlanDialog .starting-progress li{padding-top:6px}
body.starting-plan-page #startingPlanDialog .starting-body{flex:1 1 auto;min-height:0;height:auto;max-height:none;overflow-y:auto;scrollbar-gutter:stable;overscroll-behavior:contain;overflow-anchor:none;padding:18px 24px;scroll-padding:12px}
body.starting-plan-page #startingPlanDialog .starting-footer{position:relative;flex:0 0 auto;z-index:20;padding:10px 20px max(10px,env(safe-area-inset-bottom));background:#fbfcf9}
body.starting-plan-page #startingPlanDialog .starting-field{scroll-margin:12px 0}

/* Mobile entry keeps the same content and spacing. Only the field scroller
   moves; guidance and account choices remain available above and below it. */
@media(max-width:700px){
 #startingPlanDialog [data-starting-step="1"] .starting-field-wrap,
 #startingPlanDialog [data-starting-step="2"] .starting-field-wrap,
 #startingPlanDialog .starting-income-row select{width:100%;max-width:none}
 #startingPlanDialog .starting-income-row{grid-template-columns:1fr}
 body.starting-plan-page #startingPlanDialog .starting-heading{margin-bottom:20px}
 body.starting-plan-page #startingPlanDialog .starting-heading h1{font-size:26px;line-height:1.2;letter-spacing:-.65px}
 body.starting-plan-page #startingPlanDialog .starting-heading h1:only-child{margin-bottom:0}
 /* Keep the first entry rows comfortably above the keyboard from the start.
    These rules depend on screen width only, never focus or keyboard height. */
 body.starting-plan-page #startingPlanDialog :is([data-starting-step="0"],[data-starting-step="1"]) .starting-heading{margin-bottom:16px}
 body.starting-plan-page #startingPlanDialog [data-starting-step="0"] .starting-question{margin-bottom:16px}
 body.starting-plan-page #startingPlanDialog [data-starting-step="0"] .starting-question legend{margin-bottom:8px}
 body.starting-plan-page #startingPlanDialog :is([data-starting-step="0"],[data-starting-step="1"]) .starting-field-head{min-height:24px}
 body.starting-plan-page #startingPlanDialog .starting-income-row>.starting-field>span{min-height:24px}
 body.starting-plan-page #startingPlanDialog .starting-income-row{gap:12px;margin-top:0}
 #startingPlanDialog [data-starting-step="2"] .starting-input-hint{font-size:13px;line-height:1.45}
}
@media(min-width:701px){#startingPlanDialog .starting-balance-number{display:block;font-size:12px;line-height:1.4;color:#61766a;margin-top:3px}}

/* Completed steps keep their existing appearance and gain an accessible target. */
#startingPlanDialog .starting-step-link{position:relative;display:flex;align-items:center;gap:inherit;width:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:pointer;appearance:none}
#startingPlanDialog .starting-step-link::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
#startingPlanDialog .starting-step-link:focus-visible{outline:2px solid #397b5f;outline-offset:4px;border-radius:3px}
#startingPlanDialog .starting-step-link:disabled{cursor:default}
/* Ignore duplicate taps during keyboard dismissal without flashing the controls. */
#startingPlanDialog[aria-busy=true] :is([data-starting-next],[data-starting-back],[data-starting-step-target]):disabled{opacity:1;cursor:default}

/* A document-anchored visual copy keeps context through keyboard dismissal. */
.starting-transition-chrome{position:absolute;inset:0 0 auto;box-sizing:border-box;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:visible;background:#fbfcf9;color:#29423b;pointer-events:none;z-index:2147483645}
body.starting-plan-page #startingPlanDialog[data-starting-transition] .starting-chrome{visibility:hidden}
body.starting-plan-page #startingPlanDialog[data-starting-transition="dismiss"] form{visibility:hidden;pointer-events:none}

/* Keep reassurance below the age inputs; focus never changes this layout. */
#startingPlanDialog .starting-entry-reassurance{font-size:13px;line-height:1.5;color:#61766a;margin:0 0 24px}

/* Preserve household/work choices before their values with less unused space.
   These dimensions are permanent, never tied to focus or keyboard state. */
@media(max-width:700px){
 body.starting-plan-page #startingPlanDialog [data-starting-step="0"] .starting-question{margin-bottom:12px}
 body.starting-plan-page #startingPlanDialog [data-starting-step="0"] .starting-question legend{margin-bottom:4px}
 body.starting-plan-page #startingPlanDialog [data-starting-step="0"] .starting-choice{min-height:44px;padding:8px 12px}
 body.starting-plan-page #startingPlanDialog .starting-income-row{gap:8px}
 body.starting-plan-page #startingPlanDialog .starting-income-row select{min-height:48px;padding-top:10px;padding-bottom:10px}
}

/* Each step shares the same footer position. Long content scrolls within the panel. */
#startingPlanDialog{--starting-panel-gap:clamp(16px,5vh,48px);position:fixed;inset:var(--starting-panel-gap) 0 auto;margin:0 auto;width:min(660px,calc(100vw - 48px));height:min(700px,calc(100dvh - 2 * var(--starting-panel-gap)));max-height:calc(100dvh - 2 * var(--starting-panel-gap))}
#startingPlanDialog form{height:100%;max-height:100%;min-height:0}
#startingPlanDialog .starting-header{padding:10px 28px 4px}
#startingPlanDialog .starting-brand{gap:8px;font-weight:600;color:#61766a}
#startingPlanDialog .starting-brand>span:last-child{font-size:14px;letter-spacing:0}
#startingPlanDialog .starting-brand .brandmark{width:26px;height:26px;min-width:26px;border-radius:7px;display:grid;place-items:center}
#startingPlanDialog .starting-brand .brandmark svg{width:20px;height:20px}
#startingPlanDialog .starting-progress{padding:0 28px 16px}
#startingPlanDialog .starting-progress p{display:none}
#startingPlanDialog .starting-progress ol{display:flex}
#startingPlanDialog .starting-body{flex:1 1 0;padding:24px 28px 20px;min-height:0;overflow-y:auto}
#startingPlanDialog .starting-heading{margin-bottom:20px}
#startingPlanDialog .starting-heading h1{font-size:28px;line-height:1.2;letter-spacing:-.6px}
#startingPlanDialog .starting-heading h1:only-child{margin-bottom:0}
#startingPlanDialog .starting-heading p{font-size:14px;line-height:1.5;margin-top:10px}
#startingPlanDialog .starting-field-wrap,#startingPlanDialog .starting-income-row select{max-width:none}
#startingPlanDialog [data-starting-step="0"] :is(.starting-fields,.starting-choices){max-width:none}
#startingPlanDialog .starting-body>:last-child{margin-bottom:0}
#startingPlanDialog .starting-person:last-child{margin-bottom:0}
#startingPlanDialog .starting-footer{padding:14px 28px;gap:16px}
#startingPlanDialog .starting-save{padding:0 28px 8px}
#startingPlanDialog .starting-assumptions{margin:20px 0 0;padding-top:12px;border-top:1px solid #dce5db}
#startingPlanDialog .starting-assumptions summary{display:flex;align-items:center;min-height:44px;list-style:none;font-weight:600;color:#345d4d;gap:12px}
#startingPlanDialog .starting-assumptions summary::-webkit-details-marker{display:none}
#startingPlanDialog .starting-assumptions summary::after{content:"+";margin-left:auto;font-size:20px;font-weight:400}
#startingPlanDialog .starting-assumptions[open] summary::after{content:"−"}
#startingPlanDialog .starting-assumptions p{margin:8px 0 0}
body.starting-plan-page #startingPlanDialog .starting-body{flex:1 1 0;padding:18px 24px 20px}
body.starting-plan-page #startingPlanDialog .starting-header{padding:6px 18px 2px}
body.starting-plan-page #startingPlanDialog .starting-brand>span:last-child{font-size:14px}
body.starting-plan-page #startingPlanDialog .starting-footer{padding:12px 24px max(12px,env(safe-area-inset-bottom))}
@media(max-width:700px){
 #startingPlanDialog .starting-heading h1{font-size:26px}
 #startingPlanDialog .starting-footer{display:grid;grid-template-columns:minmax(7rem,1fr) minmax(0,2fr);gap:12px}
 #startingPlanDialog .starting-footer .textbtn{justify-self:start}
 #startingPlanDialog .starting-footer .btn{width:100%;min-width:0}
 #startingPlanDialog .starting-progress{padding:0 20px 10px}
 #startingPlanDialog .starting-save{padding:0 24px 8px}
}

/* Give wider desktop viewports a more spacious panel. */
@media(min-width:1600px){
 #startingPlanDialog{width:min(840px,calc(100vw - 64px))}
 #startingPlanDialog .starting-header{padding:14px 36px 6px}
 #startingPlanDialog .starting-brand>span:last-child{font-size:16px}
 #startingPlanDialog .starting-progress{padding:0 36px 20px}
 #startingPlanDialog .starting-progress li{font-size:14px}
 #startingPlanDialog .starting-body{padding:28px 36px 24px}
 #startingPlanDialog .starting-heading h1{font-size:34px}
 #startingPlanDialog .starting-heading p{font-size:16px}
 #startingPlanDialog :is(.starting-field,.starting-question legend,.starting-choice,.starting-account-options legend,.starting-account-title h3,.starting-field-head label,.starting-benefits>summary){font-size:16px}
 #startingPlanDialog .starting-field input,#startingPlanDialog .starting-income-row select{font-size:20px;min-height:60px}
 #startingPlanDialog :is(.benefit-note,.guide-more summary,.ss-estimate-options>.textbtn){font-size:14px;line-height:1.55}
 #startingPlanDialog :is(.starting-field small,.starting-account-label p,.starting-account>p,.starting-account-balance label,.starting-employer>small,.starting-benefits>p,.starting-benefits>summary small,.starting-assumptions,.starting-context,.starting-entry-reassurance){font-size:14px;line-height:1.55}
 #startingPlanDialog .starting-footer{padding:18px 36px}
 #startingPlanDialog .starting-footer .btn{font-size:17px;min-height:52px;min-width:210px}
 #startingPlanDialog .starting-footer .textbtn{font-size:15px}
}

#startingPlanDialog .starting-benefits-hint{display:block;font-size:14px;line-height:1.5;font-weight:400;color:#61766a;margin:3px 0 10px}
#startingPlanDialog .starting-benefits>summary{padding-top:10px}
