/* ============================================================================
 *  The Meier Co FERS Retirement Planner
 *  An app-style layout: welcome and guided questions first, then a side menu
 *  (computers) or bottom bar (phones) with five screens.
 * ========================================================================== */
.tcfr {
  --tcfr-navy:   #14315a;
  --tcfr-blue:   #1f6fb2;
  --tcfr-teal:   #12897d;
  --tcfr-bg:     #f2f5f9;
  --tcfr-card:   #ffffff;
  --tcfr-line:   #e3e8ef;
  --tcfr-field:  #dbe2ec;
  --tcfr-ink:    #12203a;
  --tcfr-mut:    #5b6878;
  --tcfr-pos:    #17804a;
  --tcfr-warn:   #9a5606;
  --tcfr-bad:    #b0341d;
  --tcfr-tint:   #eaf2fb;
  --tcfr-radius: 18px;
  --tcfr-shadow: 0 1px 2px rgba(16,32,60,.05), 0 6px 20px -8px rgba(16,32,60,.10);
  color: var(--tcfr-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 2rem;
  -webkit-font-smoothing: antialiased;
}
.tcfr *, .tcfr *::before, .tcfr *::after { box-sizing: border-box; }
.tcfr h2, .tcfr h3, .tcfr h4 { margin: 0; color: var(--tcfr-navy); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.tcfr a { color: var(--tcfr-blue); }
.tcfr [hidden] { display: none !important; }
.tcfr-boot { color: var(--tcfr-mut); }
.tcfr-ic { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.tcfr-ic svg { width: 1.25em; height: 1.25em; display: block; }

/* ---- gentle entrance ---- */
.tcfr-enter { animation: tcfr-in .28s ease-out; }
@keyframes tcfr-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tcfr-enter { animation: none; } .tcfr * { transition: none !important; } }

/* ---- cards ---- */
.tcfr-card {
  background: var(--tcfr-card);
  border: 1px solid var(--tcfr-line);
  border-radius: var(--tcfr-radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--tcfr-shadow);
  margin-bottom: 1rem;
}
.tcfr-phead { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.15rem; }
.tcfr-phead h3 { font-size: 1.2rem; }
.tcfr-phead p { margin: .2rem 0 0; color: var(--tcfr-mut); font-size: .93rem; max-width: 70ch; }
.tcfr-phead-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--tcfr-tint); color: var(--tcfr-blue); }
.tcfr-phead-ic svg { width: 22px; height: 22px; }
.tcfr-card-h { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; margin: 0 0 .75rem !important; }
.tcfr-card-h .tcfr-ic { color: var(--tcfr-blue); }
.tcfr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.25rem; margin-bottom: 1rem; }
.tcfr-intro { margin: 0 0 1rem; color: var(--tcfr-mut); font-size: .95rem; }
.tcfr-empty { margin: 0; color: var(--tcfr-mut); }

/* ---- fields ---- */
.tcfr-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.tcfr-grid .tcfr-field { margin-bottom: 0; }
.tcfr-span { grid-column: 1 / -1; }
.tcfr-label { font-size: .93rem; font-weight: 600; color: var(--tcfr-ink); }
.tcfr-sub { margin: .5rem 0 .4rem; }
.tcfr-hint { font-size: .82rem; color: var(--tcfr-mut); }
.tcfr input[type=date], .tcfr input[type=text], .tcfr select {
  font: inherit; font-size: 1rem;
  padding: .65rem .8rem; min-height: 48px;
  border: 1.5px solid var(--tcfr-field); border-radius: 12px;
  background: #f8fafc; color: var(--tcfr-ink); width: 100%;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.tcfr select {
  -webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px;
}
.tcfr input:hover, .tcfr select:hover { border-color: #c3cfde; }
.tcfr input:focus, .tcfr select:focus { outline: none; border-color: var(--tcfr-blue); background-color: #fff; box-shadow: 0 0 0 4px rgba(31,111,178,.14); }
.tcfr-money, .tcfr-suffix { display: flex; align-items: center; border: 1.5px solid var(--tcfr-field); border-radius: 12px; background: #f8fafc; transition: border-color .15s, box-shadow .15s; }
.tcfr-money:focus-within, .tcfr-suffix:focus-within { border-color: var(--tcfr-blue); background: #fff; box-shadow: 0 0 0 4px rgba(31,111,178,.14); }
.tcfr-money > span, .tcfr-suffix > span { color: var(--tcfr-mut); padding: 0 .75rem; font-weight: 600; }
.tcfr-money > span { padding-right: 0; }
.tcfr .tcfr-money input, .tcfr .tcfr-suffix input { border: none; box-shadow: none; background: transparent; }
.tcfr-own { margin: 1.25rem 0 0; max-width: 360px; }

/* switches */
.tcfr-check { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 600; cursor: pointer; padding: .35rem 0; }
.tcfr .tcfr-check input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; margin: 0; cursor: pointer;
  width: 50px; height: 30px; border-radius: 999px; border: 0;
  background-color: #cfd8e3;
  background-image: radial-gradient(circle, #fff 11px, transparent 12px);
  background-size: 30px 30px; background-repeat: no-repeat; background-position: left center;
  transition: background-color .2s, background-position .2s;
}
.tcfr .tcfr-check input[type=checkbox]:checked { background-color: var(--tcfr-blue); background-position: right center; }
.tcfr .tcfr-check input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31,111,178,.2); }

/* tap-to-pick choices */
.tcfr-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; }
.tcfr .tcfr-opt {
  font: inherit; color: var(--tcfr-ink); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: .8rem; min-height: 60px;
  padding: .8rem 1rem; margin: 0;
  background: #fff; border: 1.5px solid var(--tcfr-field); border-radius: 14px;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.tcfr .tcfr-opt:hover, .tcfr .tcfr-opt:focus { background: #fff; color: var(--tcfr-ink); border-color: #b5c6db; }
.tcfr .tcfr-opt:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31,111,178,.18); }
.tcfr .tcfr-opt[aria-checked=true] { border-color: var(--tcfr-blue); background: #f2f8fe; box-shadow: 0 0 0 3px rgba(31,111,178,.12); }
.tcfr-opt-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--tcfr-bg); color: var(--tcfr-navy); transition: background-color .15s, color .15s; }
.tcfr-opt[aria-checked=true] .tcfr-opt-ic { background: var(--tcfr-blue); color: #fff; }
.tcfr-opt-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tcfr-opt-text strong { font-size: .97rem; line-height: 1.3; }
.tcfr-opt-text small { font-size: .8rem; color: var(--tcfr-mut); margin-top: .1rem; line-height: 1.35; }
.tcfr-opt-tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #cfd8e3; color: transparent; transition: all .15s; }
.tcfr-opt-tick svg { width: 14px; height: 14px; }
.tcfr-opt[aria-checked=true] .tcfr-opt-tick { background: var(--tcfr-blue); border-color: var(--tcfr-blue); color: #fff; }
/* segmented */
.tcfr-opts.is-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 13px; }
.tcfr .is-seg .tcfr-opt { flex: 1 1 auto; justify-content: center; text-align: center; min-height: 42px; padding: .45rem .8rem; border: 0; border-radius: 10px; background: transparent; color: var(--tcfr-mut); }
.tcfr .is-seg .tcfr-opt:hover { background: rgba(255,255,255,.6); color: var(--tcfr-ink); }
.tcfr .is-seg .tcfr-opt[aria-checked=true] { background: #fff; color: var(--tcfr-navy); box-shadow: 0 1px 3px rgba(16,32,60,.14); }
.is-seg .tcfr-opt-text { flex: none; align-items: center; }
.is-seg .tcfr-opt-text strong { font-size: .92rem; white-space: nowrap; }

/* ---- buttons ---- */
.tcfr-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.tcfr .tcfr-btn {
  font: inherit; font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 12px; padding: .75rem 1.25rem; min-height: 48px; margin: 0;
  background: var(--tcfr-blue); color: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,32,60,.12);
  transition: background-color .15s, transform .1s;
}
.tcfr .tcfr-btn:hover, .tcfr .tcfr-btn:focus { background: var(--tcfr-navy); color: #fff; }
.tcfr .tcfr-btn:active { transform: scale(.98); }
.tcfr .tcfr-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31,111,178,.25); }
.tcfr .tcfr-btn[disabled] { opacity: .55; cursor: default; }
.tcfr .tcfr-btn-ghost { background: #fff; color: var(--tcfr-ink); border: 1.5px solid var(--tcfr-line); box-shadow: none; }
.tcfr .tcfr-btn-ghost:hover, .tcfr .tcfr-btn-ghost:focus { background: var(--tcfr-bg); color: var(--tcfr-ink); }
.tcfr .tcfr-btn-small { padding: .45rem .9rem; min-height: 38px; font-size: .88rem; background: var(--tcfr-tint); color: var(--tcfr-blue); box-shadow: none; }
.tcfr .tcfr-btn-small:hover, .tcfr .tcfr-btn-small:focus { background: #d9e8f7; color: var(--tcfr-navy); }
.tcfr .tcfr-btn-ghost.tcfr-btn-small { background: #fff; color: var(--tcfr-mut); }
.tcfr .tcfr-btn-big { min-height: 54px; font-size: 1.05rem; padding: .9rem 1.6rem; border-radius: 14px; }
.tcfr .tcfr-iconbtn { font: inherit; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--tcfr-line); background: #fff; color: var(--tcfr-ink); cursor: pointer; padding: 0; margin: 0; }
.tcfr .tcfr-iconbtn:hover, .tcfr .tcfr-iconbtn:focus { background: var(--tcfr-bg); color: var(--tcfr-ink); }
.tcfr-x { font: inherit; font-size: 1.3rem; line-height: 1; width: 40px; height: 40px; border: none; border-radius: 10px; background: transparent; color: var(--tcfr-mut); cursor: pointer; }
.tcfr .tcfr-x:hover { background: #fbeeeb; color: var(--tcfr-bad); }

/* ---- welcome and the guided questions ---- */
.tcfr-start {
  max-width: 680px; margin: 0 auto 1rem;
  background: #fff; border: 1px solid var(--tcfr-line); border-radius: 26px;
  padding: 2.25rem 2.25rem 2rem; box-shadow: var(--tcfr-shadow);
}
.tcfr-welcome { text-align: center; }
.tcfr-welcome-ic { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 1rem; color: #fff; background: linear-gradient(135deg, var(--tcfr-navy), var(--tcfr-blue)); box-shadow: 0 10px 24px -10px rgba(20,49,90,.6); }
.tcfr-welcome-ic svg { width: 34px; height: 34px; }
.tcfr .tcfr-start-title { font-size: clamp(1.55rem, 5vw, 2.15rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tcfr-start-lead { color: var(--tcfr-mut); font-size: 1.04rem; margin: .6rem auto 0; max-width: 52ch; }
.tcfr-paths { display: grid; gap: .8rem; margin: 1.75rem 0 1.25rem; }
.tcfr .tcfr-path {
  font: inherit; color: var(--tcfr-ink); text-align: left; cursor: pointer; margin: 0;
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem;
  background: #fff; border: 1.5px solid var(--tcfr-line); border-radius: 18px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tcfr .tcfr-path:hover, .tcfr .tcfr-path:focus { background: #fff; color: var(--tcfr-ink); border-color: var(--tcfr-blue); transform: translateY(-1px); box-shadow: var(--tcfr-shadow); }
.tcfr .tcfr-path.is-main { background: linear-gradient(135deg, var(--tcfr-navy), #1d5794); border-color: transparent; color: #fff; box-shadow: 0 12px 28px -14px rgba(20,49,90,.7); }
.tcfr .tcfr-path.is-main:hover, .tcfr .tcfr-path.is-main:focus { color: #fff; background: linear-gradient(135deg, #102848, #1a4f87); }
.tcfr-path-ic { width: 50px; height: 50px; border-radius: 15px; background: var(--tcfr-tint); color: var(--tcfr-blue); }
.tcfr-path-ic svg { width: 26px; height: 26px; }
.is-main .tcfr-path-ic { background: rgba(255,255,255,.15); color: #fff; }
.tcfr-path-text { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.tcfr-path-text strong { font-size: 1.08rem; }
.tcfr-path-text span { font-size: .9rem; color: var(--tcfr-mut); line-height: 1.4; }
.is-main .tcfr-path-text span { color: rgba(255,255,255,.82); }
.tcfr-path-go { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: var(--tcfr-blue); white-space: nowrap; font-size: .93rem; }
.is-main .tcfr-path-go { color: #fff; }
.tcfr-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; font-size: .85rem; color: var(--tcfr-mut); }
.tcfr-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.tcfr-trust .tcfr-ic { color: var(--tcfr-teal); }
.tcfr-q-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.75rem; }
.tcfr-progress { flex: 1; height: 8px; background: #eaeef4; border-radius: 999px; overflow: hidden; display: block; min-width: 60px; }
.tcfr-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--tcfr-blue), var(--tcfr-teal)); border-radius: 999px; transition: width .35s ease; }
.tcfr-q-count { font-size: .85rem; font-weight: 600; color: var(--tcfr-mut); white-space: nowrap; }
.tcfr-q > .tcfr-field:first-child > .tcfr-label { font-size: clamp(1.35rem, 4.6vw, 1.75rem); font-weight: 800; color: var(--tcfr-navy); letter-spacing: -.015em; line-height: 1.2; margin-bottom: .5rem; }
.tcfr-q > .tcfr-field:first-child > .tcfr-hint { font-size: .92rem; order: 3; }
.tcfr-q input[type=date], .tcfr-q input[type=text] { font-size: 1.15rem; min-height: 56px; }
.tcfr-q .tcfr-money > span { font-size: 1.15rem; }
.tcfr-err { color: var(--tcfr-bad); font-weight: 600; margin: .25rem 0 0; }
.tcfr-err:empty { display: none; }
.tcfr-start-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; }

/* what you'll need */
.tcfr .tcfr-needs-h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tcfr-mut); margin: 1.4rem 0 .6rem; }
.tcfr-needs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.tcfr-needs-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: start; padding: .85rem .9rem; background: #fff; border: 1px solid var(--tcfr-line); border-radius: 14px; transition: background-color .2s, border-color .2s; }
.tcfr-needs-list li.is-got { background: #f1faf6; border-color: #bfe3d3; }
.tcfr-needs-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--tcfr-bg); color: var(--tcfr-navy); }
.is-got .tcfr-needs-ic { background: #d9f1e6; color: var(--tcfr-teal); }
.tcfr-needs-text strong { display: block; font-size: .97rem; line-height: 1.3; }
.tcfr-needs-text span { display: block; font-size: .87rem; color: var(--tcfr-mut); margin-top: .2rem; }
.tcfr-needs-cb { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .7rem; color: var(--tcfr-mut); cursor: pointer; min-width: 44px; }
.tcfr .tcfr-needs-cb input {
  -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c7d2df; background: #fff;
  background-repeat: no-repeat; background-position: center; background-size: 16px;
  transition: all .15s;
}
.tcfr .tcfr-needs-cb input:checked { background-color: var(--tcfr-teal); border-color: var(--tcfr-teal); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.tcfr .tcfr-needs-cb input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(18,137,125,.2); }

/* ---- notices ---- */
.tcfr-disclaimer { font-size: .8rem; color: var(--tcfr-mut); margin-top: 1.5rem; line-height: 1.5; border-top: 1px solid var(--tcfr-line); padding-top: .9rem; }
.tcfr-disclaimer p { margin: 0 0 .6rem; }
.tcfr-notice { font-size: .82rem; color: #5a4208; background: #fff8eb; border: 1px solid #f2deb6; border-radius: 12px; padding: .6rem .85rem; margin: 1.5rem 0 0; }
.tcfr-notice-app { margin: 0 0 1rem; }
.tcfr-notice a { white-space: nowrap; }

/* ---- the app frame ---- */
.tcfr-app { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1.25rem; align-items: start; background: var(--tcfr-bg); border-radius: 28px; padding: 1.1rem; }
.tcfr-main { min-width: 0; }
.tcfr-rail { position: sticky; top: 1rem; background: #fff; border: 1px solid var(--tcfr-line); border-radius: 20px; padding: .8rem; box-shadow: var(--tcfr-shadow); z-index: 30; }
.admin-bar .tcfr-rail { top: calc(32px + 1rem); }
.tcfr-rail-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--tcfr-navy); padding: .35rem .4rem .9rem; border-bottom: 1px solid var(--tcfr-line); margin-bottom: .6rem; }
.tcfr-rail-brand .tcfr-ic { width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--tcfr-navy), var(--tcfr-blue)); }
.tcfr-rail-brand .tcfr-ic svg { width: 20px; height: 20px; }
.tcfr-tabs { display: flex; flex-direction: column; gap: .2rem; }
.tcfr .tcfr-tab {
  font: inherit; font-weight: 600; font-size: .95rem; text-align: left; cursor: pointer; margin: 0;
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 46px;
  padding: .6rem .75rem; border: 0; border-radius: 12px; background: transparent; color: var(--tcfr-mut);
  transition: background-color .15s, color .15s;
}
.tcfr .tcfr-tab:hover, .tcfr .tcfr-tab:focus { background: var(--tcfr-bg); color: var(--tcfr-ink); }
.tcfr .tcfr-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--tcfr-blue); }
.tcfr .tcfr-tab.is-on { background: var(--tcfr-tint); color: var(--tcfr-navy); }
.tcfr-tab-ic { color: inherit; }
.tcfr-tab.is-on .tcfr-tab-ic { color: var(--tcfr-blue); }
.tcfr-tab-short { display: none; }
.tcfr-tab-badge { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--tcfr-pos); }
.tcfr-tab-badge:empty { display: none; }
.tcfr-tab-badge.is-guess { color: var(--tcfr-warn); background: #fff1dc; border-radius: 999px; padding: .08rem .5rem; }
.tcfr-panel[hidden] { display: none; }
.tcfr-nextback { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: .25rem 0 1.25rem; }


/* ---- my monthly money: hero ---- */
.tcfr-hero {
  color: #fff; border-radius: 24px; padding: 1.4rem 1.5rem 1.5rem; margin-bottom: 1rem;
  background: radial-gradient(120% 140% at 100% 0%, #2a78bd 0%, transparent 55%), linear-gradient(135deg, #102a4d, #1b4f86);
  box-shadow: 0 16px 36px -18px rgba(16,42,77,.75);
}
.tcfr-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.tcfr-hero-label { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.82); }
.tcfr .tcfr-hero-date { position: relative; font: inherit; font-size: .84rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 999px; padding: .35rem .7rem .35rem .8rem; min-height: 36px; cursor: pointer; margin: 0; transition: background-color .15s; }
.tcfr .tcfr-hero-date:hover, .tcfr .tcfr-hero-date:focus-within { background: rgba(255,255,255,.26); color: #fff; }
.tcfr .tcfr-hero-date:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.tcfr-hero-date-chev svg { width: 1em; height: 1em; }
/* The real date box sits invisibly over the chip, so a tap opens the phone's date picker. */
.tcfr .tcfr-hero-date .tcfr-hero-date-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
.tcfr .tcfr-hero-date .tcfr-hero-date-input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tcfr-hero-amt { margin-top: .35rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; }
.tcfr-hero-amt span { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tcfr-hero-amt small { font-size: 1.05rem; color: rgba(255,255,255,.8); }
.tcfr-hero-sub { margin: .3rem 0 1.1rem; color: rgba(255,255,255,.82); font-size: .93rem; }
.tcfr-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; }
.tcfr-seg { min-width: 8px; }
.tcfr-c0 { background: #7cc4f2; }
.tcfr-c1 { background: #4fd1b7; }
.tcfr-c2 { background: #f7c873; }
.tcfr-c3 { background: #c4b2ff; }
.tcfr-ticks { display: flex; margin-top: .35rem; font-size: .74rem; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.tcfr-ticks span { min-width: 8px; white-space: nowrap; overflow: hidden; }
.tcfr-ticks .tcfr-tick-end { flex: none; overflow: visible; }
.tcfr-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tcfr-legend li { display: flex; align-items: center; gap: .65rem; background: rgba(255,255,255,.09); border-radius: 13px; padding: .6rem .8rem; }
.tcfr-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tcfr-lg-when { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcfr-lg-when strong { font-size: .88rem; }
.tcfr-lg-when small { font-size: .76rem; color: rgba(255,255,255,.72); line-height: 1.3; }
.tcfr-lg-amt { font-size: 1.08rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* stage rows are buttons: tap one to see its math */
.tcfr .tcfr-lg-btn { font: inherit; color: #fff; text-align: left; cursor: pointer; width: 100%; display: flex; align-items: center; gap: .65rem; background: none; border: 0; padding: 0; margin: 0; }
.tcfr .tcfr-lg-btn:hover, .tcfr .tcfr-lg-btn:focus { background: none; color: #fff; }
.tcfr-legend li { transition: background-color .15s, box-shadow .15s; }
.tcfr-legend li:has(.tcfr-lg-btn[aria-pressed=true]) { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.tcfr-legend li:hover { background: rgba(255,255,255,.14); }

/* how we got it */
.tcfr-math-card { margin-top: 1rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 1rem 1.05rem 1.05rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tcfr-in .25s ease-out; }
.tcfr-math-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; margin-bottom: .8rem; }
.tcfr-math-title { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.tcfr-math-when { font-size: .78rem; font-weight: 700; color: #0f2747; background: #e6f1fb; border-radius: 999px; padding: .12rem .6rem; }
.tcfr-mbars { display: flex; flex-direction: column; gap: .5rem; }
.tcfr-mbar-row { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; }
.tcfr-mbar-label { font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.75); }
.tcfr-mbar-amt { font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tcfr-mbar { display: flex; gap: 2px; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.tcfr-mseg { min-width: 4px; transition: flex-grow .4s ease; }
.tcfr-m-annuity { background: #7cc4f2; }
.tcfr-m-supplement { background: #4fd1b7; }
.tcfr-m-ss { background: #f7c873; }
.tcfr-m-tsp { background: #c4b2ff; }
.tcfr-m-job { background: #ff9f80; }
.tcfr-m-keep { background: #ffffff; }
.tcfr-m-ins { background: repeating-linear-gradient(135deg, rgba(255,255,255,.45) 0 4px, rgba(255,255,255,.2) 4px 8px); }
.tcfr-m-tax { background: repeating-linear-gradient(135deg, rgba(255,140,120,.75) 0 4px, rgba(255,140,120,.4) 4px 8px); }
.tcfr-mkeys { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin-top: .2rem; font-size: .74rem; color: rgba(255,255,255,.8); }
.tcfr-mkey { display: inline-flex; align-items: center; gap: .35rem; }
.tcfr-mkey-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.tcfr-mlist { list-style: none; margin: .9rem 0 0; padding: .3rem 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.tcfr-mline { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; align-items: baseline; gap: .5rem; padding: .38rem 0; font-size: .92rem; }
.tcfr-msign { font-weight: 800; color: rgba(255,255,255,.6); text-align: center; }
.tcfr-mlabel { display: flex; flex-direction: column; min-width: 0; }
.tcfr-mlabel small { font-size: .72rem; color: rgba(255,255,255,.62); line-height: 1.3; }
.tcfr-mamt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcfr-mline.is-sub { border-top: 1px dashed rgba(255,255,255,.25); margin-top: .2rem; padding-top: .5rem; }
.tcfr-mline.is-sub .tcfr-mamt { font-weight: 800; }
.tcfr-mline.is-total { margin-top: .35rem; padding: .6rem .7rem; background: #ffffff; color: var(--tcfr-navy); border-radius: 12px; }
.tcfr-mline.is-total .tcfr-msign { color: var(--tcfr-blue); }
.tcfr-mline.is-total small { color: var(--tcfr-mut); }
.tcfr-mline.is-total .tcfr-mamt { font-size: 1.15rem; font-weight: 800; }
.tcfr-math-tip { margin: .7rem 0 0; font-size: .76rem; color: rgba(255,255,255,.7); }

.tcfr .tcfr-hero-cta { font: inherit; font-size: .9rem; text-align: left; cursor: pointer; width: 100%; margin: 1rem 0 0; display: flex; align-items: center; gap: .65rem; color: #fff; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.38); border-radius: 14px; padding: .7rem .9rem; }
.tcfr .tcfr-hero-cta:hover, .tcfr .tcfr-hero-cta:focus { background: rgba(255,255,255,.18); color: #fff; }
.tcfr-hero-cta > span:nth-child(2) { flex: 1; }

/* tiles */
.tcfr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.tcfr .tcfr-tile { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--tcfr-ink); background: #fff; border: 1px solid var(--tcfr-line); border-radius: 18px; padding: .95rem 1rem 1rem; box-shadow: var(--tcfr-shadow); transition: transform .15s, border-color .15s; }
.tcfr .tcfr-tile:hover, .tcfr .tcfr-tile:focus { transform: translateY(-2px); border-color: #c4d4e7; color: var(--tcfr-ink); }
.tcfr-tile-top { display: flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--tcfr-mut); margin-bottom: .2rem; }
.tcfr-tile-top .tcfr-ic { color: var(--tcfr-blue); }
.tcfr-tile-val { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .45rem; }
.tcfr-tile-guess { font-size: .68rem; font-weight: 700; color: var(--tcfr-warn); background: #fff1dc; border-radius: 999px; padding: .08rem .45rem; }
.tcfr-tile strong { font-size: 1.45rem; font-weight: 800; color: var(--tcfr-navy); letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tcfr-tile small { font-size: .78rem; color: var(--tcfr-mut); line-height: 1.35; }

/* story, timeline, details */
.tcfr-story h4 { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; margin-bottom: .5rem; }
.tcfr-story h4 .tcfr-ic { color: var(--tcfr-blue); }
.tcfr-story p { margin: .2rem 0 .55rem; }
.tcfr-story p:last-child { margin-bottom: 0; }
.tcfr-timeline { display: flex; flex-direction: column; gap: .6rem; }
.tcfr-stage { border: 1px solid var(--tcfr-line); border-left: 4px solid #7cc4f2; border-radius: 12px; padding: .75rem .95rem; }
.tcfr-stage:nth-child(4n+2) { border-left-color: #4fd1b7; }
.tcfr-stage:nth-child(4n+3) { border-left-color: #f7c873; }
.tcfr-stage:nth-child(4n+4) { border-left-color: #c4b2ff; }
.tcfr-stage-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 600; }
.tcfr-stage-head strong { color: var(--tcfr-pos); font-variant-numeric: tabular-nums; }
.tcfr-items { list-style: none; margin: .4rem 0 0; padding: 0; }
.tcfr-items li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--tcfr-mut); padding: .18rem 0; }
.tcfr-amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcfr-items li.tcfr-sub-line { border-top: 1px dashed var(--tcfr-line); margin-top: .2rem; padding-top: .3rem; color: var(--tcfr-ink); font-weight: 600; }
.tcfr-items li.tcfr-ded-line .tcfr-amt { color: var(--tcfr-bad); }
.tcfr-items li.is-empty { font-style: italic; }
.tcfr-items li.tcfr-annuity-line { color: var(--tcfr-ink); }
.tcfr-items li.tcfr-net-line { color: var(--tcfr-pos); }
.tcfr-items li.tcfr-job-head { margin-top: .6rem; padding-top: .45rem; border-top: 2px solid var(--tcfr-line); font-weight: 700; color: var(--tcfr-navy); }
.tcfr-items li.tcfr-plain-line { color: var(--tcfr-ink); }
.tcfr-items li.tcfr-job-gain { margin-top: .3rem; padding: .45rem .6rem; background: #e7f5ed; border-radius: 9px; color: var(--tcfr-pos); font-weight: 700; }
.tcfr-items li.tcfr-hint-line { font-size: .8rem; }
.tcfr-breakdown summary { cursor: pointer; font-size: .88rem; color: var(--tcfr-blue); margin-top: .35rem; font-weight: 600; }
.tcfr-explain { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.tcfr-explain li { margin: .35rem 0; }
.tcfr-extras { margin: 0; padding-left: 1.2rem; }
.tcfr-extras li { margin: .35rem 0; }
.tcfr-tips ul { margin: 0; padding-left: 1.2rem; }
.tcfr-tips li { margin: .45rem 0; font-size: .94rem; }
.tcfr-tips li.is-warn { color: var(--tcfr-warn); }
.tcfr-tips li.is-bad { color: var(--tcfr-bad); font-weight: 600; }
.tcfr-banner { border-radius: 16px; padding: .95rem 1.1rem; font-size: .95rem; border: 1px solid transparent; margin-bottom: 1rem; }
.tcfr-bad { background: #fbeeeb; border-color: #f0cfc8; color: var(--tcfr-bad); }
.tcfr-checklist h4 { font-size: 1rem; margin: .5rem 0 .2rem; }
.tcfr-checklist ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; font-size: .93rem; }
.tcfr-checklist li { margin: .3rem 0; }
.tcfr-checks { list-style: none; padding-left: 0 !important; }
.tcfr-checks li::before { content: ""; display: inline-block; width: .95rem; height: .95rem; border: 2px solid var(--tcfr-blue); border-radius: 4px; margin-right: .55rem; vertical-align: -2px; }
.tcfr-how { margin-top: 1rem; }
.tcfr-how > summary, .tcfr-glossary > summary, .tcfr-needs-wrap > summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 700; color: var(--tcfr-navy); list-style: none; min-height: 28px; }
.tcfr-how > summary::-webkit-details-marker, .tcfr-glossary > summary::-webkit-details-marker, .tcfr-needs-wrap > summary::-webkit-details-marker { display: none; }
.tcfr-how > summary .tcfr-ic:first-child, .tcfr-glossary > summary .tcfr-ic:first-child, .tcfr-needs-wrap > summary .tcfr-ic:first-child { color: var(--tcfr-blue); }
.tcfr-card.tcfr-how > summary > span:nth-child(2), .tcfr-glossary > summary > span:nth-child(2), .tcfr-needs-wrap > summary > span:nth-child(2) { flex: 1; }
.tcfr-fine .tcfr-how > summary, .tcfr-more .tcfr-how > summary { font-weight: 600; color: var(--tcfr-blue); }
.tcfr-chev { color: var(--tcfr-mut); transition: transform .2s; }
details[open] > summary > .tcfr-chev { transform: rotate(180deg); }
.tcfr-tbl { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.tcfr-tbl td, .tcfr-tbl th { padding: .45rem .3rem; border-bottom: 1px solid var(--tcfr-line); font-size: .9rem; text-align: left; vertical-align: top; }
.tcfr-tbl th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tcfr-mut); font-weight: 700; }
.tcfr-tbl .tcfr-amt { text-align: right; font-weight: 600; }
.tcfr-tbl tr.is-guess td { color: var(--tcfr-mut); font-style: italic; }

/* ---- when can I retire ---- */
.tcfr-controls { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: flex-end; background: #f6f8fb; border: 1px solid var(--tcfr-line); border-radius: 16px; padding: 1rem 1.05rem; margin-bottom: 1rem; }
.tcfr-controls .tcfr-field { margin: 0; min-width: 220px; }
.tcfr-plan .tcfr-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; gap: 1rem 1.5rem; }
.tcfr-plan .tcfr-controls .tcfr-field { min-width: 0; }
.tcfr-plan .tcfr-opts.is-seg { background: #e8edf4; }
.tcfr-controls .tcfr-check { min-height: 44px; }
.tcfr-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; align-items: start; }
.tcfr-date { display: flex; flex-direction: column; background: #fff; color: var(--tcfr-ink); border: 1.5px solid var(--tcfr-line); border-radius: 18px; padding: 1rem; transition: border-color .15s, box-shadow .15s; }
.tcfr-date:hover { border-color: #b9cce2; }
.tcfr-date.is-on { border-color: var(--tcfr-blue); background: #f4f9fe; box-shadow: 0 0 0 3px rgba(31,111,178,.12); }
.tcfr .tcfr-date-pick { font: inherit; text-align: left; cursor: pointer; background: none; border: 0; padding: 0; margin: 0; color: inherit; display: flex; flex-direction: column; gap: .2rem; }
.tcfr .tcfr-date-pick:hover, .tcfr .tcfr-date-pick:focus { background: none; color: inherit; }
.tcfr-date-kind { align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tcfr-blue); background: var(--tcfr-tint); border-radius: 999px; padding: .18rem .6rem; margin-bottom: .25rem; }
.tcfr-date.is-on .tcfr-date-kind { background: var(--tcfr-blue); color: #fff; }
.tcfr-date-when { font-size: 1.3rem; font-weight: 800; color: var(--tcfr-navy); letter-spacing: -.01em; }
.tcfr-date-meta { font-size: .85rem; color: var(--tcfr-mut); }
.tcfr-date-amt { font-size: 1rem; color: var(--tcfr-ink); margin-top: .45rem; line-height: 1.4; }
.tcfr-date-amt strong { font-size: 1.1rem; }
.tcfr-date-note { font-size: .85rem; color: var(--tcfr-mut); margin-top: .35rem; }
.tcfr-date-note.is-warn { color: var(--tcfr-warn); }
.tcfr-stage-list { display: flex; flex-direction: column; gap: .35rem; margin-top: .2rem; }
.tcfr-sl-row { display: flex; flex-direction: column; padding-left: .6rem; border-left: 3px solid #7cc4f2; }
.tcfr-sl-row:nth-child(2) { border-left-color: #4fd1b7; }
.tcfr-sl-row:nth-child(3) { border-left-color: #f7c873; }
.tcfr-sl-row:nth-child(4) { border-left-color: #c4b2ff; }
.tcfr-sl-when { font-size: .78rem; color: var(--tcfr-mut); }
.tcfr-sl-why { font-size: .83rem; color: var(--tcfr-mut); }
.tcfr-show { margin-top: .7rem; border-top: 1px dashed var(--tcfr-line); padding-top: .5rem; }
.tcfr-show summary { cursor: pointer; font-weight: 600; color: var(--tcfr-blue); font-size: .9rem; }
.tcfr-math { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .88rem; }
.tcfr-math li { margin: .35rem 0; }

/* ---- fine-tune ---- */
.tcfr-fine-status { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--tcfr-mut); margin: -.25rem 0 .9rem; }
.tcfr-fine-status .tcfr-progress { flex: none; width: 140px; }
.tcfr-needs-wrap { border-top: 1px solid var(--tcfr-line); padding-top: .75rem; }
.tcfr-needs-wrap > summary { color: var(--tcfr-blue); font-weight: 600; }
.tcfr-list { padding: .2rem 1.3rem; }
.tcfr-more + .tcfr-more { border-top: 1px solid var(--tcfr-line); }
.tcfr-more > summary { display: flex; align-items: center; gap: .85rem; padding: .9rem 0; min-height: 66px; cursor: pointer; list-style: none; font-weight: 700; color: var(--tcfr-ink); }
.tcfr-more > summary::-webkit-details-marker { display: none; }
.tcfr-more-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--tcfr-bg); color: var(--tcfr-navy); }
.tcfr-more[open] .tcfr-more-ic { background: var(--tcfr-tint); color: var(--tcfr-blue); }
.tcfr-more-text { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .3rem .75rem; flex-wrap: wrap; }
.tcfr-more-title { min-width: 0; }
.tcfr-chip { font-size: .74rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px; background: #fff1dc; color: var(--tcfr-warn); white-space: nowrap; }
.tcfr-chip.is-done { background: #e3f4ea; color: var(--tcfr-pos); }
.tcfr-more-body { padding: 0 0 1.25rem 3.35rem; max-width: 800px; }
.tcfr-history { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .6rem; }
.tcfr-hrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; align-items: end; padding: .65rem; border: 1px solid var(--tcfr-line); border-radius: 13px; background: #f8fafc; }
.tcfr-hcell { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tcfr-hlabel { color: var(--tcfr-mut); font-size: .8rem; font-weight: 600; }
.tcfr-hrow.is-guess { border-style: dashed; }
.tcfr-hrow.is-guess input { color: var(--tcfr-mut); font-style: italic; }
.tcfr-guess-tag { grid-column: 1 / -1; font-size: .78rem; color: var(--tcfr-warn); }
.tcfr-guess-tag[hidden] { display: none; }
.tcfr-h3 { margin: .5rem 0 1rem; }
.tcfr-h3-sum { margin: 0; }
.tcfr-state-note:empty { display: none; }
.tcfr-state-note { margin: -.5rem 0 1rem; }
.tcfr-warn-line:empty { display: none; }
.tcfr-warn-line { color: var(--tcfr-warn); margin: -.5rem 0 1rem; }
.tcfr-calc-line:empty { display: none; }
.tcfr-calc-line { margin: -.5rem 0 1rem; color: var(--tcfr-pos); }
.tcfr-rule { background: #fff8eb; border: 1px solid #f2deb6; border-radius: 14px; padding: .85rem 1rem; margin: 0 0 1rem; font-size: .93rem; }
.tcfr-rule h4 { font-size: 1rem; margin: 0 0 .4rem; }
.tcfr-rule p { margin: .45rem 0; }
.tcfr-rule-yours:empty { display: none; }
.tcfr-rule-yours { background: #fff; border-radius: 9px; padding: .5rem .7rem; }

/* ---- what if ---- */
.tcfr-verdict { padding: .7rem .9rem; border-radius: 13px; margin: 0 0 .7rem; }
.tcfr-verdict.is-good { background: #e3f4ea; color: #134e2c; }
.tcfr-verdict.is-short { background: #fff1dc; color: #6f4103; }
.tcfr-stoplist { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tcfr-stoplist li { border: 1px solid var(--tcfr-line); border-left: 4px solid var(--tcfr-pos); border-radius: 12px; padding: .65rem .85rem; font-size: .95rem; }
.tcfr-stoplist li.is-short { border-left-color: var(--tcfr-warn); }
.tcfr-stoplist .tcfr-btn-small { margin-top: .45rem; }
.tcfr-sstbl td.is-best { background: #e3f4ea; font-weight: 700; }
.tcfr-sstbl td { white-space: normal; }
.tcfr-sstbl td:nth-child(2) { max-width: 16rem; font-weight: 400; }
.tcfr-scroll { overflow-x: auto; margin-top: .7rem; }
.tcfr-cmp th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--tcfr-mut); white-space: nowrap; }
.tcfr-cmp td { min-width: 150px; }
.tcfr-cmp .tcfr-x { vertical-align: middle; }
.tcfr-yes { color: var(--tcfr-pos); font-weight: 700; }
.tcfr-no { color: var(--tcfr-warn); font-weight: 700; }
.tcfr-cmp-cards { display: none; }

/* what would a job need to pay */
.tcfr-jobfix { margin: 1rem 0; padding: 1rem 1.05rem; border: 1px solid var(--tcfr-line); border-radius: 16px; background: #f8fafc; }
.tcfr-jobfix-lead { margin: 0 0 .5rem; }
.tcfr-jobfix .tcfr-items { background: #fff; border: 1px solid var(--tcfr-line); border-radius: 12px; padding: .5rem .8rem .6rem; margin: .5rem 0 .75rem; }
.tcfr-jobfix .tcfr-items li.tcfr-job-head { margin-top: 0; padding-top: 0; border-top: 0; }
.tcfr-jobfix-also { margin: -.25rem 0 .75rem; color: var(--tcfr-ink); }
.tcfr-jobfix-why { margin: 0 0 .85rem; padding-left: 1.2rem; font-size: .93rem; }
.tcfr-jobfix-why li { margin: .5rem 0; }

/* glossary */
.tcfr-glossary dl { margin: .8rem 0 0; }
.tcfr-glossary dt { font-weight: 700; margin-top: .65rem; }
.tcfr-glossary dd { margin: .1rem 0 0; color: var(--tcfr-mut); }

/* ---- tablets and phones: the menu becomes a bottom bar ---- */
@media (max-width: 899px) {
  .tcfr-app { display: block; background: none; border-radius: 0; padding: 0 0 5.5rem; }
  .tcfr-rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 100;
    border-radius: 0; border: 0; border-top: 1px solid var(--tcfr-line);
    padding: .3rem .35rem calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -6px 20px -12px rgba(16,32,60,.3);
    transition: transform .25s ease;
  }
  .admin-bar .tcfr-rail { top: auto; }
  .tcfr-app.is-away .tcfr-rail { transform: translateY(110%); }
  .tcfr-rail-brand { display: none; }
  .tcfr-tabs { flex-direction: row; gap: .15rem; max-width: 640px; margin: 0 auto; }
  .tcfr .tcfr-tab { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: .15rem; padding: .3rem 0 .25rem; min-height: 56px; font-size: .7rem; font-weight: 600; text-align: center; position: relative; border-radius: 12px; }
  .tcfr .tcfr-tab.is-on { background: transparent; color: var(--tcfr-navy); }
  .tcfr .tcfr-tab:hover, .tcfr .tcfr-tab:focus { background: transparent; }
  .tcfr-tab-ic { width: 52px; height: 30px; border-radius: 999px; transition: background-color .2s; }
  .tcfr-tab-ic svg { width: 22px; height: 22px; }
  .tcfr-tab.is-on .tcfr-tab-ic { background: var(--tcfr-tint); }
  .tcfr-tab-name { display: none; }
  .tcfr-tab-short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tcfr-tab-badge { position: absolute; top: 2px; left: 50%; margin-left: 10px; font-size: 0; padding: 0 !important; }
  .tcfr-tab-badge::after { content: attr(data-short); font-size: .62rem; }
  #tcfr-tab-about .tcfr-tab-badge::after { content: '\2713'; }
  .tcfr-tab-badge.is-guess { background: #fff1dc; border-radius: 999px; min-width: 1.05rem; text-align: center; line-height: 1.05rem; }
}

@media (max-width: 600px) {
  .tcfr-start { padding: 1.4rem 1.05rem 1.3rem; border-radius: 22px; }
  .tcfr .tcfr-path { padding: 1rem; gap: .8rem; align-items: flex-start; }
  .tcfr-path-ic { width: 44px; height: 44px; border-radius: 13px; }
  .tcfr-path-go > span { display: none; }
  .tcfr-path-go { align-self: center; }
  .tcfr-start-actions { flex-direction: column-reverse; }
  .tcfr-start-actions .tcfr-btn { width: 100%; }
  .tcfr-q-top { margin-bottom: 1.25rem; }
  .tcfr-needs-list li { padding: .75rem; gap: .7rem; }
  .tcfr-needs-ic { width: 34px; height: 34px; }
  .tcfr-card { padding: 1rem .95rem 1.1rem; border-radius: 16px; }
  .tcfr-phead { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem .7rem; }
  .tcfr-phead > div { display: contents; }
  .tcfr-phead p { grid-column: 1 / -1; margin: 0; }
  .tcfr-notice { font-size: .78rem; padding: .5rem .7rem; }
  .tcfr-phead-ic { width: 38px; height: 38px; border-radius: 11px; }
  .tcfr-phead h3 { font-size: 1.1rem; }
  .tcfr-hero { padding: 1.15rem 1.05rem 1.2rem; border-radius: 20px; }
  .tcfr-legend { grid-template-columns: 1fr; }
  .tcfr-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
  .tcfr .tcfr-tile { padding: .8rem .85rem .85rem; border-radius: 16px; }
  .tcfr-tile strong { font-size: 1.25rem; }
  .tcfr-list { padding: .1rem .9rem; }
  .tcfr-more-body { padding-left: 0; }
  .tcfr-more-ic { width: 38px; height: 38px; }
  .tcfr-more-text { flex-direction: column; align-items: flex-start; }
  .tcfr-more > summary { gap: .7rem; }
  .tcfr-hrow { grid-template-columns: 1fr auto; }
  .tcfr-hrow .tcfr-x { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .tcfr-controls .tcfr-field { min-width: 0; width: 100%; }
  .tcfr-opts { grid-template-columns: 1fr; }
  .tcfr-nextback .tcfr-btn { flex: 1 1 100%; }
  .tcfr-nextback .tcfr-btn-ghost { order: 2; }
  .tcfr-fine-status { flex-direction: column; align-items: flex-start; gap: .4rem; }
  /* Social Security table becomes one card per start age */
  .tcfr-sstbl, .tcfr-sstbl tbody, .tcfr-sstbl tr, .tcfr-sstbl td { display: block; width: 100%; }
  .tcfr-sstbl tr:first-child { display: none; }
  .tcfr-sstbl tr { border: 1px solid var(--tcfr-line); border-radius: 12px; padding: .4rem .75rem; margin-bottom: .5rem; }
  .tcfr-sstbl td { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px dashed var(--tcfr-line); padding: .3rem 0; white-space: normal; text-align: right; }
  .tcfr-sstbl td::before { flex: none; text-align: left; content: attr(data-label); color: var(--tcfr-mut); font-weight: 400; }
  .tcfr-sstbl td:nth-child(2) { max-width: none; }
  .tcfr-sstbl td:last-child { border-bottom: 0; }
  .tcfr-sstbl td.tcfr-ss-start { font-weight: 700; color: var(--tcfr-navy); }
  .tcfr-sstbl td.tcfr-ss-start::before { content: 'Start Social Security'; }
  /* compare: stacked cards instead of a wide table */
  .tcfr-scroll { display: none; }
  .tcfr-cmp-cards { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
  .tcfr-cmp-card { border: 1px solid var(--tcfr-line); border-radius: 13px; padding: .55rem .8rem; }
  .tcfr-cmp-card.is-current { border: 2px solid var(--tcfr-blue); background: #f4f9fe; }
  .tcfr-cmp-title { font-size: 1rem; color: var(--tcfr-navy); margin-bottom: .2rem; }
  .tcfr-cmp-row { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-bottom: 1px dashed var(--tcfr-line); font-size: .9rem; }
  .tcfr-cmp-row span:first-child { color: var(--tcfr-mut); }
  .tcfr-cmp-row span:last-child { text-align: right; }
  .tcfr-cmp-actions { display: flex; gap: .5rem; margin-top: .5rem; }
  .tcfr-h3tbl th, .tcfr-h3tbl td { font-size: .8rem; padding: .3rem .15rem; }
}

@media (max-width: 360px) {
  .tcfr .tcfr-tab { font-size: .64rem; }
  .tcfr-tab-ic { width: 44px; }
  .tcfr-needs-ic { display: none !important; }
  .tcfr-needs-list li { grid-template-columns: 1fr auto; }
  .is-seg .tcfr-opt-text strong { font-size: .85rem; }
}

@media print {
  .tcfr { max-width: none; padding: 0; }
  .tcfr-app { display: block; background: none; padding: 0; }
  .tcfr-rail, .tcfr-nextback, .tcfr-actions, .tcfr-own, .tcfr-btn-small, .tcfr-x, .tcfr-date:not(.is-on),
  .tcfr-q-top, .tcfr-start-actions, .tcfr-hero-cta, .tcfr-hero-date { display: none !important; }
  .tcfr-panel, .tcfr-panel[hidden] { display: block !important; }
  .tcfr-card, .tcfr-start, .tcfr-tile { box-shadow: none; }
  .tcfr-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; }
  .tcfr-checklist, .tcfr-stage, .tcfr-needs-list li, .tcfr-tile { break-inside: avoid; }
  .tcfr-enter { animation: none; }
}

.tcfr-paydate { max-width: 360px; }
.tcfr-paydate .tcfr-field { margin-bottom: 1rem; }
.tcfr-q .tcfr-paydate { max-width: none; }

/* tap-to-answer questions in Fine-tune: the boxes for an answer sit under it */
.tcfr-more-body > .tcfr-field.tcfr-span { margin-bottom: .75rem; }
.tcfr-ask-pane { border-left: 3px solid var(--tcfr-tint); padding: .15rem 0 .1rem 1rem; margin: 0 0 1.1rem .2rem; animation: tcfr-in .22s ease-out; }
.tcfr-ask-pane:empty { display: none; }
.tcfr-ask-pane .tcfr-field:last-child { margin-bottom: .25rem; }
.tcfr-ask-note { background: var(--tcfr-bg); border-radius: 12px; padding: .7rem .9rem; margin: 0 0 .9rem; font-size: .93rem; }
@media (max-width: 600px) { .tcfr-ask-pane { padding-left: .75rem; margin-left: 0; } }

/* two choices (yes or no) sit side by side, even on phones */
.tcfr-opts.is-pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .tcfr-opts.is-pair { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .is-pair .tcfr-opt-ic, .is-pair .tcfr-opt-tick { display: none; }
  .tcfr .is-pair .tcfr-opt { padding: .7rem .8rem; min-height: 52px; align-items: flex-start; }
}

/* Show the math under a retire-later date */
.tcfr-plan-math { margin: .5rem 0 .2rem; }
.tcfr-plan-math > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--tcfr-blue); }
.tcfr-plan-math .tcfr-items { background: #f8fafc; border: 1px solid var(--tcfr-line); border-radius: 12px; padding: .5rem .8rem .6rem; margin: .5rem 0; }
.tcfr-plan-math .tcfr-items li.tcfr-job-head { margin-top: 0; padding-top: 0; border-top: 0; }
.tcfr-items li.tcfr-low-line { color: var(--tcfr-ink); font-weight: 700; background: #fff1dc; border-radius: 8px; padding: .2rem .4rem; margin: 0 -.4rem; }

/* monthly budget */
.tcfr-budget { display: flex; flex-direction: column; gap: .5rem; }
.tcfr-budget > .tcfr-hint { margin: 0 0 .25rem; }
.tcfr-bud-group { border: 1px solid var(--tcfr-line); border-radius: 14px; background: #fff; }
.tcfr-bud-group > summary { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; cursor: pointer; list-style: none; font-weight: 700; color: var(--tcfr-ink); min-height: 52px; }
.tcfr-bud-group > summary::-webkit-details-marker { display: none; }
.tcfr-bud-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--tcfr-bg); color: var(--tcfr-navy); }
.tcfr-bud-group[open] .tcfr-bud-ic { background: var(--tcfr-tint); color: var(--tcfr-blue); }
.tcfr-bud-gname { flex: 1; min-width: 0; }
.tcfr-bud-gtotal { font-variant-numeric: tabular-nums; color: var(--tcfr-navy); }
.tcfr-bud-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .5rem 1rem; padding: 0 .85rem .85rem; }
.tcfr-bud-row { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; }
.tcfr-bud-name { color: var(--tcfr-mut); font-weight: 600; }
.tcfr-bud-row.is-extra { flex-direction: row; align-items: center; gap: .5rem; grid-column: 1 / -1; }
.tcfr-bud-row.is-extra > input { flex: 1.3; min-width: 0; }
.tcfr-bud-row.is-extra > .tcfr-money { flex: 1; min-width: 0; }
.tcfr .tcfr-bud-rows .tcfr-btn-small { justify-self: start; grid-column: 1 / -1; }
.tcfr-bud-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--tcfr-navy); color: #fff; border-radius: 14px; padding: .8rem 1rem; font-weight: 600; margin-top: .25rem; }
.tcfr-bud-total-amt { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
/* take-home card: after bills */
.tcfr-mline.is-bills { margin-top: .5rem; }
.tcfr-mline.is-left .tcfr-mamt { color: #8ff0c6; font-weight: 800; }
.tcfr-mline.is-short .tcfr-mamt { color: #ffb4a3; font-weight: 800; }

@media (max-width: 600px) {
  .tcfr-trust { flex-direction: column; align-items: flex-start; gap: .45rem; width: max-content; max-width: 100%; margin: 0 auto; }
  .tcfr-trust li { align-items: flex-start; }
}

/* job box: work until age, and what is left after */
.tcfr-jobfix-end { max-width: 260px; margin-bottom: .75rem; }
.tcfr-jobfix-after { margin: 0 0 .75rem; background: #fff1dc; color: #6f4103; }

/* selling your home to downsize */
.tcfr-home-more { margin: .25rem 0 1rem; }
.tcfr-home-more .tcfr-grid { margin-top: .75rem; }
.tcfr-home-out .tcfr-items, .tcfr-home-try .tcfr-items { background: #f8fafc; border: 1px solid var(--tcfr-line); border-radius: 12px; padding: .5rem .8rem .6rem; margin: .25rem 0 .6rem; }
.tcfr-home-out .tcfr-items li.tcfr-job-head, .tcfr-home-try .tcfr-items li.tcfr-job-head { margin-top: 0; padding-top: 0; border-top: 0; }
.tcfr-home-carry { margin: .75rem 0 1rem; }
.tcfr-home-carry > p { margin: 0 0 .6rem; }
.tcfr-home-big { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; background: var(--tcfr-navy); color: #fff; border-radius: 14px; padding: .85rem 1rem; margin: .25rem 0 .5rem; }
.tcfr-home-big span { font-weight: 600; font-size: .95rem; }
.tcfr-home-big strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }

.tcfr-home-split { margin: .25rem 0 .5rem; }
.tcfr-home-carry-wrap .tcfr-items { background: #f8fafc; border: 1px solid var(--tcfr-line); border-radius: 12px; padding: .5rem .8rem .6rem; margin: .25rem 0 .6rem; }
.tcfr-home-carry-wrap .tcfr-items li.tcfr-job-head { margin-top: 0; padding-top: 0; border-top: 0; }

/* retirement game plan: stay or sell, side by side */
.tcfr-gp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.tcfr-gp-plan { border: 1.5px solid var(--tcfr-line); border-radius: 16px; padding: .9rem 1rem 1rem; background: #fff; display: flex; flex-direction: column; gap: .7rem; }
.tcfr-gp-plan.is-now { background: #f8fafc; }
.tcfr-gp-title strong { display: block; font-size: 1.02rem; color: var(--tcfr-navy); }
.tcfr-gp-title small { display: block; font-size: .8rem; color: var(--tcfr-mut); margin-top: .15rem; line-height: 1.35; }
.tcfr-gp-need { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; border-top: 1px dashed var(--tcfr-line); padding-top: .55rem; font-size: .88rem; color: var(--tcfr-mut); }
.tcfr-gp-need strong { font-size: 1.05rem; color: var(--tcfr-ink); font-variant-numeric: tabular-nums; }
.tcfr-gp-job > span { display: block; font-size: .78rem; color: var(--tcfr-mut); margin-bottom: .3rem; }
.tcfr-gp-pay { background: var(--tcfr-navy); color: #fff; border-radius: 12px; padding: .6rem .75rem; }
.tcfr-gp-pay strong { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.tcfr-gp-pay small { display: block; font-size: .76rem; color: rgba(255,255,255,.8); line-height: 1.35; }
.tcfr-gp-pay.is-ok { background: #e3f4ea; color: #134e2c; }
.tcfr-gp-pay.is-ok strong { color: #17804a; }
.tcfr-gp-pay.is-ok small { color: #134e2c; }
.tcfr-gp-pay.is-bad { background: #fbeeeb; }
.tcfr-gp-pay.is-bad strong, .tcfr-gp-pay.is-bad small { color: var(--tcfr-bad); }
.tcfr-gp-after { margin: 0; font-size: .8rem; color: var(--tcfr-warn); }
.tcfr-gp-sum { margin: 0 0 .6rem; }
.tcfr-suffix > span { white-space: nowrap; }
.tcfr-gp-math .tcfr-items { padding: .45rem .6rem .5rem; }
.tcfr-gp-math .tcfr-items li { font-size: .82rem; }
.tcfr-gp-mathnote { margin: .4rem 0 0; }
.tcfr-home-loanh { margin: .25rem 0 .4rem; }
.tcfr-home-loan { margin-bottom: .5rem; }

/* break-even ages under the Social Security table */
.tcfr-be { margin: .75rem 0 .5rem; }
.tcfr-be-lead { margin: 0 0 .6rem; }
.tcfr-be-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; }
.tcfr-be-card { border: 1.5px solid var(--tcfr-line); border-radius: 16px; padding: .85rem .95rem .9rem; background: #fff; }
.tcfr-be-title { font-weight: 700; color: var(--tcfr-navy); margin-bottom: .5rem; }
.tcfr-be-age { background: var(--tcfr-navy); color: #fff; border-radius: 12px; padding: .55rem .75rem; margin-bottom: .6rem; }
.tcfr-be-age small { display: block; font-size: .74rem; color: rgba(255,255,255,.8); }
.tcfr-be-age strong { display: block; font-size: 1.25rem; font-weight: 800; color: #fff; }
.tcfr-be-steps { margin: 0; padding-left: 1.1rem; font-size: .84rem; color: var(--tcfr-ink); }
.tcfr-be-steps li { margin: .3rem 0; }

.tcfr-be-leadh { font-size: .78rem; font-weight: 700; color: var(--tcfr-mut); text-transform: uppercase; letter-spacing: .04em; margin: .6rem 0 .3rem; }
.tcfr-be-table { background: #f8fafc; border: 1px solid var(--tcfr-line); border-radius: 12px; padding: .35rem .7rem; margin: 0; }
.tcfr-be-table li { font-size: .84rem; color: var(--tcfr-ink); }
.tcfr-be-table li.tcfr-be-zero { font-weight: 700; color: var(--tcfr-navy); background: #fff1dc; border-radius: 8px; padding: .2rem .4rem; margin: 0 -.4rem; }
.tcfr-be-table li.tcfr-be-neg { color: var(--tcfr-mut); }

/* the race table */
.tcfr-race { margin: 1rem 0 .5rem; }
.tcfr-race-tbl { margin-top: .4rem; }
.tcfr-race-tbl th, .tcfr-race-tbl td { font-variant-numeric: tabular-nums; }
.tcfr-race-tbl td.is-best { background: #e3f4ea; font-weight: 800; color: #134e2c; }
.tcfr-race-sum { margin: .75rem 0 0; }
@media (max-width: 600px) {
  .tcfr-race-tbl th, .tcfr-race-tbl td { font-size: .78rem; padding: .35rem .2rem; }
  .tcfr-race-tbl th { letter-spacing: 0; }
}

/* survivor Social Security */
.tcfr-sv { margin: 1.25rem 0 .5rem; border-top: 1px solid var(--tcfr-line); padding-top: 1rem; }
.tcfr-sv-own { max-width: 420px; }
.tcfr-sv-tbl td.is-best { background: #e3f4ea; font-weight: 800; color: #134e2c; }
.tcfr-sv-floor { display: block; font-size: .7rem; color: var(--tcfr-mut); font-weight: 400; }
.tcfr-sv-sum { margin: .75rem 0 .5rem; }
.tcfr-sv-rules { font-size: .86rem; }
