/* Styles for the new /tools pages (savings-rate, your-number, hub). Built on pages.css tokens. PREVIEW: not linked from anywhere new. */
.tp .lbl{font-size:1rem;color:var(--text);margin-bottom:8px}
.tp .lbl i{font-size:.9375rem}
.tp .help{font-size:1rem}
.tp input[type=text],.tp input[type=email]{min-height:56px;font-size:18px}
.tp .in-wrap .pre,.tp .in-wrap .suf{font-size:18px}
.tp .in-wrap .pre+input{padding-left:32px}
.tp .cstep h3{font-size:1.375rem}
.tp .cstep .n{width:32px;height:32px;font-size:1rem}
.tp .hero{padding-top:24px;padding-bottom:20px}
.tp .block.calc-sec{padding-top:24px}
.tp .edu{font-size:.9375rem}
.tp .note-line{font-size:.9375rem}
/* layout: result first on phones so the slider and the number sit together */
.tcalc{display:grid;gap:20px;align-items:start;grid-template-areas:"main" "in" "rest"}
.tcalc>.t-main{grid-area:main}
.tcalc>.calc-in{grid-area:in}
.tcalc>.t-rest{grid-area:rest;display:grid;gap:20px;min-width:0}
.t-main{display:grid;gap:16px;min-width:0}
.tp .big-date{font-size:2.125rem}
.tp .big-sub{font-size:1.0625rem;line-height:1.5}
.tp .hero-stat{padding:28px 22px 24px}
.tp .mini small{font-size:.75rem}
.tp .mini strong{font-size:1.1875rem}
/* sticky result bar (phones) */
.sticky-res{position:fixed;z-index:60;left:16px;right:16px;top:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--paper);color:var(--ink);border-radius:14px;padding:10px 16px;box-shadow:0 14px 34px -8px rgba(0,0,0,.7);transform:translateY(-140%);opacity:0;pointer-events:none;transition:transform .2s,opacity .2s}
.sticky-res.show{transform:none;opacity:1}
.sticky-res b{font-family:var(--display);font-weight:700;font-size:1.125rem}
.sticky-res span{font-size:.9375rem;font-weight:600;color:var(--ink-2)}
/* range slider */
.rng{display:grid;gap:10px}
.rng-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rng-val{font-family:var(--display);font-weight:700;font-size:2rem;line-height:1.1;color:var(--yellow)}
.rng-val small{font-family:var(--body);font-weight:500;font-size:1rem;color:var(--text-2);margin-left:6px}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:44px;background:transparent;cursor:pointer;margin:0}
input[type=range]::-webkit-slider-runnable-track{height:10px;border-radius:99px;background:linear-gradient(90deg,var(--yellow) var(--fill,0%),rgba(255,255,255,.16) var(--fill,0%))}
input[type=range]::-moz-range-track{height:10px;border-radius:99px;background:rgba(255,255,255,.16)}
input[type=range]::-moz-range-progress{height:10px;border-radius:99px;background:var(--yellow)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:34px;height:34px;margin-top:-12px;border-radius:50%;background:var(--yellow);border:4px solid var(--bg);box-shadow:0 0 0 2px var(--yellow),0 6px 14px rgba(0,0,0,.5)}
input[type=range]::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--yellow);border:4px solid var(--bg);box-shadow:0 0 0 2px var(--yellow)}
input[type=range]:focus-visible{outline:3px solid var(--yellow);outline-offset:4px;border-radius:8px}
.rng-scale{display:flex;justify-content:space-between;font-size:.875rem;color:var(--text-3)}
/* switch */
.sw{display:flex;align-items:center;gap:14px;min-height:56px;cursor:pointer;font-size:1.0625rem;font-weight:600;font-family:var(--display)}
.sw input{position:absolute;opacity:0;width:1px;height:1px}
.sw .tr{flex:none;width:56px;height:32px;border-radius:99px;background:rgba(255,255,255,.18);position:relative;transition:background .15s}
.sw .tr::after{content:"";position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .15s}
.sw input:checked+.tr{background:var(--yellow)}
.sw input:checked+.tr::after{transform:translateX(24px);background:var(--yellow-ink)}
.sw input:focus-visible+.tr{outline:3px solid var(--yellow);outline-offset:3px}
.sub-fields{display:grid;gap:16px;padding-top:4px}
.sub-fields[hidden]{display:none}
.two{display:grid;gap:16px}
/* helper expander */
details.hlp,details.how{background:rgba(0,0,0,.16);border:1px solid var(--line);border-radius:14px;padding:0 16px}
details.hlp summary,details.how summary{display:flex;align-items:center;min-height:52px;font-family:var(--display);font-weight:600;font-size:1.0625rem;color:var(--yellow);cursor:pointer;list-style:none}
details.hlp summary::-webkit-details-marker,details.how summary::-webkit-details-marker{display:none}
details.hlp summary::after,details.how summary::after{content:"+";margin-left:auto;font-size:1.5rem;line-height:1}
details[open]>summary::after{content:"\2212"}
details .dbody{padding:4px 0 16px;display:grid;gap:12px;color:var(--text-2)}
details.how{background:var(--surface);border-color:var(--line-2)}
details.how .dbody p,details.how .dbody li{font-size:1rem;line-height:1.55}
details.how ul{padding-left:20px;display:grid;gap:8px}
.hlp-out{font-family:var(--display);font-weight:600;color:var(--text)}
.btn-sm2{min-height:48px;padding:10px 18px;font-size:1rem}
/* charts */
.tc{width:100%;height:auto;display:block;overflow:visible}
.tc .grid{stroke:rgba(255,255,255,.09);stroke-width:1}
.tc .ax{fill:#B4B5C8;font-size:12px;font-family:var(--body)}
.tc .ttl{fill:#B4B5C8;font-size:12px;font-family:var(--body)}
.tc .curve{fill:none;stroke:#FFDE59;stroke-width:3.5;stroke-linejoin:round;stroke-linecap:round}
.tc .area{fill:rgba(255,222,89,.14)}
.tc .contrib{fill:none;stroke:#9798B0;stroke-width:2.5;stroke-dasharray:6 6;stroke-linecap:round}
.tc .goal{stroke:rgba(255,255,255,.5);stroke-width:1.5;stroke-dasharray:4 5}
.tc .me{fill:#FFDE59;stroke:#161728;stroke-width:3}
.tc .guide{stroke:rgba(255,222,89,.55);stroke-width:1.5;stroke-dasharray:3 4}
.tc .tag-bg{fill:#FBF8EF}
.tc .tag-tx{fill:#1B1C33;font-size:13px;font-weight:700;font-family:var(--display)}
.chart-card .cap{font-size:1rem;color:var(--text-2);line-height:1.5}
.chart-card h3{font-size:1.25rem}
/* time vs money bars */
.tbars{display:grid;gap:14px}
.tbar{display:grid;gap:6px}
.tbar-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:1rem;color:var(--text-2)}
.tbar-top b{font-family:var(--display);font-weight:700;font-size:1.25rem;color:var(--text)}
.tbar-track{height:16px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.tbar-fill{height:100%;border-radius:99px;background:#9798B0}
.tbar.now .tbar-fill{background:var(--yellow)}
.tbar-note{font-size:.9375rem;color:#ffb4a8}
.tp .chart-card.callout{border-color:rgba(255,222,89,.4)}
.tp .big-line{font-family:var(--display);font-weight:700;font-size:1.5rem;line-height:1.25;color:var(--text)}
.tp .big-line em{font-style:normal;color:var(--yellow)}
.tp .offer h2{font-size:1.5rem}
.tp .offer form{margin-top:16px}
.tp .offer .fields .btn{width:100%}
.todo-note{display:none}
.rowlinks{display:grid;gap:12px}
/* hub */
.tp .cards{margin-top:28px}
.tp .tool .tag.new{background:var(--yellow);color:var(--yellow-ink)}
.pv-svg svg{position:absolute;inset:0;width:100%;height:100%}
@media(min-width:900px){.sticky-res{display:none}}
@media(min-width:640px){
  .two{grid-template-columns:1fr 1fr}
  .tp .big-date{font-size:3.25rem}
  .tp .hero{padding-top:48px}
  .rowlinks{grid-template-columns:1fr 1fr}
  .tp .offer .fields .btn{width:auto}
}
@media(min-width:900px){
  .tcalc{grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-areas:"in main" "in rest";gap:24px 40px}
  .tcalc>.calc-in{align-self:start}
  .tp .cards{grid-template-columns:repeat(3,1fr)}
}
@media(prefers-reduced-motion:reduce){.sw .tr,.sw .tr::after,.sticky-res{transition:none}}
