/* A shared, readable design for decisions and the financial workspace. */
html { scroll-behavior: auto; }
[hidden] { display: none !important; }
.home-choices { padding: 48px var(--home-gutter, 24px) 56px; background: #fffef9; border-bottom: 1px solid #d6ded2; }
.home-choices .eyebrow { margin-bottom: 18px; }
.home-choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.home-choice-grid a { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 23px; background: #f1f5ec; border: 1px solid #d6dfcf; border-radius: 12px; text-decoration: none; transition: background .15s, transform .15s; }
.home-choice-grid a:hover { background: #e7eedf; transform: translateY(-2px); }
.home-choice-grid a:nth-child(2) { background: #f8f0df; border-color: #e7d8b8; }
.home-choice-grid a:nth-child(3) { background: #eaf1f4; border-color: #cedde2; }
.home-choice-grid a:nth-child(4) { background: #f3ebe6; border-color: #e5d6cb; }
.home-choice-grid .choice-icon { color: #295946; font: 27px Georgia,serif; }
.home-choice-grid h3 { margin: 0; font: 23px/1.2 Georgia,serif; color: #183c30; }
.home-choice-grid p { margin: 0; color: #4b6257; font-size: 14px; line-height: 1.6; }
.home-choice-grid small { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; }
.home-secondary-action { display: inline-flex; padding: 14px 0; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }
.home-demo-invite { margin: 30px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 25px 28px; border-radius: 12px; background: #163d30; color: #f4f7ef; }
.home-demo-invite h3 { margin: 0 0 8px; color: inherit; font: 26px Georgia,serif; }
.home-demo-invite p { color: #d0dfd2; margin: 0; line-height: 1.6; }
.home-demo-invite .button { background: #f3edda; color: #183c30; flex-shrink: 0; border-color: #f3edda; }
.public-tools-shell { max-width: 1060px; margin: auto; padding: 50px 28px 70px; }
.tools-page-heading { max-width: 730px; margin-bottom: 35px; }
.tools-page-heading h1 { font: clamp(38px,5vw,64px)/1.06 Georgia,serif; letter-spacing: -2px; margin: 18px 0; }
.tools-page-heading > p:last-child { font-size: 18px; line-height: 1.7; color: #52695b; }
.tools-intro-row { display: grid; grid-template-columns: minmax(180px,300px) 1fr; gap: 30px; align-items: end; margin: 25px 0; }
.tools-intro-row > label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tools-intro-row p { color: #53685b; line-height: 1.65; font-size: 14px; }
.decision-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.decision-shortcuts a { padding: 12px 16px; background: #eaf0e6; border: 1px solid #cad7c6; border-radius: 28px; text-decoration: none; font-size: 14px; }
.everyday-tools { display: grid; gap: 26px; }
.everyday-tools .decision-panel, .tools-page .decision-panel { padding: 32px; border: 1px solid #cfdacd; border-radius: 14px; background: #fff; scroll-margin-top: 25px; }
.decision-heading p:last-child { max-width: 720px; line-height: 1.7; color: #52685b; }
.everyday-tools .decision-heading h2 { font: 30px/1.2 Georgia,serif; letter-spacing: -.5px; }
.everyday-tools .decision-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.everyday-tools label { display: block; font-size: 14px; line-height: 1.6; }
.everyday-tools input, .everyday-tools select { display: block; width: 100%; min-height: 47px; margin-top: 7px; font-size: 17px; background: #fbfcf8; border-color: #a2b59e; }
.everyday-tools label small { display: block; margin-top: 7px; color: #53685b; line-height: 1.5; }
.decision-result strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.option-bars { margin: 22px 0; display: grid; gap: 10px; }
.option-bars > span { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.option-bars i { display: block; max-width: calc(100% - 25px); height: 18px; background: #52795e; border-radius: 0 6px 6px 0; }
.option-bars > span:last-child i { background: #ac793c; }
.tools-page #earningsTime { margin-top: 26px; }
.tools-next { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-top: 44px; padding: 26px 0; border-top: 1px solid #ccd7c8; }
.tools-next .row-actions { flex-shrink: 0; flex-direction: column; align-items: stretch; }
.tools-currency-note { color: #52685b; font-size: 14px; }
.app-body { background: #f5f6f0; color: #1a352c; font-family: Arial,Helvetica,sans-serif; }
.app-body .workspace { max-width: 1480px; min-width: 0; padding-top: 30px; }
.app-body .page-head h1 { font: clamp(30px,3.2vw,44px)/1.15 Georgia,serif; letter-spacing: -1px; margin: 10px 0; }
.app-body .page-head p:not(.eyebrow) { max-width: 760px; font-size: 15px; line-height: 1.65; }
.app-body .page-head { margin-bottom: 26px; gap: 22px; }
.app-body .panel { border-color: #d5dfd1; border-radius: 12px; }
.app-body .panel h2 { font: 25px/1.25 Georgia,serif; letter-spacing: -.4px; }
.app-body .eyebrow { font-size: 10px; letter-spacing: 1.15px; line-height: 1.5; }
.app-body .sidebar { background: #163d30; }
.app-body .sidebar nav button { min-height: 44px; font-size: 13px; line-height: 1.35; border-radius: 7px; }
.app-body .sidebar nav button.active { color: #fff; background: #37624a; }
.app-body .sidebar nav > p { color: #b2c8b9; font-size: 10px; margin-top: 20px; }
.app-body .sidebar nav button i { color: #bbd1b8; }
.app-body .metric small, .reality-metrics small { color: #51675a; font-size: 10px; letter-spacing: .55px; line-height: 1.5; }
.app-body .metric strong { font-size: clamp(22px,2.2vw,34px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.app-body .metric span { font-size: 12px; line-height: 1.5; }
.app-body .metric.accent { background: #e6efde; border-color: #bdd0ac; }
.app-body .metric.accent strong { color: #183c30; }
.app-body .metric.accent span { color: #4b6257; }
.app-body .overview-decisions { gap: 13px; margin: 25px 0; }
.app-body .overview-decisions button { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; text-align: left; min-height: 120px; border-radius: 11px; padding: 20px; background: #fffef9; border-color: #d5dfd1; }
.app-body .overview-decisions strong { font: 22px/1.25 Georgia,serif; margin-bottom: 10px; }
.app-body .overview-decisions span { font-size: 13px; line-height: 1.6; }
.app-body .result-hero .eyebrow { color: #c4d9c8; }
.app-body .category-list > div { padding-top: 15px; padding-bottom: 15px; align-items: flex-start; }
.app-body .category-list > div > span { font-size: 14px; line-height: 1.5; }
.app-body .category-list small { display: block; margin-top: 5px; color: #53695b; font-size: 12px; line-height: 1.5; }
.reality-panel { margin-bottom: 24px; }
.reality-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; padding: 18px 0; }
.reality-metrics > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.reality-metrics strong { font-size: 26px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.allocation-panel { margin: 24px 0; }
.allocation-summary { display: grid; gap: 18px; margin: 25px 0; }
.allocation-summary-row { display: grid; grid-template-columns: minmax(0,1fr) auto 60px; gap: 9px 15px; align-items: baseline; }
.allocation-summary-row > span { font-size: 14px; }
.allocation-summary-row small { text-align: right; color: #53685b; }
.allocation-dot { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; }
.allocation-summary-track { grid-column: 1/-1; height: 7px; background: #edf1e8; border-radius: 5px; }
.allocation-summary-track i { height: 100%; display: block; border-radius: inherit; }
.allocation-tone-0 { background: #48785b; }.allocation-tone-1 { background: #b7853c; }.allocation-tone-2 { background: #527e93; }.allocation-tone-3 { background: #a26857; }.allocation-tone-4 { background: #7d728f; }
.transaction-scope { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin: 16px 0; font-size: 13px; }
.transaction-scope input { width: auto; }
.repeated-spending { margin: 18px 0; }
.repeated-spending-list { display: grid; gap: 8px; margin-top: 18px; }
.repeated-spending-list button { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 20px; padding: 15px; background: #f2f5ec; color: #233e31; border: 1px solid #d7e0cf; }
.repeated-spending-list small { display: block; margin-top: 6px; color: #52685b; font-size: 12px; }
.app-body .transaction-row { padding: 17px 18px; gap: 15px; }
.app-body .transaction-row b { font-size: 14px; line-height: 1.5; }
.app-body .transaction-row small { font-size: 12px; line-height: 1.5; }
.app-body .cashflow-grid { grid-template-columns: minmax(0,2fr) minmax(250px,1fr); }
.app-body .preview-mode-banner { background: #fff1cb; border: 1px solid #d4b267; color: #493810; padding: 18px 22px; border-radius: 12px; margin-bottom: 22px; }
.app-body .preview-mode-banner span { color: #64532d; font-size: 13px; line-height: 1.6; }
.app-body [data-view-panel] h1:focus { outline: none; }
.app-body button:focus-visible, .app-body a:focus-visible, .app-body summary:focus-visible { outline: 3px solid #b68435; outline-offset: 3px; }
.app-body .position-card, .app-body .institution-card, .app-body .financial-account { min-width: 0; }
.app-body .position-stat strong { overflow-wrap: anywhere; }
.app-body .form-help { color: #536759; line-height: 1.65; }
.app-body .overview-fi > p { max-width: 720px; line-height: 1.65; }
.app-body .mobile-nav button[aria-current="page"] { color: #163d30; background: #e4eddc; font-weight: 700; }
@media (max-width: 1100px) {
 .home-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .reality-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .app-body .cashflow-grid { grid-template-columns: minmax(0,1fr); }
 .tools-next { flex-direction: column; align-items: stretch; }
 .tools-next .row-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 650px) {
 .tools-page .home-header { height: auto; min-height: 78px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 15px; }
 .tools-page .home-header nav { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; justify-content: space-between; }
 .tools-page .home-header nav a { font-size: 13px; }
 .public-home .home-hero { padding-top: 35px; padding-bottom: 40px; }
 .public-home .home-hero h1 { font-size: 47px; letter-spacing: -2px; }
 .home-choice-grid { gap: 10px; }.home-choice-grid a { padding: 18px 15px; }.home-choice-grid h3 { font-size: 22px; }
 .home-choices { padding-top: 32px; padding-bottom: 34px; }
 .home-demo-invite { flex-direction: column; align-items: stretch; padding: 23px; }.home-demo-invite .button { text-align: center; }
 .public-tools-shell { padding: 30px 18px 50px; }.tools-intro-row { grid-template-columns: 1fr; gap: 5px; }
 .everyday-tools .decision-panel, .tools-page .decision-panel { padding: 23px 19px; }
 .everyday-tools .decision-fields { grid-template-columns: 1fr; gap: 17px; }
 .everyday-tools .decision-heading h2 { font-size: 27px; }
 .decision-result-values { grid-template-columns: 1fr; }
 .app-body .workspace { padding: 20px 16px 105px; }
 .app-body .page-head { flex-direction: column; align-items: stretch; }
 .app-body .page-head > div:last-child { flex-wrap: wrap; }
 .app-body .page-head h1 { font-size: 34px; }
 .app-body .overview-decisions { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .app-body .overview-decisions button { padding: 16px; }.app-body .overview-decisions strong { font-size: 20px; }
 .reality-metrics { gap: 24px 16px; }.reality-metrics strong { font-size: 23px; }
 .app-body .panel-head { flex-wrap: wrap; gap: 15px; }
 .allocation-summary-row { grid-template-columns: minmax(0,1fr) auto; }.allocation-summary-row small { grid-column: 2; }.allocation-summary-track { grid-row: auto; }
 .app-body .preview-mode-banner { flex-wrap: wrap; padding: 17px; }.app-body .preview-mode-banner button { width: 100%; }
 .app-body[data-public-demo="1"] .preview-mode-banner { position: static; }
 .repeated-spending-list button { padding: 13px; gap: 10px; }.repeated-spending-list strong { white-space: nowrap; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .home-choice-grid a { transition: none; }.home-choice-grid a:hover { transform: none; } }

.sim-money-snapshot { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 25px 0; }
.sim-money-snapshot > div { display: flex; flex-direction: column; gap: 12px; padding: 23px; border: 1px solid #ccdac2; border-radius: 10px; background: #f1f6e9; }
.sim-money-snapshot small { font-size: 10px; color: #526a57; letter-spacing: .7px; }
.sim-money-snapshot strong { font: 30px Georgia,serif; overflow-wrap: anywhere; }
.milestone-disclosure { border: 1px solid #cfdac8; border-radius: 10px; padding: 20px; margin: 24px 0; }
.milestone-disclosure summary { cursor: pointer; font-size: 15px; line-height: 1.5; font-weight: 600; }
.milestone-disclosure .simulator-milestone { margin-top: 20px; }
@media(max-width:650px) { .sim-money-snapshot { grid-template-columns: 1fr; gap: 10px; }.sim-money-snapshot > div { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px; }.sim-money-snapshot small { max-width: 45%; } }
@media(max-width:400px) { .sim-money-snapshot > div { flex-direction: column; align-items: flex-start; gap: 8px; }.sim-money-snapshot small { max-width: none; }.sim-money-snapshot strong { font-size: 28px; } }
