/* Siegel Financial app stylesheet bundle. Same files, same order as index.html. */

/* ===== css/fonts.css ===== */
@font-face {
  font-family: 'Fraunces Display 0';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-0.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces Display 1';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-1.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces Display 2';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(../fonts/fraunces-2.woff2) format('woff2');
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-7.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-8.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-5.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-7.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-8.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-5.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-7.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-8.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-5.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== css/styles.css ===== */
/* ============================================================
   Money Command Center — editorial design system
   ============================================================ */
:root{
  --paper:#F8F6F0; --paper-2:#FFFFFF; --paper-3:#EAF0F5;
  --ink:#071827; --ink-2:#405064; --ink-3:#657486;
  --line:#D4DDE5; --line-2:#BCC9D4;
  --green:#C7A15A; --green-2:#DDBB72; --green-soft:#F7EFD9;
  --active-bg:#071B31; --active-fg:#FFFFFF;
  --accent:#0B2A4A; --accent-2:#164872; --accent-soft:#E7EEF6;
  --glow:#0B2A4A; --glow-rgb:11,42,74; --glow-soft:rgba(11,42,74,.14);
  --gold:#C7A15A; --gold-soft:#F7EFD9; --chart-gold-label:#8A651D;
  --teal:#2F6F92; --teal-soft:#E3EEF4;
  --danger:#B23A3A; --danger-soft:#F4E0DE;
  --shadow:0 1px 2px rgba(26,24,18,.04), 0 8px 24px -12px rgba(26,24,18,.12);
  --shadow-lg:0 2px 6px rgba(26,24,18,.05), 0 24px 60px -24px rgba(26,24,18,.22);
  --r:8px; --r-sm:7px; --r-lg:12px;
  --sans:"Inter","Helvetica Neue",Arial,sans-serif;
  --display:"Fraunces Display 0","Fraunces Display 1","Fraunces Display 2","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --serif:var(--display);
  --maxw:1080px;
  --glass:rgba(255,255,255,.85);
}

/* Budget v458: direct category editing from the expense composition list */
.budget-page .expense-composition-row-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.budget-page .expense-composition-row-shell .expense-composition-row {
  min-width: 0;
  border-bottom: 0;
}

.budget-page .expense-composition-edit {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  min-height: 34px;
  margin-left: 4px;
  padding: 7px 8px;
  color: rgba(232,235,238,.68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  border: 1px solid rgba(232,198,111,.2);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  transition: color .16s ease, border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.budget-page .expense-composition-edit svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.budget-page .expense-composition-edit:hover,
.budget-page .expense-composition-edit:focus-visible {
  color: #f3d98e;
  border-color: rgba(232,198,111,.52);
  background: rgba(232,198,111,.1);
  transform: translateY(-1px);
}

.budget-page .expense-ranked-item.expense-edit-target {
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 38%, transparent);
}

@media (max-width: 700px) {
  .budget-page .expense-composition-edit {
    min-width: 34px;
    justify-content: center;
    padding-inline: 7px;
  }

  .budget-page .expense-composition-edit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-page .expense-composition-edit {
    transition: none;
  }
}

/* Budget v459: compact future-building bridge and vertical composition flow */
.budget-composition-stack {
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
}

.budget-building-brief {
  position: relative;
  display: grid;
  gap: 15px;
  overflow: hidden;
  margin: 0;
  padding: clamp(18px, 2.2vw, 25px) clamp(18px, 2.8vw, 30px);
  border: 1px solid rgba(199, 161, 90, .28);
  border-radius: 10px;
  background:
    radial-gradient(circle at 90% 0, rgba(67, 197, 142, .12), transparent 38%),
    linear-gradient(118deg, #0d2940, #0a2237 58%, #092034);
  color: #f8f4ea;
  box-shadow: 0 18px 42px -30px rgba(4, 17, 29, .72);
}

.budget-building-brief::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #e5bd5b, #f3d988 48%, #55cc92);
  content: "";
}

.budget-building-flow {
  --budget-flow-destination: #8cddb0;
  --budget-flow-destination-bright: #a8e9c5;
  --budget-flow-destination-halo: rgba(113, 215, 160, .55);
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  color: rgba(224, 232, 238, .54);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.budget-building-flow-label.destination {
  color: var(--budget-flow-destination);
  text-shadow: 0 0 0 rgba(113, 215, 160, 0);
}

.budget-building-flow-track {
  --budget-flow-start: #f1cf77;
  --budget-flow-end: #71d7a0;
  --budget-flow-start-halo: rgba(241, 207, 119, .72);
  --budget-flow-end-halo: rgba(113, 215, 160, .62);
  position: relative;
  display: block;
  height: 1px;
  isolation: isolate;
  background: linear-gradient(90deg, rgba(229, 189, 91, .3), rgba(85, 204, 146, .68));
}

.budget-building-flow-track::after {
  position: absolute;
  z-index: 1;
  inset: -1px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 207, 119, .7), rgba(113, 215, 160, .96));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.budget-building-flow-track::before,
.budget-building-flow-track i {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--budget-flow-start);
  box-shadow: 0 0 12px var(--budget-flow-start-halo);
  content: "";
  opacity: 0;
  transform: translate(-50%, -50%) scale(.68);
}

.budget-building-flow.is-playing .budget-building-flow-track::after {
  animation: budget-building-line-charge 4.15s cubic-bezier(.22, 1, .36, 1) 1 both;
}

.budget-building-flow.is-playing .budget-building-flow-track::before {
  animation: budget-building-particle 2.35s cubic-bezier(.22, 1, .36, 1) .18s 1 both;
}

.budget-building-flow.is-playing .budget-building-flow-track i {
  animation: budget-building-particle 2.35s cubic-bezier(.22, 1, .36, 1) 1.08s 1 both;
}

.budget-building-flow-track b {
  position: absolute;
  z-index: 3;
  display: block;
  right: -3.5px;
  top: 50%;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  margin-top: -3.5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  color: #71d7a0;
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg);
  transform-origin: center;
}

.budget-building-flow.is-playing .budget-building-flow-track b {
  animation: budget-building-arrow-arrival 4.15s ease-out 1 both;
}

.budget-building-flow.is-playing .budget-building-flow-label.destination {
  animation: budget-building-destination-arrival 4.15s ease-out 1 both;
}

@keyframes budget-building-line-charge {
  0% { opacity: 0; transform: scaleX(0); }
  10% { opacity: .82; }
  72% { opacity: .9; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes budget-building-particle {
  0% {
    left: 0;
    opacity: 0;
    background: var(--budget-flow-start);
    box-shadow: 0 0 0 var(--budget-flow-start-halo);
    transform: translate(-50%, -50%) scale(.58);
  }
  12% {
    opacity: 1;
    box-shadow: 0 0 5px 2px var(--budget-flow-start-halo);
    transform: translate(-50%, -50%) scale(1);
  }
  64% {
    opacity: 1;
    background: var(--budget-flow-end);
    box-shadow: 0 0 8px 2px var(--budget-flow-end-halo);
    transform: translate(-50%, -50%) scale(1);
  }
  88% {
    opacity: .95;
    transform: translate(-50%, -50%) scale(.9);
  }
  100% {
    left: 100%;
    opacity: 0;
    background: var(--budget-flow-end);
    box-shadow: 0 0 3px var(--budget-flow-end-halo);
    transform: translate(-50%, -50%) scale(.55);
  }
}

@keyframes budget-building-arrow-arrival {
  0%, 54% {
    opacity: .64;
    filter: drop-shadow(0 0 0 rgba(113, 215, 160, 0));
    transform: rotate(45deg) scale(.9);
  }
  74% {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--budget-flow-destination-halo));
    transform: rotate(45deg) scale(1.18);
  }
  100% {
    opacity: .9;
    filter: drop-shadow(0 0 0 rgba(113, 215, 160, 0));
    transform: rotate(45deg) scale(1);
  }
}

@keyframes budget-building-destination-arrival {
  0%, 55% {
    color: inherit;
    opacity: .76;
    text-shadow: 0 0 0 rgba(113, 215, 160, 0);
  }
  74% {
    color: var(--budget-flow-destination-bright);
    opacity: 1;
    text-shadow: 0 0 12px var(--budget-flow-destination-halo);
  }
  100% {
    color: var(--budget-flow-destination);
    opacity: 1;
    text-shadow: 0 0 0 rgba(113, 215, 160, 0);
  }
}

.budget-building-brief-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(18px, 3vw, 38px);
}

.budget-building-brief-copy {
  min-width: 0;
}

.budget-building-brief-copy .card-eyebrow {
  color: #e8c66b;
  font-size: 10px;
  letter-spacing: .13em;
}

.budget-building-brief-copy h2 {
  max-width: 760px;
  margin: 6px 0 5px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.08;
}

.budget-building-brief-copy p {
  margin: 0;
  color: #b8c7d2;
  font-size: 13px;
}

.budget-building-brief-copy p strong {
  color: #8cddb0;
  font-family: var(--serif);
  font-size: 18px;
}

.budget-building-brief-split {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}

.budget-building-brief-split > span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 7px;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid rgba(222, 232, 238, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: #9fb1be;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.budget-building-brief-split i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5bd5b;
}

.budget-building-brief-split i.saving {
  background: #55cc92;
}

.budget-building-brief-split strong {
  grid-column: 1 / -1;
  color: #f8f4ea;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1;
}

.budget-building-brief-pace {
  display: grid;
  grid-template-columns: minmax(130px, .5fr) minmax(150px, .6fr) minmax(260px, 1fr);
  align-items: center;
  gap: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(222, 232, 238, .12);
}

.budget-building-brief-pace > div {
  display: grid;
  gap: 2px;
  padding-right: 18px;
}

.budget-building-brief-pace > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(222, 232, 238, .12);
}

.budget-building-brief-pace div span {
  color: #91a4b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.budget-building-brief-pace div strong {
  color: #f7f2e7;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
}

.budget-building-growth-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 5px;
  border-bottom: 1px solid rgba(241, 207, 118, .5);
  color: #f1cf76;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  transition: color .16s ease, border-color .16s ease;
}

.budget-building-growth-link:hover,
.budget-building-growth-link:focus-visible {
  color: #ffe49a;
  border-color: #ffe49a;
}

.budget-building-growth-link:focus-visible {
  outline: 2px solid #f8f4ea;
  outline-offset: 4px;
}

.budget-building-assumption {
  color: rgba(193, 207, 216, .46);
  font-size: 9px;
}

@media (max-width: 760px) {
  .budget-composition-stack {
    gap: 16px;
  }

  .budget-building-brief {
    gap: 13px;
    padding: 17px 14px 15px;
  }

  .budget-building-flow {
    grid-template-columns: auto minmax(50px, 1fr) auto;
    gap: 7px;
    font-size: 7px;
  }

  .budget-building-brief-main {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .budget-building-brief-copy h2 {
    font-size: clamp(22px, 6.7vw, 29px);
  }

  .budget-building-brief-copy p {
    font-size: 11px;
  }

  .budget-building-brief-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .budget-building-brief-split > span {
    min-width: 0;
    padding: 8px 9px;
  }

  .budget-building-brief-split strong {
    font-size: 18px;
  }

  .budget-building-brief-pace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .budget-building-brief-pace > div {
    padding-right: 10px;
  }

  .budget-building-brief-pace > div + div {
    padding-left: 10px;
  }

  .budget-building-brief-pace div strong {
    font-size: clamp(19px, 6vw, 24px);
  }

  .budget-building-growth-link {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 10px;
    font-size: 11px;
  }
}

@media (max-width: 370px) {
  .budget-building-brief-copy h2 {
    font-size: 21px;
  }

  .budget-building-brief-split > span {
    font-size: 8px;
  }

  .budget-building-brief-split strong {
    font-size: 16px;
  }
}

/* Budget composition: monthly equation first, one focused detail view below. */
.budget-monthly-summary {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(19px, 2.2vw, 28px);
  border: 1px solid rgba(132, 168, 196, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(126, 191, 222, 0.05), transparent 42%),
    #0b2034;
  color: #f8f4ea;
  box-shadow: 0 18px 40px rgba(5, 19, 32, 0.16);
}

.budget-monthly-summary::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(240, 203, 101, 0.12), #f0cb65 50%, rgba(240, 203, 101, 0.12));
  content: "";
}

.budget-monthly-summary-head {
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(360px, 1.22fr);
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(15px, 1.7vw, 20px);
  border-bottom: 1px solid rgba(166, 191, 211, 0.17);
}

.budget-monthly-summary-copy,
.budget-monthly-summary-total {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.budget-monthly-summary-copy .card-eyebrow {
  color: #f0cb65;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.budget-monthly-summary-copy small,
.budget-monthly-summary-total small {
  color: #9fb0c0;
  font-size: 15px;
  font-weight: 650;
}

.budget-monthly-summary-total {
  grid-template-columns: minmax(170px, auto) minmax(180px, 1fr);
  align-items: center;
  justify-items: start;
  column-gap: clamp(18px, 2.5vw, 34px);
  text-align: left;
}

.budget-monthly-summary-total strong {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(39px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
}

.budget-monthly-summary-total small {
  max-width: 360px;
  text-align: left;
}

.budget-monthly-summary-total small.balanced {
  color: #70d9aa;
}

.budget-monthly-summary-total small.over {
  color: #ff958a;
}

.budget-monthly-summary-total small.open {
  color: #f0cb65;
}

.budget-monthly-summary-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  border-top: 1px solid rgba(166, 191, 211, 0.12);
}

.budget-monthly-summary-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 4px 14px;
  padding: clamp(13px, 1.6vw, 18px);
  border: 0;
  border-right: 1px solid rgba(166, 191, 211, 0.16);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.budget-monthly-summary-part:last-child {
  border-right: 0;
}

.budget-monthly-summary-part:hover {
  background: rgba(255, 255, 255, 0.035);
}

.budget-monthly-summary-part:focus-visible,
.budget-monthly-summary-segment:focus-visible,
.budget-composition-tab:focus-visible {
  z-index: 2;
  outline: 2px solid #f0cb65;
  outline-offset: 3px;
}

.budget-monthly-summary-part span {
  color: #a9b7c4;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.budget-monthly-summary-part strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.budget-monthly-summary-part small {
  grid-column: 1;
  color: #8fa2b4;
  font-size: 14px;
  font-weight: 650;
}

.budget-monthly-summary-part.expenses strong {
  color: #ff8d7d;
}

.budget-monthly-summary-part.investing strong {
  color: #f2cf6c;
}

.budget-monthly-summary-part.savings strong {
  color: #77d9aa;
}

.budget-monthly-summary-bar {
  display: grid;
  width: 100%;
  min-height: 34px;
  overflow: hidden;
  margin: 16px 0 13px;
  border: 1px solid rgba(192, 210, 223, 0.2);
  border-radius: 6px;
  background: rgba(3, 16, 28, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(157, 185, 205, 0.12),
    0 8px 20px rgba(3, 13, 23, 0.18);
}

.budget-monthly-summary-segment {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 6px;
  border: 0;
  color: #092036;
  cursor: pointer;
  transition: filter 160ms ease, box-shadow 160ms ease;
}

.budget-monthly-summary-segment + .budget-monthly-summary-segment {
  box-shadow: inset 2px 0 0 rgba(6, 24, 39, 0.42);
}

.budget-monthly-summary-segment:hover {
  z-index: 1;
  filter: brightness(1.07) saturate(1.04);
  box-shadow:
    inset 2px 0 0 rgba(6, 24, 39, 0.42),
    inset 0 0 0 2px rgba(255, 250, 240, 0.5);
}

.budget-monthly-summary-segment.expenses {
  background: linear-gradient(90deg, #df5d55, #fa8d7a);
}

.budget-monthly-summary-segment.investing {
  background: linear-gradient(90deg, #dfaf3f, #f6dc87);
}

.budget-monthly-summary-segment.savings {
  background: linear-gradient(90deg, #39b985, #83dbad);
}

.budget-monthly-summary-segment span,
.budget-monthly-summary-segment em {
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.budget-monthly-summary-segment em {
  font-size: 12px;
  letter-spacing: 0;
}

.budget-composition-switcher {
  display: grid;
  gap: 16px;
}

.budget-composition-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 4px;
  border: 1px solid rgba(99, 132, 158, 0.22);
  border-radius: 8px;
  background: rgba(11, 32, 52, 0.07);
}

.budget-composition-tab {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #0c2237);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.budget-composition-tab.active {
  background: #0b263f;
  color: #fffaf0;
  box-shadow: 0 8px 20px rgba(6, 24, 39, 0.14);
}

.budget-composition-panel[hidden] {
  display: none !important;
}

.budget-composition-panel > :first-child {
  margin-top: 0;
}

@media (max-width: 720px) {
  .budget-monthly-summary {
    padding: 17px 14px 11px;
  }

  .budget-monthly-summary-head {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "total";
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
  }

  .budget-monthly-summary-copy {
    grid-area: copy;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .budget-monthly-summary-total {
    grid-area: total;
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    text-align: center;
  }

  .budget-monthly-summary-total strong {
    font-size: clamp(41px, 13vw, 54px);
  }

  .budget-monthly-summary-total small {
    max-width: none;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
  }

  .budget-monthly-summary-bar {
    min-height: 29px;
    margin: 12px 0 9px;
    border-width: 1px;
    border-radius: 6px;
  }

  .budget-monthly-summary-parts {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .budget-monthly-summary-part {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 3px;
    border-right: 0;
    border-bottom: 1px solid rgba(166, 191, 211, 0.14);
  }

  .budget-monthly-summary-part:last-child {
    border-bottom: 0;
  }

  .budget-monthly-summary-part strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: clamp(26px, 8.5vw, 34px);
    text-align: right;
  }

  .budget-monthly-summary-part small {
    grid-column: 1;
  }

  .budget-monthly-summary-segment span {
    display: none;
  }

  .budget-monthly-summary-segment {
    min-height: 29px;
    padding: 5px 2px;
  }

  .budget-monthly-summary-segment em {
    font-size: 10px;
  }
}

@media (max-width: 440px) {
  .budget-monthly-summary-part {
    gap: 3px 10px;
    padding-block: 12px;
  }

  .budget-monthly-summary-part span,
  .budget-monthly-summary-part small {
    font-size: 12px;
  }

  .budget-monthly-summary-segment em {
    font-size: 9px;
  }

  .budget-composition-tabs {
    width: 100%;
  }

  .budget-composition-tab {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-building-flow-track::after {
    display: none;
  }

  .budget-building-flow-track::before,
  .budget-building-flow-track i {
    display: none;
    animation: none;
  }

  .budget-building-flow-track b,
  .budget-building-flow-label.destination {
    animation: none !important;
  }

  .budget-monthly-summary-part,
  .budget-monthly-summary-segment,
  .budget-composition-tab {
    transition: none;
  }
}

:root[data-theme="dark"]{
  --paper:#06111F; --paper-2:#0B1828; --paper-3:#102033;
  --ink:#F8F6EF; --ink-2:#C4CBD4; --ink-3:#8995A4;
  --line:#26384A; --line-2:#34495D;
  --green:#D8B86C; --green-2:#E8CB83; --green-soft:rgba(216,184,108,.14);
  --active-bg:#D8B86C; --active-fg:#06111F;
  --accent:#D8B86C; --accent-2:#F0D48A; --accent-soft:rgba(216,184,108,.14);
  --glow:#D8B86C; --glow-rgb:216,184,108; --glow-soft:rgba(216,184,108,.16);
  --gold:#D8B86C; --gold-soft:rgba(216,184,108,.14); --chart-gold-label:#F0D48A;
  --teal:#7FB4D8; --teal-soft:rgba(127,180,216,.14);
  --danger:#FF8A82; --danger-soft:rgba(255,138,130,.14);
  --glass:rgba(15,17,21,.86);
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 14px 34px -18px rgba(0,0,0,.72);
  --shadow-lg:0 2px 8px rgba(0,0,0,.4), 0 28px 70px -28px rgba(0,0,0,.8);
}
html{transition:background .3s,color .3s}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--sans); background:var(--paper); color:var(--ink);
  line-height:1.5; font-size:15px; -webkit-font-smoothing:antialiased;
  font-feature-settings:"cv05","ss01"; letter-spacing:0;
}
.tnum{font-variant-numeric:tabular-nums lining-nums}
h1,h2,h3,h4{font-family:var(--serif); font-weight:680; letter-spacing:0; line-height:1.08}
button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit}
input,select,textarea{font-family:inherit; color:inherit}
input:not([type="range"]),select,textarea{
  -webkit-appearance:none;
  appearance:none;
}
input,select,textarea,button{font-size:16px}
a{color:inherit}

/* ---------- App shell ---------- */
.app{display:grid; grid-template-columns:248px 1fr; min-height:100vh}
.sidebar{
  position:sticky; top:0; height:100vh; border-right:1px solid var(--line);
  background:linear-gradient(180deg,var(--paper-2),var(--paper-3));
  padding:26px 18px; display:flex; flex-direction:column; gap:6px;
}
.brand{display:flex; align-items:center; gap:11px; padding:4px 8px 22px}
.brand-mark{width:38px;height:38px;border-radius:50%;object-fit:cover;object-position:center top;flex:none;
  border:1.5px solid var(--line-2);box-shadow:var(--shadow)}
.brand-mark.sm{width:30px;height:30px}
.brand-mark.fallback{border-radius:50%;background:var(--active-bg);display:grid;place-items:center;
  color:#fff;font-family:var(--serif);font-size:14px;border:none}
.theme-tog{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:var(--ink-3);flex:none}
.theme-tog:hover{background:var(--accent-soft);color:var(--ink)}
.theme-tog .ni{width:17px;height:17px;opacity:.9}
.btn-ghost.ico{padding:8px;width:36px;justify-content:center;border-radius:9px}
.btn-ghost.ico .ni{width:17px;height:17px}
.brand-name{font-family:var(--serif);font-size:16px;font-weight:600;line-height:1.05}
.brand-sub{font-size:11px;color:var(--ink-3);letter-spacing:.04em;text-transform:uppercase}
.nav-label{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);
  padding:14px 10px 6px;font-weight:600}
.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;
  color:var(--ink-2);font-weight:500;font-size:14.5px;transition:.15s;width:100%;text-align:left}
.nav-item:hover{background:var(--accent-soft);color:var(--ink)}
.nav-item.active{background:var(--active-bg);color:var(--active-fg)}
.nav-item.active .ni{opacity:1}
.ni{width:18px;height:18px;flex:none;opacity:.7;stroke-width:1.9}
.nav-spacer{flex:1}
.nav-foot{font-size:11.5px;color:var(--ink-3);padding:10px;border-top:1px solid var(--line);line-height:1.5}

.main{
  min-width:0;
  padding:0 0 90px;
  background-color:var(--paper);
  background:
    radial-gradient(1200px 440px at 52% -260px,rgba(199,161,90,.20),rgba(11,42,74,.07) 46%,rgba(var(--glow-rgb),0) 82%),
    linear-gradient(180deg,#EEF3F8 0,#F5F7F9 140px,var(--paper) 520px),
    var(--paper);
}
:root[data-theme="dark"] .main{
  background-color:var(--paper);
  background:
    radial-gradient(1200px 460px at 52% -270px,rgba(216,184,108,.22),rgba(127,180,216,.06) 48%,rgba(var(--glow-rgb),0) 84%),
    linear-gradient(180deg,#07182A 0,#071421 170px,var(--paper) 580px),
    var(--paper);
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}
.page-head{padding:40px 0 10px}
.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-weight:600}
.page-title{font-size:40px;margin-top:8px;letter-spacing:0}
.page-sub{color:var(--ink-2);font-size:16px;margin-top:10px;max-width:60ch}
.section-divider{height:1px;background:var(--line);margin:34px 0}

/* ---------- Cards ---------- */
.card{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.card-pad{padding:22px}
.grid{display:grid;gap:18px}
.grid > *{min-width:0}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))} .g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card-title{font-family:var(--serif);font-size:18px;font-weight:560}
.card-eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);font-weight:600;margin-bottom:14px}

/* ---------- Stat tiles ---------- */
.hero{background:#06111F;color:#F8F6EF;border-radius:var(--r-lg);padding:34px 36px;
  position:relative;overflow:hidden;box-shadow:var(--shadow-lg)}
.hero::after{content:"";position:absolute;right:-80px;top:-80px;width:280px;height:280px;
  background:radial-gradient(circle,rgba(199,161,90,.38),transparent 70%);pointer-events:none}
.hero-label{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(246,243,236,.6);font-weight:600}
.hero-num{font-family:var(--serif);font-size:64px;font-weight:560;letter-spacing:0;margin-top:6px;line-height:1}
.hero-meta{margin-top:16px;display:flex;gap:22px;flex-wrap:wrap;color:rgba(246,243,236,.78);font-size:14px}
.hero-meta b{color:#F7F4EC;font-weight:600}
.hero-definition{margin-top:14px;color:rgba(247,244,236,.66);font-size:13.5px}
.nw-projection-bridge{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  align-items:center;
  gap:clamp(15px,2.4vw,34px);
  margin-bottom:12px;
  padding:11px clamp(15px,1.8vw,24px);
  border:1px solid rgba(199,161,90,.30);
  border-radius:8px;
  background:
    radial-gradient(520px 150px at 0 0,rgba(199,161,90,.12),transparent 70%),
    linear-gradient(105deg,rgba(11,42,74,.06),rgba(255,255,255,.78));
  box-shadow:0 20px 44px -36px rgba(7,24,39,.45),inset 0 1px 0 rgba(255,255,255,.72);
}
.nw-projection-copy{display:grid;gap:3px;min-width:0}
.nw-projection-eyebrow{
  display:block;
  color:var(--gold);
  font-size:9.8px;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.nw-projection-heading{
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(15px,1.2vw,18px);
  font-weight:650;
  line-height:1.12;
}
.nw-projection-copy p{max-width:540px;margin:1px 0 0;color:var(--ink-2);font-size:10.5px;line-height:1.35;text-wrap:pretty}
.nw-projection-metric{
  display:grid;
  min-width:190px;
  gap:1px;
  padding-left:clamp(15px,2vw,26px);
  border-left:1px solid rgba(199,161,90,.28);
}
.nw-projection-age{color:var(--ink-3);font-size:8.8px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}
.nw-projection-value{
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(23px,1.8vw,29px);
  font-weight:680;
  line-height:1.04;
  white-space:nowrap;
}
.nw-projection-metric small{color:var(--ink-3);font-size:8.5px;font-weight:650}
.nw-projection-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-self:end;
  color:var(--accent);
  font-size:11px;
  font-weight:820;
  line-height:1.25;
  text-align:left;
  white-space:nowrap;
}
.nw-projection-link > span{font-size:16px;transition:transform .18s ease}
.nw-projection-link:hover > span{transform:translateX(3px)}
:root[data-theme="dark"] .nw-projection-bridge{
  border-color:rgba(216,184,108,.25);
  background:
    radial-gradient(460px 120px at 0 0,rgba(216,184,108,.13),transparent 68%),
    linear-gradient(105deg,rgba(127,180,216,.055),rgba(248,246,239,.025));
  box-shadow:0 18px 44px -34px rgba(0,0,0,.78),inset 0 1px 0 rgba(255,255,255,.07);
}
:root[data-theme="dark"] .nw-projection-bridge .linklike{color:#F0D48A}
@media(max-width:900px){
  .nw-projection-bridge{grid-template-columns:minmax(0,1fr) auto;gap:14px 24px}
  .nw-projection-metric{min-width:180px}
  .nw-projection-link{grid-column:1 / -1;justify-self:start}
}
@media(max-width:620px){
  .nw-projection-bridge{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:10px 12px}
  .nw-projection-copy{gap:2px}
  .nw-projection-copy p{display:none}
  .nw-projection-heading{font-size:14px}
  .nw-projection-metric{min-width:0;padding:0;border:0;text-align:right;justify-items:end}
  .nw-projection-age{font-size:8px}
  .nw-projection-value{font-size:clamp(20px,6vw,24px)}
  .nw-projection-metric small{display:none}
  .nw-projection-link{grid-column:1 / -1;justify-self:start;font-size:10.5px;white-space:normal}
}
.nw-equation{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:26px;
  padding-top:16px;
  max-width:100%;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(247,244,236,.68);
  font-size:13px;
  line-height:1.25;
}
.nw-equation span,.nw-equation strong{
  display:inline-flex;
  align-items:baseline;
  gap:5px;
  white-space:nowrap;
}
.nw-equation b{
  color:#F7F4EC;
  font-size:14px;
  font-weight:780;
}
.nw-equation strong{
  color:#F7F4EC;
  font-weight:760;
}
.nw-equation strong b{font-size:15px}
.nw-equation i{
  color:rgba(247,244,236,.42);
  font-style:normal;
  font-weight:760;
}
.nw-hero{
  padding:26px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
}
.nw-hero-copy{min-width:0}
.nw-hero-viz{
  flex:0 0 auto;
  width:min(390px,38%);
}
.nw-pie-card{
  display:grid;
  grid-template-columns:150px minmax(128px,1fr);
  align-items:center;
  gap:18px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 20px 44px -34px rgba(0,0,0,.75);
}
.nw-pie{
  width:150px;
  height:150px;
  overflow:visible;
  filter:drop-shadow(0 16px 22px rgba(0,0,0,.28));
}
.nw-pie-legend{
  display:grid;
  gap:8px;
  min-width:0;
}
.nw-pie-legend > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  color:rgba(247,244,236,.72);
  font-size:12.5px;
  line-height:1.2;
}
.nw-pie-legend span{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.nw-pie-legend b{
  color:#F7F4EC;
  font-size:13px;
}
.nw-pie-empty{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:12px;
  padding:18px;
  color:rgba(247,244,236,.68);
  background:rgba(255,255,255,.04);
  font-size:13px;
}
.history-copy{
  margin:6px 0 12px;
  color:var(--ink-2);
  font-size:13px;
  line-height:1.45;
}
.history-manager{
  margin-top:12px;
  display:grid;
  gap:12px;
}
.history-form{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(130px,.8fr);
  gap:12px;
  align-items:end;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:
    radial-gradient(520px 180px at 0% 0%,rgba(216,184,108,.12),transparent 62%),
    linear-gradient(135deg,var(--paper-2),var(--paper-3));
}
.history-form label{
  display:block;
  margin-bottom:6px;
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:760;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.history-date-field{
  min-width:0;
}
.history-date-grid{
  display:grid;
  grid-template-columns:minmax(150px,1fr) minmax(96px,.58fr);
  gap:8px;
}
.history-form input,
.history-form select,
.history-form .select-wrap select{
  min-height:46px;
  width:100%;
  border:1px solid var(--line-2);
  border-radius:8px;
  background:var(--paper-2);
  color:var(--ink);
  font:inherit;
  font-size:15.5px;
  padding:10px 12px;
}
.history-form input:focus,
.history-form select:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.history-year-input{
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.history-date-help{
  margin-top:7px;
  color:var(--ink-3);
  font-size:12px;
  line-height:1.35;
}
.history-year-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:9px;
}
.history-year-chip{
  min-height:30px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:linear-gradient(180deg,var(--paper-2),var(--paper-3));
  color:var(--ink-2);
  font-size:12px;
  font-weight:760;
  font-variant-numeric:tabular-nums;
  transition:.14s ease;
}
.history-year-chip:hover,
.history-year-chip:focus-visible{
  border-color:rgba(var(--glow-rgb),.5);
  background:var(--accent-soft);
  color:var(--accent);
  outline:none;
  box-shadow:0 0 0 3px var(--glow-soft);
}
.history-form .money-in input{padding-left:30px}
.history-form .btn{
  grid-column:1 / -1;
  justify-content:center;
  min-height:46px;
  white-space:nowrap;
}
.history-list{
  display:grid;
  gap:7px;
  max-height:250px;
  overflow:auto;
  padding-right:2px;
}
.history-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 30px;
  gap:10px;
  align-items:center;
  min-height:46px;
  padding:8px 9px 8px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-2);
}
.history-row b{
  display:block;
  color:var(--ink);
  font-size:13px;
  line-height:1.2;
}
.history-row span{
  display:block;
  margin-top:2px;
  color:var(--ink-3);
  font-size:11.5px;
  line-height:1.2;
}
.history-row strong{
  color:var(--ink);
  font-size:15px;
  white-space:nowrap;
}
.overview-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(330px,430px);
  gap:40px;
  align-items:center;
  background:
    radial-gradient(820px 340px at 6% 0%,rgba(216,184,108,.16),transparent 62%),
    radial-gradient(620px 360px at 96% 100%,rgba(47,111,146,.22),transparent 68%),
    linear-gradient(135deg,#06111F,#0A1A2D 52%,#081827);
}
.overview-hero-ledger{
  align-self:stretch;
  display:grid;
  align-content:center;
  gap:18px;
  padding-left:34px;
  border-left:1px solid rgba(255,255,255,.12);
  position:relative;
}
.overview-hero-ledger::before{
  content:"";
  position:absolute;
  left:-1px;
  top:12%;
  bottom:12%;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(var(--glow-rgb),.52),transparent);
}
.ledger-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.ledger-head span{
  color:rgba(247,244,236,.54);
  font-size:10px;
  font-weight:760;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ledger-head b{
  color:#F7F4EC;
  font-size:13px;
  font-weight:760;
  text-align:right;
}
.ledger-summary{
  display:grid;
  gap:4px;
  padding-bottom:2px;
}
.ledger-summary span{
  color:rgba(247,244,236,.50);
  font-size:11px;
  font-weight:720;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.ledger-summary b{
  color:#F7F4EC;
  font-size:26px;
  font-weight:800;
  line-height:1;
}
.ledger-summary i{
  color:rgba(247,244,236,.56);
  font-size:12px;
  font-style:normal;
}
.ledger-rows{
  display:grid;
  gap:14px;
}
.ledger-row{
  display:grid;
  gap:7px;
}
.ledger-row-top{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:14px;
  color:rgba(247,244,236,.72);
  font-size:13px;
  font-weight:650;
}
.ledger-row-top b{
  color:#F7F4EC;
  font-size:14px;
  font-weight:780;
  white-space:nowrap;
}
.ledger-track{
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.075);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.32);
}
.ledger-track i{
  display:block;
  width:var(--share);
  min-width:6px;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,255,255,.16),rgba(255,255,255,.04));
}
.ledger-row.cash .ledger-track i{background:linear-gradient(90deg,#70DCE1,#2C8797)}
.ledger-row.invest .ledger-track i{background:linear-gradient(90deg,#49DCA2,#0D765C)}
.ledger-row.property .ledger-track i{background:linear-gradient(90deg,#E5BE5E,#B98621)}
.ledger-row.debt .ledger-row-top b{color:#FFAAA4}
.ledger-row.debt .ledger-track i{background:linear-gradient(90deg,#E97873,#B94A5C)}
.ledger-note{
  padding-top:4px;
  color:rgba(247,244,236,.58);
  font-size:12px;
  line-height:1.45;
}
.ledger-empty{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.04);color:rgba(247,244,236,.66)}
.overview-hero-chart{
  display:grid;
  grid-template-columns:188px minmax(0,1fr);
  align-items:center;
  gap:20px;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:8px;
  background:
    radial-gradient(circle at 24% 20%,rgba(255,255,255,.10),transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 28px 70px -48px rgba(0,0,0,.9);
}
.overview-hero-chart .chart{filter:drop-shadow(0 20px 28px rgba(0,0,0,.30))}
.overview-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}
.overview-metric{
  position:relative;
  min-height:120px;
  padding:18px 20px;
}
.overview-metric .lab{
  color:var(--ink-3);
  font-size:11px;
  font-weight:760;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.overview-metric .val{
  margin-top:8px;
  color:var(--ink);
  font-size:29px;
  font-weight:780;
  line-height:1;
}
.overview-metric .val.pos{color:var(--green)}
.overview-metric .val.neg{color:var(--danger)}
.overview-metric .sub{margin-top:8px;color:var(--ink-2);font-size:12.5px}
.overview-metric > .info{position:absolute;right:12px;top:12px}
.overview-adjust-note{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-left:3px solid var(--green);
  border-radius:8px;
  background:var(--green-soft);
  color:var(--ink-2);
  font-size:13px;
  line-height:1.45;
}
.overview-adjust-note b{color:var(--ink);white-space:nowrap}
.overview-flow-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.overview-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.overview-card-head .card-eyebrow{margin-bottom:0}
.overview-card-head .add-row{margin-top:-4px;padding:0;font-size:13px}
.overview-donut-layout{
  display:grid;
  grid-template-columns:188px minmax(0,1fr);
  gap:20px;
  align-items:center;
  margin-top:16px;
}
.overview-donut .chart{max-width:188px!important;filter:drop-shadow(0 18px 30px rgba(17,20,17,.10))}
.overview-legend{
  display:grid;
  gap:7px;
  min-width:0;
}
.overview-legend > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid var(--line);
  color:var(--ink-2);
  font-size:13px;
  line-height:1.25;
}
.overview-legend > div:last-child{border-bottom:0}
.overview-legend span{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.overview-legend span i{
  display:grid;
  gap:2px;
  min-width:0;
  font-style:normal;
}
.overview-legend span small{
  color:var(--ink-3);
  font-size:11px;
  line-height:1.25;
}
.overview-legend b{
  display:flex;
  gap:8px;
  align-items:baseline;
  color:var(--ink);
  white-space:nowrap;
  font-weight:760;
}
.overview-legend em{
  color:var(--ink-3);
  font-style:normal;
  font-size:11px;
  font-weight:700;
}
.overview-legend.dark > div{border-color:rgba(255,255,255,.13);color:rgba(247,244,236,.72)}
.overview-legend.dark b{color:#F7F4EC}
.overview-legend.dark em{color:rgba(247,244,236,.55)}
.overview-legend.dark span small{color:rgba(247,244,236,.50)}
.networth-legend .legend-liability{
  margin-top:2px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
}
.networth-legend .legend-liability b{color:#FFAAA4}
.networth-legend .networth-legend-total{
  margin-top:4px;
  padding:10px 0 0;
  border-top:1px solid rgba(255,255,255,.18);
  border-bottom:0;
  color:rgba(247,244,236,.64);
}
.networth-legend .networth-legend-total span{
  color:rgba(247,244,236,.62);
  font-size:11px;
  font-weight:760;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.networth-legend .networth-legend-total b{font-size:14px;color:#F7F4EC}
.overview-card-copy{
  margin-top:14px;
  color:var(--ink-2);
  font-size:12.8px;
  line-height:1.5;
}
.overview-money-map{
  margin-top:18px;
  padding:28px 30px;
  overflow:hidden;
  position:relative;
  color:#F7F4EC;
  border-color:rgba(255,255,255,.10);
  background:
    radial-gradient(760px 320px at 10% 0%,rgba(216,184,108,.18),transparent 58%),
    radial-gradient(620px 320px at 94% 88%,rgba(47,111,146,.20),transparent 64%),
    linear-gradient(135deg,#06111F,#0A1B2E 48%,#071827);
  box-shadow:var(--shadow-lg),inset 0 1px 0 rgba(255,255,255,.08);
}
.overview-money-map::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,rgba(255,255,255,.06),transparent 34%,rgba(255,255,255,.025) 68%,transparent);
  pointer-events:none;
}
.overview-map-head{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.overview-map-head .card-eyebrow{margin-bottom:6px;color:rgba(247,244,236,.58)}
.overview-map-head .add-row{margin-top:0;padding:0;white-space:nowrap;color:var(--accent)}
.overview-map-title{
  max-width:820px;
  color:#F7F4EC;
  font-family:var(--serif);
  font-size:23px;
  font-weight:650;
  line-height:1.18;
  letter-spacing:0;
}
.overview-map-body{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:30px;
  align-items:center;
  margin-top:24px;
}
.overview-map-viz{
  display:grid;
  justify-items:center;
  gap:12px;
  padding:20px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:
    radial-gradient(circle at 50% 42%,rgba(var(--glow-rgb),.18),transparent 54%),
    linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.03));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 28px 72px -48px rgba(0,0,0,.95);
}
:root[data-theme="dark"] .overview-map-viz{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 28px 60px -44px rgba(0,0,0,.86);
}
.overview-map-viz .overview-donut .chart{
  max-width:228px!important;
  width:228px;
  filter:drop-shadow(0 22px 34px rgba(17,20,17,.16));
}
.overview-map-center-note{
  max-width:260px;
  color:rgba(247,244,236,.66);
  font-size:12.5px;
  line-height:1.45;
  text-align:center;
}
.overview-map-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.overview-map-list > div{
  min-height:116px;
  padding:18px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 44px -36px rgba(0,0,0,.85);
}
.overview-map-list > div.source{
  border-color:rgba(247,244,236,.18);
  background:linear-gradient(135deg,rgba(247,244,236,.10),rgba(255,255,255,.035));
}
.overview-map-list > div.expense{border-color:rgba(200,106,75,.28);background:linear-gradient(135deg,rgba(200,106,75,.14),rgba(255,255,255,.035))}
.overview-map-list > div.invest{border-color:rgba(var(--glow-rgb),.28);background:linear-gradient(135deg,rgba(var(--glow-rgb),.14),rgba(255,255,255,.035))}
.overview-map-list > div.pos{border-color:rgba(var(--glow-rgb),.30);background:linear-gradient(135deg,rgba(var(--glow-rgb),.14),rgba(255,255,255,.035))}
.overview-map-list > div.neg{border-color:rgba(185,74,92,.30);background:linear-gradient(135deg,rgba(185,74,92,.15),rgba(255,255,255,.035))}
.overview-map-list > div.workplace{border-color:rgba(216,184,108,.26);background:linear-gradient(135deg,rgba(216,184,108,.12),rgba(255,255,255,.028))}
.overview-map-list span{
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:rgba(247,244,236,.78);
  font-size:13px;
  line-height:1.25;
}
.overview-map-list span i{display:grid;gap:3px;font-style:normal}
.overview-map-list span small{color:rgba(247,244,236,.52);font-size:12px;line-height:1.35}
.overview-map-list b{
  display:block;
  margin-top:12px;
  color:#F7F4EC;
  font-size:30px;
  line-height:1;
  font-weight:780;
}
.overview-map-list .expense b{color:#EFA082}
.overview-map-list .invest b{color:#F0D48A}
.overview-map-list .pos b{color:#A7CDED}
.overview-map-list .neg b{color:#F79AA5}
.overview-map-list .workplace b{color:#F0D48A}
.overview-map-foot{
  position:relative;
  z-index:1;
  margin-top:18px;
  padding:13px 15px;
  border-radius:8px;
  border:1px solid rgba(216,184,108,.22);
  border-left:3px solid var(--green);
  background:rgba(216,184,108,.10);
  color:rgba(247,244,236,.76);
  font-size:13.5px;
  line-height:1.5;
}
.overview-map-foot.neg{
  border-left-color:var(--danger);
  border-color:rgba(255,138,130,.22);
  background:rgba(255,138,130,.12);
  color:#FFD8D5;
}

.tile{padding:18px 20px}
.tile .lab{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
.tile .val{font-family:var(--serif);font-size:30px;font-weight:560;letter-spacing:0;margin-top:7px;line-height:1}
.tile .sub{font-size:12.5px;color:var(--ink-2);margin-top:6px}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:7px;vertical-align:middle}
.c-cash{color:var(--teal)} .bg-cash{background:var(--teal)}
.c-invest{color:var(--green)} .bg-invest{background:var(--green)}
.c-prop{color:var(--gold)} .bg-prop{background:var(--gold)}
.c-debt{color:var(--danger)} .bg-debt{background:var(--danger)}
.pos{color:var(--green-2)} .neg{color:var(--danger)}

/* ---------- Dials / sliders ---------- */
.dials{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:20px}
.dial .dl{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:9px}
.dial .dname{font-size:12.5px;color:var(--ink-2);font-weight:600;letter-spacing:.01em}
.dial .dval{font-family:var(--serif);font-size:19px;color:var(--ink);font-weight:560}
input[type=range]{-webkit-appearance:none;width:100%;height:4px;border-radius:4px;
  background:var(--line-2);outline:none}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;
  background:var(--paper-2);border:2px solid var(--green);cursor:pointer;box-shadow:0 2px 6px rgba(26,24,18,.2);transition:.1s}
input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.12)}
input[type=range].acc::-webkit-slider-thumb{border-color:var(--accent)}

/* ---------- Editable rows / inputs ---------- */
.row-list{display:flex;flex-direction:column}
.erow{display:grid;grid-template-columns:1fr 138px 28px;align-items:center;gap:8px;
  padding:7px 0;border-bottom:1px solid var(--line)}
.erow:last-child{border-bottom:none}
.erow .nm{border:none;background:none;font-size:14.5px;padding:6px 4px;border-radius:7px;color:var(--ink)}
.erow .nm:focus{background:var(--paper-3);outline:1px solid var(--line-2)}
.money-in{position:relative}
.money-in input{width:100%;text-align:right;padding:9px 12px 9px 22px;border:1px solid var(--line-2);
  border-radius:9px;background:var(--paper-3);font-size:14.5px;font-variant-numeric:tabular-nums;transition:.12s}
.money-in input:focus{outline:none;border-color:var(--glow);background:#fff;box-shadow:0 0 0 3px var(--glow-soft)}
.money-in.acc input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.money-in::before{content:"$";position:absolute;left:10px;top:50%;transform:translateY(-50%);
  color:var(--ink-3);font-size:13px;pointer-events:none}
.del{color:var(--ink-3);font-size:17px;line-height:1;border-radius:6px;width:26px;height:26px;opacity:0;transition:.12s}
.erow:hover .del{opacity:1}
.del:hover{background:var(--danger-soft);color:var(--danger)}
.add-row{display:inline-flex;align-items:center;gap:7px;color:var(--accent);font-weight:600;font-size:13.5px;padding:11px 2px;margin-top:4px}
.add-row:hover{color:var(--accent-2)}
.totrow{display:flex;justify-content:space-between;align-items:center;padding:14px 2px 2px;margin-top:6px;border-top:2px solid var(--ink)}
.totrow .tl{font-weight:600;font-size:13px;letter-spacing:.03em;text-transform:uppercase;color:var(--ink-2)}
.totrow .tv{font-family:var(--serif);font-size:24px;font-weight:560}

/* ---------- Progress ---------- */
.bar{height:9px;border-radius:6px;background:var(--line);overflow:hidden}
.bar > span{display:block;height:100%;border-radius:6px;background:var(--active-bg);transition:width .5s cubic-bezier(.2,.7,.2,1)}
.barwrap{display:flex;align-items:center;gap:12px}
.stack{display:flex;height:14px;border-radius:7px;overflow:hidden;background:var(--line)}
.stack > i{height:100%;display:block}

/* ---------- Goals funding ---------- */
.goal-funding{
  margin-bottom:18px;
  overflow:hidden;
  position:relative;
  border-color:rgba(216,184,108,.30);
  background:
    radial-gradient(520px 220px at 4% 0%,rgba(216,184,108,.14),transparent 62%),
    linear-gradient(180deg,var(--paper),var(--paper-2));
}
.goal-funding::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--gold);
}
.goal-funding.ok::before{background:var(--green)}
.goal-funding.risk::before{background:var(--danger)}
.goal-funding.watch::before{background:var(--gold)}
.goal-funding-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.goal-funding-title{
  color:var(--ink);
  font-family:var(--serif);
  font-size:22px;
  font-weight:640;
  line-height:1.18;
}
.goal-funding-head p{
  max-width:760px;
  margin-top:7px;
  color:var(--ink-2);
  font-size:13.5px;
  line-height:1.55;
}
.goal-funding-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.goal-funding-grid > div{
  min-height:112px;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.45);
}
.goal-funding-grid span{
  display:block;
  color:var(--ink-3);
  font-size:11px;
  font-weight:780;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.goal-funding-grid b{
  display:block;
  margin-top:8px;
  color:var(--ink);
  font-family:var(--serif);
  font-size:27px;
  font-weight:620;
  line-height:1;
}
.goal-funding-grid b.pos{color:var(--green)}
.goal-funding-grid b.neg{color:var(--danger)}
.goal-funding-grid small{
  display:block;
  margin-top:7px;
  color:var(--ink-3);
  font-size:12px;
  line-height:1.35;
}

/* ---------- Buttons / pills ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border-radius:11px;font-weight:600;font-size:14px;transition:.15s}
.btn-pri{background:var(--active-bg);color:var(--active-fg);box-shadow:0 8px 20px -10px rgba(var(--glow-rgb),.7)}
.btn-pri:hover{background:var(--accent-2);transform:translateY(-1px)}
.btn-ghost{border:1px solid var(--line-2);color:var(--ink)}
.btn-ghost:hover{background:var(--paper-3);border-color:var(--ink-3)}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;letter-spacing:.01em}
.pill-green{background:var(--green-soft);color:var(--green)}
.pill-gold{background:var(--gold-soft);color:var(--gold)}
.pill-accent{background:var(--accent-soft);color:var(--accent)}
.pill-danger{background:var(--danger-soft);color:var(--danger)}

/* ---------- Empty / prompts ---------- */
.muted{color:var(--ink-3)}
.empty{color:var(--ink-3);font-size:14px;font-style:normal}
.callout{background:var(--accent-soft);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;
  font-size:14px;color:var(--ink);display:block}
.callout:has(> span:first-child){display:flex;gap:12px;align-items:flex-start}
.benchmark-note{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-3);
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.5;
}

/* ---------- Charts ---------- */
.chart-card{padding:26px 24px 18px}
.chart-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:12px;
}
.chart-head > div:first-child{
  min-width:0;
}
.chart-head p{
  margin-top:6px;
  max-width:78ch;
  color:var(--ink-2);
  font-size:13.5px;
  line-height:1.5;
  overflow-wrap:break-word;
  text-wrap:pretty;
}
.chart-head .add-row{
  flex:none;
  margin-top:2px;
}
svg.chart{display:block;width:100%;overflow:visible}
.axis{fill:var(--ink-3);font-size:11.5px}
.gridline{stroke:var(--line);stroke-width:1}
.tip{position:fixed;pointer-events:none;background:#06111F;color:#F8F6EF;padding:8px 11px;border-radius:9px;
  font-size:12.5px;box-shadow:var(--shadow-lg);opacity:0;transition:opacity .1s;z-index:50;font-variant-numeric:tabular-nums}
.tip.projection-touch-tip{
  width:164px;
  padding:9px 12px;
  border:1px solid rgba(230,190,90,.46);
  border-radius:8px;
  background:linear-gradient(145deg,rgba(15,37,57,.98),rgba(6,17,31,.98));
  box-shadow:0 14px 34px rgba(2,11,21,.38),0 0 22px rgba(230,190,90,.12);
  text-align:center;
  line-height:1.45;
  transition:none;
}
.real-rate-banner{
  position:sticky;
  top:12px;
  z-index:7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:-4px 0 18px;
  padding:12px 15px;
  border:1px solid rgba(199,161,90,.34);
  border-radius:10px;
  background:rgba(248,246,240,.92);
  box-shadow:0 14px 42px -34px rgba(7,24,39,.46),inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter:blur(10px);
}
.real-rate-banner b{
  color:var(--ink);
  font-size:13px;
  font-weight:850;
  white-space:nowrap;
}
.real-rate-banner span{
  color:var(--ink-2);
  font-size:12.8px;
  line-height:1.45;
  text-align:right;
}
.real-rate-banner em{
  font-style:normal;
  color:var(--gold);
  font-weight:850;
}
:root[data-theme="dark"] .real-rate-banner{
  border-color:rgba(216,184,108,.28);
  background:rgba(8,20,35,.90);
  box-shadow:0 18px 48px -32px rgba(0,0,0,.82),inset 0 1px 0 rgba(255,255,255,.07);
}
.projection-lift-summary{
  margin:4px 0 14px;
  padding:13px 15px;
  border:1px solid rgba(199,161,90,.30);
  border-radius:10px;
  background:
    radial-gradient(circle at 0 0,rgba(199,161,90,.14),transparent 42%),
    linear-gradient(135deg,rgba(199,161,90,.075),var(--paper-2));
  box-shadow:0 16px 38px -32px rgba(7,24,39,.35),inset 0 1px 0 rgba(255,255,255,.45);
}
.projection-lift-kicker{
  margin-bottom:4px;
  color:var(--gold);
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.projection-lift-summary p{
  max-width:96ch;
  margin:0;
  color:var(--ink-2);
  font-size:13.5px;
  line-height:1.55;
}
.projection-lift-summary b{color:var(--ink);font-weight:820}
.projection-lift-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:8px;
  font-size:13px;
}
.projection-lift-actions .linklike{
  color:var(--accent);
  font-weight:750;
}
.projection-formula-card{
  margin:12px 0 18px;
  padding:14px;
  border:1px solid rgba(199,161,90,.32);
  border-radius:12px;
  background:
    radial-gradient(520px 170px at 8% 0%,rgba(199,161,90,.13),transparent 62%),
    linear-gradient(135deg,rgba(255,255,255,.78),rgba(248,246,240,.92));
  box-shadow:0 18px 44px -36px rgba(7,24,39,.42),inset 0 1px 0 rgba(255,255,255,.60);
}
.formula-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.formula-topline .linklike{
  flex:none;
  color:var(--accent);
  font-size:12.5px;
  font-weight:780;
}
.formula-title{
  color:var(--ink);
  font-family:var(--serif);
  font-size:21px;
  font-weight:680;
  line-height:1.15;
}
.formula-equation{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  padding:10px 12px;
  border:1px solid rgba(7,24,39,.10);
  border-radius:10px;
  background:rgba(255,255,255,.58);
  color:var(--ink);
  font-family:var(--serif);
  font-size:19px;
  font-weight:680;
  line-height:1.25;
}
.formula-equation .formula-result{
  color:var(--gold);
  font-size:22px;
}
.formula-op{
  color:var(--ink-3);
  font-family:var(--sans);
  font-size:15px;
  font-weight:850;
}
.formula-op.minus{color:var(--danger)}
.formula-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.formula-box{
  min-height:116px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:rgba(255,255,255,.54);
}
.formula-box.result{
  border-color:rgba(199,161,90,.38);
  background:rgba(199,161,90,.10);
}
.formula-box.debt{
  border-color:rgba(183,62,74,.18);
  background:rgba(183,62,74,.055);
}
.formula-box span{
  display:block;
  color:var(--ink-3);
  font-size:10px;
  font-weight:820;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.formula-box b{
  display:block;
  margin-top:6px;
  color:var(--ink);
  font-size:16px;
  line-height:1.1;
}
.formula-box.debt b{color:var(--danger)}
.formula-box small{
  display:block;
  margin-top:7px;
  color:var(--ink-2);
  font-size:11.4px;
  line-height:1.35;
}
.overview-path-card{
  margin:18px 0;
}
:root[data-theme="dark"] .projection-lift-summary{
  border-color:rgba(216,184,108,.26);
  background:
    radial-gradient(circle at 0 0,rgba(216,184,108,.15),transparent 44%),
    linear-gradient(135deg,rgba(248,246,239,.06),rgba(248,246,239,.025));
  box-shadow:0 18px 46px -34px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.08);
}
:root[data-theme="dark"] .projection-lift-actions .linklike{color:#F0D48A}
:root[data-theme="dark"] .projection-formula-card{
  border-color:rgba(216,184,108,.27);
  background:
    radial-gradient(520px 170px at 8% 0%,rgba(216,184,108,.14),transparent 62%),
    linear-gradient(135deg,rgba(248,246,239,.065),rgba(248,246,239,.025));
  box-shadow:0 18px 46px -34px rgba(0,0,0,.84),inset 0 1px 0 rgba(255,255,255,.075);
}
:root[data-theme="dark"] .formula-equation,
:root[data-theme="dark"] .formula-box{
  border-color:rgba(248,246,239,.12);
  background:rgba(248,246,239,.045);
}
:root[data-theme="dark"] .formula-box.result{background:rgba(216,184,108,.085);border-color:rgba(216,184,108,.24)}
:root[data-theme="dark"] .formula-box.debt{background:rgba(255,136,136,.07);border-color:rgba(255,136,136,.18)}
@media(max-width:900px){
  .chart-card{padding:20px 16px 16px}
  .chart-head{display:grid;gap:10px}
  .chart-head .add-row{justify-self:start}
  .formula-topline{display:grid;gap:8px}
  .formula-topline .linklike{justify-self:start}
  .formula-title{font-size:18px}
  .formula-equation{font-size:16px;gap:6px}
  .formula-equation .formula-result{font-size:18px}
  .formula-grid{grid-template-columns:1fr}
  .formula-box{min-height:0}
  #ov-proj,#pj-chart{
    overflow:visible;
    padding-bottom:0;
  }
  #ov-proj svg.chart,#pj-chart svg.chart{
    min-width:0;
  }
  .real-rate-banner{
    top:62px;
    display:grid;
    gap:5px;
    margin:0 0 14px;
  }
  .real-rate-banner b{white-space:normal}
  .real-rate-banner span{text-align:left}
  .projection-lift-summary{padding:12px 13px}
  .projection-lift-summary p{font-size:13px;line-height:1.55}
  .projection-lift-actions{gap:6px 12px}
}

/* ---------- Mobile nav ---------- */
.mobnav{display:none}
.topbar{display:none}

@media(max-width:880px){
  .app{grid-template-columns:1fr}
  .sidebar{display:none}
  .topbar{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:40;
    background:var(--glass);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:13px 18px}
  .wrap{padding:0 18px}
  .page-title{font-size:30px} .hero-num{font-size:48px} .page-head{padding:24px 0 6px}
  .g2,.g3,.g4{grid-template-columns:1fr}
  .g4.keep,.g2.keep{grid-template-columns:1fr 1fr}
  .main{padding-bottom:78px}
  .mobnav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:var(--glass);
    backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 4px 8px;justify-content:space-around}
  .mtab{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--ink-3);font-size:10px;font-weight:600;padding:6px 8px;border-radius:10px;flex:1}
.mtab.active{color:var(--accent)}
  .mtab .ni{width:21px;height:21px;opacity:1}
  .erow{grid-template-columns:1fr 116px 24px}
  .chart-head{display:block}
  .chart-head .add-row{margin-top:8px}
  .nw-hero{display:grid;gap:20px}
  .nw-hero-viz{width:100%}
  .nw-pie-card{grid-template-columns:140px 1fr}
  .nw-pie{width:140px;height:140px}
}

/* ---------- Onboarding ---------- */
.scrim{position:fixed;inset:0;background:rgba(26,24,18,.45);backdrop-filter:blur(4px);z-index:60;
  display:grid;place-items:center;padding:20px;opacity:0;animation:fade .25s forwards}
@keyframes fade{to{opacity:1}}
.modal{background:var(--paper);border-radius:var(--r-lg);max-width:480px;width:100%;box-shadow:var(--shadow-lg);
  overflow:hidden;animation:pop .3s cubic-bezier(.2,.8,.2,1);
  display:flex;flex-direction:column;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px)}
@keyframes pop{from{transform:translateY(14px) scale(.98);opacity:.6}to{transform:none;opacity:1}}
.modal-head{padding:30px 30px 0;flex:none}
.modal-body{padding:18px 30px 8px;display:flex;flex-direction:column;gap:16px;overflow-y:auto;flex:1 1 auto}
.modal-foot{padding:18px 30px 26px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;flex-wrap:wrap}
.ob-skip{font-size:12.5px;color:var(--ink-3)}
.ob-group{font-family:var(--serif);font-size:14.5px;font-weight:600;color:var(--ink);letter-spacing:.01em;
  margin:10px 0 -6px;padding-top:14px;border-top:1px solid var(--line)}
.ob-group:first-child{border-top:none;padding-top:0;margin-top:0}
.ob-note{font-size:12px;color:var(--ink-3);margin:7px 0 0;line-height:1.55}
.ob-note a{color:var(--accent);font-weight:600;text-decoration:underline}
.ob-real-rate-note{
  display:grid;
  gap:4px;
  margin:0 0 14px;
  padding:12px 13px;
  border:1px solid rgba(199,161,90,.34);
  border-radius:10px;
  background:linear-gradient(135deg,rgba(199,161,90,.10),rgba(255,255,255,.58));
}
.ob-real-rate-note b{
  color:var(--ink);
  font-size:13px;
  font-weight:850;
}
.ob-real-rate-note span{
  color:var(--ink-2);
  font-size:12.6px;
  line-height:1.45;
}
:root[data-theme="dark"] .ob-real-rate-note{
  border-color:rgba(216,184,108,.28);
  background:linear-gradient(135deg,rgba(216,184,108,.13),rgba(248,246,239,.035));
}
.ob-debt-terms{display:flex;gap:10px;margin-top:8px}
.ob-mini{flex:1 1 0;min-width:0}
.ob-mini > span{display:block;font-size:11px;color:var(--ink-3);margin-bottom:4px}
.ob-mini .num-suffix{width:100%}
/* income step live readout panel */
.ob-readout{background:var(--paper-3);border:1px solid var(--line);border-radius:14px;padding:4px 16px;margin-top:6px}
.ob-readout-empty{padding:15px 16px;color:var(--ink-3);font-size:13px;line-height:1.5}
.obr-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.obr-l{font-size:13px;color:var(--ink-2)}
.obr-v{font-family:var(--serif);font-size:18px;font-weight:600;color:var(--ink);text-align:right;line-height:1.2;font-variant-numeric:tabular-nums}
.obr-v small{display:block;font-family:inherit;font-size:11px;font-weight:500;color:var(--ink-3);letter-spacing:0}
.obr-foot{font-size:11px;color:var(--ink-3);padding:9px 0 4px;line-height:1.45}
.ob-assump{padding:12px 0;border-top:1px solid var(--line)}
.ob-assump:first-child{border-top:none;padding-top:2px}
.ob-assump .ob-note{margin:8px 0 0}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:6px}
.field input{width:100%;padding:12px 14px;border:1px solid var(--line-2);border-radius:11px;font-size:16px;background:#fff}
.field input:focus{outline:none;border-color:var(--glow);box-shadow:0 0 0 3px var(--glow-soft)}
.select-wrap{position:relative}
.select-wrap select{width:100%;min-height:44px;padding:11px 38px 11px 13px;border:1px solid var(--line-2);border-radius:8px;background:var(--paper-2);color:var(--ink);font:inherit;font-size:15px;appearance:none}
.select-wrap::after{content:"";position:absolute;right:14px;top:50%;width:8px;height:8px;border-right:1.6px solid var(--ink-3);border-bottom:1.6px solid var(--ink-3);transform:translateY(-65%) rotate(45deg);pointer-events:none}
.select-wrap select:focus{outline:none;border-color:var(--glow);box-shadow:0 0 0 3px var(--glow-soft)}
.dotrow{display:flex;gap:6px}
.pdot{width:7px;height:7px;border-radius:50%;background:var(--line-2)}
.pdot.on{background:var(--active-bg);width:20px;border-radius:4px;transition:.3s}
.fadein{animation:fin .4s ease both}
@keyframes fin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- info buttons + explanation modal ---------- */
.tile{position:relative}
.info{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;
  border:1.3px solid var(--line-2);color:var(--ink-3);font-size:10.5px;font-weight:700;line-height:1;
  vertical-align:middle;margin-left:5px;transition:.12s;flex:none}
.info:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.tile > .info{position:absolute;top:13px;right:13px;margin:0}
.info-light{position:absolute;top:18px;right:18px;border-color:rgba(246,243,236,.35);color:rgba(246,243,236,.75);
  width:22px;height:22px;font-size:12px;cursor:pointer}
.info-light:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.12)}
.ex-modal{max-width:520px}
.ex-body{max-height:62vh;overflow:auto;gap:0}
.ex-note{font-size:13.5px;color:var(--ink-2);line-height:1.6;margin:2px 0 14px}
.ex-li{display:flex;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.ex-li span{color:var(--ink-2)} .ex-li b{font-weight:600;white-space:nowrap}
.ex-eq{margin-top:14px;padding:13px 15px;background:var(--green-soft);border-radius:11px;font-size:14px;text-align:center;color:#1d4a37}
.ex-block{margin:14px 0;padding:14px 15px;background:var(--paper-3);border:1px solid var(--line);border-radius:12px}
.ex-h{font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px}
.ex-block .ex-note{margin:8px 0 0;font-size:12.5px}

/* ---------- watermark / footer / share ---------- */
.site-foot{max-width:var(--maxw);margin:34px auto 0;padding:22px 32px;border-top:1px solid var(--line);
  color:var(--ink-3);font-size:12.5px;text-align:left}
.site-foot b{color:var(--ink-2);font-weight:600}
.foot-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:14px;
}
.foot-person{
  display:flex;
  align-items:center;
  color:var(--ink-2);
  min-width:0;
}
.foot-person div{display:flex;flex-direction:column;align-items:flex-start;line-height:1.25}
.foot-person b{color:var(--ink);font-weight:760}
.foot-person span{font-size:11.5px;color:var(--ink-3)}
.foot-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 14px;
  padding-top:2px;
}
.foot-links > *{display:inline-flex;align-items:center;min-height:28px}
.foot-links > * + *::before{
  content:"";
  width:3px;
  height:3px;
  border-radius:50%;
  background:var(--line-2);
  margin-right:14px;
}
.foot-disclaimer{
  margin-top:6px;
  text-align:center;
  font-size:11.5px;
  line-height:1.4;
}
.linklike{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.linklike:hover{color:var(--accent-2)}
@media(max-width:880px){
  .site-foot{margin-top:24px;padding:20px 18px}
  .foot-top{display:grid;gap:10px;justify-items:start}
  .foot-links{justify-content:flex-start}
  .foot-links > * + *::before{display:none}
  .info-light{top:14px;right:14px}
}

/* ---------- advisor CTA ---------- */
.cta{display:flex;gap:20px;align-items:center;padding:24px 26px;
  background:linear-gradient(135deg,#06111F,#0B2A4A 62%,#183A5D);color:#F8F6EF;border:none;box-shadow:var(--shadow-lg)}
.cta-mark{width:56px;height:56px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:rgba(246,243,236,.14);border:1.5px solid rgba(246,243,236,.3);
  font-family:var(--serif);font-size:20px;font-weight:600;color:#fff;overflow:hidden}
.cta-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;
  transform:scale(1.045) translateY(-2.5%);transform-origin:center center}
.cta-h{font-family:var(--serif);font-size:20px;font-weight:560}
.cta-p{color:rgba(246,243,236,.82);font-size:13.5px;line-height:1.55;margin:6px 0 14px;max-width:54ch}
.cta .btn-pri{background:#F6F3EC;color:#163A6B;box-shadow:none}
.cta .btn-pri:hover{background:#fff;transform:translateY(-1px)}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cta .btn-ghost{background:transparent;color:#F6F3EC;border:1.5px solid rgba(246,243,236,.45)}
.cta .btn-ghost:hover{background:rgba(246,243,236,.12);border-color:rgba(246,243,236,.7)}
.cta-email{margin-top:12px;font-size:12.5px;color:rgba(246,243,236,.72)}
.cta-email a{color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:2px}
@media(max-width:880px){ .cta{flex-direction:column;align-items:flex-start;text-align:left;padding:22px} }

/* ---------- the potential of each dollar (motivation) ---------- */
.dollars{
  margin-top:18px;padding:24px 26px;
  background:radial-gradient(130% 150% at 0% 0%, var(--gold-soft) 0%, transparent 58%), var(--paper-2);
  border:1px solid var(--line);
}
.dollars-kicker{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-weight:800;margin-bottom:9px}
.dollars-head{font-family:var(--serif);font-size:21px;line-height:1.32;color:var(--ink);max-width:60ch;font-weight:560}
.dollars-head b{color:var(--green);font-weight:700}
.dollars-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:18px}
.dollars-grid > div{border:1px solid var(--line);border-radius:11px;background:var(--paper);padding:15px 17px}
.dollars-grid span{display:block;font-size:12.5px;color:var(--ink-2)}
.dollars-grid b{display:block;font-family:var(--serif);font-size:27px;line-height:1.05;color:var(--green);margin:5px 0 4px}
.dollars-grid small{display:block;font-size:11.5px;color:var(--ink-3);line-height:1.45}
.dollars-link{display:inline-block;margin-top:16px;font-weight:600}
.budget-potential{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  padding:14px 18px;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:10px;
  background:var(--green-soft);font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.budget-potential b{color:var(--ink)}
.budget-potential .linklike{font-weight:600;white-space:nowrap}

/* reactive monthly-surplus message */
.surplus-msg{margin-top:14px;padding:12px 16px;border-radius:10px;font-size:13.5px;line-height:1.5;color:var(--ink-2);border:1px solid var(--line);border-left:3px solid var(--line-2)}
.surplus-msg.pos{background:var(--green-soft);border-left-color:var(--green)}
.surplus-msg.neg{background:var(--danger-soft);border-left-color:var(--danger)}
.surplus-msg.even{background:var(--paper-3);border-left-color:var(--gold)}

/* employer-match nudge — "don't leave free money on the table" */
.match-nudge{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  padding:15px 18px;border-radius:11px;font-size:13.5px;line-height:1.55;color:var(--ink-2)}
.match-nudge b{color:var(--ink)}
.match-nudge.gap{border:1px solid var(--gold);border-left:3px solid var(--gold);
  background:radial-gradient(130% 160% at 0% 0%, var(--gold-soft) 0%, transparent 62%), var(--paper-2)}
.match-nudge.ok{border:1px solid var(--line);border-left:3px solid var(--green);background:var(--green-soft)}
.match-nudge .linklike{font-weight:600;white-space:nowrap}

/* emergency-fund readout */
.emfund{margin-top:16px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--paper-2)}
.emfund-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.emfund-lab{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);font-weight:700}
.emfund-num{display:block;font-family:var(--serif);font-size:24px;color:var(--ink);margin-top:3px}
.emfund-num small{font-family:var(--sans);font-size:12.5px;color:var(--ink-3);font-weight:400}
.emfund-pill{font-size:11.5px;font-weight:700;padding:5px 11px;border-radius:999px;white-space:nowrap}
.emfund.strong .emfund-pill{background:var(--green-soft);color:var(--green)}
.emfund.building .emfund-pill{background:var(--gold-soft);color:var(--gold)}
.emfund.thin .emfund-pill{background:var(--danger-soft);color:var(--danger)}
.emfund-bar{margin-top:14px}
.emfund.strong .emfund-bar span{background:var(--green)}
.emfund.building .emfund-bar span{background:var(--gold)}
.emfund.thin .emfund-bar span{background:var(--danger)}
.emfund-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--ink-3);margin-top:5px}
.emfund-note{font-size:12.5px;color:var(--ink-2);margin-top:10px;line-height:1.5}

/* high-interest debt alert */
.debt-alert{margin-top:14px;padding:13px 16px;border:1px solid var(--danger-soft);border-left:3px solid var(--danger);
  border-radius:9px;background:var(--danger-soft);font-size:12.5px;line-height:1.55;color:var(--ink-2)}
.debt-alert b{color:var(--ink)}

/* overview priority next-move callout */
.priority-alert{
  margin-top:14px;
  padding:14px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  border:1px solid rgba(216,184,108,.34);
  border-radius:12px;
  background:
    linear-gradient(135deg,rgba(216,184,108,.12),rgba(118,169,212,.08)),
    var(--paper);
  box-shadow:0 14px 34px rgba(6,17,31,.08);
}
.priority-alert.risk{
  border-color:rgba(195,78,93,.34);
  background:linear-gradient(135deg,rgba(195,78,93,.10),rgba(216,184,108,.08)),var(--paper);
}
.priority-alert-mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:var(--navy);
  background:linear-gradient(135deg,var(--gold),#F4E5B4);
  font-family:var(--serif);
  font-size:20px;
  font-weight:760;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 22px rgba(6,17,31,.12);
}
.priority-alert-copy{display:grid;gap:4px;min-width:0}
.priority-alert-kicker{
  color:var(--gold);
  font-size:10.5px;
  font-weight:820;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.priority-alert-copy span{color:var(--ink-2);font-size:12.8px;line-height:1.45}
.priority-alert-copy span b{color:var(--ink)}
.priority-alert .btn{white-space:nowrap}

/* projection: nest-egg-to-monthly-income translation */
.retire-income{margin-top:16px;padding:15px 18px;border:1px solid var(--line);border-left:3px solid var(--green);
  border-radius:11px;background:var(--green-soft);display:flex;flex-direction:column;gap:6px}
.retire-income .ri-tag{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--green);font-weight:800}
.retire-income .ri-body{font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.retire-income .ri-body b{color:var(--ink)}
.retire-income .ri-num{color:var(--green);font-family:var(--serif);font-size:17px}

/* ---------- daily quote ---------- */
.quote-card{margin-top:18px;padding:22px 26px 22px 30px;background:var(--paper-2);border:1px solid var(--line);
  border-left:3px solid var(--green);border-radius:var(--r);position:relative;overflow:hidden}
.quote-card .quote-mark{position:absolute;left:16px;top:30px;font-family:var(--sans);font-size:58px;line-height:0;color:var(--green);opacity:.14;font-weight:760}
.quote-card blockquote{font-family:var(--sans);font-size:18px;font-style:normal;font-weight:620;line-height:1.45;color:var(--ink);padding-left:22px}
.quote-card cite{display:block;margin-top:11px;padding-left:22px;font-size:12.5px;font-style:normal;color:var(--ink-3);font-weight:600;letter-spacing:.03em;text-transform:uppercase}
@media(max-width:880px){ .quote-card{padding:18px 18px 18px 24px} .quote-card blockquote{font-size:16.5px;padding-left:16px} .quote-card cite{padding-left:16px} .quote-card .quote-mark{font-size:48px;left:10px} }

/* ============================================================
   Siegel Financial - coin logo, intro, quote, save status, lock
   ============================================================ */
.brand{cursor:pointer}
/* flippable logo badge — your full logo on the front, your photo on the back */
.logo-static{flex:none}
.logo-face{position:absolute;inset:0;border-radius:12px;backface-visibility:hidden;-webkit-backface-visibility:hidden;
  display:grid;place-items:center;overflow:hidden;background:#06111F;border:1px solid rgba(199,161,90,.34);box-shadow:var(--shadow)}
.logo-front img{width:100%;height:100%;object-fit:contain;display:block}
.logo-head{width:132px;height:76px}
.logo-head .logo-face{border-radius:13px}
.logo-xs{width:52px;height:52px}

/* segmented control */
.segmented{display:flex;gap:4px;background:var(--paper-3);border:1px solid var(--line);border-radius:11px;padding:3px}
.segmented button{flex:1;padding:8px 4px;border-radius:8px;font-size:11.5px;font-weight:600;color:var(--ink-2);transition:.12s;line-height:1.1}
.segmented button.on{background:var(--active-bg);color:var(--active-fg);box-shadow:var(--shadow)}
.segmented button:hover:not(.on){background:var(--accent-soft);color:var(--ink)}

/* typeable dial value */
.dval{display:inline-flex;align-items:baseline;gap:1px}
.dnum{font-family:var(--serif);font-size:19px;color:var(--ink);font-weight:560;width:52px;text-align:right;border:none;background:none;padding:2px 3px;border-radius:7px;font-variant-numeric:tabular-nums;cursor:text}
.dnum:hover{background:var(--paper-3)}
.dnum:focus{outline:none;background:var(--accent-soft);box-shadow:0 0 0 2px var(--glow-soft)}
.dsuf{font-family:var(--serif);font-size:19px;color:var(--ink-2);font-weight:560}

/* static brand emblem for intro + lock */
.brand-emblem{flex:none;display:grid;place-items:center;overflow:hidden;background:#06111F;border:1px solid rgba(216,184,108,.34);
  border-radius:18px;box-shadow:0 22px 60px -22px rgba(0,0,0,.68),0 0 0 1px rgba(255,255,255,.05) inset}
.brand-emblem img{width:100%;height:100%;object-fit:contain;display:block;position:relative;z-index:1}
.med-lock{width:96px;height:96px;margin-bottom:4px}

/* opening intro */
html.intro-running-root,html.intro-running-root body{overflow:hidden}
.intro{position:fixed;inset:0;z-index:200;display:grid;place-items:center;overflow:hidden;
  transition:transform .9s cubic-bezier(.7,0,.2,1), opacity .55s ease .18s}
.intro-brand{
  background:
    radial-gradient(circle at 50% 43%,rgba(216,184,108,.16),transparent 34%),
    radial-gradient(circle at 50% 64%,rgba(49,92,140,.22),transparent 44%),
    linear-gradient(150deg,#06111F 0%,#0A1B2E 48%,#030A13 100%),
    #06111F;
}
.intro-brand::before,
.intro-brand::after{
  content:"";
  position:absolute;
  pointer-events:none;
}
.intro-brand::before{
  inset:-18%;
  background:
    radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.12) 0%,rgba(255,255,255,.045) 28%,transparent 62%);
  opacity:0;
  transform:scale(.96);
  animation:introBackdrop 3.1s ease forwards;
}
.intro-brand::after{
  inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 24%,transparent 72%,rgba(0,0,0,.24)),
    radial-gradient(ellipse at 50% 100%,rgba(0,0,0,.34),transparent 48%);
  opacity:1;
}
.intro-out{opacity:0;pointer-events:none}
.intro-lift{transform:translateY(-102%);opacity:0;pointer-events:none}
.intro-lift .intro-med{transform:translateY(-18vh) scale(1.06);opacity:0;transition:transform .8s cubic-bezier(.55,0,.2,1), opacity .5s ease}
.intro-lift .intro-tag{opacity:0;transition:opacity .3s ease}
.intro-stage{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;z-index:1;padding:28px;text-align:center}
.intro-med{
  width:min(420px,84vw);
  height:min(239px,48vw);
  position:relative;
  overflow:hidden;
  z-index:1;
  border-radius:20px;
  border-color:rgba(255,255,255,.28);
  background:#06111F;
  box-shadow:
    0 34px 92px -38px rgba(0,0,0,.96),
    0 0 80px -30px rgba(216,184,108,.62),
    0 18px 34px -28px rgba(216,184,108,.56) inset,
    0 0 0 1px rgba(216,184,108,.16);
  opacity:0;
  transform:translateY(10px) scale(.96);
  animation:introLogoIn 1s cubic-bezier(.16,.84,.24,1) .1s forwards;
}
.intro-med::before{
  content:"";
  position:absolute;
  inset:-54px;
  z-index:-1;
  border-radius:50%;
  background:radial-gradient(circle at 50% 46%,rgba(216,184,108,.24),rgba(49,92,140,.10) 44%,transparent 70%);
  opacity:0;
  transform:scale(.82);
  animation:introGlow 1.85s ease .1s forwards;
}
.intro-tag{
  position:relative;
  z-index:1;
  font-size:12.5px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(248,246,239,.78);
  opacity:0;
  animation:fadeup .65s ease 1.25s forwards;
}
@keyframes introBackdrop{0%{opacity:0;transform:scale(.96)}35%,84%{opacity:.7}100%{opacity:.34;transform:scale(1)}}
@keyframes introLogoIn{to{opacity:1;transform:none}}
@keyframes introGlow{0%{opacity:0;transform:scale(.82)}50%{opacity:1}100%{opacity:.92;transform:scale(1)}}
@keyframes fadeup{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(max-width:520px){
  .intro-stage{padding:20px;gap:18px}
  .intro-med{width:310px;height:176px;border-radius:18px}
  .intro-tag{font-size:11px;letter-spacing:.18em}
}
@media(prefers-reduced-motion:reduce){
  .intro-brand::before,.intro-med,.intro-med::before,.intro-tag{animation:none!important;opacity:1;transform:none}
}

/* top-right daily quote */
.ph-row{display:flex;justify-content:space-between;align-items:flex-start;gap:32px}
.quote-mini{max-width:310px;text-align:right;position:relative;padding-top:6px}
.quote-mini .qm-mark{position:absolute;right:-2px;top:-16px;font-family:var(--sans);font-size:42px;color:var(--green);opacity:.14;line-height:0;font-weight:760}
.quote-mini p{font-family:var(--sans);font-style:normal;font-weight:560;font-size:14px;line-height:1.42;color:var(--ink-2)}
.quote-mini cite{display:block;margin-top:7px;font-size:10.5px;font-style:normal;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
@media(max-width:880px){.ph-row{flex-direction:column;gap:14px}.quote-mini{max-width:none;text-align:left;border-left:3px solid var(--green);padding:2px 0 2px 14px}.quote-mini .qm-mark{display:none}}

/* save assurance */
.savestat{font-size:11.5px;color:var(--ink-3);margin-bottom:10px;line-height:1.4}
.savedot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;color:var(--green);background:var(--green-soft);transition:.2s;font-weight:700}
.savedot.warn{color:var(--danger);background:var(--danger-soft)}
.connection-banner{
  width:calc(100% - 64px);
  max-width:calc(var(--maxw) - 64px);
  margin:12px auto 0;
  padding:10px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid rgba(199,161,90,.28);
  border-left:3px solid var(--gold);
  border-radius:7px;
  background:rgba(255,249,232,.92);
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.45;
  box-shadow:0 10px 28px -25px rgba(6,17,31,.5);
}
.connection-banner[hidden]{display:none!important}
.connection-banner.error{border-left-color:var(--danger);background:var(--danger-soft)}
.connection-banner .linklike{flex:none;font-size:12.5px;font-weight:800}
:root[data-theme="dark"] .connection-banner{
  background:rgba(31,39,47,.96);
  border-color:rgba(216,184,108,.25);
  border-left-color:var(--gold);
  color:var(--ink-2);
}
:root[data-theme="dark"] .connection-banner.error{border-left-color:var(--danger);background:rgba(255,144,154,.10)}
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);background:#06111F;color:#F8F6EF;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:600;box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;z-index:120;transition:.25s cubic-bezier(.2,.8,.2,1)}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:880px){.toast{bottom:80px}}
@media(max-width:880px){
  .connection-banner{
    width:calc(100% - 28px);
    margin:9px auto 0;
    padding:9px 11px;
    align-items:flex-start;
    font-size:12px;
  }
}

/* ---------- v503: premium net-worth readout + guided projection playback ---------- */
.networth-page .history-inline-inspector{
  position:relative;
  display:grid;
  grid-template-columns:minmax(390px,1.08fr) minmax(310px,.92fr);
  gap:0;
  padding:0;
  overflow:hidden;
  border-color:rgba(229,193,104,.30);
  background:
    radial-gradient(520px 180px at 0 0,rgba(229,193,104,.145),transparent 72%),
    radial-gradient(420px 170px at 100% 100%,rgba(103,174,221,.105),transparent 75%),
    linear-gradient(112deg,rgba(255,255,255,.06),rgba(104,169,214,.045));
  box-shadow:
    inset 3px 0 0 rgba(229,193,104,.86),
    inset 0 1px 0 rgba(255,255,255,.065),
    0 24px 56px -45px rgba(0,0,0,.94);
}
.networth-page .history-inline-inspector::after{
  content:"";
  position:absolute;
  inset:-60% auto -60% -24%;
  width:22%;
  pointer-events:none;
  opacity:0;
  transform:skewX(-18deg);
  background:linear-gradient(90deg,transparent,rgba(255,245,208,.075),transparent);
}
.networth-page .networth-history-primary.networth-premium-enter .history-inline-inspector::after{
  animation:netWorthHeaderGlint 1.45s cubic-bezier(.22,.72,.24,1) .18s both;
}
.history-current-anchor{
  display:block;
  min-width:0;
  padding:19px 23px 18px;
  border-right:1px solid rgba(255,255,255,.095);
}
.history-current-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.history-current-copy{display:grid;gap:4px;min-width:0}
.history-inline-inspector .history-current-copy b{
  color:#f2d47f;
  font-size:9.5px;
  letter-spacing:.145em;
}
.history-inline-inspector .history-current-copy small{
  color:rgba(247,244,236,.48);
  font-size:10.5px;
}
.history-inline-inspector .history-current-chip{
  min-height:27px;
  padding:5px 9px;
  border-color:rgba(229,193,104,.25);
  background:rgba(229,193,104,.055);
  color:#f1d887;
  font-size:8px;
}
.history-current-chip i{
  width:6px;
  height:6px;
}
.networth-premium-enter .history-current-chip i{animation:netWorthStatusPulse 1.15s ease .48s both}
.history-current-value{
  display:block;
  width:100%;
  margin-top:13px;
  color:#fffaf0;
  font-size:clamp(43px,4.7vw,62px);
  line-height:.94;
  text-align:left;
  text-shadow:0 14px 34px rgba(0,0,0,.22);
}
.networth-premium-enter .history-current-value{
  animation:netWorthValueSettle .8s cubic-bezier(.18,.78,.2,1) .05s both;
}
.history-current-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 18px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.085);
}
.history-inline-inspector .history-current-asof{
  color:rgba(247,244,236,.48);
  font-size:9.5px;
  font-weight:680;
  letter-spacing:.035em;
  line-height:1.3;
  text-transform:none;
  white-space:nowrap;
}
.history-inline-inspector .history-current-asof b{
  color:rgba(247,244,236,.78);
  font-family:var(--sans);
  font-size:inherit;
  font-weight:790;
}
.history-current-progress{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  text-align:left;
}
.history-inline-inspector .history-current-progress > span{
  display:grid;
  gap:1px;
  min-width:0;
  color:inherit;
  font-size:inherit;
  letter-spacing:0;
  line-height:normal;
  text-transform:none;
}
.history-current-progress > i{
  position:relative;
  flex:0 0 22px;
  width:22px;
  height:22px;
  border:1px solid rgba(109,211,160,.26);
  border-radius:50%;
  background:rgba(64,190,132,.08);
}
.history-current-progress > i::before{
  content:"";
  position:absolute;
  left:7px;
  top:8px;
  width:6px;
  height:4px;
  border-top:1.5px solid #7ed8ab;
  border-right:1.5px solid #7ed8ab;
  transform:rotate(-45deg);
  transform-origin:center;
}
.history-inline-inspector .history-current-progress b{
  overflow:hidden;
  color:#8de0b4;
  font-family:var(--sans);
  font-size:10.5px;
  font-weight:790;
  letter-spacing:0;
  line-height:1.25;
  text-overflow:ellipsis;
  text-transform:none;
  white-space:nowrap;
}
.history-inline-inspector .history-current-progress small{
  overflow:hidden;
  color:rgba(247,244,236,.43);
  font-size:8.7px;
  font-weight:660;
  letter-spacing:.02em;
  line-height:1.25;
  text-align:left;
  text-overflow:ellipsis;
  text-transform:none;
  white-space:nowrap;
}
.history-current-progress.negative > i{
  border-color:rgba(255,137,147,.27);
  background:rgba(255,112,125,.075);
}
.history-current-progress.negative > i::before{
  border-color:#ff9ba3;
  transform:rotate(135deg);
}
.history-inline-inspector .history-current-progress.negative b{color:#ffa1a8}
.history-current-progress.neutral > i{
  border-color:rgba(133,188,225,.25);
  background:rgba(106,171,216,.075);
}
.history-current-progress.neutral > i::before{
  left:7px;
  top:10px;
  width:7px;
  height:0;
  border-top:1.5px solid #91c8e9;
  border-right:0;
  transform:none;
}
.history-inline-inspector .history-current-progress.neutral b{color:#a6d1eb}
.history-context-deck{
  min-height:0;
  margin:0;
  padding:0;
  border-top:0;
}
.history-inspector-hint,.history-comparison-reveal{inset:18px 20px}
.history-inspector-hint{gap:13px}
.history-hint-mark{
  position:relative;
  flex-basis:35px;
  width:35px;
  height:35px;
  border-color:rgba(116,183,226,.28);
  background:rgba(116,183,226,.045);
}
.history-hint-mark > i{
  position:relative;
  display:block;
  width:15px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#7cbce2,#f0d27c);
  box-shadow:0 0 10px rgba(124,188,226,.20);
}
.history-hint-mark > i::before,
.history-hint-mark > i::after{
  content:"";
  position:absolute;
  top:50%;
  width:4px;
  height:4px;
  border:1.5px solid #d5eafa;
  border-radius:50%;
  background:#17334b;
  transform:translateY(-50%);
}
.history-hint-mark > i::before{left:-1px}
.history-hint-mark > i::after{right:-1px;border-color:#f0d27c}
.history-inline-inspector .history-inspector-hint b{font-size:12.5px}
.history-inline-inspector .history-inspector-hint small{max-width:31ch;font-size:10.5px}
.history-comparison-reveal{
  grid-template-columns:minmax(128px,.76fr) minmax(180px,1.24fr) 28px;
  gap:13px;
}
.history-inline-inspector.comparison-active{
  transform:none;
}

.projection-playback{
  pointer-events:none;
  opacity:0;
  transition:opacity .16s ease;
}
.projection-playback.active{opacity:1}
.projection-playback.finishing{opacity:0}
.projection-playback-guide{
  stroke:rgba(240,210,124,.43);
  stroke-width:1.2;
  stroke-dasharray:3 5;
}
.projection-playback-halo{
  fill:rgba(230,190,90,.11);
  stroke:rgba(241,214,137,.47);
  stroke-width:1.2;
}
.projection-playback-halo-outer{
  fill:rgba(230,190,90,.035);
  stroke:rgba(241,214,137,.18);
}
.projection-playback-dot{
  fill:#f2d47f;
  stroke:#fff9e8;
  stroke-width:2.2;
  filter:drop-shadow(0 0 6px rgba(239,205,112,.78));
}
.projection-playback-label{
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.36));
}
.projection-playback-label rect{
  fill:rgba(5,20,35,.965);
  stroke:rgba(240,210,124,.68);
  stroke-width:1;
}
.projection-playback-kicker{
  fill:rgba(247,244,236,.59);
  font-family:Inter,Arial,sans-serif;
  font-size:8px;
  font-weight:820;
  letter-spacing:.09em;
}
.projection-playback-value{
  fill:#f3d77f;
  font-family:Georgia,"Times New Roman",serif;
  font-size:15px;
  font-weight:720;
}
.projection-chart-shell .projection-annotations{
  transition:opacity .18s ease;
}
.projection-chart-shell.is-playing-projection .projection-annotations{opacity:.46}
.projection-chart-shell.is-playing-projection .projection-line-main{
  filter:drop-shadow(0 0 6px rgba(230,190,90,.36));
}
.projection-page-wrap .projection-age-spotlight{
  transition:background .20s ease,box-shadow .20s ease,border-color .20s ease;
}
.projection-page-wrap .projection-age-spotlight.projection-is-playing{
  border-top-color:rgba(240,210,124,.42);
  background:
    radial-gradient(620px 210px at 0 0,rgba(216,184,108,.15),transparent 72%),
    linear-gradient(100deg,rgba(255,255,255,.042),rgba(118,169,212,.06));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 -18px 40px -36px rgba(230,190,90,.56);
}
.projection-page-wrap .projection-age-spotlight.projection-is-playing .projection-age-kicker::after{
  content:" · playing";
  color:rgba(248,246,239,.50);
  letter-spacing:.08em;
}

@keyframes netWorthHeaderGlint{
  0%{left:-24%;opacity:0}
  18%{opacity:1}
  76%{opacity:.82}
  100%{left:112%;opacity:0}
}
@keyframes netWorthValueSettle{
  from{opacity:.7;transform:translateY(5px);filter:blur(.8px)}
  to{opacity:1;transform:none;filter:none}
}
@keyframes netWorthStatusPulse{
  0%{box-shadow:0 0 0 0 rgba(229,193,104,.40),0 0 10px rgba(229,193,104,.30)}
  68%{box-shadow:0 0 0 8px rgba(229,193,104,0),0 0 16px rgba(229,193,104,.55)}
  100%{box-shadow:0 0 0 4px rgba(229,193,104,.11),0 0 14px rgba(229,193,104,.44)}
}

@media(max-width:820px){
  .networth-page .history-inline-inspector{grid-template-columns:minmax(350px,1.06fr) minmax(270px,.94fr)}
  .history-current-anchor{padding-inline:19px}
  .history-inspector-hint,.history-comparison-reveal{inset-inline:16px}
}
@media(max-width:700px){
  .networth-page .history-inline-inspector{display:block}
  .history-current-anchor{
    padding:16px 16px 14px;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.09);
  }
  .history-current-value{
    margin-top:12px;
    font-size:clamp(39px,11vw,50px);
    text-align:left;
  }
  .history-current-meta{margin-top:12px;padding-top:10px}
  .history-context-deck{min-height:83px}
  .history-inspector-hint,.history-comparison-reveal{inset:13px 15px}
  .history-comparison-reveal{
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 27px;
    gap:9px;
    padding:0;
  }
  .history-past-snapshot{justify-items:start;padding-left:10px;text-align:left}
  .history-past-snapshot::before{display:block}
  .history-growth-story{justify-items:start;padding:0 0 0 10px;border-left:1px solid rgba(255,255,255,.1);text-align:left}
  .history-growth-sentence{justify-content:flex-start}
  .history-comparison-close{position:static}
  .projection-playback-label{filter:drop-shadow(0 8px 13px rgba(0,0,0,.34))}
  .projection-playback-kicker{font-size:7.5px}
  .projection-playback-value{font-size:14px}
}
@media(max-width:430px){
  .networth-home-hero{padding:10px!important}
  .networth-history-primary{padding:10px 9px 12px}
  .networth-page .history-inline-inspector{border-radius:7px}
  .history-current-anchor{padding:14px 13px 13px}
  .history-current-topline{gap:10px}
  .history-inline-inspector .history-current-copy small{font-size:9.5px}
  .history-current-value{font-size:clamp(36px,12.2vw,46px)}
  .history-current-meta{align-items:flex-end;gap:8px}
  .history-inline-inspector .history-current-asof{font-size:8.7px}
  .history-current-progress{gap:6px}
  .history-current-progress > i{flex-basis:20px;width:20px;height:20px}
  .history-current-progress > i::before{left:6px;top:7px}
  .history-inline-inspector .history-current-progress b{font-size:9.6px}
  .history-inline-inspector .history-current-progress small{font-size:8px}
  .history-context-deck{min-height:78px}
  .history-inspector-hint,.history-comparison-reveal{inset:12px}
  .history-hint-mark{flex-basis:31px;width:31px;height:31px}
  .history-inline-inspector .history-inspector-hint b{font-size:11.5px}
  .history-inline-inspector .history-inspector-hint small{font-size:9.5px}
  .history-comparison-reveal{
    grid-template-columns:minmax(0,1fr) 25px;
    align-content:center;
  }
  .history-past-snapshot{padding-left:9px}
  .history-growth-story{grid-column:1;padding:2px 0 0 9px;border-left:0}
  .history-comparison-close{grid-column:2;grid-row:1 / span 2}
  .history-inline-inspector .history-past-snapshot>b{font-size:21px}
  .history-growth-sentence{font-size:10.5px}
  .history-inline-inspector .history-growth-sentence>b{font-size:13px}
}
@media(max-width:350px){
  .history-current-meta{display:grid;grid-template-columns:1fr}
  .history-current-progress{justify-content:flex-start}
  .history-inline-inspector .history-current-progress b,
  .history-inline-inspector .history-current-progress small{white-space:normal}
  .history-context-deck{min-height:86px}
}
@media(prefers-reduced-motion:reduce){
  .networth-page .history-inline-inspector::after{display:none!important}
  .networth-premium-enter .history-current-value,
  .networth-premium-enter .history-current-chip i{animation:none!important}
  .projection-playback{display:none!important}
  .projection-chart-shell .projection-annotations{opacity:1!important;transition:none!important}
  .projection-page-wrap .projection-age-spotlight{transition:none!important}
}

/* settings rows */
.setrow{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}
.setrow:last-child{border-bottom:none}
.setrow > div{min-width:0}
.setrow .btn{white-space:nowrap}
.account-trust-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
  padding:14px 0 2px;
}
.account-trust-grid > div{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-3);
  padding:12px;
  min-height:96px;
}
.account-trust-grid b{
  display:block;
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--green);
  margin-bottom:6px;
}
.account-trust-grid span{
  display:block;
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.45;
}

/* passcode lock */
.lock{position:fixed;inset:0;z-index:210;background:var(--paper);display:grid;place-items:center;padding:24px}
.lock-out{opacity:0;transition:opacity .3s;pointer-events:none}
.lock-box{display:flex;flex-direction:column;align-items:center;gap:20px;width:100%;max-width:300px}
.lock-box.shake{animation:shake .4s}
.lock-t{font-size:15px;color:var(--ink-2);font-weight:600}
.pin-dots{display:flex;gap:15px}
.pin-dots span{width:13px;height:13px;border-radius:50%;border:1.6px solid var(--ink-3);transition:.15s}
.pin-dots span.on{background:var(--green);border-color:var(--green)}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:100%;max-width:248px}
.keypad button{height:64px;border-radius:50%;background:var(--paper-2);border:1px solid var(--line);font-family:var(--serif);font-size:25px;color:var(--ink);transition:.1s}
.keypad button:active{background:var(--green-soft);transform:scale(.95)}
.keypad .bio{border:none;background:none}.keypad .bio .ni{width:27px;height:27px;color:var(--green)}
@keyframes shake{0%,100%{transform:none}20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}

/* debt terms */
.debt-item{padding:10px 0;border-bottom:1px solid var(--line)}
.debt-item:last-child{border-bottom:none}
.debt-terms{display:flex;gap:12px;margin-top:6px;padding-left:2px}
.dt-field{flex:1}
.dt-field label{display:block;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);font-weight:600;margin-bottom:4px}
.num-suffix{display:flex;align-items:center;border:1px solid var(--line-2);border-radius:9px;background:var(--paper-3);padding:0 10px 0 0;transition:.12s}
.num-suffix:focus-within{border-color:var(--glow);background:#fff;box-shadow:0 0 0 3px var(--glow-soft)}
.num-suffix input{width:100%;border:none;background:none;padding:9px 4px 9px 11px;font-size:14px;font-variant-numeric:tabular-nums;text-align:right;outline:none}
.num-suffix span{color:var(--ink-3);font-size:13px;font-weight:600}

/* onboarding account error */
.ob-err{color:var(--danger);font-size:12.5px;font-weight:600;padding:0 30px 16px;text-align:right}
.modal-body input.shake{animation:shake .4s;border-color:var(--danger)!important}

/* ============================================================
   Consumer polish pass
   ============================================================ */
:root{
  --paper:#F8F6F0;
  --paper-2:#FFFFFF;
  --paper-3:#EEF2F6;
  --ink:#071827;
  --ink-2:#405064;
  --ink-3:#7B8492;
  --line:#DEE5EA;
  --line-2:#C8D2DB;
  --green:#C7A15A;
  --green-2:#DDBB72;
  --green-soft:#F7EFD9;
  --active-bg:#071B31;
  --active-fg:#FFFFFF;
  --accent:#0B2A4A;
  --accent-2:#164872;
  --accent-soft:#E7EEF6;
  --glow:#0B2A4A;
  --glow-rgb:11,42,74;
  --glow-soft:rgba(11,42,74,.14);
  --gold:#C7A15A;
  --gold-soft:#F7EFD9;
  --teal:#2F6F92;
  --teal-soft:#E3EEF4;
  --danger:#B73E4A;
  --danger-soft:#F7E2E4;
  --r:8px;
  --r-sm:7px;
  --r-lg:12px;
  --shadow:0 1px 2px rgba(20,26,20,.04),0 12px 30px -22px rgba(20,26,20,.28);
  --shadow-lg:0 4px 14px rgba(20,26,20,.07),0 32px 70px -38px rgba(20,26,20,.38);
}
:root[data-theme="dark"]{
  --paper:#06111F;
  --paper-2:#0B1828;
  --paper-3:#102033;
  --ink:#F8F6EF;
  --ink-2:#C4CBD4;
  --ink-3:#8995A4;
  --line:#26384A;
  --line-2:#34495D;
  --green:#D8B86C;
  --green-2:#E8CB83;
  --green-soft:rgba(216,184,108,.14);
  --active-bg:#D8B86C;
  --active-fg:#06111F;
  --accent:#D8B86C;
  --accent-2:#F0D48A;
  --accent-soft:rgba(216,184,108,.14);
  --glow:#D8B86C;
  --glow-rgb:216,184,108;
  --glow-soft:rgba(216,184,108,.16);
  --gold:#D8B86C;
  --gold-soft:rgba(216,184,108,.14);
  --teal:#7FB4D8;
  --teal-soft:rgba(127,180,216,.14);
  --danger:#FF8A82;
  --danger-soft:rgba(255,138,130,.14);
  --glass:rgba(15,17,21,.86);
}
body{
  background:
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,0) 260px),
    var(--paper);
  letter-spacing:0;
}
h1,h2,h3,h4{letter-spacing:0}
.sidebar{
  background:linear-gradient(180deg,var(--paper-2),var(--paper-3));
  padding:24px 16px;
}
.nav-item{
  border:1px solid transparent;
  border-radius:8px;
}
.nav-item:hover{
  background:var(--accent-soft);
  border-color:var(--line);
}
.nav-item.active{
  background:var(--active-bg);
  color:var(--active-fg);
  box-shadow:0 10px 24px -18px rgba(var(--glow-rgb),.85);
}
.wrap{max-width:1120px}
.page-head{padding:38px 0 14px}
.page-title{
  max-width:780px;
  font-size:clamp(30px,4vw,44px);
}
.page-sub{
  color:var(--ink-2);
  max-width:68ch;
}
.card{
  box-shadow:var(--shadow);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.card:hover{
  border-color:var(--line-2);
  box-shadow:0 2px 4px rgba(20,26,20,.04),0 18px 42px -30px rgba(20,26,20,.34);
}
.card-pad{padding:24px}
.card-eyebrow{
  color:var(--ink-3);
  letter-spacing:.12em;
}
.hero{
  background:linear-gradient(135deg,#06111F,#0B2A4A 62%,#173A5F);
  border-radius:12px;
  padding:38px 40px;
}
.hero::after{
  right:0;
  top:0;
  width:100%;
  height:100%;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.08));
  opacity:.65;
}
.hero-num{font-size:clamp(48px,6vw,70px)}
.hero-meta{gap:16px 24px}
.tile{
  min-height:136px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.tile .lab{letter-spacing:.08em}
.tile .val{font-size:clamp(25px,3vw,33px)}
.tile .sub{line-height:1.35}
.btn{
  min-height:42px;
  border-radius:8px;
}
.btn-pri{
  background:var(--active-bg);
  color:var(--active-fg);
  box-shadow:0 14px 30px -18px rgba(var(--glow-rgb),.9);
}
.btn-pri:hover{background:var(--accent-2);transform:translateY(-1px)}
.btn-ghost{border-radius:8px;background:rgba(255,255,255,.38)}
.callout{
  border-radius:8px;
  background:var(--accent-soft);
}
.callout-welcome{
  background:linear-gradient(135deg,var(--accent-soft),var(--teal-soft));
  border-color:#C7D7EB;
}
.modal{
  border:1px solid var(--line);
  border-radius:12px;
}
.modal-body{overflow-x:hidden}
.modal-foot{
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(0,0,0,.025));
  border-top:1px solid var(--line);
}
.field input,.money-in input,.num-suffix{
  border-radius:8px;
}
.segmented{border-radius:8px}
.segmented button{border-radius:6px}
.erow{grid-template-columns:minmax(0,1fr) 138px 30px}
.del{opacity:.55}
.empty-chart{
  min-height:300px;
  display:grid;
  place-content:center;
  text-align:center;
  padding:32px 18px;
  border:1px dashed var(--line-2);
  border-radius:8px;
  background:linear-gradient(180deg,var(--paper-2),var(--paper-3));
}
.empty-chart-kicker{
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--green);
}
.empty-chart-title{
  margin-top:8px;
  font-family:var(--serif);
  font-size:22px;
  line-height:1.15;
}
.empty-chart-copy{
  margin-top:8px;
  color:var(--ink-2);
  font-size:13.5px;
}
.cta{
  background:linear-gradient(135deg,#06111F,#0B2A4A 62%,#173A5F);
  border-radius:12px;
}
.cta-mark{border-radius:50%}
.quote-mini p{letter-spacing:0}
.proj-note{
  margin-top:14px;
  font-size:12.5px;
  line-height:1.55;
  color:var(--ink-3);
}
.proj-note .linklike{font-weight:600}
.plan-score{
  min-width:116px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-3);
  padding:14px 16px;
  text-align:center;
}
.plan-score span{
  display:block;
  font-family:var(--serif);
  font-size:30px;
  font-weight:600;
  line-height:1;
  color:var(--green);
}
.plan-score small{
  display:block;
  margin-top:5px;
  font-size:10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-3);
  font-weight:700;
}
.checkin{
  margin-bottom:18px;
}
.checkin-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.check-score{flex:none}
.check-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.check-step{
  text-align:left;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-2);
  padding:13px;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 9px;
  min-height:100px;
  transition:.16s ease;
}
.check-step:hover{
  border-color:var(--green);
  background:var(--green-soft);
}
.check-step > span{
  grid-row:1 / span 2;
  color:var(--ink-3);
  font-weight:800;
}
.check-step b{
  font-size:13px;
}
.check-step small{
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.4;
}
.check-step.done{
  border-color:rgba(15,95,70,.25);
  background:var(--green-soft);
}
.check-step.done > span{color:var(--green)}
.check-rhythm{
  margin-top:12px;
  display:grid;
  grid-template-columns:1.25fr .9fr .9fr;
  gap:10px;
}
.check-rhythm > div{
  border:1px solid var(--line);
  border-radius:8px;
  background:linear-gradient(145deg,var(--paper-2),rgba(255,255,255,.62));
  padding:12px 13px;
  min-width:0;
}
.check-rhythm span{
  display:block;
  color:var(--ink-3);
  font-size:10.5px;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-weight:800;
}
.check-rhythm b{
  display:block;
  margin-top:6px;
  color:var(--ink);
  font-size:16px;
  line-height:1.15;
}
.check-rhythm small{
  display:block;
  margin-top:5px;
  color:var(--ink-2);
  font-size:12px;
  line-height:1.35;
}
.rhythm-dots{
  display:flex;
  gap:6px;
  margin-top:11px;
}
.rhythm-dots span{
  width:20px;
  height:6px;
  border-radius:999px;
  background:var(--line);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.02);
}
.rhythm-dots span.partial{background:var(--gold)}
.rhythm-dots span.done{background:var(--green)}
.check-signal{
  margin-top:14px;
  padding:13px 16px;
  border:1px solid var(--line);
  border-left:3px solid var(--green);
  border-radius:8px;
  background:var(--green-soft);
  font-size:13.5px;
  line-height:1.55;
  color:var(--ink-2);
}
.check-signal b{color:var(--ink)}
.monthly-insight{
  margin-top:18px;
  display:grid;
  grid-template-columns:1.1fr 1.15fr .85fr 1fr;
  gap:1px;
  overflow:hidden;
  border:1px solid var(--line);
  border-left:3px solid var(--gold);
  border-radius:9px;
  background:var(--line);
  box-shadow:var(--shadow-soft);
}
.monthly-insight.ok{border-left-color:var(--green)}
.monthly-insight.risk{border-left-color:var(--danger)}
.monthly-insight > div{
  min-width:0;
  padding:15px 16px;
  background:linear-gradient(145deg,var(--paper),var(--paper-2));
}
.monthly-insight span{
  display:block;
  color:var(--ink-3);
  font-size:10.5px;
  letter-spacing:.11em;
  text-transform:uppercase;
  font-weight:800;
  margin-bottom:7px;
}
.monthly-insight b{
  display:block;
  color:var(--ink);
  font-size:13.5px;
  line-height:1.42;
  font-weight:660;
}
.launch-list > div{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-2);
  padding:13px;
}
.launch-list b{
  display:block;
  font-size:12.5px;
  color:var(--ink);
  margin-bottom:6px;
}
.launch-list small{
  display:block;
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.45;
}
.method-modal{max-width:720px}
.method-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.method-grid > div{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-3);
  padding:14px;
}
.method-grid b{
  display:block;
  color:var(--ink);
  font-size:13px;
  margin-bottom:6px;
}
.method-grid span{
  display:block;
  color:var(--ink-2);
  font-size:12.8px;
  line-height:1.5;
}
.method-note{
  margin-top:14px;
  border:1px solid rgba(var(--glow-rgb),.18);
  background:var(--accent-soft);
  color:var(--ink-2);
  border-radius:8px;
  padding:14px;
  font-size:13px;
  line-height:1.55;
}
.launch-list{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:14px;
}
.launch-list > div{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 9px;
  padding:12px;
}
.launch-list span{
  grid-row:1 / span 2;
  font-weight:800;
  color:var(--ink-3);
}
.launch-list .done{
  background:var(--green-soft);
  border-color:rgba(15,95,70,.25);
}
.launch-list .done span{color:var(--green)}

.logo-static{position:relative;display:block}
.logo-static .logo-face{position:absolute;inset:0}
.logo-static .logo-front img{width:100%;height:100%;object-fit:contain}
.logo-head{width:132px;height:76px}
.logo-xs{width:52px;height:52px}
.brand{padding-bottom:18px}
.nav-label{line-height:1.25}
.cashflow-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.budget-workspace{
  display:grid;
  grid-template-columns:minmax(330px,.78fr) minmax(560px,1.22fr);
  gap:18px;
  align-items:start;
  margin-top:18px;
}
.budget-income-card{position:sticky;top:18px}
.budget-income-card .income-grid{grid-template-columns:1fr;gap:14px}
.budget-income-card .callout{line-height:1.5}
.budget-expense-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.budget-expense-grid .card{min-height:100%}
.budget-expense-grid .erow{grid-template-columns:minmax(0,1fr) 132px 28px}
.budget-expense-grid .card-eyebrow{margin-bottom:18px}
.debt-reconcile{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  margin-top:14px;
  padding:14px 16px;
  border:1px solid rgba(183,62,74,.28);
  border-left:3px solid var(--danger);
  border-radius:10px;
  background:linear-gradient(135deg,var(--danger-soft),rgba(216,184,108,.06)),var(--paper);
  box-shadow:0 14px 34px -30px rgba(7,24,39,.34);
}
.debt-reconcile.watch{
  border-color:rgba(185,135,42,.28);
  border-left-color:var(--gold);
  background:linear-gradient(135deg,var(--gold-soft),rgba(var(--glow-rgb),.05)),var(--paper);
}
.debt-reconcile-mark{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--danger-soft);
  color:var(--danger);
  font-family:var(--serif);
  font-size:20px;
  font-weight:800;
}
.debt-reconcile.watch .debt-reconcile-mark{background:var(--gold-soft);color:var(--gold)}
.debt-reconcile b{display:block;color:var(--ink);font-size:14px;line-height:1.3}
.debt-reconcile p{margin:3px 0 0;color:var(--ink-2);font-size:12.8px;line-height:1.52;max-width:90ch}
.debt-reconcile .linklike{white-space:nowrap;font-size:12.5px;font-weight:800}
@media(max-width:700px){
  .debt-reconcile{grid-template-columns:auto minmax(0,1fr);align-items:start;padding:13px}
  .debt-reconcile .linklike{grid-column:2;justify-self:start;white-space:normal}
}
.account-entry{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:8px;
  background:
    radial-gradient(520px 180px at 0% 0%,rgba(var(--glow-rgb),.12),transparent 62%),
    var(--paper-2);
  padding:18px 20px;
  box-shadow:0 1px 2px rgba(17,20,17,.035),0 18px 46px -38px rgba(17,20,17,.32);
}
.account-entry-main{min-width:0}
.account-entry .card-eyebrow{margin-bottom:6px}
.account-entry b{font-size:17px;line-height:1.25}
.account-entry span{display:block;color:var(--ink-2);font-size:13.5px;line-height:1.5;margin-top:5px;max-width:62ch}
.account-entry-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.account-entry-actions .btn{white-space:nowrap}
.account-entry.signed-in{
  grid-template-columns:1fr auto;
}
.projection-basis{margin:18px 0 0}
.projection-dial-section{margin-top:18px}
.projection-dials{
  grid-template-columns:repeat(auto-fit,minmax(142px,1fr));
  gap:14px;
  padding:16px 18px;
}
.projection-dials .dial .dl{margin-bottom:6px}
.projection-dials .dial .dname{font-size:12px;line-height:1.25}
.projection-dials .dial .dval{font-size:18px}
.projection-dials input[type=range]{height:3px}
.projection-dials input[type=range]::-webkit-slider-thumb{width:16px;height:16px}
.basis-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.basis-head .linklike{
  flex:none;
  margin-top:2px;
  font-size:13px;
}
.basis-head .card-eyebrow{margin-bottom:5px}
.basis-copy{color:var(--ink-2);font-size:13.5px;line-height:1.4;max-width:74ch}
.basis-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.basis-grid > div{
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-3);
  padding:10px 11px;
  min-height:88px;
}
.basis-grid span{display:block;color:var(--ink-3);font-size:10.5px;font-weight:760;text-transform:uppercase;letter-spacing:.08em}
.basis-grid b{display:block;color:var(--ink);font-size:16px;line-height:1.15;margin-top:6px}
.basis-grid small{display:block;color:var(--ink-2);font-size:11.5px;line-height:1.3;margin-top:6px}
.basis-actions{
  margin-top:10px;
  border-left:3px solid var(--green);
  padding:8px 10px;
  background:var(--green-soft);
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.35;
  border-radius:0 8px 8px 0;
}
.projection-check{
  margin-bottom:18px;
  padding:18px;
  background:
    radial-gradient(520px 180px at 0% 0%,rgba(var(--glow-rgb),.10),transparent 64%),
    var(--paper-2);
}
.projection-check-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.projection-check-head .card-eyebrow{margin-bottom:5px}
.projection-check-head b{
  display:block;
  color:var(--ink);
  font-size:18px;
  line-height:1.2;
}
.projection-check-head p{
  max-width:68ch;
  color:var(--ink-2);
  font-size:13px;
  line-height:1.45;
  margin-top:5px;
}
.projection-check-status{
  flex:none;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:11px;
  font-weight:820;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.projection-check-status.ok{background:var(--green-soft);color:var(--green);border-color:rgba(15,95,70,.18)}
.projection-check-status.watch{background:var(--gold-soft);color:var(--gold);border-color:rgba(185,135,42,.2)}
.projection-check-status.risk{background:var(--danger-soft);color:var(--danger);border-color:rgba(183,62,74,.22)}
.projection-check-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
}
.projection-check-item{
  display:grid;
  grid-template-columns:10px minmax(0,1fr);
  gap:10px;
  min-height:104px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-3);
}
.projection-check-item > span{
  width:9px;
  height:9px;
  margin-top:4px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);
}
.projection-check-item.ok > span{background:var(--green);box-shadow:0 0 0 4px var(--green-soft)}
.projection-check-item.watch > span{background:var(--gold);box-shadow:0 0 0 4px var(--gold-soft)}
.projection-check-item.risk > span{background:var(--danger);box-shadow:0 0 0 4px var(--danger-soft)}
.projection-check-item b{
  display:block;
  color:var(--ink);
  font-size:13px;
  line-height:1.25;
}
.projection-check-item small{
  display:block;
  color:var(--ink-2);
  font-size:11.8px;
  line-height:1.35;
  margin-top:5px;
}

/* ---------- public-app polish pass ---------- */
body{background:var(--paper);letter-spacing:0}
h1,h2,h3,h4{letter-spacing:0}
.sidebar{background:var(--paper-2)}
.brand-name{font-family:var(--serif);font-weight:680;letter-spacing:0}
.nav-item{border-radius:8px;font-weight:620}
.nav-item.active{background:var(--active-bg);color:var(--active-fg);box-shadow:none}
.wrap{max-width:1140px}
.page-head{padding:34px 0 16px}
.page-title{font-family:var(--serif);font-size:clamp(38px,4.6vw,64px);font-weight:680;line-height:1.02;letter-spacing:0;font-feature-settings:"liga" 1,"kern" 1}
.page-sub{font-size:15.5px;line-height:1.55}
.eyebrow,.card-eyebrow,.hero-label{font-family:var(--sans);font-weight:760;letter-spacing:.11em}
.card{border-radius:8px;box-shadow:0 1px 2px rgba(17,20,17,.04),0 12px 34px -28px rgba(17,20,17,.3)}
.card:hover{transform:none;box-shadow:0 1px 2px rgba(17,20,17,.04),0 16px 42px -32px rgba(17,20,17,.36)}
.card-pad{padding:22px}
.hero{background:#06111F;border-radius:8px;border:1px solid rgba(216,184,108,.14);padding:34px 36px}
.hero::after{display:none}
.hero-num{font-family:var(--serif);font-size:60px;font-weight:680;letter-spacing:0}
.hero.nw-hero{padding:26px 30px}
.tile{border-radius:8px;min-height:124px}
.tile .val,.totrow .tv,.dial .dval,.obr-v{font-family:var(--serif);font-weight:680;letter-spacing:0}
.btn{border-radius:8px;font-weight:720;letter-spacing:0}
.btn-pri{background:var(--active-bg);color:var(--active-fg);box-shadow:0 12px 26px -20px rgba(var(--glow-rgb),.9)}
.btn-pri:hover{background:var(--accent-2)}
.btn-ghost{background:var(--paper-2)}
.money-in input,.field input,.num-suffix{border-radius:8px;background:var(--paper-2)}
.money-in input:focus,.field input:focus,.num-suffix:focus-within{
  background:var(--paper-2);
  color:var(--ink);
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea{
  color:var(--ink);
  caret-color:var(--accent-2);
  -webkit-text-fill-color:var(--ink);
}
:root[data-theme="dark"] input:not([type="range"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea{
  background:var(--paper-2);
  border-color:var(--line-2);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{
  color:var(--ink-3);
  -webkit-text-fill-color:var(--ink-3);
  opacity:1;
}
:root[data-theme="dark"] .money-in input:focus,
:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .modal input:not([type="range"]):focus,
:root[data-theme="dark"] .modal textarea:focus,
:root[data-theme="dark"] .num-suffix:focus-within,
:root[data-theme="dark"] .select-wrap select:focus,
:root[data-theme="dark"] .erow .nm:focus{
  background:var(--paper-3);
  color:var(--ink);
  -webkit-text-fill-color:var(--ink);
  border-color:var(--accent);
}
:root[data-theme="dark"] .num-suffix input{
  background:transparent;
  border-color:transparent;
  color:var(--ink);
  -webkit-text-fill-color:var(--ink);
}
:root[data-theme="dark"] input::selection{
  background:rgba(var(--glow-rgb),.32);
  color:var(--ink);
  -webkit-text-fill-color:var(--ink);
}
.field{min-width:0}
.field label{font-weight:720;color:var(--ink);margin-bottom:7px}
.modal{max-width:560px;border-radius:10px;background:var(--paper-2)}
.modal-wide{max-width:860px}
.modal-head{padding:28px 30px 0}
.modal-head h2{font-family:var(--serif);font-size:28px!important;font-weight:610;letter-spacing:0;line-height:1.08}
.modal-body{padding:20px 30px 10px;gap:18px}
.modal-foot{padding:18px 30px 24px;background:var(--paper-2)}
.share-modal{max-width:640px}
.share-modal .modal-head .muted{margin-top:10px;font-size:14px;line-height:1.55;max-width:58ch}
.share-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.share-badge{
  flex:none;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--accent-soft);
  color:var(--accent);
  font-size:11px;
  font-weight:820;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.share-preview{
  flex:0 0 auto;
  margin:0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#06111F;
  box-shadow:0 16px 42px -34px rgba(17,20,17,.7);
}
.share-preview img{
  display:block;
  width:100%;
  aspect-ratio:1200/630;
  object-fit:cover;
}
.share-preview figcaption{
  padding:10px 13px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(247,244,236,.72);
  font-size:12px;
  line-height:1.45;
  background:rgba(10,15,11,.92);
}
.share-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.share-link-row input{min-width:0}
.share-link-row .btn{white-space:nowrap}
.share-message{
  width:100%;
  min-height:128px;
  resize:none;
  line-height:1.55;
  padding:12px 14px;
  border:1px solid var(--line-2);
  border-radius:8px;
  background:var(--paper-2);
  color:var(--ink);
  font:inherit;
  font-size:14px;
}
.share-actions{display:flex;gap:10px;flex-wrap:wrap}
.share-actions .btn{justify-content:center}
.share-private{font-size:13px;line-height:1.55}
.dotrow{gap:5px}
.pdot{height:5px;width:18px;border-radius:999px;background:var(--line)}
.pdot.on{width:26px;border-radius:999px;background:var(--active-bg)}
.ob-note{font-size:12.5px;line-height:1.5}
.ob-readout{border-radius:8px;background:var(--accent-soft);border-color:rgba(var(--glow-rgb),.18)}
.ob-debt-terms{gap:12px}
.ob-account-tools{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.ob-add-more{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.ob-add-title{
  margin-bottom:8px;
  color:var(--ink-3);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.chip-btn{
  min-height:34px;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper-3);
  color:var(--ink-2);
  font-size:12.5px;
  font-weight:720;
  transition:.15s ease;
}
.chip-btn:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--ink);
}
.ob-add-other{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:11px 18px;
  border-color:rgba(var(--glow-rgb),.35);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(var(--glow-rgb),.1),var(--paper-2) 70%);
  color:var(--ink);
  font-size:14.5px;
  font-weight:820;
  box-shadow:0 10px 24px -20px rgba(6,23,42,.55);
}
.ob-add-other:hover,
.ob-add-other:focus-visible{
  border-color:var(--gold);
  background:linear-gradient(135deg,var(--gold-soft),var(--paper-2) 76%);
  box-shadow:0 12px 26px -18px rgba(6,23,42,.62);
}
.ob-account-list{
  display:grid;
  gap:10px;
}
.ob-account-row,.ob-debt-row,.ob-custom-row{
  display:grid;
  gap:10px;
  align-items:end;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
}
.ob-account-row{grid-template-columns:minmax(180px,1fr) 160px 180px 34px}
.ob-debt-row{grid-template-columns:minmax(180px,1fr) 180px 110px 124px 34px}
.ob-custom-row{grid-template-columns:minmax(180px,1fr) 180px 34px}
.ob-account-row label,.ob-debt-row label,.ob-custom-row label{
  display:block;
  margin-bottom:6px;
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:760;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ob-account-row input,.ob-debt-row input,.ob-account-row select,.ob-custom-row input{
  width:100%;
  min-height:44px;
  font-size:15px;
}
.modal .field > input,
.modal .field .money-in input,
.modal .field .num-suffix,
.modal .select-wrap select{
  min-height:48px;
  font-size:16px;
}
.modal .field .money-in input,
.ob-account-row .money-in input,
.ob-debt-row .money-in input,
.ob-custom-row .money-in input{
  padding-left:30px;
  padding-right:14px;
}
.modal .field .money-in::before,
.ob-account-row .money-in::before,
.ob-debt-row .money-in::before,
.ob-custom-row .money-in::before{
  left:13px;
  font-size:14px;
}
.ob-account-row .money-in input,
.ob-debt-row .money-in input,
.ob-debt-row .num-suffix,
.ob-custom-row .money-in input{
  min-height:46px;
  font-size:16px;
}
.ob-account-row .num-suffix input,
.ob-debt-row .num-suffix input{
  min-height:44px;
  font-size:16px;
}
.ob-account-row > div,
.ob-debt-row > div,
.ob-custom-row > div{
  min-width:0;
}
.ob-custom-wrap{
  display:grid;
  gap:10px;
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.ob-custom-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.ob-custom-head b{
  display:block;
  color:var(--ink);
  font-size:13px;
  line-height:1.25;
}
.ob-custom-head span{
  display:block;
  margin-top:3px;
  max-width:62ch;
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.45;
}
.ob-del-row{
  width:34px;
  height:46px;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:22px;
}
.ob-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:13px 15px;
  border:1px solid rgba(0,122,77,.16);
  border-radius:8px;
  background:var(--green-soft);
}
.ob-total span{
  color:var(--ink-2);
  font-size:12px;
  font-weight:760;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ob-total b{
  font-family:var(--serif);
  font-size:25px;
  font-weight:610;
  line-height:1;
  color:var(--green);
}
.ob-total.debt{border-color:rgba(178,58,58,.18);background:var(--danger-soft)}
.ob-total.debt b{color:var(--danger)}
.ob-empty{
  border:1px dashed var(--line-2);
  border-radius:8px;
  padding:18px;
  color:var(--ink-2);
  background:var(--paper-3);
  font-size:13px;
  line-height:1.45;
}
.setrow{gap:20px;padding:16px 0}
.setrow .select-wrap{min-width:150px}
.account-trust-grid > div{border-radius:8px}
@media(max-width:880px){
  body{font-size:14px}
  .topbar{padding:10px 14px}
  .page-head{padding:24px 0 10px}
  .page-title{font-size:42px}
  .wrap{padding:0 16px}
  .g4.keep{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tile{min-height:124px;padding:16px}
  .tile .val{font-size:25px}
  .hero{padding:28px 24px}
  .card-pad{padding:18px}
  .modal{max-width:min(560px,calc(100vw - 28px))}
  .modal-wide{max-width:min(860px,calc(100vw - 28px))}
  .modal-head{padding:24px 24px 0}
  .modal-body{padding:16px 24px 8px}
  .modal-foot{padding:16px 24px 22px}
  .share-modal{max-width:min(640px,calc(100vw - 28px))}
  .share-preview figcaption{font-size:11.5px}
  .plan-score{text-align:left;display:flex;align-items:baseline;gap:10px}
  .account-trust-grid{grid-template-columns:1fr}
  .account-trust-grid > div{min-height:0}
  .account-entry,.account-entry.signed-in{grid-template-columns:1fr}
  .account-entry-actions{justify-content:flex-start}
  .overview-hero{grid-template-columns:1fr}
  .overview-hero-ledger{
    align-content:start;
    padding:24px 0 0;
    border-left:0;
    border-top:1px solid rgba(255,255,255,.12);
  }
  .overview-hero-ledger::before{
    left:0;
    right:0;
    top:-1px;
    bottom:auto;
    width:auto;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(var(--glow-rgb),.42),transparent);
  }
  .overview-hero-chart{grid-template-columns:180px minmax(0,1fr)}
  .nw-equation{max-width:none}
  .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-flow-grid{grid-template-columns:1fr}
  .priority-alert{grid-template-columns:auto minmax(0,1fr);align-items:start}
  .priority-alert .btn{grid-column:2;justify-self:start}
  .overview-money-map{padding:24px}
  .overview-map-body{grid-template-columns:1fr;gap:18px}
  .basis-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .projection-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-form{grid-template-columns:1fr 1fr}
  .history-form .btn{grid-column:1 / -1;justify-content:center}
  .goal-funding-head{display:grid;gap:14px}
  .goal-funding-head .btn{justify-self:start}
  .goal-funding-grid{grid-template-columns:1fr}
  .goal-funding-grid > div{min-height:0}
  .basis-head{display:block}
  .basis-head .linklike{display:inline-block;margin-top:10px}
  .checkin-head{display:grid;grid-template-columns:1fr}
  .check-steps{grid-template-columns:1fr}
  .check-step{min-height:0}
  .check-rhythm{grid-template-columns:1fr}
  .monthly-insight{grid-template-columns:1fr}
  .method-grid{grid-template-columns:1fr}
  .budget-workspace{grid-template-columns:1fr}
  .budget-income-card{position:static}
  .budget-income-card .income-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .budget-expense-grid{grid-template-columns:1fr}
  .ob-account-row{grid-template-columns:1fr 1fr 1fr 30px}
  .ob-debt-row{grid-template-columns:1fr 1fr 1fr 1fr 30px}
  .ob-custom-row{grid-template-columns:1fr 1fr 30px}
}
@media(max-width:520px){
  .scrim{padding:10px}
  .modal{
    max-width:calc(100vw - 20px);
    max-height:calc(100vh - 20px);
    max-height:calc(100dvh - 20px);
  }
  .modal-head{padding:22px 18px 0}
  .modal-body{padding:16px 18px 8px;gap:16px}
  .modal-foot{padding:16px 18px 20px}
  .share-head{display:grid;gap:10px}
  .share-badge{justify-self:start}
  .share-link-row{grid-template-columns:1fr}
  .share-link-row .btn,.share-actions .btn{width:100%}
  .share-message{min-height:150px}
  .g4.keep,.g2.keep{grid-template-columns:1fr 1fr}
  .tile{min-height:118px}
  .tile .lab{font-size:10.5px}
  .tile .sub{font-size:12px}
  .hero-num{font-size:44px}
  .nw-equation{gap:7px;margin-top:16px}
  .nw-equation span,.nw-equation strong{white-space:normal}
  .overview-hero-ledger{padding-top:20px}
  .ledger-head{display:grid}
  .ledger-head b{text-align:left}
  .overview-hero-chart{grid-template-columns:1fr;justify-items:center}
  .overview-hero-chart .overview-legend{width:100%}
  .overview-metrics{grid-template-columns:1fr}
  .overview-adjust-note{display:block}
  .overview-adjust-note b{display:block;margin-bottom:4px}
  .overview-donut-layout{grid-template-columns:1fr;justify-items:center}
  .overview-donut-layout .overview-legend{width:100%}
  .overview-money-map{padding:20px}
  .overview-map-head{display:block}
  .overview-map-head .add-row{display:inline-block;margin-top:10px}
  .overview-map-title{font-size:18px}
  .overview-map-viz{padding:16px}
  .overview-map-viz .overview-donut .chart{width:208px;max-width:208px!important}
  .overview-map-list{grid-template-columns:1fr}
  .overview-map-list > div{min-height:0}
  .nw-pie-card{grid-template-columns:1fr;justify-items:center;text-align:left}
  .nw-pie-legend{width:100%}
  .history-form{grid-template-columns:1fr}
  .history-form .btn{width:100%}
  .history-row{grid-template-columns:minmax(0,1fr) auto 30px}
  .modal-foot{align-items:stretch}
  .modal-foot .btn{justify-content:center}
  .ob-debt-terms,.debt-terms{flex-direction:column}
  .basis-grid{grid-template-columns:1fr}
  .projection-check{padding:16px}
  .projection-check-head{display:grid;gap:10px}
  .projection-check-status{justify-self:start}
  .projection-check-grid{grid-template-columns:1fr}
  .projection-check-item{min-height:0}
  .budget-income-card .income-grid{grid-template-columns:1fr}
  .budget-expense-grid .erow{grid-template-columns:minmax(0,1fr) 118px 26px}
  .ob-account-row,.ob-debt-row,.ob-custom-row{
    grid-template-columns:minmax(0,1fr) 36px;
    gap:12px;
    padding:14px;
  }
  .ob-account-row .ob-row-main,.ob-debt-row .ob-row-main,.ob-custom-row .ob-row-main{grid-column:1;grid-row:1}
  .ob-account-row > div:not(.ob-row-main),
  .ob-debt-row > div:not(.ob-row-main),
  .ob-custom-row > div:not(.ob-row-main){grid-column:1 / -1}
  .ob-del-row{grid-column:2;grid-row:1;align-self:end;width:36px;height:48px;opacity:.72}
  .ob-custom-head{display:grid;gap:10px}
  .ob-custom-head .chip-btn{justify-self:start}
  .ob-account-tools{gap:6px}
  .chip-btn{font-size:12px;padding:7px 9px}
}

/* ============================================================
   Premium trust pass - coherent navy/gold product system
   ============================================================ */
:root{
  --display:Georgia,"Times New Roman",serif;
  --serif:var(--display);
  --navy-950:#03101F;
  --navy-900:#06172A;
  --navy-800:#0A2340;
  --navy-700:#123A62;
  --blue-500:#6EA7D6;
  --cream:#F8F5EC;
  --gold:#D6B164;
  --gold-2:#E8C979;
  --gold-soft:#F7EED8;
  --green:#D6B164;
  --green-2:#E8C979;
  --green-soft:#F7EED8;
  --accent:#0B2A4A;
  --accent-2:#123A62;
  --accent-soft:#E8EEF6;
  --active-bg:#06172A;
  --active-fg:#FFFFFF;
  --glow:#D6B164;
  --glow-rgb:214,177,100;
  --glow-soft:rgba(214,177,100,.18);
  --teal:#6EA7D6;
  --teal-soft:#E7F0F7;
  --danger:#B94656;
  --danger-soft:#F7E3E6;
  --shadow:0 1px 2px rgba(6,17,31,.05),0 18px 44px -34px rgba(6,17,31,.34);
  --shadow-lg:0 5px 18px rgba(6,17,31,.08),0 34px 90px -48px rgba(6,17,31,.44);
}
:root[data-theme="dark"]{
  --paper:#06111F;
  --paper-2:#0A182A;
  --paper-3:#102238;
  --ink:#F8F6EF;
  --ink-2:#C8D0DA;
  --ink-3:#8E9AA8;
  --line:#24364B;
  --line-2:#334A62;
  --active-bg:#D8B86C;
  --active-fg:#06111F;
  --accent:#D8B86C;
  --accent-2:#F0D48A;
  --accent-soft:rgba(216,184,108,.14);
  --gold:#D8B86C;
  --gold-2:#F0D48A;
  --gold-soft:rgba(216,184,108,.14);
  --green:#D8B86C;
  --green-2:#F0D48A;
  --green-soft:rgba(216,184,108,.14);
  --teal:#7EAED4;
  --teal-soft:rgba(126,174,212,.14);
  --danger:#FF909A;
  --danger-soft:rgba(255,144,154,.14);
  --glow:#D8B86C;
  --glow-rgb:216,184,108;
  --glow-soft:rgba(216,184,108,.18);
}
body{
  color-scheme:light;
  background:
    radial-gradient(980px 420px at 52% -250px,rgba(214,177,100,.16),transparent 68%),
    linear-gradient(180deg,#F6F8FA 0,#F8F6F0 420px),
    var(--paper);
}
:root[data-theme="dark"] body{color-scheme:dark}
.main{
  background:
    radial-gradient(900px 360px at 48% -220px,rgba(214,177,100,.18),transparent 70%),
    linear-gradient(180deg,#ECF2F8 0,#F7F8F6 210px,var(--paper) 620px),
    var(--paper);
}
:root[data-theme="dark"] .main{
  background:
    radial-gradient(980px 380px at 50% -230px,rgba(216,184,108,.16),transparent 72%),
    linear-gradient(180deg,#07192B 0,#071421 260px,var(--paper) 680px),
    var(--paper);
}
.sidebar{
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(242,246,249,.92)),
    var(--paper-2);
  box-shadow:1px 0 0 rgba(6,17,31,.04);
}
:root[data-theme="dark"] .sidebar{
  background:linear-gradient(180deg,#071625,#081321);
  box-shadow:1px 0 0 rgba(255,255,255,.04);
}
.page-title{
  font-family:var(--display);
  font-weight:700;
  line-height:1.03;
  text-wrap:balance;
  color:var(--ink);
}
.page-sub{text-wrap:pretty}
.eyebrow,.card-eyebrow,.hero-label,.nav-label{
  letter-spacing:.13em;
  font-weight:780;
}
.card{
  border-color:rgba(6,17,31,.11);
  box-shadow:var(--shadow);
}
:root[data-theme="dark"] .card{border-color:rgba(255,255,255,.09)}
.card:hover{
  border-color:rgba(11,42,74,.24);
  box-shadow:var(--shadow-lg);
}
:root[data-theme="dark"] .card:hover{border-color:rgba(216,184,108,.22)}
.btn{
  min-height:44px;
  border-radius:8px;
  font-weight:780;
}
.btn-pri{
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 16px 34px -24px rgba(6,17,31,.86);
}
.btn-pri:hover{
  background:linear-gradient(135deg,var(--navy-800),var(--navy-700));
}
:root[data-theme="dark"] .btn-pri{
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  color:#06111F;
  border-color:rgba(255,255,255,.18);
}
.btn-ghost{
  background:rgba(255,255,255,.7);
  border-color:var(--line);
}
:root[data-theme="dark"] .btn-ghost{background:rgba(255,255,255,.035)}
.linklike{
  color:var(--accent);
  font-weight:780;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.nav-item{
  position:relative;
  min-height:48px;
  border-radius:8px;
  font-weight:720;
}
.nav-item.active{
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700));
  color:#fff;
  box-shadow:0 18px 40px -28px rgba(6,17,31,.95);
}
.nav-item.active::before{
  content:"";
  width:3px;
  border-radius:999px;
  background:var(--gold);
  position:absolute;
  left:7px;
  top:10px;
  bottom:10px;
}
:root[data-theme="dark"] .nav-item.active{
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  color:#06111F;
}
:root[data-theme="dark"] .nav-item.active::before{background:#06111F}
.topbar{
  background:rgba(248,250,252,.86);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(6,17,31,.08);
}
:root[data-theme="dark"] .topbar{
  background:rgba(6,17,31,.78);
  border-color:rgba(255,255,255,.08);
}
.logo-face,.brand-emblem{
  background:linear-gradient(145deg,#06111F,#081C31);
  border-color:rgba(216,184,108,.34);
}
.logo-face{box-shadow:0 16px 38px -28px rgba(6,17,31,.92)}
.overview-hero{
  grid-template-columns:minmax(0,.88fr) minmax(360px,.72fr);
  gap:36px;
  padding:46px 48px;
  border:1px solid rgba(216,184,108,.16);
  background:
    radial-gradient(760px 320px at 0% 0%,rgba(216,184,108,.18),transparent 66%),
    radial-gradient(680px 360px at 100% 100%,rgba(110,167,214,.15),transparent 70%),
    linear-gradient(135deg,#03101F 0,#06192B 48%,#09213A 100%);
  box-shadow:0 30px 90px -56px rgba(6,17,31,.9);
}
.overview-hero-copy{position:relative;z-index:1}
.overview-hero .hero-num{
  margin-top:10px;
  font-size:clamp(54px,8vw,92px);
  line-height:.94;
}
.overview-hero .hero-definition{
  margin-top:18px;
  max-width:48ch;
  font-size:15px;
  color:rgba(248,246,239,.74);
}
.nw-equation{
  margin-top:28px;
  padding-top:0;
  border-top:0;
  gap:9px;
}
.nw-equation span,.nw-equation strong{
  min-height:48px;
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
.nw-equation i{
  min-width:16px;
  text-align:center;
  color:rgba(248,246,239,.48);
}
.overview-hero-ledger{
  align-self:center;
  padding:24px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:10px;
  background:
    radial-gradient(440px 220px at 0 0,rgba(216,184,108,.11),transparent 68%),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 72px -58px rgba(0,0,0,.95);
  border-left:1px solid rgba(255,255,255,.13);
}
.overview-hero-ledger::before{display:none}
.ledger-head b{color:rgba(248,246,239,.84)}
.ledger-summary{
  padding:12px 0 4px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.ledger-summary b{font-size:30px}
.ledger-row-top{font-size:13.5px}
.ledger-track{height:7px}
.ledger-row.cash .ledger-track i{background:linear-gradient(90deg,#98C7E8,#4F8DBB)}
.ledger-row.invest .ledger-track i{background:linear-gradient(90deg,#F0D48A,#B58A35)}
.ledger-row.property .ledger-track i{background:linear-gradient(90deg,#DDAD57,#8E6728)}
.overview-adjust-note{
  border-left-color:var(--gold);
  background:linear-gradient(135deg,rgba(214,177,100,.14),rgba(110,167,214,.08));
}
.overview-money-map{
  padding:32px;
  border-color:rgba(216,184,108,.16);
  background:
    radial-gradient(760px 320px at 5% 0%,rgba(216,184,108,.17),transparent 62%),
    radial-gradient(640px 360px at 96% 100%,rgba(110,167,214,.16),transparent 66%),
    linear-gradient(135deg,#03101F,#07182A 52%,#09213A);
}
.overview-map-title{
  font-size:clamp(24px,2.7vw,34px);
  max-width:760px;
}
.overview-map-head .add-row{color:#F0D48A}
.overview-map-body{
  grid-template-columns:minmax(250px,330px) minmax(0,1fr);
  gap:28px;
}
.overview-map-viz{
  min-height:360px;
  align-content:center;
  border-color:rgba(216,184,108,.16);
  background:
    radial-gradient(circle at 50% 44%,rgba(216,184,108,.20),transparent 55%),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
}
.overview-map-viz .overview-donut .chart{
  width:min(238px,100%);
  max-width:238px!important;
  filter:drop-shadow(0 22px 34px rgba(0,0,0,.32));
}
.overview-map-center-note{
  max-width:270px;
  color:rgba(248,246,239,.72);
}
.overview-map-list{
  gap:14px;
}
.overview-map-list > div{
  min-height:118px;
  padding:18px 20px;
  border-color:rgba(255,255,255,.12);
}
.overview-map-list > div.source{
  border-color:rgba(248,246,239,.18);
  background:linear-gradient(135deg,rgba(248,246,239,.11),rgba(255,255,255,.035));
}
.overview-map-list > div.expense{
  border-color:rgba(200,106,75,.34);
  background:linear-gradient(135deg,rgba(200,106,75,.17),rgba(255,255,255,.035));
}
.overview-map-list > div.invest{
  border-color:rgba(216,184,108,.34);
  background:linear-gradient(135deg,rgba(216,184,108,.16),rgba(255,255,255,.035));
}
.overview-map-list > div.pos{
  border-color:rgba(110,167,214,.34);
  background:linear-gradient(135deg,rgba(110,167,214,.15),rgba(255,255,255,.035));
}
.overview-map-list > div.workplace{
  border-color:rgba(216,184,108,.30);
  background:linear-gradient(135deg,rgba(216,184,108,.13),rgba(255,255,255,.032));
}
.overview-map-list b{
  font-family:var(--sans);
  font-size:clamp(28px,3vw,38px);
  letter-spacing:-.01em;
}
.overview-map-list .invest b{color:#F0D48A}
.overview-map-list .pos b{color:#A7CDED}
.overview-map-list .workplace b{color:#F0D48A}
.overview-map-foot{
  border-left-color:var(--gold);
  border-color:rgba(216,184,108,.22);
  background:rgba(216,184,108,.12);
}
.chart-card{
  border-radius:10px;
  padding:24px;
}
.chart-head p{
  max-width:72ch;
}
.money-in input,.field input,.num-suffix,.select-wrap select,textarea{
  color:var(--ink)!important;
  -webkit-text-fill-color:var(--ink)!important;
  background:var(--paper-2)!important;
}
.money-in input::placeholder,
.field input::placeholder,
.num-suffix input::placeholder,
textarea::placeholder{
  color:#AEB8C4!important;
  -webkit-text-fill-color:#AEB8C4!important;
  opacity:1!important;
}
:is(.modal,.scrim) .money-in input::placeholder,
:is(.modal,.scrim) .field input::placeholder,
:is(.modal,.scrim) .num-suffix input::placeholder{
  color:#BAC3CE!important;
  -webkit-text-fill-color:#BAC3CE!important;
}
:root[data-theme="dark"] .money-in input,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .num-suffix,
:root[data-theme="dark"] .num-suffix input,
:root[data-theme="dark"] .select-wrap select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .erow .nm{
  color:#F8F6EF!important;
  -webkit-text-fill-color:#F8F6EF!important;
  background:#0D1D30!important;
  border-color:#38506A!important;
  caret-color:#F0D48A!important;
}
:root[data-theme="dark"] .num-suffix input{
  background:transparent!important;
  border-color:transparent!important;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{
  color:#7D8B9D!important;
  -webkit-text-fill-color:#7D8B9D!important;
  opacity:1!important;
}
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] .num-suffix:focus-within{
  border-color:#D8B86C!important;
  box-shadow:0 0 0 3px rgba(216,184,108,.18)!important;
}
.modal{
  border-radius:12px;
  box-shadow:0 26px 90px -42px rgba(6,17,31,.58);
}
.modal-head h2{
  line-height:1.05;
  text-wrap:balance;
}
.dotrow{
  padding:3px;
  border-radius:999px;
  background:var(--paper-3);
}
.ob-progress-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.ob-progress-row .dotrow{
  flex:1;
  min-width:0;
}
.ob-progress-copy{
  flex:none;
  color:var(--ink-3);
  font-size:10px;
  font-weight:760;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.pdot{
  background:rgba(11,42,74,.14);
}
.pdot.on{
  background:linear-gradient(90deg,var(--navy-900),var(--gold));
}
:root[data-theme="dark"] .pdot{background:rgba(255,255,255,.12)}
:root[data-theme="dark"] .pdot.on{background:linear-gradient(90deg,#F0D48A,#D8B86C)}
.modal .field > input,
.modal .field .money-in input,
.modal .field .num-suffix,
.modal .select-wrap select{
  min-height:54px;
  font-size:16.5px;
}
.ob-note{
  color:var(--ink-2);
}
.ob-account-row,.ob-debt-row,.ob-custom-row{
  background:linear-gradient(180deg,var(--paper-2),var(--paper-3));
}
.chip-btn{
  background:var(--paper-2);
  border-color:var(--line);
}
.chip-btn:hover{
  border-color:var(--gold);
  background:var(--gold-soft);
}
.site-foot{
  max-width:1140px;
}
@media(max-width:880px){
  .overview-hero{
    padding:32px 26px;
    grid-template-columns:1fr;
    gap:24px;
  }
  .overview-hero .hero-num{font-size:clamp(48px,14vw,76px)}
  .overview-hero-ledger{
    padding:22px;
    border-top:1px solid rgba(255,255,255,.13);
  }
  .overview-map-body{grid-template-columns:1fr}
  .overview-map-viz{min-height:0}
  .overview-map-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .budget-workspace{grid-template-columns:1fr}
}
@media(max-width:520px){
  html,body{
    max-width:100%;
    overflow-x:hidden;
  }
  .app,.main,.wrap,.card,.hero,.callout,.overview-adjust-note,.overview-money-map,.chart-card{
    max-width:100%;
    min-width:0;
  }
  .main{
    overflow-x:hidden;
  }
  .scrim{
    align-items:center;
    justify-content:center;
    padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));
    overflow-x:hidden;
  }
  .wrap{padding:0 15px}
  .page-title{font-size:clamp(36px,11vw,46px)}
  .page-sub{
    font-size:14.5px;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  .callout,.overview-adjust-note{
    overflow-wrap:anywhere;
  }
  .overview-hero{
    padding:28px 22px;
    border-radius:10px;
  }
  .nw-equation{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }
  .nw-equation i{
    min-height:0;
    line-height:1;
  }
  .nw-equation span,.nw-equation strong{
    width:100%;
    justify-content:space-between;
  }
  .overview-hero-ledger{padding:18px}
  .overview-money-map{padding:22px 18px}
  .overview-map-list{grid-template-columns:1fr}
  .overview-map-list > div{
    min-height:0;
    padding:16px;
  }
  .overview-map-list b{font-size:30px}
  .modal{
    width:100%;
    max-width:min(380px,calc(100vw - 28px));
    margin:auto;
    border-radius:12px;
    overflow:hidden;
  }
  .modal-head{padding:20px 16px 0}
  .modal-head .muted{
    max-width:100%;
    line-height:1.5;
  }
  .modal-body{padding:15px 16px 8px}
  .modal-foot{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    padding:15px 16px 18px;
  }
  .modal-foot .linklike{
    justify-self:center;
    order:3;
  }
  .modal .field > input,
  .modal .field .money-in input,
  .modal .field .num-suffix,
  .modal .select-wrap select,
  .ob-account-row input,
  .ob-debt-row input,
  .ob-custom-row input,
  .ob-account-row select{
    min-height:56px;
    font-size:17px;
  }
  .ob-account-row .money-in input,
  .ob-debt-row .money-in input,
  .ob-custom-row .money-in input,
  .ob-debt-row .num-suffix,
  .ob-debt-row .num-suffix input{
    min-height:56px;
  }
  .field{margin-bottom:2px}
  .money-in input{
    padding-left:34px!important;
    padding-right:14px!important;
  }
  .money-in::before{left:14px}
  .ob-account-tools{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .chip-btn{
    width:100%;
    min-height:40px;
  }
  .ob-account-tools .ob-add-other{
    grid-column:1 / -1;
  }
  .ob-add-other{
    min-height:50px;
    padding:12px 15px;
    font-size:15px;
  }
}

/* ---------- v207: chart-led net worth, clearer cash flow, calmer reviews ---------- */
.networth-home-hero{
  grid-template-columns:minmax(0,1.62fr) minmax(280px,.64fr);
  gap:20px;
  align-items:stretch;
  padding:28px;
}
.networth-history-primary{
  order:1;
  min-height:390px;
  grid-template-rows:auto minmax(280px,1fr) auto;
  padding:24px 24px 18px;
}
.networth-current-panel{
  order:2;
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:24px 22px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:10px;
  background:
    radial-gradient(340px 190px at 100% 0,rgba(216,184,108,.12),transparent 68%),
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.028));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.075),0 30px 72px -58px rgba(0,0,0,.95);
}
.networth-current-panel h2{
  max-width:16ch;
  margin:10px 0 0;
  color:#F7F4EC;
  font-family:var(--serif);
  font-size:clamp(24px,2.3vw,32px);
  line-height:1.05;
  font-weight:650;
  text-wrap:balance;
}
.networth-current-panel .networth-asof{margin-top:14px;font-size:12px;gap:8px}
.networth-current-panel .networth-asof-sep{display:none}
.networth-current-panel .networth-asof .linklike{display:none}
.networth-current-panel .nw-equation{
  width:100%;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:22px;
  padding-top:16px;
}
.networth-current-panel .nw-equation span,
.networth-current-panel .nw-equation strong{
  position:relative;
  min-height:56px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:11px 12px 11px 36px;
  white-space:normal;
}
.networth-current-panel .nw-equation span:first-of-type{padding-left:12px}
.networth-current-panel .nw-equation span:nth-of-type(2)::before,
.networth-current-panel .nw-equation strong::before{
  position:absolute;
  left:13px;
  color:rgba(248,246,239,.46);
  font-family:Inter,Arial,sans-serif;
  font-size:18px;
  font-weight:800;
}
.networth-current-panel .nw-equation span:nth-of-type(2)::before{content:"−"}
.networth-current-panel .nw-equation strong::before{content:"="}
.networth-current-panel .nw-equation i{display:none}
.networth-current-panel .nw-equation b{font-size:16px}
.networth-current-panel .nw-equation strong{
  border-color:rgba(216,184,108,.34);
  background:linear-gradient(135deg,rgba(216,184,108,.16),rgba(118,169,212,.08));
}
.networth-current-panel .nw-equation strong b{color:#F0D48A;font-size:19px}
.networth-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:auto;
  padding-top:20px;
}
.networth-hero-actions .linklike{color:#F0D48A;font-size:12px}
.history-return-note{margin-left:auto;max-width:31ch;text-align:right}
.history-hit{fill:transparent;cursor:crosshair;pointer-events:all}
.history-point:focus-within .history-dot{
  r:7px;
  filter:drop-shadow(0 0 7px rgba(227,190,102,.58));
}
.history-current-callout .history-current-value{display:none}
.history-tip{
  min-width:188px;
  display:grid;
  gap:3px;
  padding:11px 13px!important;
  border:1px solid rgba(216,184,108,.35);
  background:rgba(3,16,31,.97)!important;
  box-shadow:0 22px 54px -28px rgba(0,0,0,.9)!important;
}
.history-tip span{color:rgba(247,244,236,.62);font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.history-tip b{color:#F7F4EC;font-family:var(--serif);font-size:21px;line-height:1.1}
.history-tip small{color:#F0D48A;font-size:11px;line-height:1.35}

.nw-account-card,
.nw-debt-card{position:relative;overflow:hidden}
.nw-account-card::before,
.nw-debt-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  border-radius:8px 0 0 8px;
}
.nw-account-card::before{background:linear-gradient(180deg,#4DCB91,#18795A)}
.nw-account-card{
  border-color:rgba(37,151,105,.18);
  box-shadow:var(--shadow),0 24px 56px -52px rgba(30,161,103,.95);
}
.nw-account-card:hover{
  border-color:rgba(37,151,105,.34);
  box-shadow:var(--shadow-lg),0 28px 70px -48px rgba(30,161,103,.78);
}
.nw-debt-card::before{background:linear-gradient(180deg,#E26A72,#A93245)}
.nw-debt-card{
  border-color:rgba(195,78,93,.19);
  box-shadow:var(--shadow),0 24px 56px -52px rgba(195,78,93,.95);
}
.nw-debt-card:hover{
  border-color:rgba(195,78,93,.36);
  box-shadow:var(--shadow-lg),0 28px 70px -48px rgba(195,78,93,.78);
}
.debt-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;padding-left:0}
.dt-field{min-width:0;display:grid;grid-template-rows:auto 48px;align-content:start}
.dt-field label{margin-bottom:7px;font-size:10.5px;font-weight:780;letter-spacing:.09em}
.debt-terms .num-suffix{width:100%;height:48px;min-height:48px;padding-right:12px;border-radius:9px;background:var(--paper-2);box-sizing:border-box}
.debt-terms .num-suffix input{min-width:0;min-height:46px;padding:10px 5px 10px 12px;font-size:14.5px}

.budget-plan-summary{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:4px 18px;
  align-items:center;
  margin:2px 0 16px;
  padding:17px 19px;
  border:1px solid rgba(118,169,212,.24);
  border-left:3px solid #76A9D4;
  border-radius:9px;
  background:linear-gradient(110deg,rgba(118,169,212,.11),rgba(216,184,108,.065)),var(--paper);
  box-shadow:0 18px 44px -36px rgba(7,24,39,.38);
}
.budget-plan-summary.risk{border-left-color:var(--danger);background:linear-gradient(110deg,var(--danger-soft),rgba(216,184,108,.05)),var(--paper)}
.budget-plan-summary-kicker{
  grid-row:1 / span 2;
  color:var(--ink-3);
  font-size:10px;
  font-weight:840;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.budget-plan-summary p{margin:0;color:var(--ink);font-size:16px;line-height:1.4}
.budget-plan-summary p b{color:var(--accent);font-weight:850}
.budget-plan-summary small{color:var(--ink-2);font-size:11.8px;line-height:1.4}
.overview-map-viz{
  min-height:330px;
  background:
    radial-gradient(circle at 50% 43%,rgba(118,169,212,.20),transparent 42%),
    radial-gradient(circle at 50% 48%,rgba(216,184,108,.12),transparent 64%),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
}
.overview-map-viz .overview-donut .chart{filter:drop-shadow(0 24px 38px rgba(0,0,0,.34))}
.overview-map-list > div.invest{border-color:rgba(216,184,108,.32);background:linear-gradient(135deg,rgba(216,184,108,.15),rgba(255,255,255,.035))}
.budget-workspace{grid-template-columns:minmax(330px,.82fr) minmax(580px,1.18fr);gap:20px}
.budget-expense-grid{gap:20px}
.budget-expense-grid .erow{grid-template-columns:minmax(130px,1fr) minmax(118px,132px) 28px;gap:10px}
.budget-expense-grid .erow .nm{min-width:0}
.budget-expense-grid .money-in input{min-height:46px}
.estimated-payment-note{
  display:grid;gap:3px;margin:12px 0 5px;padding:10px 12px;
  border-left:3px solid var(--gold);border-radius:6px;background:var(--gold-soft);
  color:var(--ink-2);font-size:11.5px;line-height:1.45
}
.estimated-payment-note b{color:var(--ink);font-size:12px}
.derived-debt-payment::after{
  content:"est.";position:absolute;right:8px;top:4px;color:var(--gold-ink,var(--ink-3));
  font-size:8px;font-weight:850;text-transform:uppercase;pointer-events:none
}
.derived-debt-payment input{padding-top:14px!important;padding-bottom:4px!important}
:root[data-theme="dark"] .estimated-payment-note{background:rgba(216,184,108,.1)}
:root[data-theme="dark"] .derived-debt-payment input{background:rgba(216,184,108,.07)}

.monthly-review-summary{
  margin-top:24px;
  padding:24px;
  border:1px solid var(--line);
  border-radius:10px;
  background:linear-gradient(145deg,var(--paper),var(--paper-2));
  box-shadow:var(--shadow);
}
.monthly-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.monthly-goals-link{flex:none;font-size:12px}
.monthly-review-summary .check-rhythm{margin-top:0}
.monthly-result-tiles{margin-top:18px}
.monthly-review-summary .monthly-insight{box-shadow:none}

.projection-chart-shell{
  padding:14px 8px 5px;
  border-color:rgba(216,184,108,.18);
  background:
    radial-gradient(720px 270px at 78% 100%,rgba(216,184,108,.11),transparent 72%),
    linear-gradient(180deg,rgba(118,169,212,.06),transparent 42%);
}
.projection-chart-shell .projection-chart{filter:drop-shadow(0 22px 32px rgba(7,24,39,.11))}

@media(max-width:1040px){
  .networth-home-hero{grid-template-columns:minmax(0,1.32fr) minmax(270px,.68fr)}
  .budget-workspace{grid-template-columns:1fr}
  .budget-income-card{position:static}
}
@media(max-width:880px){
  .networth-home-hero{grid-template-columns:1fr;padding:22px}
  .networth-history-primary{min-height:350px;order:1}
  .networth-current-panel{order:2}
  .networth-current-panel h2{max-width:24ch}
  .networth-current-panel .nw-equation{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  .networth-current-panel .nw-equation span,
  .networth-current-panel .nw-equation strong{min-height:72px;flex-direction:column;align-items:flex-start;justify-content:center;padding:12px}
  .networth-current-panel .nw-equation span:nth-of-type(2),
  .networth-current-panel .nw-equation strong{padding-left:36px}
}
@media(max-width:700px){
  .budget-plan-summary{grid-template-columns:1fr;gap:7px;padding:15px}
  .budget-plan-summary-kicker{grid-row:auto}
  .budget-plan-summary p{font-size:14px}
  .budget-expense-grid{grid-template-columns:1fr}
  .monthly-review-summary{padding:17px 14px}
  .monthly-review-head{flex-direction:column;gap:8px}
  .history-return-note{margin-left:0;text-align:left}
}
@media(max-width:520px){
  .networth-home-hero{padding:14px!important;gap:14px}
  .networth-history-primary{min-height:0;padding:17px 12px 14px}
  .networth-current-panel{padding:19px 15px}
  .networth-current-panel h2{font-size:26px}
  .networth-current-panel .nw-equation{grid-template-columns:1fr!important;gap:8px!important;margin-top:18px}
  .networth-current-panel .nw-equation span,
  .networth-current-panel .nw-equation strong{min-height:55px;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 11px!important;text-align:left}
  .networth-current-panel .nw-equation span:nth-of-type(2),
  .networth-current-panel .nw-equation strong{padding-left:36px!important}
  .networth-current-panel .nw-equation strong{grid-column:auto}
  .networth-current-panel .nw-equation strong::before{content:"=";margin:0}
  .history-chart-shell{min-height:230px}
  .history-hero-foot{flex-direction:column}
  .debt-terms{grid-template-columns:1fr}
  .budget-expense-grid .erow{grid-template-columns:minmax(0,1fr) 112px 26px;gap:7px}
  .monthly-review-summary .check-rhythm{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .nw-account-card,.nw-debt-card,.donut-seg{transition:none!important}
}

/* ---------- v205: net-worth history belongs in the first impression ---------- */
.networth-home-hero{
  grid-template-columns:minmax(0,.82fr) minmax(390px,.78fr);
  align-items:stretch;
}
.overview-hero-history{
  min-width:0;
  align-self:stretch;
  display:grid;
  grid-template-rows:auto minmax(210px,1fr) auto;
  gap:12px;
  padding:22px 22px 16px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:10px;
  background:
    radial-gradient(420px 210px at 0 0,rgba(216,184,108,.10),transparent 68%),
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.028));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 72px -58px rgba(0,0,0,.95);
}
.history-hero-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.history-hero-head > div{display:grid;gap:4px;min-width:0}
.history-hero-head span{
  color:rgba(247,244,236,.52);
  font-size:10px;
  font-weight:780;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.history-hero-head b{
  color:#F7F4EC;
  font-size:16px;
  line-height:1.25;
}
.history-hero-head .linklike,
.history-hero-foot .linklike{
  flex:none;
  color:#F0D48A;
  font-size:11.5px;
  font-weight:780;
  white-space:nowrap;
}
.history-chart-shell{
  min-width:0;
  min-height:210px;
  display:grid;
  align-items:center;
}
.history-chart-shell .history-chart{
  width:100%;
  overflow:visible;
  filter:drop-shadow(0 16px 24px rgba(0,0,0,.16));
}
.history-grid{stroke:rgba(221,232,240,.13);stroke-width:1}
.history-axis-value,
.history-axis-date{
  fill:rgba(220,230,239,.58);
  font-family:Inter,Arial,sans-serif;
  font-size:10.5px;
  font-weight:650;
}
.history-axis-date{fill:rgba(247,244,236,.66);font-size:10px}
.history-area{fill-opacity:1}
.history-line-main{
  fill:none;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.history-start-guide{
  stroke:rgba(216,184,108,.36);
  stroke-width:1.5;
  stroke-dasharray:5 5;
}
.history-dot{
  fill:#8ABCE0;
  stroke:#071728;
  stroke-width:2.5;
  cursor:pointer;
  transition:r .16s ease,filter .16s ease;
}
.history-dot.current{fill:#E3BE66;stroke:#F7F4EC;stroke-width:3}
.history-dot.active,.history-dot:focus{r:7;filter:drop-shadow(0 0 7px rgba(227,190,102,.58));outline:none}
.history-current-callout rect{
  fill:rgba(3,16,31,.94);
  stroke:rgba(227,190,102,.56);
  stroke-width:1;
}
.history-current-callout text{
  fill:rgba(247,244,236,.60);
  font-family:Inter,Arial,sans-serif;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
}
.history-current-callout .history-current-value{
  fill:#F0D48A;
  font-family:Georgia,"Times New Roman",serif;
  font-size:18px;
  font-weight:700;
  letter-spacing:0;
}
.history-hero-foot{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
}
.history-hero-foot > span{
  color:rgba(247,244,236,.64);
  font-size:11.5px;
  line-height:1.45;
}
.history-change{color:#F7F4EC}
.history-change.positive{color:#98C7E8}
.history-change.negative{color:#FF9A98}
.history-empty{
  display:grid;
  gap:5px;
  align-content:center;
  min-height:190px;
  padding:20px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:8px;
  color:rgba(247,244,236,.62);
  text-align:center;
}
.history-empty b{color:#F7F4EC;font-size:15px}
.history-empty span{font-size:12px;line-height:1.45}
#nw-history-manager:focus{outline:3px solid rgba(var(--glow-rgb),.18);outline-offset:4px}
#view.view-enter .history-line-main{
  stroke-dasharray:1;
  stroke-dashoffset:1;
  animation:projectionLineIn .7s cubic-bezier(.22,.72,.24,1) .12s both;
}
#view.view-enter .history-area{animation:projectionAreaIn .5s ease .18s both}
#view.view-enter .history-dot,
#view.view-enter .history-current-callout{animation:projectionLabelsIn .4s ease .48s both}

@media(max-width:880px){
  .networth-home-hero{grid-template-columns:1fr}
  .overview-hero-history{min-height:330px}
}
@media(max-width:520px){
  .overview-hero-history{
    min-height:0;
    grid-template-rows:auto auto auto;
    gap:10px;
    padding:17px 14px 14px;
  }
  .history-hero-head{gap:10px}
  .history-hero-head b{font-size:14px}
  .history-hero-head .linklike{font-size:10.5px}
  .history-chart-shell{min-height:215px}
  .history-hero-foot{align-items:flex-start;flex-direction:column;gap:8px;padding-top:10px}
  .history-hero-foot > span{font-size:11px}
  .history-hero-foot .linklike{white-space:normal;text-align:left}
}
@media(prefers-reduced-motion:reduce){
  #view.view-enter .history-line-main,
  #view.view-enter .history-area,
  #view.view-enter .history-dot,
  #view.view-enter .history-current-callout{
    animation:none!important;
    opacity:1!important;
    stroke-dashoffset:0!important;
  }
}

/* ---------- v152 polish: onboarding rows + footer trust line ---------- */
.ob-helper{
  margin-top:-2px;
  color:var(--ink-2);
  font-size:13px;
  line-height:1.5;
  max-width:76ch;
}
.ob-account-list{
  gap:12px;
}
.ob-account-row{
  grid-template-columns:minmax(240px,1.05fr) minmax(170px,.62fr) minmax(190px,.7fr) 38px;
  gap:14px;
  padding:14px;
}
.ob-debt-row{
  grid-template-columns:minmax(230px,1fr) minmax(180px,.75fr) minmax(108px,.42fr) minmax(126px,.48fr) 38px;
  gap:14px;
  padding:14px;
}
.ob-custom-row{
  grid-template-columns:minmax(240px,1fr) minmax(190px,.7fr) 38px;
  gap:14px;
  padding:14px;
}
.ob-account-row label,
.ob-debt-row label,
.ob-custom-row label{
  margin-bottom:7px;
}
.ob-value-help{
  margin-top:6px;
  color:var(--ink-3);
  font-size:11.5px;
  line-height:1.35;
}
.ob-account-row input,
.ob-debt-row input,
.ob-custom-row input,
.ob-account-row select{
  min-height:50px;
}
.ob-del-row{
  width:38px;
  height:50px;
  align-self:end;
  color:var(--ink-3);
  border:1px solid transparent;
}
.ob-del-row:hover{
  color:var(--danger);
  border-color:var(--danger-soft);
  background:var(--danger-soft);
}
.site-foot{
  display:grid;
  gap:14px;
  text-align:center;
}
.foot-top{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);
  align-items:center;
  gap:16px;
  margin-bottom:0;
}
.foot-person{
  justify-self:start;
  text-align:left;
}
.foot-status{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  max-width:100%;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--paper-2);
  color:var(--ink-2);
  font-size:12px;
  line-height:1.25;
  white-space:nowrap;
  box-shadow:var(--shadow);
}
.foot-status::before{
  content:"";
  width:7px;
  height:7px;
  margin-right:8px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 3px var(--gold-soft);
}
.foot-links{
  margin-top:0;
}
@media(max-width:880px){
  .foot-top{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }
  .foot-person{
    justify-self:center;
    text-align:left;
  }
  .foot-status{
    justify-self:center;
    white-space:normal;
    text-align:center;
  }
  .foot-links{
    justify-content:center;
    gap:8px 12px;
  }
  .ob-account-row{
    grid-template-columns:minmax(190px,1.1fr) minmax(142px,.8fr) minmax(160px,.9fr) 38px;
  }
}
@media(max-width:520px){
  .ob-helper{
    font-size:12.5px;
  }
  .ob-account-row,
  .ob-debt-row,
  .ob-custom-row{
    grid-template-columns:minmax(0,1fr) 42px!important;
    gap:12px;
    padding:14px;
  }
  .ob-account-row .ob-row-main,
  .ob-debt-row .ob-row-main,
  .ob-custom-row .ob-row-main{
    grid-column:1!important;
    grid-row:1!important;
  }
  .ob-account-row > div:not(.ob-row-main),
  .ob-debt-row > div:not(.ob-row-main),
  .ob-custom-row > div:not(.ob-row-main){
    grid-column:1 / -1!important;
    grid-row:auto!important;
  }
  .ob-del-row{
    grid-column:2!important;
    grid-row:1!important;
    width:42px;
    height:42px;
  }
}

/* ---------- v157 polish: compact mobile onboarding cards ---------- */
@media(max-width:520px){
  .ob-account-list{
    gap:10px;
  }
  .ob-account-row,
  .ob-debt-row,
  .ob-custom-row{
    position:relative;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px;
    padding:12px;
  }
  .ob-account-row .ob-row-main,
  .ob-debt-row .ob-row-main,
  .ob-custom-row .ob-row-main{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    padding-right:48px;
  }
  .ob-account-row > div:not(.ob-row-main),
  .ob-debt-row > div:not(.ob-row-main),
  .ob-custom-row > div:not(.ob-row-main){
    grid-column:auto!important;
    grid-row:auto!important;
  }
  .ob-debt-row > div:nth-of-type(2),
  .ob-custom-row > div:nth-of-type(2){
    grid-column:1 / -1!important;
  }
  .ob-del-row{
    position:absolute;
    top:35px;
    right:12px;
    grid-column:auto!important;
    grid-row:auto!important;
    width:40px;
    height:40px;
    background:rgba(255,255,255,.02);
    border-color:var(--line);
    opacity:.9;
  }
  .ob-account-row input,
  .ob-debt-row input,
  .ob-custom-row input,
  .ob-account-row select{
    min-height:52px;
    font-size:16px;
  }
  .ob-account-row .money-in input,
  .ob-debt-row .money-in input,
  .ob-custom-row .money-in input,
  .ob-debt-row .num-suffix,
  .ob-debt-row .num-suffix input{
    min-height:52px;
  }
  .ob-account-row label,
  .ob-debt-row label,
  .ob-custom-row label{
    margin-bottom:5px;
    font-size:10px;
  }
  .ob-debt-row{
    gap:8px;
    padding:11px 12px;
  }
  .ob-debt-row input,
  .ob-debt-row .money-in input,
  .ob-debt-row .num-suffix,
  .ob-debt-row .num-suffix input{
    min-height:46px;
    font-size:15.5px;
  }
}

/* ---------- v160 polish: mobile header hit targets + Check-In alignment ---------- */
.monthly-spend-card .erow{
  grid-template-columns:minmax(0,1fr) 112px 128px 76px!important;
  gap:14px;
  padding:12px 0;
  align-items:center;
}
.monthly-spend-card .erow > span:first-child{
  min-width:0;
  overflow-wrap:anywhere;
}
.monthly-spend-card .erow > .money-in{
  width:100%;
  min-width:0;
}
.monthly-spend-card .erow > .money-in input{
  min-height:42px;
}
@media(max-width:620px){
  .topbar{
    min-height:64px;
    padding:calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px!important;
    align-items:center!important;
  }
  .topbar .brand{
    padding:0;
  }
  .topbar > div:last-child{
    gap:8px!important;
    align-items:center;
    padding-right:env(safe-area-inset-right, 0px);
  }
  .topbar .btn-ghost.ico{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    padding:0;
    border-radius:12px;
    display:grid;
    place-items:center;
  }
  .topbar .btn-ghost.ico .ni{
    width:20px;
    height:20px;
  }
  .topbar .savedot{
    width:34px;
    height:34px;
    min-width:34px;
    min-height:34px;
  }
  .monthly-spend-card .card-eyebrow + .erow{
    display:none;
  }
  .monthly-spend-card .erow{
    grid-template-columns:minmax(0,1fr) 126px!important;
    gap:6px 12px;
    padding:15px 0;
    align-items:center;
  }
  .monthly-spend-card .erow > span:first-child{
    grid-column:1;
    grid-row:1;
    color:var(--ink);
    font-size:14.5px!important;
    font-weight:700;
    line-height:1.25;
  }
  .monthly-spend-card .erow > span:last-child{
    grid-column:2;
    grid-row:1;
    min-height:30px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    text-align:right!important;
  }
  .monthly-spend-card .erow > span:nth-child(2){
    grid-column:1;
    grid-row:2;
    text-align:left!important;
    color:var(--ink-2)!important;
    font-size:13px;
    line-height:1.25;
    align-self:end;
    padding-bottom:7px;
  }
  .monthly-spend-card .erow > span:nth-child(2)::before{
    content:"Planned";
    display:block;
    margin-bottom:2px;
    color:var(--ink-3);
    font-size:10px;
    font-weight:760;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .monthly-spend-card .erow > .money-in{
    grid-column:2;
    grid-row:2;
  }
  .monthly-spend-card .erow > .money-in::after{
    content:"Actual";
    position:absolute;
    left:0;
    top:-17px;
    color:var(--ink-3);
    font-size:10px;
    font-weight:760;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .monthly-spend-card .erow > .money-in input{
    min-height:46px;
  }
}

/* ---------- v162 polish: onboarding sign-in + Overview monthly check-in ---------- */
.overview-checkin-cta{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px 12px;
  width:min(100%,420px);
  margin:14px 0 18px auto;
  padding:13px 14px;
  overflow:hidden;
  border:1px solid rgba(216,184,108,.18);
  border-radius:10px;
  color:#F8F6EF;
  background:
    radial-gradient(360px 120px at 96% 0%,rgba(216,184,108,.13),transparent 72%),
    linear-gradient(135deg,rgba(6,17,31,.96),rgba(10,27,46,.96));
  box-shadow:0 16px 44px -34px rgba(6,17,31,.74),inset 0 1px 0 rgba(255,255,255,.07);
}
.overview-checkin-cta::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.045),transparent 42%,rgba(216,184,108,.055) 100%);
}
.checkin-cta-score,
.checkin-cta-copy,
.overview-checkin-cta .btn{
  position:relative;
  z-index:1;
}
.checkin-cta-score{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  align-content:center;
  border:1px solid rgba(216,184,108,.28);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 14px 34px -26px rgba(0,0,0,.9);
}
.checkin-cta-score span{
  display:block;
  font-family:var(--serif);
  font-size:18px;
  line-height:1;
  color:#F0D48A;
  font-weight:680;
}
.checkin-cta-score small{
  display:block;
  margin-top:3px;
  color:rgba(248,246,239,.62);
  font-size:8.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:760;
}
.checkin-cta-copy .card-eyebrow{
  margin-bottom:3px;
  color:rgba(248,246,239,.54);
}
.checkin-cta-copy b{
  display:block;
  color:#FFFFFF;
  font-family:var(--serif);
  font-size:17px;
  line-height:1.15;
  letter-spacing:0;
}
.checkin-cta-copy span{
  display:block;
  max-width:68ch;
  margin-top:4px;
  color:rgba(248,246,239,.70);
  font-size:12px;
  line-height:1.35;
}
.overview-checkin-cta .btn-pri{
  grid-column:2;
  justify-self:start;
  min-height:34px;
  padding:0 12px;
  font-size:12px;
  border-radius:8px;
  white-space:nowrap;
  background:#F8F6EF;
  color:#071827;
  border:1px solid rgba(216,184,108,.34);
  box-shadow:0 16px 34px -26px rgba(0,0,0,.9);
}
.overview-checkin-cta .btn-pri:hover{
  background:#FFFFFF;
  color:#071827;
}
.account-choice-note{
  padding:13px 15px;
  border:1px solid rgba(216,184,108,.24);
  border-left:3px solid var(--gold);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(216,184,108,.13),rgba(110,167,214,.08));
  color:var(--ink-2);
  font-size:13px;
}
.account-choice-note b{color:var(--ink)}
@media(max-width:720px){
  .overview-checkin-cta{
    width:100%;
    grid-template-columns:auto minmax(0,1fr);
    padding:13px;
    gap:10px 12px;
  }
  .overview-checkin-cta .btn{
    grid-column:2;
    width:auto;
    justify-content:center;
  }
  .checkin-cta-score{
    width:52px;
    height:52px;
  }
  .checkin-cta-score span{font-size:18px}
  .checkin-cta-copy b{font-size:17px}
}
@media(max-width:420px){
  .overview-checkin-cta{
    grid-template-columns:auto minmax(0,1fr);
  }
  .checkin-cta-score{
    width:50px;
    height:50px;
    min-height:0;
    border-radius:8px;
  }
}

/* ---------- v165 polish: discreet Overview check-in + money-map equation ---------- */
.overview-page-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:22px;
}
.overview-page-copy{min-width:0}
.overview-page-head .overview-checkin-cta.compact{
  width:min(430px,38vw);
  margin:3px 0 0 auto;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:8px 10px;
  padding:10px 10px;
  align-self:start;
  border-color:rgba(216,184,108,.20);
  box-shadow:0 18px 42px -34px rgba(6,17,31,.70),inset 0 1px 0 rgba(255,255,255,.07);
}
.overview-checkin-cta.compact .checkin-cta-score{
  width:42px;
  height:42px;
  border-radius:7px;
}
.overview-checkin-cta.compact .checkin-cta-score span{font-size:16px}
.overview-checkin-cta.compact .checkin-cta-score small{
  margin-top:2px;
  font-size:7px;
}
.overview-checkin-cta.compact .checkin-cta-copy .card-eyebrow{
  margin-bottom:2px;
  font-size:9.5px;
  letter-spacing:.12em;
}
.overview-checkin-cta.compact .checkin-cta-copy b{
  font-family:var(--sans);
  font-size:13px;
  font-weight:780;
  line-height:1.18;
}
.checkin-mini-steps{display:none}
.overview-checkin-cta.compact .checkin-cta-support{display:none}
.overview-checkin-cta.compact .checkin-mini-steps{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:6px;
}
.overview-checkin-cta.compact .checkin-mini-steps span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 6px;
  border:1px solid rgba(248,246,239,.12);
  border-radius:999px;
  background:rgba(248,246,239,.055);
  color:rgba(248,246,239,.68);
  font-size:9.5px;
  line-height:1;
  white-space:nowrap;
}
.overview-checkin-cta.compact .checkin-mini-steps b{
  display:grid;
  place-items:center;
  width:14px;
  height:14px;
  border-radius:50%;
  background:rgba(240,212,138,.14);
  color:#F0D48A;
  font-family:var(--sans);
  font-size:9px;
  font-weight:800;
  line-height:1;
}
.overview-checkin-cta.compact .btn-pri{
  grid-column:auto;
  justify-self:end;
  min-height:31px;
  padding:0 10px;
  font-size:11.5px;
}
.overview-map-list > div{
  position:relative;
  padding-left:58px;
}
.overview-map-list .flow-op{
  position:absolute;
  left:18px;
  top:18px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border:1px solid rgba(248,246,239,.22);
  border-radius:999px;
  background:rgba(248,246,239,.08);
  color:rgba(248,246,239,.88);
  font-style:normal;
  font-size:14px;
  font-weight:820;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.overview-map-list .source .flow-op{
  border-color:rgba(248,246,239,.30);
  background:rgba(248,246,239,.12);
}
.overview-map-list .expense .flow-op{color:#EFA082;border-color:rgba(239,160,130,.32)}
.overview-map-list .invest .flow-op{color:#F0D48A;border-color:rgba(240,212,138,.32)}
.overview-map-list .pos .flow-op{color:#A7CDED;border-color:rgba(167,205,237,.32)}
.overview-map-list .neg .flow-op,
.overview-map-list .flow-op-gap{
  color:#F79AA5;
  border-color:rgba(247,154,165,.32);
}
.overview-map-list > div.flow-separate{
  grid-column:1 / -1;
  min-height:0;
  padding:18px 20px 20px;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  align-items:start;
}
.flow-separate-head{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.overview-map-list .flow-op-separate{
  position:static;
  align-self:start;
  width:auto;
  min-width:0;
  max-width:150px;
  height:26px;
  padding:0 12px;
  color:#F0D48A;
  border-radius:999px;
  border-color:rgba(240,212,138,.34);
  background:rgba(216,184,108,.10);
  font-size:9.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.overview-map-list > div.flow-separate span{
  min-width:0;
}
.overview-map-list > div.flow-separate b{
  grid-column:1;
  margin-top:0;
}
@media(max-width:980px){
  .overview-page-head{
    grid-template-columns:1fr;
    gap:12px;
  }
  .overview-page-head .overview-checkin-cta.compact{
    width:min(100%,420px);
    margin:0;
  }
}
@media(max-width:520px){
  .overview-page-head .overview-checkin-cta.compact{
    grid-template-columns:auto minmax(0,1fr);
  }
  .overview-checkin-cta.compact .btn-pri{
    grid-column:2;
    justify-self:start;
  }
  .overview-map-list > div,
  .overview-map-list > div.flow-separate{
    padding-left:54px;
  }
  .overview-map-list > div.flow-separate{
    grid-template-columns:1fr;
    padding:16px;
  }
  .flow-separate-head{
    grid-template-columns:1fr;
    gap:8px;
  }
  .overview-map-list .flow-op{
    left:16px;
    top:16px;
  }
  .overview-map-list .flow-op-separate{
    position:static;
    width:max-content;
    max-width:100%;
    min-width:0;
    padding:0 10px;
    overflow:visible;
    color:#F0D48A;
  }
  .overview-map-list .flow-op-separate::before{
    content:none;
  }
  .overview-map-list > div.flow-separate span,
  .overview-map-list > div.flow-separate b{
    grid-column:1;
  }
}

/* ---------- v164 polish: advisor copy hierarchy + budget income spacing ---------- */
.budget-income-card .card-eyebrow{
  margin-bottom:18px;
}
.budget-income-card .income-grid{
  display:grid;
  gap:0;
}
.budget-income-line{
  padding:0 0 16px;
  margin:0 0 16px;
  border-bottom:1px solid rgba(8,25,43,.10);
}
:root[data-theme="dark"] .budget-income-line{
  border-bottom-color:rgba(255,255,255,.10);
}
.budget-income-line:last-child{
  padding-bottom:0;
  margin-bottom:0;
  border-bottom:0;
}
.budget-income-line > div:first-child > div:first-child{
  margin-bottom:8px!important;
  color:var(--ink)!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:760!important;
}
.budget-income-line .money-in input{
  min-height:54px;
  border-radius:10px;
  font-size:17px;
}
.budget-income-line .ig-note{
  margin-top:8px;
  max-width:52ch;
  color:var(--ink-2);
  font-size:12.8px;
  line-height:1.45;
}
.budget-income-summary{
  margin-top:18px!important;
  padding:13px 15px;
  border-radius:8px;
  color:var(--ink-2);
  font-size:12.8px!important;
  line-height:1.5!important;
}
.budget-income-summary b{
  color:var(--ink);
}
.modal .field{
  display:grid;
  gap:7px;
}
.modal .field label{
  margin-bottom:0;
}
.modal .field .ob-note{
  margin-top:0;
  max-width:58ch;
}
.ob-intro .callout{
  line-height:1.5;
}
@media(max-width:960px) and (min-width:521px){
  .budget-income-card .income-grid{
    gap:16px 18px;
  }
  .budget-income-line{
    padding:0 0 14px;
    margin:0;
  }
}
@media(max-width:520px){
  .budget-income-card .card-eyebrow{
    margin-bottom:16px;
  }
  .budget-income-line{
    padding-bottom:15px;
    margin-bottom:15px;
  }
  .budget-income-line .money-in input{
    min-height:56px;
    font-size:16px;
  }
  .budget-income-line .ig-note,
  .budget-income-summary{
    font-size:12.5px!important;
  }
}

/* ---------- v165 polish: net-worth recency context ---------- */
.networth-asof{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
  color:rgba(248,246,239,.66);
  font-size:13px;
  line-height:1.35;
}
.networth-asof b{
  color:#F7F4EC;
  font-weight:760;
}
.networth-asof-sep{
  color:rgba(248,246,239,.32);
}
.networth-asof .linklike{
  color:#F0D48A;
  font-size:13px;
  font-weight:760;
  text-decoration-color:rgba(240,212,138,.44);
  text-underline-offset:3px;
}
.networth-asof .linklike:hover{
  color:#FFFFFF;
  text-decoration-color:#FFFFFF;
}
#nw-balances:focus{
  outline:none;
}
@media(max-width:520px){
  .networth-asof{
    gap:8px;
    margin-top:10px;
    font-size:12.5px;
  }
}

/* ---------- v161 onboarding editable category rows ---------- */
.ob-expense-row,
.ob-invest-row{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(190px,.7fr) 38px;
  gap:14px;
  align-items:end;
  padding:14px;
  border:1px solid var(--line);
  border-radius:8px;
  background:linear-gradient(180deg,var(--paper),var(--paper-2));
  box-shadow:0 12px 30px -28px rgba(6,17,31,.55);
}
.ob-expense-row label,
.ob-invest-row label{
  display:block;
  margin-bottom:7px;
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:760;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ob-expense-row input,
.ob-invest-row input{
  width:100%;
  min-height:50px;
  font-size:16px;
}
.ob-expense-row .money-in input,
.ob-invest-row .money-in input{
  min-height:50px;
  padding-left:30px;
  padding-right:14px;
}
.ob-expense-row .money-in::before,
.ob-invest-row .money-in::before{
  left:13px;
  font-size:14px;
}
.ob-help-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  margin-top:4px;
  padding:13px;
  border:1px solid rgba(var(--glow-rgb),.22);
  border-radius:10px;
  background:linear-gradient(135deg,rgba(var(--glow-rgb),.09),var(--paper-2) 62%,rgba(201,154,74,.08));
}
.ob-help-card b{
  display:block;
  color:var(--ink);
  font-size:13.5px;
  line-height:1.25;
}
.ob-help-card span{
  display:block;
  margin-top:3px;
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.45;
}
.ob-help-card a{
  white-space:nowrap;
  color:var(--accent);
  font-weight:820;
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px;
}
@media(max-width:520px){
  .ob-expense-row,
  .ob-invest-row{
    position:relative;
    grid-template-columns:1fr!important;
    gap:12px;
    padding:12px;
  }
  .ob-expense-row .ob-row-main,
  .ob-invest-row .ob-row-main{
    padding-right:48px;
  }
  .ob-expense-row .ob-del-row,
  .ob-invest-row .ob-del-row{
    position:absolute;
    top:35px;
    right:12px;
    width:40px;
    height:40px;
  }
  .ob-expense-row input,
  .ob-invest-row input,
  .ob-expense-row .money-in input,
  .ob-invest-row .money-in input{
    min-height:52px;
    font-size:16px;
  }
  .ob-help-card{
    grid-template-columns:1fr;
  }
  .ob-help-card a{
    grid-column:1 / -1;
    justify-self:start;
  }
}

/* ---------- v182 final onboarding row alignment ---------- */
.ob-account-row{
  grid-template-columns:minmax(220px,1fr) minmax(172px,220px) minmax(190px,240px) 40px!important;
  gap:14px 16px;
  align-items:start;
}
.ob-debt-row{
  grid-template-columns:minmax(220px,1fr) minmax(172px,220px) minmax(104px,128px) minmax(116px,142px) 40px!important;
  gap:14px 16px;
  align-items:start;
}
.ob-account-row .ob-row-main,
.ob-debt-row .ob-row-main{
  min-width:0;
}
.ob-account-row input,
.ob-account-row select,
.ob-debt-row input{
  min-height:50px;
}
.ob-del-row{
  align-self:end;
}
@media(max-width:740px){
  .ob-account-row,
  .ob-debt-row{
    position:relative;
    grid-template-columns:minmax(0,1fr) 42px!important;
    gap:12px;
  }
  .ob-account-row .ob-row-main,
  .ob-debt-row .ob-row-main{
    grid-column:1!important;
    padding-right:48px!important;
  }
  .ob-account-row > div:not(.ob-row-main),
  .ob-debt-row > div:not(.ob-row-main){
    grid-column:1 / -1!important;
  }
  .ob-del-row{
    position:absolute;
    top:34px;
    right:12px;
    width:40px;
    height:40px;
  }
  .ob-account-row input,
  .ob-account-row select,
  .ob-debt-row input,
  .ob-account-row .money-in input,
  .ob-debt-row .money-in input,
  .ob-debt-row .num-suffix,
  .ob-debt-row .num-suffix input{
    min-height:52px;
    font-size:16px;
  }
}

/* ---------- v183 polish: formula clarity + money-map label safety ---------- */
.formula-equation{
  gap:9px!important;
  align-items:stretch!important;
}
.formula-term{
  display:grid;
  gap:3px;
  min-width:116px;
  padding:8px 10px;
  border:1px solid rgba(7,24,39,.10);
  border-radius:8px;
  background:rgba(255,255,255,.52);
}
.formula-term small{
  display:block;
  color:var(--ink-3);
  font-family:var(--sans);
  font-size:9.5px;
  line-height:1.15;
  font-weight:820;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.formula-term b{
  color:var(--ink);
  font-family:var(--serif);
  font-size:18px;
  line-height:1.05;
}
.formula-term.formula-result{
  min-width:140px;
  border-color:rgba(199,161,90,.34);
  background:rgba(199,161,90,.11);
}
.formula-term.formula-result b{
  color:var(--gold);
  font-size:20px;
}
.formula-term.debt{
  border-color:rgba(183,62,74,.18);
  background:rgba(183,62,74,.055);
}
.formula-term.debt b{
  color:var(--danger);
}
.formula-equation .formula-op{
  align-self:center;
  padding:0 1px;
}
.overview-map-list > div.flow-separate{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  padding:18px 20px!important;
}
.flow-separate-head{
  grid-template-columns:1fr!important;
  gap:8px!important;
  min-width:0;
}
.overview-map-list .flow-op-separate{
  justify-self:start;
  max-width:none!important;
  height:auto!important;
  min-height:24px;
  padding:6px 10px!important;
  white-space:normal;
  line-height:1.15!important;
  text-align:left;
}
.overview-map-list > div.flow-separate b{
  grid-column:2!important;
  grid-row:1!important;
  align-self:center;
  margin-top:0!important;
  font-size:34px;
  white-space:nowrap;
}
:root[data-theme="dark"] .formula-term{
  border-color:rgba(248,246,239,.12);
  background:rgba(248,246,239,.045);
}
:root[data-theme="dark"] .formula-term.formula-result{
  background:rgba(216,184,108,.085);
  border-color:rgba(216,184,108,.24);
}
:root[data-theme="dark"] .formula-term.debt{
  background:rgba(255,136,136,.07);
  border-color:rgba(255,136,136,.18);
}
@media(max-width:760px){
  .formula-term{
    min-width:min(100%,128px);
    flex:1 1 132px;
  }
  .formula-term.formula-result{
    min-width:min(100%,160px);
  }
  .overview-map-list > div.flow-separate{
    grid-template-columns:1fr!important;
  }
  .overview-map-list > div.flow-separate b{
    grid-column:1!important;
    grid-row:auto!important;
    justify-self:start;
    font-size:30px;
  }
}

/* ---------- v184 polish: modal centering + onboarding input hardening ---------- */
.scrim{
  display:flex!important;
  align-items:center;
  justify-content:center;
  overflow:auto;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(14px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(14px, env(safe-area-inset-left, 0px));
}
html:has(.scrim),
body:has(.scrim){
  overflow:hidden;
  overscroll-behavior:none;
}
.modal{
  margin:auto;
  width:min(100%,560px);
  max-height:calc(100dvh - 32px);
}
.modal-wide{
  width:min(100%,860px);
}
:is(.modal,.scrim) input:not([type="range"]),
:is(.modal,.scrim) select,
:is(.modal,.scrim) textarea{
  box-sizing:border-box;
  color:var(--ink)!important;
  -webkit-text-fill-color:var(--ink)!important;
  background:var(--paper-2)!important;
  border-color:var(--line-2)!important;
  caret-color:var(--accent)!important;
}
:is(.modal,.scrim) input:not([type="range"]):focus,
:is(.modal,.scrim) select:focus,
:is(.modal,.scrim) textarea:focus,
:is(.modal,.scrim) .num-suffix:focus-within{
  color:var(--ink)!important;
  -webkit-text-fill-color:var(--ink)!important;
  background:var(--paper-3)!important;
  border-color:var(--accent)!important;
  box-shadow:0 0 0 3px var(--accent-soft)!important;
}
:root[data-theme="dark"] :is(.modal,.scrim) input:not([type="range"]),
:root[data-theme="dark"] :is(.modal,.scrim) select,
:root[data-theme="dark"] :is(.modal,.scrim) textarea{
  color:#F8F6EF!important;
  -webkit-text-fill-color:#F8F6EF!important;
  background:#0D1D30!important;
  border-color:#38506A!important;
  caret-color:#F0D48A!important;
}
:root[data-theme="dark"] :is(.modal,.scrim) input:not([type="range"]):focus,
:root[data-theme="dark"] :is(.modal,.scrim) select:focus,
:root[data-theme="dark"] :is(.modal,.scrim) textarea:focus,
:root[data-theme="dark"] :is(.modal,.scrim) .num-suffix:focus-within{
  background:#11253A!important;
  border-color:#D8B86C!important;
  box-shadow:0 0 0 3px rgba(216,184,108,.18)!important;
}
:is(.modal,.scrim) input::placeholder,
:is(.modal,.scrim) textarea::placeholder{
  color:#8794A5!important;
  -webkit-text-fill-color:#8794A5!important;
  opacity:1!important;
}
:root[data-theme="dark"] :is(.modal,.scrim) input::placeholder,
:root[data-theme="dark"] :is(.modal,.scrim) textarea::placeholder{
  color:#7D8B9D!important;
  -webkit-text-fill-color:#7D8B9D!important;
}
.ob-account-row{
  grid-template-columns:minmax(240px,.95fr) minmax(164px,.62fr) minmax(190px,.76fr) 38px!important;
  gap:14px!important;
}
.ob-debt-row{
  grid-template-columns:minmax(230px,.92fr) minmax(180px,.72fr) minmax(104px,.42fr) minmax(118px,.46fr) 38px!important;
  gap:14px!important;
}
.ob-account-row > div,
.ob-debt-row > div,
.ob-expense-row > div,
.ob-invest-row > div{
  min-width:0;
}
.ob-account-row label,
.ob-debt-row label,
.ob-expense-row label,
.ob-invest-row label{
  line-height:1.2;
}
.ob-value-help{
  max-width:36ch;
}
@media(max-width:740px){
  .scrim{
    align-items:center;
    justify-content:center;
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px));
  }
  .modal,
  .modal-wide{
    width:min(100%,calc(100vw - 20px));
    max-height:calc(100dvh - 24px);
    border-radius:12px;
  }
  .modal-head{
    padding:22px 18px 0!important;
  }
  .modal-body{
    padding:16px 18px 8px!important;
    gap:14px;
  }
  .modal-foot{
    padding:16px 18px 20px!important;
  }
  .ob-account-row,
  .ob-debt-row,
  .ob-expense-row,
  .ob-invest-row{
    grid-template-columns:minmax(0,1fr)!important;
    gap:11px!important;
    padding:13px 12px!important;
  }
  .ob-account-row .ob-row-main,
  .ob-debt-row .ob-row-main,
  .ob-expense-row .ob-row-main,
  .ob-invest-row .ob-row-main{
    grid-column:1!important;
    padding-right:48px!important;
  }
  .ob-account-row > div:not(.ob-row-main),
  .ob-debt-row > div:not(.ob-row-main),
  .ob-expense-row > div:not(.ob-row-main),
  .ob-invest-row > div:not(.ob-row-main){
    grid-column:1!important;
  }
  .ob-account-row input,
  .ob-account-row select,
  .ob-debt-row input,
  .ob-expense-row input,
  .ob-invest-row input,
  .ob-account-row .money-in input,
  .ob-debt-row .money-in input,
  .ob-expense-row .money-in input,
  .ob-invest-row .money-in input,
  .ob-debt-row .num-suffix,
  .ob-debt-row .num-suffix input{
    min-height:54px!important;
    font-size:16px!important;
  }
  .ob-del-row{
    top:36px!important;
    right:12px!important;
  }
}

/* ---------- v185 polish: monthly check-in and goals input stability ---------- */
.monthly-income-entry{
  display:grid;
  grid-template-columns:minmax(180px,240px) minmax(0,1fr);
  gap:12px 16px;
  align-items:center;
  max-width:760px;
}
.monthly-income-entry .money-in{
  width:100%;
}
.monthly-income-entry input{
  min-height:50px;
  font-size:17px;
}
.monthly-income-entry > span{
  color:var(--ink-2);
  font-size:13px;
  line-height:1.4;
}
.monthly-expense-head,
.monthly-expense-row{
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(86px,108px) minmax(112px,132px) minmax(76px,94px);
  gap:12px;
  align-items:center;
}
.monthly-expense-head{
  padding:0 0 9px;
  border-bottom:2px solid var(--ink);
  color:var(--ink-3);
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:820;
}
.monthly-expense-head span:not(:first-child){
  text-align:right;
}
.monthly-expense-row{
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.monthly-expense-name{
  color:var(--ink);
  font-size:14.5px;
  font-weight:720;
  line-height:1.25;
  min-width:0;
}
.monthly-expense-row > span:nth-child(2),
.monthly-expense-planned{
  color:var(--ink-3)!important;
  text-align:right!important;
  font-size:14px;
}
.monthly-expense-actual input{
  min-height:46px;
  font-size:15.5px;
}
.monthly-expense-status{
  min-height:30px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  text-align:right;
}
.check-step:hover{
  border-color:rgba(216,184,108,.36);
  background:rgba(216,184,108,.10);
}
.check-step.done{
  border-color:rgba(216,184,108,.30);
  background:linear-gradient(135deg,rgba(216,184,108,.13),rgba(110,167,214,.08));
}
.check-step.done > span{color:var(--gold)}
.goal-mini-field{
  min-width:0;
}
.goal-mini-field > div:first-child{
  color:var(--ink-3);
  font-size:11px;
  font-weight:760;
  letter-spacing:.03em;
  margin-bottom:6px;
}
.goal-mini-field .money-in input{
  min-height:48px;
  font-size:15.5px;
}
.goal-card-head{
  display:flex;
  align-items:center;
  gap:10px;
}
.goal-card-name{
  flex:1;
  min-width:0;
  width:100%;
  min-height:42px;
  padding:6px 8px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:var(--ink);
  font-family:var(--serif);
  font-size:18px;
  font-weight:650;
  line-height:1.2;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.goal-card-name:hover{
  border-color:var(--line);
  background:var(--paper-3);
}
.goal-card-name:focus{
  outline:none;
  border-color:var(--glow);
  background:var(--paper-3);
  box-shadow:0 0 0 3px var(--glow-soft);
}
.goal-card-remove{
  flex:0 0 36px;
  width:36px;
  height:36px;
  opacity:.68;
  font-size:20px;
}
.goal-card-remove:focus-visible{
  opacity:1;
  outline:2px solid var(--glow);
  outline-offset:2px;
}
@media(max-width:720px){
  .monthly-income-entry{
    grid-template-columns:1fr;
    gap:8px;
  }
  .monthly-income-entry > span{
    font-size:12.5px;
  }
  .monthly-expense-head{
    display:none;
  }
  .monthly-expense-row{
    grid-template-columns:minmax(0,1fr) minmax(126px,42%);
    gap:7px 12px;
    padding:15px 0;
  }
  .monthly-expense-name{
    grid-column:1;
    grid-row:1;
    padding-right:4px;
  }
  .monthly-expense-status{
    grid-column:2;
    grid-row:1;
  }
  .monthly-expense-row > span:nth-child(2),
  .monthly-expense-planned{
    grid-column:1;
    grid-row:2;
    align-self:end;
    text-align:left!important;
    padding-bottom:6px;
    font-size:13px;
  }
  .monthly-expense-row > span:nth-child(2)::before,
  .monthly-expense-planned::before{
    content:"Planned";
    display:block;
    margin-bottom:2px;
    color:var(--ink-3);
    font-size:10px;
    font-weight:820;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .monthly-expense-actual{
    grid-column:2;
    grid-row:2;
  }
  .monthly-expense-actual::before{
    content:"Actual";
    display:block;
    margin-bottom:3px;
    color:var(--ink-3);
    font-size:10px;
    font-weight:820;
    letter-spacing:.08em;
    text-transform:uppercase;
  }
  .monthly-expense-actual input{
    min-height:50px;
    font-size:16px;
  }
  .goal-card .g3{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .goal-mini-field .money-in input{
    min-height:52px;
    font-size:16px;
  }
  .goal-card-name{
    min-height:44px;
    font-size:18px;
  }
}

/* ---------- v186 polish: reserve green for true success states ---------- */
:root{
  --success:#177A5A;
  --success-2:#1E8A66;
  --success-soft:#E6F3EE;
}
:root[data-theme="dark"]{
  --success:#54D19A;
  --success-2:#78E0B2;
  --success-soft:rgba(84,209,154,.14);
}
.pill-green,
.projection-check-status.ok{
  background:var(--success-soft)!important;
  color:var(--success)!important;
  border-color:rgba(23,122,90,.18)!important;
}
.goal-funding.ok::before,
.emfund.strong .emfund-bar span,
.projection-check-item.ok > span,
.rhythm-dots span.done{
  background:var(--success)!important;
}
.goal-funding-grid b.pos,
.overview-metric .val.pos,
.surplus-msg.pos,
.emfund.strong .emfund-pill,
.launch-list .done span{
  color:var(--success)!important;
}
.surplus-msg.pos,
.match-nudge.ok,
.retire-income,
.check-signal,
.overview-adjust-note{
  border-left-color:var(--gold)!important;
  background:rgba(216,184,108,.10)!important;
}
.emfund.strong .emfund-pill,
.launch-list .done{
  background:var(--success-soft)!important;
  border-color:rgba(23,122,90,.18)!important;
}
.projection-check-item.ok > span{
  box-shadow:0 0 0 4px var(--success-soft)!important;
}

/* ---------- v187 polish: monthly money map workplace-deposit row ---------- */
.overview-map-list > div.flow-separate{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:16px 22px!important;
  align-items:center!important;
  padding:20px!important;
}
.flow-separate-head{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  min-width:0;
}

/* ---------- v189: clarity, advisor handoff, and neutral progress language ---------- */
.cta-body{min-width:0;flex:1}
.cta-eyebrow{
  margin-bottom:7px;
  color:#E7C873;
  opacity:1;
}
.goal-funding-method{
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid var(--line);
  color:var(--ink-3);
  font-size:11.8px;
  line-height:1.45;
}
.goal-funding-method summary{
  width:max-content;
  max-width:100%;
  color:var(--ink-2);
  cursor:pointer;
  font-weight:760;
  list-style:none;
}
.goal-funding-method summary::-webkit-details-marker{display:none}
.goal-funding-method summary::after{content:" +";color:var(--accent)}
.goal-funding-method[open] summary::after{content:" -"}
.goal-funding-method p{max-width:84ch;margin:8px 0 0;color:var(--ink-3)}
.monthly-expense-status .pill{
  white-space:nowrap;
  text-align:center;
}
:root[data-theme="dark"] .goal-funding-method{
  border-top-color:rgba(255,255,255,.10);
}
:root[data-theme="dark"] .goal-funding-grid > div{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
@media(max-width:720px){
  .monthly-expense-status .pill{font-size:10px;padding:4px 7px}
}
.overview-map-list .flow-op-separate{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:max-content!important;
  max-width:100%!important;
  min-height:26px;
  padding:6px 12px!important;
  white-space:nowrap!important;
  text-align:center!important;
  line-height:1!important;
}
.flow-separate-head > span{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  min-width:0;
}
.flow-separate-head > span i{
  min-width:0;
}
.overview-map-list > div.flow-separate b{
  justify-self:end;
  margin-top:0!important;
  white-space:nowrap;
}
@media(max-width:720px){
  .overview-map-list > div.flow-separate{
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:17px!important;
  }
  .overview-map-list > div.flow-separate b{
    justify-self:start;
    font-size:30px!important;
  }
}

/* ---------- v188 polish: projection formula readability ---------- */
.formula-caption{
  margin:10px 0 0;
  padding:9px 11px;
  border:1px solid rgba(199,161,90,.20);
  border-radius:8px;
  background:rgba(199,161,90,.08);
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.45;
}
:root[data-theme="dark"] .formula-caption{
  border-color:rgba(216,184,108,.20);
  background:rgba(216,184,108,.08);
  color:rgba(247,244,236,.68);
}

/* ---------- v190: focused navigation, global check-in, and purposeful motion ---------- */
.desktop-utility{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:18px 32px 0;
  display:flex;
  justify-content:flex-end;
  position:relative;
  z-index:8;
}
.global-checkin{
  min-width:244px;
  min-height:46px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  padding:6px 10px 6px 7px;
  border:1px solid rgba(216,184,108,.26);
  border-radius:9px;
  color:#F8F6EF;
  text-align:left;
  background:
    radial-gradient(180px 70px at 100% 0,rgba(216,184,108,.13),transparent 72%),
    linear-gradient(135deg,#06111F,#0B223A);
  box-shadow:0 18px 46px -34px rgba(6,17,31,.92),inset 0 1px 0 rgba(255,255,255,.07);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.global-checkin:hover{
  transform:translateY(-2px);
  border-color:rgba(216,184,108,.46);
  box-shadow:0 24px 54px -34px rgba(6,17,31,.95),inset 0 1px 0 rgba(255,255,255,.09);
}
.global-checkin-score{
  width:38px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(216,184,108,.28);
  border-radius:7px;
  color:#F0D48A;
  background:rgba(216,184,108,.08);
  font-size:13px;
  font-weight:820;
}
.global-checkin-copy{display:grid;min-width:0;line-height:1.1}
.global-checkin-copy small{
  color:rgba(248,246,239,.54);
  font-size:8.5px;
  font-weight:780;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.global-checkin-copy b{
  margin-top:4px;
  overflow:hidden;
  color:#FFF;
  font-size:11.5px;
  font-weight:760;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.global-checkin-arrow{color:#F0D48A;font-size:15px;transition:transform .2s ease}
.global-checkin:hover .global-checkin-arrow{transform:translateX(2px)}
.mtab{position:relative}
.mtab-progress{
  position:absolute;
  top:3px;
  right:max(5px,calc(50% - 24px));
  min-width:22px;
  height:15px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border:1px solid rgba(216,184,108,.30);
  border-radius:999px;
  color:var(--gold);
  background:var(--paper-2);
  box-shadow:0 3px 8px rgba(6,17,31,.14);
  font-size:8px;
  font-weight:820;
  line-height:1;
}
.mtab.active .mtab-progress{
  color:#06111F;
  background:var(--gold);
  border-color:var(--gold);
}

.networth-home-hero{margin-top:2px}
.networth-home-hero + .priority-alert{margin-top:18px}
#budget-live .overview-money-map{margin-top:2px}
.budget-workspace:focus{outline:none}
.ob-quick-guide{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.ob-quick-guide > div{
  display:grid;
  gap:4px;
  padding:12px 13px;
  border:1px solid rgba(216,184,108,.18);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(216,184,108,.10),rgba(110,167,214,.06));
}
.ob-quick-guide b{color:var(--ink);font-size:12px}
.ob-quick-guide span{color:var(--ink-2);font-size:11.5px;line-height:1.45}

#view.view-enter > .wrap{
  animation:focusedPageIn .54s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .hero,
#view.view-enter .overview-money-map,
#view.view-enter .chart-card,
#view.view-enter .projection-basis,
#view.view-enter .projection-dial-section,
#view.view-enter .budget-workspace,
#view.view-enter #nw-balances{
  animation:focusedSurfaceIn .58s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .projection-dial-section,
#view.view-enter .budget-workspace,
#view.view-enter #nw-balances{animation-delay:.06s}
@keyframes focusedPageIn{
  from{opacity:.25;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
@keyframes focusedSurfaceIn{
  from{opacity:.35;transform:translateY(12px) scale(.994)}
  to{opacity:1;transform:none}
}

@media(max-width:880px){
  .desktop-utility{display:none}
  .global-checkin.compact{
    min-width:78px;
    min-height:40px;
    grid-template-columns:30px minmax(0,1fr);
    gap:7px;
    padding:4px 8px 4px 5px;
  }
  .global-checkin.compact .global-checkin-score{width:30px;height:30px;font-size:11px}
  .global-checkin.compact .global-checkin-copy small,
  .global-checkin.compact .global-checkin-arrow{display:none}
  .global-checkin.compact .global-checkin-copy b{margin:0;font-size:10.5px}
}
@media(max-width:620px){
  .topbar .savedot{display:none!important}
  .networth-home-hero{padding:28px 22px!important}
  .networth-home-hero .nw-equation{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    gap:7px!important;
    margin-top:20px;
  }
  .networth-home-hero .nw-equation span,
  .networth-home-hero .nw-equation strong{
    min-height:52px;
    padding:9px 10px;
    justify-content:center!important;
    white-space:normal;
    text-align:center;
  }
  .networth-home-hero .nw-equation i:first-of-type{
    display:grid;
    place-items:center;
  }
  .networth-home-hero .nw-equation i:nth-of-type(2){display:none}
  .networth-home-hero .nw-equation strong{
    grid-column:1 / -1;
  }
  .networth-home-hero .nw-equation strong::before{
    content:"=";
    margin-right:7px;
    color:rgba(248,246,239,.48);
  }
  .networth-home-hero .overview-hero-ledger{gap:12px;padding:15px}
  .networth-home-hero .ledger-head{display:flex;gap:10px}
  .networth-home-hero .ledger-summary{padding:8px 0 2px}
  .networth-home-hero .ledger-rows{gap:10px}
  .networth-home-hero .ledger-note{font-size:11.5px;line-height:1.4}
  #budget-live .overview-money-map{margin-top:4px}
  .page-title{font-size:34px!important;line-height:1.06!important}
  .ob-quick-guide{grid-template-columns:1fr;gap:8px}
  .ob-quick-guide > div{padding:11px 12px}
}

/* ---------- v191: progressive disclosure for focused monthly planning ---------- */
.expense-zero-state{
  margin:4px 0 8px;
  padding:14px 15px;
  border:1px dashed var(--line-2);
  border-radius:8px;
  background:var(--paper-3);
  color:var(--ink-3);
  font-size:13px;
  line-height:1.45;
}
.expense-unused{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-2);
}
.expense-unused > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  color:var(--ink-2);
  cursor:pointer;
  list-style:none;
  font-size:12.5px;
  font-weight:760;
}
.expense-unused > summary::-webkit-details-marker{display:none}
.expense-unused > summary::after{
  content:"+";
  color:var(--accent);
  font-size:17px;
  line-height:1;
}
.expense-unused[open] > summary::after{content:"−"}
.expense-unused[open] > summary{border-bottom:1px solid var(--line)}
.expense-unused > .row-list,
.monthly-unused > div{
  padding:4px 12px 10px;
}
.monthly-unused{
  margin:14px 0 2px;
}
.monthly-unused .monthly-expense-row:last-child{border-bottom:0}
.ob-entry-note{
  margin-top:-2px;
  color:var(--accent);
  font-size:12px;
  font-weight:720;
}
.ob-more-categories{margin-top:12px}
.ob-more-categories > .ob-account-list{padding:12px}
.goal-starters{
  border-color:rgba(199,161,90,.28);
  background:
    radial-gradient(600px 260px at 4% 0%,rgba(199,161,90,.12),transparent 62%),
    linear-gradient(180deg,var(--paper),var(--paper-2));
}
.goal-starters-title{
  color:var(--ink);
  font-family:var(--serif);
  font-size:24px;
  font-weight:650;
  line-height:1.15;
}
.goal-starters > p{
  max-width:72ch;
  margin-top:7px;
  color:var(--ink-2);
  font-size:13.5px;
  line-height:1.55;
}
.goal-starter-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.goal-starter-grid button{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px 12px;
  min-height:100px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.48);
  color:var(--ink);
  text-align:left;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.goal-starter-grid button:hover{
  transform:translateY(-2px);
  border-color:rgba(199,161,90,.48);
  background:var(--paper);
}
.goal-starter-grid b{font-size:14px;line-height:1.2}
.goal-starter-grid span{
  grid-column:1;
  color:var(--ink-3);
  font-size:12px;
  line-height:1.4;
}
.goal-starter-grid i{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  color:var(--gold);
  font-style:normal;
  font-size:17px;
}
:root[data-theme="dark"] .goal-starter-grid button{background:rgba(255,255,255,.035)}
@media(max-width:700px){
  .goal-starter-grid{grid-template-columns:1fr}
  .goal-starter-grid button{min-height:84px}
  .expense-unused > .row-list,
  .monthly-unused > div{padding:4px 10px 9px}
}
@media(prefers-reduced-motion:reduce){
  #view.view-enter > .wrap,
  #view.view-enter .hero,
  #view.view-enter .overview-money-map,
  #view.view-enter .chart-card,
  #view.view-enter .projection-basis,
  #view.view-enter .projection-dial-section,
  #view.view-enter .budget-workspace,
  #view.view-enter #nw-balances{animation:none!important}
  .global-checkin,.global-checkin-arrow{transition:none!important}
}

/* ---------- v189: focused projection explorer ---------- */
.projection-age-spotlight{
  display:grid;
  grid-template-columns:minmax(220px,.82fr) minmax(250px,1fr) minmax(260px,1.12fr);
  align-items:center;
  gap:22px;
  margin:8px -24px 12px;
  padding:18px 24px;
  border-top:1px solid rgba(199,161,90,.24);
  border-bottom:1px solid rgba(199,161,90,.24);
  background:
    radial-gradient(440px 170px at 9% 0%,rgba(199,161,90,.13),transparent 66%),
    linear-gradient(90deg,rgba(7,24,39,.035),rgba(199,161,90,.045) 48%,transparent);
}
.projection-age-control,
.projection-age-answer,
.projection-age-guidance{min-width:0}
.projection-age-kicker{
  display:block;
  margin-bottom:5px;
  color:var(--gold);
  font-size:10px;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.projection-age-control label{
  display:block;
  color:var(--ink);
  font-size:13px;
  font-weight:780;
}
.projection-age-input-wrap{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:8px;
}
.projection-age-input-wrap input{
  width:82px;
  min-height:46px;
  padding:8px 10px;
  border:1px solid rgba(199,161,90,.48);
  border-radius:8px;
  color:var(--ink);
  background:var(--paper);
  box-shadow:0 10px 24px -20px rgba(7,24,39,.46),inset 0 1px 0 rgba(255,255,255,.6);
  font-family:var(--serif);
  font-size:22px;
  font-weight:720;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
.projection-age-input-wrap input:focus{
  outline:3px solid rgba(199,161,90,.16);
  border-color:var(--gold);
}
.projection-age-input-wrap input[aria-invalid="true"]{border-color:var(--danger)}
.projection-age-input-wrap span,
.projection-age-control > small{
  color:var(--ink-3);
  font-size:11.5px;
}
.projection-age-control > small{display:block;margin-top:6px;line-height:1.35}
.projection-age-error{min-height:15px;color:var(--danger)!important}
.projection-age-answer{
  padding-left:22px;
  border-left:1px solid var(--line);
}
.projection-age-answer > span{
  display:block;
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:820;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.projection-age-answer > b{
  display:block;
  margin-top:3px;
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(29px,3vw,42px);
  font-weight:690;
  line-height:1.04;
  letter-spacing:0;
}
.projection-age-answer > small{
  display:block;
  margin-top:4px;
  color:var(--ink-3);
  font-size:11.5px;
}
.projection-age-answer p{
  margin:9px 0 0;
  color:var(--ink-2);
  font-size:11.8px;
  line-height:1.4;
}
.projection-age-answer p b{color:var(--ink);font-weight:780}
.projection-age-guidance{
  padding:13px 0 13px 22px;
  border-left:1px solid var(--line);
}
.projection-age-guidance p{
  margin:0 0 8px;
  color:var(--ink-2);
  font-size:12.5px;
  line-height:1.5;
  text-wrap:pretty;
}
.projection-age-guidance small{
  display:block;
  margin-top:7px;
  color:var(--ink-3);
  font-size:10.8px;
  line-height:1.4;
}
.projection-calc-link{
  color:var(--accent);
  font-size:12.5px;
  font-weight:820;
}
.projection-guidance-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 16px;
}
.projection-guidance-actions .linklike{
  text-align:left;
  line-height:1.4;
}
.projection-chart-shell{
  position:relative;
  margin-top:10px;
  padding:10px 6px 2px;
  border-radius:8px;
  border:1px solid rgba(118,169,212,.12);
  background:
    linear-gradient(180deg,rgba(118,169,212,.045),transparent 36%),
    radial-gradient(680px 220px at 72% 100%,rgba(199,161,90,.075),transparent 72%);
}
.projection-chart-card{overflow:hidden}
.projection-chart-card .chart-head{margin-bottom:0}
.projection-chart-card .projection-age-spotlight{margin:14px -24px -18px;border-bottom:0}
.projection-chart-shell .projection-chart{filter:drop-shadow(0 20px 30px rgba(7,24,39,.08))}
.projection-chart .projection-gridline{stroke:rgba(96,111,127,.17)}
.projection-chart .projection-axis{font-weight:620}
.projection-context{max-width:none}
:root[data-theme="dark"] .projection-age-spotlight{
  border-color:rgba(216,184,108,.22);
  background:
    radial-gradient(440px 170px at 9% 0%,rgba(216,184,108,.12),transparent 66%),
    linear-gradient(90deg,rgba(118,169,212,.045),rgba(216,184,108,.035) 52%,transparent);
}
:root[data-theme="dark"] .projection-age-input-wrap input{
  color:#F8F6EF;
  -webkit-text-fill-color:#F8F6EF;
  border-color:rgba(216,184,108,.42);
  background:rgba(248,246,239,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
:root[data-theme="dark"] .projection-calc-link{color:#F0D48A}
:root[data-theme="dark"] .projection-chart-shell{
  border-color:rgba(118,169,212,.14);
  background:
    linear-gradient(180deg,rgba(118,169,212,.045),transparent 34%),
    radial-gradient(680px 220px at 72% 100%,rgba(216,184,108,.065),transparent 72%);
}
:root[data-theme="dark"] .projection-chart .projection-gridline{stroke:rgba(193,208,222,.16)}
@media(max-width:960px){
  .projection-age-spotlight{grid-template-columns:minmax(210px,.8fr) 1fr}
  .projection-age-guidance{
    grid-column:1 / -1;
    padding:12px 0 0;
    border-left:0;
    border-top:1px solid var(--line);
  }
}

@media(max-width:700px){
  .projection-age-spotlight{
    grid-template-columns:1fr;
    gap:15px;
    margin:8px -16px 8px;
    padding:16px;
  }
  .projection-age-answer,
  .projection-age-guidance{
    padding:14px 0 0;
    border-left:0;
    border-top:1px solid var(--line);
  }
  .projection-age-input-wrap input{width:92px;min-height:50px;font-size:23px}
  .projection-age-answer > b{font-size:34px}
  .projection-chart-shell{margin:8px -5px 0;padding:4px 0 0;border-left:0;border-right:0;border-radius:0}
  .projection-chart-card .projection-age-spotlight{margin:12px -16px -16px}
}

/* ---------- v202: editorial rhythm and purposeful data motion ---------- */
.page-head{max-width:880px}
.page-title,.page-sub,.overview-map-title,.chart-head p{text-wrap:balance}
.page-sub{max-width:760px;line-height:1.55}
.overview-map-center-note{max-width:34ch;margin-inline:auto;text-wrap:pretty}
.projection-chart-card .chart-head p{max-width:62ch}
.btn:active,.add-row:active,.linklike:active{transform:translateY(1px)}
.donut-seg{transition:filter .18s ease,opacity .18s ease}

#view.view-enter .page-head .eyebrow,
#view.view-enter .page-head .page-title,
#view.view-enter .page-head .page-sub{
  animation:editorialRise .5s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .page-head .page-title{animation-delay:.045s}
#view.view-enter .page-head .page-sub{animation-delay:.09s}
#view.view-enter .projection-area{animation:projectionAreaIn .72s ease .12s both}
#view.view-enter .projection-line-main,
#view.view-enter .projection-history-line{
  stroke-dasharray:1;
  stroke-dashoffset:1;
  animation:projectionLineIn .76s cubic-bezier(.22,.72,.24,1) .1s both;
}
#view.view-enter .projection-line-glow{
  stroke-dasharray:1;
  stroke-dashoffset:1;
  animation:projectionGlowIn .78s cubic-bezier(.22,.72,.24,1) .12s both;
}
#view.view-enter .projection-annotations{
  animation:projectionLabelsIn .42s ease .48s both;
}
#view.view-enter .projection-page-wrap.projection-playback-ready .projection-area{
  animation:projectionAreaIn .24s ease both;
}
#view.view-enter .projection-page-wrap.projection-playback-ready .projection-line-main,
#view.view-enter .projection-page-wrap.projection-playback-ready .projection-line-glow,
#view.view-enter .projection-page-wrap.projection-playback-ready .projection-history-line,
#view.view-enter .projection-page-wrap.projection-playback-ready .projection-annotations{
  animation:none;
  stroke-dasharray:none;
  stroke-dashoffset:0;
}
#view.view-enter .overview-donut .donut-seg{
  animation:donutReveal .48s ease .16s both;
}
#view.view-enter .overview-map-list > div{
  animation:editorialRise .45s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .overview-map-list > div:nth-child(1){animation-delay:.12s}
#view.view-enter .overview-map-list > div:nth-child(2){animation-delay:.17s}
#view.view-enter .overview-map-list > div:nth-child(3){animation-delay:.22s}
#view.view-enter .overview-map-list > div:nth-child(4){animation-delay:.27s}
#view.view-enter .overview-map-list > div:nth-child(n+5){animation-delay:.31s}
#view.view-enter .goal-funding,
#view.view-enter .goal-starters,
#view.view-enter #goals-grid > .goal-card{
  animation:focusedSurfaceIn .54s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter #goals-grid > .goal-card:nth-child(2){animation-delay:.06s}
#view.view-enter #goals-grid > .goal-card:nth-child(3){animation-delay:.1s}
#view.view-enter #goals-grid > .goal-card:nth-child(n+4){animation-delay:.14s}

@keyframes editorialRise{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
@keyframes projectionAreaIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes projectionLineIn{
  from{stroke-dashoffset:1}
  to{stroke-dashoffset:0}
}
@keyframes projectionGlowIn{
  from{stroke-dashoffset:1;opacity:0}
  to{stroke-dashoffset:0;opacity:.08}
}
@keyframes projectionLabelsIn{
  from{opacity:0;transform:translateY(3px)}
  to{opacity:1;transform:none}
}
@keyframes donutReveal{
  from{opacity:0}
  to{opacity:1}
}
@media(max-width:700px){
  .page-sub{line-height:1.5}
  .overview-map-center-note{max-width:30ch}
}
@media(prefers-reduced-motion:reduce){
  #view.view-enter .page-head .eyebrow,
  #view.view-enter .page-head .page-title,
  #view.view-enter .page-head .page-sub,
  #view.view-enter .projection-area,
  #view.view-enter .projection-line-main,
  #view.view-enter .projection-history-line,
  #view.view-enter .projection-line-glow,
  #view.view-enter .projection-annotations,
  #view.view-enter .overview-donut .donut-seg,
  #view.view-enter .overview-map-list > div,
  #view.view-enter .goal-funding,
  #view.view-enter .goal-starters,
  #view.view-enter #goals-grid > .goal-card{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
    stroke-dashoffset:0!important;
  }
}

/* v208 cascade lock: keep the redesigned hierarchy above legacy polish rules. */
.networth-home-hero{
  grid-template-columns:minmax(0,1.82fr) minmax(270px,.58fr);
  gap:20px;
  align-items:stretch;
  padding:28px;
}
.networth-history-primary{
  min-height:430px;
  grid-template-rows:auto minmax(280px,1fr) auto auto;
  padding:24px 24px 18px;
}
.history-chart-shell .history-chart{
  width:100%;
  height:100%;
  min-height:280px;
}
.history-inline-inspector{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(112px,.55fr) minmax(180px,1fr) minmax(170px,.9fr);
  align-items:center;
  gap:8px 18px;
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:8px;
  background:linear-gradient(105deg,rgba(118,169,212,.12),rgba(216,184,108,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.history-inline-inspector span{
  color:rgba(247,244,236,.58);
  font-size:9.5px;
  font-weight:840;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.history-inline-inspector b{min-width:0;color:#F7F4EC;font-size:12.5px;line-height:1.35}
.history-inline-inspector small{color:rgba(247,244,236,.62);font-size:10.8px;line-height:1.35;text-align:right}
.history-inline-inspector.selected b{font-family:var(--serif);font-size:20px;font-variant-numeric:tabular-nums}
.history-inline-inspector small.positive{color:#75D7A6}
.history-inline-inspector small.negative{color:#FF9A9F}
.networth-current-panel .nw-equation{display:grid;grid-template-columns:1fr;width:100%}
.networth-current-panel .nw-equation i{display:none}
.budget-workspace{grid-template-columns:minmax(330px,.82fr) minmax(580px,1.18fr);gap:20px}
.budget-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.projection-chart-shell{
  padding:14px 8px 5px;
  border-color:rgba(216,184,108,.18);
  background:radial-gradient(720px 270px at 78% 100%,rgba(216,184,108,.11),transparent 72%),linear-gradient(180deg,rgba(118,169,212,.06),transparent 42%);
}
@media(max-width:1040px){
  .networth-home-hero{grid-template-columns:minmax(0,1.42fr) minmax(260px,.62fr)}
  .budget-workspace{grid-template-columns:1fr}
  .budget-income-card{position:static}
}
@media(max-width:880px){
  .networth-home-hero{grid-template-columns:1fr;padding:22px}
  .networth-history-primary{min-height:350px}
  .networth-current-panel .nw-equation{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .budget-expense-grid{grid-template-columns:1fr}
  .projection-chart-shell{margin:8px -5px 0;padding:7px 0 2px;border-left:0;border-right:0;border-radius:0}
}
@media(max-width:520px){
  .networth-home-hero{padding:14px!important;gap:14px}
  .networth-history-primary{min-height:0;padding:17px 12px 14px}
  .history-chart-shell .history-chart{min-height:230px}
  .history-inline-inspector{grid-template-columns:1fr auto;gap:4px 10px;padding:10px 11px}
  .history-inline-inspector b{text-align:right;font-size:11.5px}
  .history-inline-inspector.selected b{font-size:18px}
  .history-inline-inspector small{grid-column:1 / -1;text-align:left}
  .networth-current-panel .nw-equation{grid-template-columns:1fr!important}
  .debt-terms{display:grid;grid-template-columns:1fr}
  #budget-live .overview-money-map{padding:16px 12px}
  #budget-live .overview-map-viz{min-height:270px}
  #budget-live .overview-map-list{gap:8px}
  #budget-live .overview-map-list > div{
    min-height:86px;
    padding:12px 12px 12px 50px;
  }
  #budget-live .overview-map-list .flow-op{left:13px;top:13px}
  #budget-live .overview-map-list b{font-size:27px}
  #budget-live .overview-map-list > div.flow-separate{padding:14px}
}

/* ---------- v214: history-first net worth and clearer paycheck timing ---------- */
.networth-home-hero{
  grid-template-columns:minmax(0,2fr) minmax(248px,.52fr);
  gap:18px;
}
.networth-current-panel{
  padding:21px 18px;
  background:
    radial-gradient(300px 170px at 100% 0,rgba(216,184,108,.10),transparent 70%),
    linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.022));
}
.networth-current-panel h2{
  max-width:18ch;
  font-size:clamp(21px,1.9vw,27px);
  line-height:1.08;
}
.networth-current-panel .nw-equation strong.result-label-only{
  min-height:48px;
  border-color:rgba(216,184,108,.32);
  background:linear-gradient(135deg,rgba(216,184,108,.15),rgba(118,169,212,.07));
}
.networth-current-panel .nw-equation strong.result-label-only b{
  color:#F0D48A;
  font-family:var(--sans);
  font-size:13px;
  font-weight:840;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.networth-home-hero .networth-current-panel .nw-equation i{display:none!important}
.history-selected-guide{
  stroke:rgba(216,184,108,.42);
  stroke-width:1;
  stroke-dasharray:3 5;
  pointer-events:none;
  transition:x1 .18s ease,x2 .18s ease;
}
.history-inline-inspector{
  border-color:rgba(216,184,108,.2);
  background:linear-gradient(105deg,rgba(216,184,108,.105),rgba(118,169,212,.09));
}
.history-inline-inspector.selected{
  border-color:rgba(216,184,108,.34);
  box-shadow:inset 3px 0 0 rgba(216,184,108,.76),inset 0 1px 0 rgba(255,255,255,.05);
}
.overview-map-viz{
  border-color:rgba(118,169,212,.19);
  background:
    radial-gradient(circle at 50% 44%,rgba(118,169,212,.22),transparent 37%),
    radial-gradient(circle at 50% 48%,rgba(216,184,108,.13),transparent 63%),
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.018));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 28px 70px -58px rgba(0,0,0,.9);
}
.overview-map-list > div{
  border-color:rgba(255,255,255,.105);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 16px 34px -34px rgba(0,0,0,.85);
}
.overview-map-list > div.source{border-color:rgba(118,169,212,.28);background:linear-gradient(135deg,rgba(118,169,212,.12),rgba(255,255,255,.025))}
.overview-map-list > div.expense{border-color:rgba(225,128,92,.26);background:linear-gradient(135deg,rgba(225,128,92,.105),rgba(255,255,255,.025))}
.overview-map-list > div.pos{border-color:rgba(118,174,220,.29);background:linear-gradient(135deg,rgba(118,174,220,.12),rgba(255,255,255,.025))}
.monthly-review-summary .monthly-insight{margin-top:14px}
.monthly-review-summary .monthly-result-tiles{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:1040px){
  .networth-home-hero{grid-template-columns:minmax(0,1.5fr) minmax(240px,.58fr)}
}
@media(max-width:880px){
  .networth-home-hero{grid-template-columns:1fr}
}
@media(max-width:520px){
  .networth-current-panel .nw-equation strong.result-label-only{min-height:50px}
  .history-inline-inspector.selected{box-shadow:inset 0 3px 0 rgba(216,184,108,.72),inset 0 1px 0 rgba(255,255,255,.05)}
}

/* ---------- v217: scrub-first projection, clearer cash flow, and itemized income ---------- */
.history-inline-inspector{
  min-height:76px;
  padding:15px 18px;
  grid-template-columns:minmax(150px,.65fr) minmax(190px,1fr) minmax(190px,.9fr);
  border-color:rgba(216,184,108,.34);
  background:
    radial-gradient(380px 110px at 8% 0,rgba(216,184,108,.14),transparent 74%),
    linear-gradient(105deg,rgba(216,184,108,.12),rgba(118,169,212,.10));
  box-shadow:inset 4px 0 0 rgba(216,184,108,.82),inset 0 1px 0 rgba(255,255,255,.06),0 16px 34px -30px rgba(0,0,0,.9);
}
.history-inline-inspector span{font-size:10.5px;color:rgba(247,244,236,.72)}
.history-inline-inspector.selected b{font-size:clamp(23px,2.4vw,31px);line-height:1.05}
.history-inline-inspector small{font-size:12px}

.projection-chart-card .chart-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.projection-basis-link{flex:none;margin-top:2px;font-size:12.5px;font-weight:820}
.projection-chart-shell{
  margin-top:14px;
  padding:10px 4px 0;
  overflow:hidden;
}
.projection-chart-shell .projection-chart{width:100%;min-height:0;touch-action:pan-y}
.projection-chart-shell .projection-chart .hot{cursor:crosshair}
.projection-age-spotlight{
  display:block;
  margin:14px -24px -18px!important;
  padding:18px 24px 20px;
  border-top:1px solid rgba(216,184,108,.24);
  border-bottom:0;
  background:
    radial-gradient(520px 180px at 0 0,rgba(216,184,108,.12),transparent 70%),
    linear-gradient(90deg,rgba(118,169,212,.045),rgba(216,184,108,.035) 52%,transparent);
}
.projection-scrub-head{
  display:grid;
  grid-template-columns:minmax(210px,.72fr) minmax(280px,1fr);
  gap:28px;
  align-items:end;
}
.projection-scrub-head > div{min-width:0}
.projection-scrub-head label{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-size:14px;
  font-weight:780;
}
.projection-scrub-head label input{
  width:72px;
  min-height:42px;
  padding:6px 8px;
  border:1px solid rgba(216,184,108,.46);
  border-radius:8px;
  color:var(--ink);
  background:var(--paper);
  font-family:var(--serif);
  font-size:21px;
  font-weight:720;
  text-align:center;
  font-variant-numeric:tabular-nums;
}
.projection-scrub-head label input:focus{outline:3px solid rgba(216,184,108,.16);border-color:var(--gold)}
.projection-scrub-head label input[aria-invalid="true"]{border-color:var(--danger)}
.projection-scrub-head #projection-age-help,
.projection-scrub-head .projection-age-error{display:block;margin-top:5px;color:var(--ink-3);font-size:11px}
.projection-age-answer{padding:0;border:0;text-align:right}
.projection-age-answer > b{font-size:clamp(32px,3.5vw,48px)}
.projection-range-wrap{margin-top:17px}
.projection-range-wrap input[type="range"]{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:28px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  cursor:ew-resize;
  touch-action:pan-y;
}
.projection-range-wrap input[type="range"]::-webkit-slider-runnable-track{
  height:7px;
  border:1px solid rgba(216,184,108,.24);
  border-radius:999px;
  background:linear-gradient(90deg,rgba(118,169,212,.34),rgba(216,184,108,.58));
  box-shadow:inset 0 1px 2px rgba(6,17,31,.14);
}
.projection-range-wrap input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:21px;
  height:21px;
  margin-top:-8px;
  border:3px solid var(--paper);
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 1px rgba(216,184,108,.5),0 5px 12px rgba(6,17,31,.22);
}
.projection-range-wrap input[type="range"]::-moz-range-track{
  height:7px;
  border:1px solid rgba(216,184,108,.24);
  border-radius:999px;
  background:linear-gradient(90deg,rgba(118,169,212,.34),rgba(216,184,108,.58));
}
.projection-range-wrap input[type="range"]::-moz-range-thumb{
  width:17px;
  height:17px;
  border:3px solid var(--paper);
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 1px rgba(216,184,108,.5),0 5px 12px rgba(6,17,31,.22);
}
.projection-range-wrap input[type="range"]:focus-visible{outline:3px solid rgba(216,184,108,.18);outline-offset:3px;border-radius:999px}
.projection-range-wrap > div{display:flex;justify-content:space-between;margin-top:0;color:var(--ink-3);font-size:10.5px;font-weight:700}
.projection-scrub-foot{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.projection-scrub-foot p{margin:0;color:var(--ink-2);font-size:12px;line-height:1.45}
.projection-scrub-foot p b{color:var(--ink)}
.projection-basis-modal{max-width:1120px;width:min(1120px,calc(100vw - 32px))}
.projection-basis-modal .modal-head h2{margin-top:8px;font-size:26px}
.projection-basis-modal .modal-body{padding-top:16px}
.projection-basis-modal .projection-basis{margin:0;box-shadow:none;background:var(--paper-2)}

.budget-glow-income{
  border-color:rgba(56,183,126,.26);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 16px 42px -34px rgba(34,173,112,.58),0 0 0 1px rgba(56,183,126,.035);
}
.budget-glow-expense{
  border-color:rgba(224,109,90,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 16px 42px -36px rgba(212,83,71,.48),0 0 0 1px rgba(224,109,90,.025);
}
:root[data-theme="dark"] .budget-glow-income{box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 36px -24px rgba(59,205,139,.52)}
:root[data-theme="dark"] .budget-glow-expense{box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 36px -24px rgba(238,104,92,.44)}
#budget-live .overview-map-body{grid-template-columns:minmax(300px,400px) minmax(0,1fr);gap:24px}
#budget-live .overview-map-viz{min-height:400px;padding:18px}
#budget-live .overview-map-viz .overview-donut .chart{width:min(282px,100%);max-width:282px!important}
#budget-live .overview-map-list{gap:9px}
#budget-live .overview-map-list > div{min-height:94px;padding:13px 15px}
#budget-live .overview-map-list b{font-size:clamp(25px,2.2vw,31px)}
.overview-map-list > div.source{
  border-color:rgba(79,200,143,.31)!important;
  background:linear-gradient(135deg,rgba(61,190,130,.14),rgba(255,255,255,.028))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 30px -23px rgba(55,202,136,.65)!important;
}
.overview-map-list > div.expense{
  border-color:rgba(232,102,88,.34)!important;
  background:linear-gradient(135deg,rgba(224,109,90,.17),rgba(255,255,255,.028))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 30px -23px rgba(232,93,81,.58)!important;
}
.overview-map-list > div.invest,
.overview-map-list > div.pos,
.overview-map-list > div.workplace{
  border-color:rgba(64,194,132,.31)!important;
  background:linear-gradient(135deg,rgba(47,183,125,.145),rgba(255,255,255,.028))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 30px -23px rgba(55,202,136,.56)!important;
}
.overview-map-list .invest b,.overview-map-list .pos b,.overview-map-list .workplace b{color:#8DDFB0}

.monthly-income-mode{
  display:inline-grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px;
  margin-bottom:16px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper-3);
}
.monthly-income-mode button{min-height:38px;padding:8px 13px;border-radius:6px;color:var(--ink-2);font-size:12.5px;font-weight:760}
.monthly-income-mode button.active{color:#F8F6EF;background:#0A2A45;box-shadow:0 8px 20px -16px rgba(6,17,31,.7)}
:root[data-theme="dark"] .monthly-income-mode button.active{color:#06111F;background:#D8B86C}
.paycheck-entry-list{display:grid;gap:9px;max-width:760px}
.paycheck-entry-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(160px,230px) 38px;gap:12px;align-items:center}
.paycheck-entry-row label{color:var(--ink-2);font-size:13px;font-weight:700}
.paycheck-entry-row .money-in input{min-height:48px;font-size:16px}
.paycheck-entry-row .del{width:38px;height:38px}
.paycheck-add{width:max-content;margin-top:2px}
.paycheck-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:6px;padding-top:13px;border-top:2px solid var(--ink)}
.paycheck-total span{font-size:12px;font-weight:820;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.paycheck-total b{font-family:var(--serif);font-size:26px;color:var(--ink)}
.paycheck-help{margin:0;color:var(--ink-3);font-size:11.8px;line-height:1.45}

@media(max-width:700px){
  .history-inline-inspector{min-height:82px;padding:13px 14px;grid-template-columns:1fr auto;gap:5px 12px}
  .history-inline-inspector.selected b{font-size:24px;text-align:right}
  .history-inline-inspector small{grid-column:1 / -1;text-align:left}
  .projection-chart-card{padding:16px 12px!important}
  .projection-chart-card .chart-head{display:block;padding:0 3px}
  .projection-basis-link{display:inline-flex;margin-top:8px;text-align:left}
  .projection-chart-shell{margin:10px -2px 0;padding:2px 0 0;border-left:0;border-right:0;border-radius:0}
  .projection-chart-shell .projection-chart{min-height:0}
  .projection-age-spotlight{margin:10px -12px -16px!important;padding:15px 15px 17px}
  .projection-scrub-head{grid-template-columns:1fr;gap:11px;align-items:start}
  .projection-age-answer{text-align:left;padding:11px 0 0;border-top:1px solid var(--line)}
  .projection-age-answer > b{font-size:36px}
  .projection-age-answer > small{font-size:11px}
  .projection-range-wrap{margin-top:11px}
  .projection-range-wrap input[type="range"]{height:38px}
  .projection-scrub-foot{display:block;margin-top:9px;padding-top:11px}
  .projection-guidance-actions{margin-top:10px;display:grid;gap:7px}
  .projection-basis-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
  .projection-basis-modal .modal-head{padding:22px 18px 0}
  .projection-basis-modal .modal-body{padding:12px 18px 8px}
  .projection-basis-modal .modal-foot{padding:14px 18px 18px}
  .projection-basis-modal .projection-basis{padding:14px}
  .projection-basis-modal .basis-grid{grid-template-columns:1fr 1fr;gap:8px}
  .projection-basis-modal .basis-grid > div{min-height:104px;padding:11px}
  #budget-live .overview-map-body{grid-template-columns:1fr}
  #budget-live .overview-map-viz{min-height:340px}
  #budget-live .overview-map-viz .overview-donut .chart{width:min(260px,86vw);max-width:260px!important}
  #budget-live .overview-map-list{grid-template-columns:1fr 1fr}
  #budget-live .overview-map-list > div{min-height:88px!important;padding:11px 11px 11px 46px!important}
  #budget-live .overview-map-list b{font-size:24px!important}
  .monthly-income-mode{display:grid;width:100%}
  .paycheck-entry-row{grid-template-columns:minmax(0,1fr) minmax(130px,46%) 38px;gap:8px}
}
@media(max-width:430px){
  .projection-scrub-head label{justify-content:space-between}
  .projection-scrub-foot p span{display:none}
  .projection-basis-modal .basis-grid{grid-template-columns:1fr}
  #budget-live .overview-map-list{grid-template-columns:1fr}
  #budget-live .overview-map-viz{min-height:318px}
  #budget-live .overview-map-viz .overview-donut .chart{width:min(242px,82vw)!important}
  .paycheck-entry-row{grid-template-columns:minmax(0,1fr) 38px}
  .paycheck-entry-row label{grid-column:1 / -1}
  .paycheck-entry-row .money-in{grid-column:1}
  .paycheck-entry-row .del{grid-column:2}
}

/* ---------- v229: fast, confidence-building monthly check-in ---------- */
.monthly-period-bar{
  display:flex;
  align-items:center;
  gap:10px 14px;
  margin-bottom:16px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-2);
}
.monthly-period-bar label{
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:840;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.monthly-period-bar select{min-height:42px;padding:9px 36px 9px 12px;border-radius:6px}
.monthly-period-bar span{margin-left:auto;color:var(--ink-3);font-size:12px}
.monthly-card-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.monthly-card-heading .card-title{margin-top:5px}
.monthly-card-heading > p{
  max-width:520px;
  margin:0;
  color:var(--ink-2);
  font-size:13px;
  line-height:1.5;
}
.monthly-card-heading > p b{color:var(--ink)}
.monthly-closeout-card{outline:none}
.monthly-closeout-card:focus-visible{box-shadow:0 0 0 3px var(--glow-soft),var(--shadow)}
.monthly-category-group{
  --monthly-tone:118,169,212;
  margin-top:16px;
  overflow:hidden;
  border:1px solid rgba(var(--monthly-tone),.26);
  border-radius:8px;
  background:
    linear-gradient(135deg,rgba(var(--monthly-tone),.07),transparent 36%),
    var(--paper-2);
}
.monthly-category-group.flexible{--monthly-tone:224,109,90}
.monthly-category-group.investing{--monthly-tone:53,183,125}
.monthly-category-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:17px 18px 15px;
}
.monthly-category-head > div:first-child{min-width:0}
.monthly-category-head span{
  display:block;
  color:rgb(var(--monthly-tone));
  font-size:9.5px;
  font-weight:860;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.monthly-category-head h3{
  margin:4px 0 0;
  color:var(--ink);
  font-family:var(--serif);
  font-size:21px;
  line-height:1.1;
}
.monthly-category-head p{margin:6px 0 0;color:var(--ink-2);font-size:12.5px;line-height:1.45}
.monthly-category-actions{display:flex;flex:none;gap:7px;align-items:center}
.checkin-copy-btn,.checkin-confirm-btn{
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--ink-2);
  background:var(--paper);
  font-size:11.5px;
  font-weight:800;
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.checkin-confirm-btn{
  border-color:rgba(var(--monthly-tone),.36);
  color:var(--ink);
  background:rgba(var(--monthly-tone),.11);
}
.checkin-copy-btn:hover,.checkin-confirm-btn:hover{border-color:rgb(var(--monthly-tone));transform:translateY(-1px)}
.monthly-group-progress{height:3px;background:rgba(var(--monthly-tone),.10)}
.monthly-group-progress span{display:block;height:100%;background:rgb(var(--monthly-tone));transition:width .28s ease}
.monthly-category-group .monthly-expense-head,
.monthly-category-group .monthly-category-rows,
.monthly-category-group .monthly-unused{margin-left:18px;margin-right:18px}
.monthly-category-group .monthly-expense-head,
.monthly-category-group .monthly-expense-row{
  grid-template-columns:minmax(170px,1fr) minmax(82px,100px) minmax(290px,350px) minmax(76px,96px);
}
.monthly-category-group .monthly-expense-head{padding-top:13px}
.monthly-expense-row{transition:background .18s ease,border-color .18s ease}
.monthly-expense-row.confirmed{background:linear-gradient(90deg,rgba(var(--monthly-tone),.055),transparent 70%)}
.monthly-expense-name small{
  display:block;
  margin-top:4px;
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:660;
}
.monthly-adjuster{
  display:grid;
  grid-template-columns:38px minmax(100px,1fr) 38px 58px;
  gap:6px;
  align-items:center;
}
.monthly-nudge,.monthly-same{
  min-height:42px;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--ink-2);
  background:var(--paper);
  font-weight:820;
}
.monthly-nudge{font-size:19px;line-height:1}
.monthly-same{padding:6px;font-size:10.5px;letter-spacing:.02em}
.monthly-nudge:hover,.monthly-same:hover{border-color:rgb(var(--monthly-tone));color:var(--ink);background:rgba(var(--monthly-tone),.09)}
.monthly-same.active{border-color:rgba(var(--monthly-tone),.48);color:var(--ink);background:rgba(var(--monthly-tone),.17)}
.monthly-adjuster .monthly-expense-actual input{min-height:42px}
.monthly-expense-status{
  justify-content:flex-end;
  color:var(--ink-3);
  font-size:10.5px;
  font-weight:800;
}
.monthly-expense-status.ok,.monthly-expense-status.good{color:var(--success)}
.monthly-expense-status.risk{color:var(--danger)}
.monthly-expense-status.pending{color:var(--ink-3)}
.monthly-category-group .monthly-unused{margin-top:11px;margin-bottom:13px}
.monthly-investing-empty{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 0;color:var(--ink-2);font-size:12.5px}
.monthly-investing-empty b{color:var(--ink)}
.monthly-investing-empty .add-row{margin-left:auto}
.monthly-closeout-totals{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.monthly-closeout-totals > div{
  min-width:0;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--paper-2);
}
.monthly-closeout-totals > div:nth-child(2){border-color:rgba(53,183,125,.28);background:linear-gradient(135deg,rgba(53,183,125,.1),var(--paper-2))}
.monthly-closeout-totals > div:last-child{border-color:rgba(118,169,212,.28);background:linear-gradient(135deg,rgba(118,169,212,.1),var(--paper-2))}
.monthly-closeout-totals > div.risk{border-color:rgba(195,78,93,.32);background:linear-gradient(135deg,rgba(195,78,93,.1),var(--paper-2))}
.monthly-closeout-totals span,.monthly-closeout-totals small{display:block;color:var(--ink-3);font-size:10px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}
.monthly-closeout-totals b{display:block;margin-top:7px;color:var(--ink);font-family:var(--serif);font-size:27px;line-height:1}
.monthly-closeout-totals small{margin-top:6px;letter-spacing:0;text-transform:none;font-weight:600}
.monthly-result-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:18px}

@media(max-width:1100px){
  .monthly-category-group .monthly-expense-head,
  .monthly-category-group .monthly-expense-row{grid-template-columns:minmax(150px,1fr) 86px minmax(260px,310px) 84px;gap:9px}
  .monthly-result-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .monthly-period-bar{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}
  .monthly-period-bar label{align-self:center}
  .monthly-period-bar select{width:100%}
  .monthly-period-bar span{grid-column:1 / -1;margin-left:0}
  .monthly-card-heading{display:block}
  .monthly-card-heading > p{margin-top:9px}
  .monthly-category-head{display:block;padding:15px 14px 13px}
  .monthly-category-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:13px}
  .monthly-category-actions > :only-child{grid-column:1 / -1}
  .checkin-copy-btn,.checkin-confirm-btn{width:100%;min-height:44px}
  .monthly-category-group .monthly-expense-head{display:none}
  .monthly-category-group .monthly-category-rows,
  .monthly-category-group .monthly-unused{margin-left:12px;margin-right:12px}
  .monthly-category-group .monthly-expense-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px 12px!important;
    padding:15px 2px!important;
  }
  .monthly-category-group .monthly-expense-name{grid-column:1!important;grid-row:1!important}
  .monthly-category-group .monthly-expense-status{grid-column:2!important;grid-row:1!important;justify-content:flex-end!important}
  .monthly-category-group .monthly-expense-planned{
    grid-column:1 / -1!important;
    grid-row:2!important;
    padding:0!important;
    text-align:left!important;
    font-size:12px!important;
  }
  .monthly-category-group .monthly-expense-planned::before{content:"Planned ";display:inline;margin:0;color:var(--ink-3);font-size:9.5px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}
  .monthly-category-group .monthly-adjuster{grid-column:1 / -1;grid-row:3;width:100%;grid-template-columns:42px minmax(0,1fr) 42px 62px;gap:7px}
  .monthly-nudge,.monthly-same{min-height:48px}
  .monthly-adjuster .monthly-expense-actual{grid-column:auto!important;grid-row:auto!important}
  .monthly-adjuster .monthly-expense-actual::before{display:none!important}
  .monthly-adjuster .monthly-expense-actual input{min-height:48px;font-size:16px}
  .monthly-closeout-totals{grid-template-columns:1fr 1fr}
  .monthly-closeout-totals > div:last-child{grid-column:1 / -1}
  .monthly-result-tiles{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .monthly-closeout-card{padding-left:10px!important;padding-right:10px!important}
  .monthly-category-actions{grid-template-columns:1fr}
  .monthly-category-actions > *{grid-column:1!important}
  .monthly-adjuster{grid-template-columns:40px minmax(0,1fr) 40px 58px!important;gap:5px!important}
  .monthly-closeout-totals,.monthly-result-tiles{grid-template-columns:1fr}
  .monthly-closeout-totals > div:last-child{grid-column:auto}
}

/* ---------- v219: chart-first net-worth summary and explicit history dates ---------- */
.networth-home-hero{
  grid-template-columns:minmax(0,1fr);
  padding:28px;
}
.networth-history-primary{
  width:100%;
  min-height:0;
  grid-template-rows:auto minmax(280px,1fr) auto auto;
}
.history-axis-date{
  fill:rgba(247,244,236,.78);
  font-size:11px;
  font-weight:760;
  letter-spacing:.01em;
}
.history-axis-date.compact{
  fill:rgba(247,244,236,.84);
  font-size:10px;
  font-weight:840;
  letter-spacing:.08em;
}
.history-axis-year{
  fill:rgba(220,230,239,.56);
  font-size:8.8px;
  font-weight:680;
  letter-spacing:.03em;
}
.history-balance-summary{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px 22px;
  padding:13px 15px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:8px;
  background:linear-gradient(105deg,rgba(255,255,255,.045),rgba(118,169,212,.055));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.history-balance-math{
  min-width:0;
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px 10px;
  color:rgba(247,244,236,.66);
}
.history-balance-math span{display:inline-flex;align-items:baseline;gap:5px;min-width:0}
.history-balance-math b{color:#F7F4EC;font-size:15px;font-weight:820;font-variant-numeric:tabular-nums}
.history-balance-math small{font-size:11.5px;font-weight:650}
.history-balance-math i{color:rgba(247,244,236,.42);font-style:normal;font-size:15px;font-weight:840}
.history-balance-math strong{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#F0D48A;
  font-size:11px;
  font-weight:850;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.history-balance-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px 14px;
}
.history-balance-actions .networth-asof{margin:0;color:rgba(247,244,236,.58);font-size:10.8px;gap:9px}
.history-balance-actions .networth-asof .linklike,
.history-balance-actions > .linklike{color:#F0D48A;font-size:11px;font-weight:790;white-space:nowrap}
.history-balance-actions .networth-asof-sep{display:none}

@media(max-width:760px){
  .networth-home-hero{padding:14px!important}
  .networth-history-primary{grid-template-rows:auto minmax(230px,1fr) auto auto;padding:17px 12px 14px}
  .history-balance-summary{grid-template-columns:1fr;gap:10px;padding:12px}
  .history-balance-actions{justify-content:flex-start;padding-top:9px;border-top:1px solid rgba(255,255,255,.09)}
  .history-balance-actions .networth-asof{flex-wrap:wrap}
}
@media(max-width:430px){
  .history-balance-math{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    gap:8px;
  }
  .history-balance-math span{display:grid;gap:1px}
  .history-balance-math span:nth-of-type(2){text-align:right}
  .history-balance-math small{font-size:10px}
  .history-balance-math strong{grid-column:1 / -1;padding-top:8px;border-top:1px solid rgba(216,184,108,.17)}
  .history-balance-actions{display:grid;grid-template-columns:1fr auto;align-items:end}
  .history-balance-actions .networth-asof{display:grid;gap:4px}
}

/* ---------- v221: interactive, chart-led monthly money map ---------- */
#budget-live .overview-money-map{
  padding:28px;
  overflow:hidden;
  background:
    radial-gradient(620px 360px at 13% 46%,rgba(73,191,139,.13),transparent 68%),
    radial-gradient(520px 300px at 92% 2%,rgba(216,184,108,.09),transparent 72%),
    linear-gradient(145deg,#07192B,#0A2137 56%,#0C2943);
}
.money-flow-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px 18px;flex-wrap:wrap}
.money-flow-head-actions .add-row{color:#F0D48A;font-size:11.5px;font-weight:790}
.money-flow-experience{
  display:grid;
  grid-template-columns:minmax(360px,1.08fr) minmax(330px,.92fr);
  gap:clamp(28px,4vw,68px);
  align-items:center;
  margin-top:20px;
  padding:24px clamp(20px,3vw,44px);
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:linear-gradient(125deg,rgba(255,255,255,.047),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 32px 70px -60px rgba(0,0,0,.95);
}
#budget-live .money-flow-viz{
  min-height:440px;
  display:grid;
  grid-template-rows:minmax(300px,1fr) auto;
  align-items:center;
  padding:8px 0 0;
  border:0;
  background:transparent;
  box-shadow:none;
}
#budget-live .money-flow-viz .overview-donut .chart{
  width:min(350px,100%);
  max-width:350px!important;
  filter:drop-shadow(0 28px 44px rgba(0,0,0,.34));
}
.donut-seg{
  cursor:pointer;
  outline:none;
  transition:filter .2s ease,opacity .2s ease,stroke-width .2s ease;
}
.donut-seg.active{filter:brightness(1.14) drop-shadow(0 0 5px currentColor);stroke-width:24}
.donut-seg:focus-visible{filter:brightness(1.14) drop-shadow(0 0 5px currentColor)}
.donut-chart.has-orbit{overflow:visible}
.donut-orbit-label{
  pointer-events:none;
  opacity:.86;
  stroke:#091D31;
  stroke-width:2.15px;
  paint-order:stroke fill;
  font-family:var(--sans);
  font-size:6.1px;
  font-weight:850;
  letter-spacing:.055em;
  transition:opacity .2s ease,filter .2s ease;
}
.donut-orbit-label.active{opacity:1;filter:brightness(1.18) drop-shadow(0 0 2px currentColor)}
.donut-orbit-label.muted{opacity:.32}
.money-flow-focus{
  width:min(420px,100%);
  min-height:94px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:baseline;
  gap:3px 18px;
  margin:0 auto;
  padding:14px 4px 0;
  border-top:1px solid rgba(255,255,255,.11);
}
.money-flow-focus-kicker{
  color:var(--flow-color,#A7CDED);
  font-size:10px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.money-flow-focus > b{color:#F7F4EC;font-family:var(--serif);font-size:clamp(26px,2.6vw,36px);line-height:1;font-variant-numeric:tabular-nums}
.money-flow-focus > small{grid-column:1 / -1;color:rgba(247,244,236,.59);font-size:11.5px;line-height:1.45}
.donut-reset{cursor:pointer;outline:none}
.donut-reset circle{transition:stroke .18s ease,fill .18s ease,filter .18s ease}
.donut-reset:hover circle,.donut-reset:focus-visible circle{stroke:rgba(240,212,138,.68);filter:drop-shadow(0 0 7px rgba(240,212,138,.2))}
.money-flow-reset{
  grid-column:1 / -1;
  justify-self:start;
  margin-top:3px;
  padding:5px 0;
  color:#F0D48A;
  font-size:10px;
  font-weight:780;
  line-height:1.2;
  text-decoration:underline;
  text-decoration-color:rgba(240,212,138,.45);
  text-underline-offset:3px;
}
.money-flow-reset:hover,.money-flow-reset:focus-visible{color:#FFF0BE;outline:none;text-decoration-color:currentColor}
.money-flow-key{display:grid;align-content:center}
.money-flow-key-row{
  --flow-color:#A7CDED;
  width:100%;
  min-height:94px;
  display:grid;
  grid-template-columns:12px minmax(0,1fr) auto;
  align-items:center;
  gap:12px 16px;
  padding:16px 8px;
  border-bottom:1px solid rgba(255,255,255,.12);
  color:#F7F4EC;
  text-align:left;
  transition:background .18s ease,padding .18s ease,transform .18s ease;
}
.money-flow-key-row:first-child{border-top:1px solid rgba(255,255,255,.12)}
.money-flow-key-row:hover,.money-flow-key-row.active,.money-flow-key-row:focus-visible{
  padding-left:15px;
  padding-right:15px;
  border-radius:8px;
  outline:none;
  background:linear-gradient(90deg,color-mix(in srgb,var(--flow-color) 14%,transparent),rgba(255,255,255,.025));
}
.money-flow-key-row.active{box-shadow:inset 3px 0 0 var(--flow-color)}
.money-flow-swatch{width:10px;height:10px;border-radius:50%;background:var(--flow-gradient,var(--flow-color));box-shadow:0 0 14px color-mix(in srgb,var(--flow-color) 50%,transparent)}
.money-flow-key-row > span:nth-child(2){display:grid;gap:4px;min-width:0}
.money-flow-key-row > span b{font-size:14px;line-height:1.25}
.money-flow-key-row > span small{color:rgba(247,244,236,.52);font-size:11px}
.money-flow-key-row > span em{color:rgba(240,212,138,.78);font-size:10px;font-style:normal;font-weight:720;line-height:1.35}
.money-flow-key-row > strong{color:#F7F4EC;font-family:var(--serif);font-size:clamp(22px,2vw,29px);font-variant-numeric:tabular-nums}
.money-flow-workplace{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px 18px;
  margin-top:16px;
  padding:15px 18px;
  border:1px solid rgba(216,184,108,.28);
  border-radius:8px;
  background:linear-gradient(105deg,rgba(216,184,108,.11),rgba(53,183,125,.07));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 34px -28px rgba(216,184,108,.62);
}
.money-flow-workplace-tag{padding:5px 8px;border:1px solid rgba(216,184,108,.36);border-radius:999px;color:#F0D48A;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.money-flow-workplace > span:nth-child(2){display:grid;gap:3px;color:#F7F4EC}
.money-flow-workplace b{font-size:13px}
.money-flow-workplace small{color:rgba(247,244,236,.54);font-size:10.8px;line-height:1.35}
.money-flow-workplace strong{color:#8DDFB0;font-family:var(--serif);font-size:24px;font-variant-numeric:tabular-nums;white-space:nowrap}
.money-flow-gap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:12px;
  padding:12px 16px;
  border-left:3px solid #E46F70;
  border-radius:0 8px 8px 0;
  color:#F7F4EC;
  background:rgba(195,78,93,.12);
}
.money-flow-gap > span{display:grid;gap:3px}
.money-flow-gap b{color:#FF9A9F;font-size:12.5px}
.money-flow-gap small{color:rgba(247,244,236,.58);font-size:10.8px;line-height:1.35}
.money-flow-gap .add-row{flex:none;color:#FFB0B4;font-size:11px}
.money-flow-modal{width:min(900px,calc(100vw - 32px))}
.money-flow-equation{
  display:grid;
  grid-template-columns:minmax(180px,.7fr) auto minmax(360px,1.3fr);
  align-items:stretch;
  gap:12px;
}
.money-flow-equation > .source,.money-flow-equation-uses{
  padding:16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper-2);
}
.money-flow-equation > .source{display:grid;align-content:center;gap:6px}
.money-flow-equation > .source span{color:var(--ink-3);font-size:10px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}
.money-flow-equation > .source b{font-family:var(--serif);font-size:30px;color:var(--ink)}
.money-flow-equation > i{align-self:center;color:var(--ink-3);font-style:normal;font-size:20px;font-weight:850}
.money-flow-equation-uses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.money-flow-equation-uses span{display:grid;gap:7px;padding-left:10px;border-left:3px solid var(--flow-color)}
.money-flow-equation-uses small{color:var(--ink-3);font-size:10px;line-height:1.35}
.money-flow-equation-uses b{color:var(--ink);font-size:17px}
.money-flow-modal-note{margin:14px 0 0;padding:13px 15px;border-left:3px solid var(--gold);border-radius:0 7px 7px 0;color:var(--ink-2);background:var(--gold-soft);font-size:12.5px;line-height:1.55}
.money-flow-workplace.modal-workplace{color:var(--ink);background:var(--paper-2);box-shadow:none}
.money-flow-workplace.modal-workplace > span:nth-child(2){color:var(--ink)}
.money-flow-workplace.modal-workplace small{color:var(--ink-3)}
.money-flow-workplace.modal-workplace strong{color:var(--green)}

@media(max-width:820px){
  #budget-live .overview-money-map{padding:20px 16px}
  .money-flow-experience{grid-template-columns:1fr;gap:8px;padding:16px}
  #budget-live .money-flow-viz{min-height:390px}
  .money-flow-key-row{min-height:78px}
  .money-flow-equation{grid-template-columns:1fr}
  .money-flow-equation > i{text-align:center}
}
@media(max-width:520px){
  #budget-live .overview-money-map{padding:17px 12px}
  .overview-map-head{gap:12px}
  .money-flow-head-actions{justify-content:flex-start;gap:8px 14px}
  .money-flow-experience{margin-top:15px;padding:12px 10px}
  #budget-live .money-flow-viz{min-height:350px;grid-template-rows:minmax(250px,1fr) auto}
  #budget-live .money-flow-viz .overview-donut .chart{width:min(286px,82vw)!important;max-width:286px!important}
  .donut-orbit-label{font-size:6.35px;letter-spacing:.04em}
  .money-flow-focus{min-height:86px;padding:12px 4px 0}
  .money-flow-reset{min-height:36px;display:inline-flex;align-items:center;font-size:10.5px}
  .money-flow-key-row{min-height:70px;padding:12px 5px;grid-template-columns:10px minmax(0,1fr) auto;gap:10px}
  .money-flow-key-row:hover,.money-flow-key-row.active,.money-flow-key-row:focus-visible{padding-left:10px;padding-right:10px}
  .money-flow-key-row > strong{font-size:21px}
  .money-flow-workplace{grid-template-columns:1fr auto;gap:8px 12px;padding:13px}
  .money-flow-workplace-tag{grid-column:1 / -1;width:max-content}
  .money-flow-workplace strong{font-size:21px}
  .money-flow-gap{align-items:flex-start;padding:12px}
  .money-flow-equation-uses{grid-template-columns:1fr;gap:10px}
  .money-flow-modal{width:calc(100vw - 20px)}
}

/* ---------- v223: visible monthly net-worth cadence ---------- */
.history-hero-foot{
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(216,184,108,.18);
  border-radius:8px;
  background:linear-gradient(105deg,rgba(216,184,108,.08),rgba(118,169,212,.055));
}
.history-return-note{
  width:100%;
  min-width:0;
  max-width:none;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  gap:6px 10px;
  margin-left:0;
  text-align:left;
}
.history-return-note b{
  color:#F0D48A;
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.history-return-note small{color:rgba(247,244,236,.66);font-size:11px;line-height:1.45}
@media(max-width:760px){
  .history-hero-foot{align-items:flex-start;flex-direction:column;gap:9px;padding:12px}
  .history-return-note{min-width:0;width:100%;grid-template-columns:1fr;gap:4px;margin-left:0}
  .history-return-note b{white-space:normal}
}

/* ---------- v224: integrated investing and savings story ---------- */
.money-wealth-band{
  display:grid;
  grid-template-columns:minmax(210px,.72fr) minmax(480px,1.4fr);
  gap:18px clamp(24px,3vw,48px);
  align-items:center;
  margin-top:18px;
  padding:22px clamp(20px,2.6vw,38px);
  border-top:1px solid rgba(216,184,108,.25);
  border-bottom:1px solid rgba(255,255,255,.09);
  background:linear-gradient(100deg,rgba(216,184,108,.065),rgba(53,183,125,.07) 54%,rgba(134,212,165,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 24px 60px -56px rgba(53,183,125,.9);
}
.money-wealth-intro{min-width:0}
.money-wealth-intro > span,.money-wealth-label,.money-wealth-focus-tag{
  color:#F0D48A;
  font-size:9.5px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.money-wealth-intro h3{margin:7px 0;color:#F7F4EC;font-family:var(--serif);font-size:clamp(21px,2vw,29px);line-height:1.08}
.money-wealth-intro p{max-width:38ch;margin:0;color:rgba(247,244,236,.58);font-size:11px;line-height:1.5}
.money-wealth-metrics{min-width:0;display:grid;grid-template-columns:minmax(0,1.12fr) 1px minmax(0,.88fr);gap:17px;align-items:stretch}
.money-wealth-divider{width:1px;background:linear-gradient(transparent,rgba(255,255,255,.16) 20%,rgba(255,255,255,.16) 80%,transparent)}
.money-wealth-metric{
  min-width:0;
  display:grid;
  align-content:center;
  gap:8px;
  padding:10px 12px;
  color:#F7F4EC;
  text-align:left;
  border-radius:8px;
  transition:background .2s ease,box-shadow .2s ease,transform .2s ease;
}
.money-wealth-metric:hover,.money-wealth-metric:focus-visible,.money-wealth-metric.active{outline:none;background:rgba(255,255,255,.045);box-shadow:inset 0 0 0 1px rgba(255,255,255,.075)}
.money-wealth-metric:active{transform:translateY(1px)}
.money-wealth-metric > b{color:#92E0B3;font-family:var(--serif);font-size:clamp(28px,2.6vw,39px);line-height:1;font-variant-numeric:tabular-nums}
.money-wealth-metric > b.negative{color:#FF9A9F}
.money-wealth-metric > b small{margin-left:3px;color:rgba(247,244,236,.5);font-family:var(--sans);font-size:10px;font-weight:760}
.money-wealth-stack,.money-savings-track{height:6px;display:flex;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08)}
.money-wealth-stack i{display:block;width:var(--share);min-width:0;transition:width .35s ease}
.money-wealth-stack .payroll{background:linear-gradient(90deg,#D8B86C,#F0D48A)}
.money-wealth-stack .personal{background:linear-gradient(90deg,#2F9B75,#53C794)}
.money-savings-track i{display:block;width:var(--share);border-radius:inherit;background:linear-gradient(90deg,#70AFDC,#A7D8F7);transition:width .35s ease}
.money-wealth-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.money-wealth-source{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:3px 8px;
  padding:8px 9px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:6px;
  background:rgba(255,255,255,.035);
}
.money-wealth-source small{display:inline-flex;align-items:center;gap:5px;color:rgba(247,244,236,.7);font-size:9px;font-weight:780;text-transform:uppercase}
.money-wealth-source b{color:#F7F4EC;font-size:13px;font-weight:850;font-variant-numeric:tabular-nums}
.money-wealth-source em{grid-column:1 / -1;color:rgba(247,244,236,.48);font-size:8.8px;font-style:normal}
.money-wealth-source i{width:6px;height:6px;border-radius:50%}
.money-wealth-source.payroll-source{border-color:rgba(232,200,111,.19);background:rgba(232,200,111,.055)}
.money-wealth-source.personal-source{border-color:rgba(73,191,139,.19);background:rgba(73,191,139,.055)}
.payroll-dot{background:#E8C86F;box-shadow:0 0 10px rgba(232,200,111,.4)}
.personal-dot{background:#49BF8B;box-shadow:0 0 10px rgba(73,191,139,.38)}
.money-wealth-caption{color:rgba(247,244,236,.53);font-size:9.8px;line-height:1.35}
.money-wealth-focus{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  gap:5px 14px;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.09);
}
.money-wealth-focus-tag{color:#A7CDED;white-space:nowrap}
.money-wealth-focus p{margin:0;color:rgba(247,244,236,.8);font-size:11.5px;line-height:1.4}
.money-wealth-focus p b{color:#F7F4EC}
.money-wealth-focus > small{grid-column:2;color:rgba(247,244,236,.5);font-size:10.5px;line-height:1.45}

@media(max-width:700px){
  .money-wealth-band{grid-template-columns:1fr}
  .money-wealth-intro{display:grid;grid-template-columns:1fr auto;gap:5px 18px;align-items:end}
  .money-wealth-intro > span,.money-wealth-intro p{grid-column:1 / -1}
  .money-wealth-intro h3{margin:2px 0 0}
}
@media(max-width:560px){
  .money-wealth-band{gap:16px;margin-top:14px;padding:18px 13px}
  .money-wealth-intro{display:block}
  .money-wealth-metrics{grid-template-columns:1fr;gap:8px}
  .money-wealth-divider{width:100%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.14),transparent)}
  .money-wealth-metric{padding:12px 10px}
  .money-wealth-metric > b{font-size:32px}
  .money-wealth-focus{grid-template-columns:1fr;gap:5px;padding:13px 9px 0}
  .money-wealth-focus-tag{white-space:normal}
  .money-wealth-focus > small{grid-column:1}
}

/* ---------- v232: complete monthly-flow bridge ---------- */
.money-flow-bridge{
  display:grid;
  grid-template-columns:minmax(190px,.62fr) minmax(540px,1.55fr) auto;
  align-items:center;
  gap:18px clamp(22px,3vw,46px);
  margin:20px 0 4px;
  padding:18px 2px;
  border-block:1px solid rgba(255,255,255,.12);
}
.money-flow-bridge-intro{min-width:0;display:grid;gap:4px}
.money-flow-bridge-intro > span{
  color:#F0D48A;
  font-size:9px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.money-flow-bridge-intro > b{color:#F7F4EC;font-family:var(--serif);font-size:19px;line-height:1.2}
.money-flow-bridge-intro > small{color:rgba(247,244,236,.5);font-size:9.8px;line-height:1.4}
.money-flow-bridge-equation{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(120px,1fr) 20px minmax(130px,1fr) 20px minmax(170px,1.16fr);
  align-items:center;
  gap:10px;
}
.money-flow-bridge-term{
  min-width:0;
  display:grid;
  gap:3px;
  padding-left:13px;
  border-left:3px solid var(--bridge-color);
}
.money-flow-bridge-term.available{--bridge-color:#92D8B2}
.money-flow-bridge-term.payroll{--bridge-color:#35B77D}
.money-flow-bridge-term.total{
  --bridge-color:#D8B86C;
  padding:12px 14px;
  border:1px solid rgba(216,184,108,.26);
  border-left:3px solid var(--bridge-color);
  border-radius:7px;
  background:linear-gradient(115deg,rgba(216,184,108,.12),rgba(53,183,125,.065));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 34px -28px rgba(216,184,108,.64);
}
.money-flow-bridge-term > span{color:rgba(247,244,236,.58);font-size:9px;font-weight:820;line-height:1.25;text-transform:uppercase}
.money-flow-bridge-term > b{overflow:hidden;color:#F7F4EC;font-family:var(--serif);font-size:clamp(22px,2.1vw,30px);line-height:1.05;text-overflow:ellipsis;white-space:nowrap}
.money-flow-bridge-term.payroll > b{color:#8DDFB0}
.money-flow-bridge-term.total > b{color:#F0D48A}
.money-flow-bridge-term > small{color:rgba(247,244,236,.46);font-size:9.5px;line-height:1.35}
.money-flow-label-compact{display:none}
.money-flow-bridge-mobile{display:none}
.money-flow-bridge-equation > i{color:rgba(247,244,236,.34);font-style:normal;font-size:17px;font-weight:850;text-align:center}
.money-flow-bridge-link{
  max-width:126px;
  justify-self:end;
  color:#F0D48A;
  font-size:10.5px;
  font-weight:780;
  line-height:1.35;
  text-align:left;
  text-decoration:underline;
  text-decoration-color:rgba(240,212,138,.38);
  text-underline-offset:4px;
}
.money-flow-bridge-link:hover,.money-flow-bridge-link:focus-visible{color:#FFF0BE;outline:none;text-decoration-color:currentColor}
@media(max-width:1360px){
  .money-flow-bridge{grid-template-columns:minmax(170px,.5fr) minmax(0,1.5fr)}
  .money-flow-bridge-link{grid-column:2;justify-self:start;max-width:none}
}
@media(max-width:760px){
  .money-flow-bridge{grid-template-columns:1fr;gap:14px;padding:17px 0}
  .money-flow-bridge-intro > small{max-width:520px}
  .money-flow-bridge-link{grid-column:1}
}
@media(max-width:520px){
  .money-flow-bridge{margin-top:16px}
  .money-flow-bridge-equation{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:8px}
  .money-flow-bridge-term{padding-left:9px}
  .money-flow-bridge-term > b{font-size:22px}
  .money-flow-bridge-term > span{font-size:8px}
  .money-flow-bridge-term > small{font-size:8.8px}
  .money-flow-bridge-equation > .equals{grid-column:1 / -1;grid-row:2;margin:-2px 0;justify-self:center}
  .money-flow-bridge-term.total{grid-column:1 / -1;grid-row:3;padding:11px 12px;text-align:center}
  .money-flow-bridge-term.total > span,.money-flow-bridge-term.total > small{text-align:center}
}

/* ---------- v247: compact mobile monthly-picture placement ---------- */
.money-flow-experience{
  grid-template-areas:
    "visual key"
    "bridge bridge";
}
.money-flow-experience > .money-flow-bridge{
  grid-area:bridge;
  width:100%;
  margin:2px 0 0;
}
.money-flow-experience > .money-flow-viz{grid-area:visual}
.money-flow-experience > .money-flow-key{grid-area:key}
@media(max-width:820px){
  .money-flow-experience{
    grid-template-areas:
      "visual"
      "bridge"
      "key";
  }
  .money-flow-experience > .money-flow-bridge{
    width:min(100%,560px);
    justify-self:center;
  }
}
@media(max-width:520px){
  .money-flow-experience{
    width:100%;
    min-width:0;
    max-width:100%;
    overflow:hidden;
  }
  .money-flow-experience > .money-flow-viz,
  .money-flow-experience > .money-flow-key{
    width:100%;
    min-width:0;
    max-width:100%;
  }
  .money-flow-experience > .money-flow-bridge{
    width:min(100%,310px);
    min-width:0;
    max-width:310px;
    gap:0;
    margin:0 auto 2px;
    padding:8px 0 6px;
    border-top:1px solid rgba(255,255,255,.12);
    border-bottom:0;
    text-align:center;
  }
  .money-flow-bridge-intro{display:none}
  .money-flow-bridge-equation{display:none}
  .money-flow-bridge-mobile{
    width:min(100%,300px);
    max-width:300px;
    margin-inline:auto;
    display:grid;
    grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr) 8px minmax(0,1fr);
    align-items:center;
    justify-content:center;
    gap:2px;
    color:rgba(247,244,236,.48);
    line-height:1;
  }
  .money-flow-bridge-mobile > span{
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    text-align:center;
  }
  .money-flow-bridge-mobile b{
    max-width:100%;
    overflow:hidden;
    color:#F7F4EC;
    font-family:var(--serif);
    font-size:clamp(12px,3.5vw,14px);
    line-height:1;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .money-flow-bridge-mobile small{
    max-width:100%;
    overflow:hidden;
    color:rgba(247,244,236,.52);
    font-size:7px;
    font-weight:760;
    letter-spacing:.03em;
    line-height:1.1;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
  }
  .money-flow-bridge-mobile > i{
    color:rgba(247,244,236,.34);
    font-style:normal;
    font-size:10px;
    font-weight:850;
  }
  .money-flow-bridge-mobile .total{
    padding:5px 2px;
    border:1px solid rgba(216,184,108,.24);
    border-radius:5px;
    background:rgba(216,184,108,.08);
  }
  .money-flow-bridge-mobile .total b{color:#F0D48A}
  .money-flow-bridge-mobile .total small{color:rgba(240,212,138,.62)}
  .money-flow-bridge-link{
    display:none;
  }
  .money-flow-key-row{
    grid-template-columns:8px minmax(0,1fr) minmax(0,92px);
    gap:9px;
  }
  .money-flow-key-row > strong{
    max-width:92px;
    overflow:hidden;
    font-size:19px;
    text-align:right;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

/* ---------- v251: mobile onboarding assumption touch targets ---------- */
@media(max-width:600px){
  .onboarding-modal .ob-assump .dial .dl{
    align-items:center;
    gap:12px;
    margin-bottom:2px;
  }
  .onboarding-modal .ob-assump .dname{
    min-width:0;
    line-height:1.3;
  }
  .onboarding-modal .ob-assump .dval{
    flex:none;
    min-height:44px;
    align-items:center;
    padding:0 9px;
    border:1px solid var(--line-2);
    border-radius:8px;
    background:var(--paper-2);
  }
  .onboarding-modal .ob-assump .dval:focus-within{
    border-color:var(--accent);
    box-shadow:0 0 0 3px var(--accent-soft);
  }
  .onboarding-modal .ob-assump .dnum{
    width:44px;
    min-height:42px;
    padding:0 2px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:17px;
  }
  .onboarding-modal .ob-assump .dsuf{font-size:17px}
  .onboarding-modal .ob-assump input[type="range"]{
    height:36px;
    margin:0;
    background:linear-gradient(var(--line-2),var(--line-2)) center / 100% 4px no-repeat;
  }
  .onboarding-modal .ob-assump input[type="range"]::-webkit-slider-thumb{
    width:22px;
    height:22px;
  }
  .onboarding-modal .ob-assump input[type="range"]::-moz-range-thumb{
    width:20px;
    height:20px;
  }
}

/* ---------- v226: true full-width projection canvas ---------- */
.projection-page-wrap{
  width:100%;
  max-width:none;
  padding-inline:clamp(18px,2.7vw,32px);
}
.projection-chart-card{width:100%}
.projection-chart-card .projection-chart-shell{
  width:auto;
  margin:14px -24px 0;
  padding:10px 0 0;
  border-left:0;
  border-right:0;
  border-radius:0;
}
.projection-chart-shell .projection-chart{
  display:block;
  width:100%;
  max-width:none;
}
@media(max-width:700px){
  .projection-page-wrap{padding-inline:10px}
  .projection-chart-card{padding-inline:12px!important}
  .projection-chart-card .projection-chart-shell{
    margin:10px -12px 0;
    padding-top:2px;
  }
}

/* ---------- v231: isolated, interactive compounding lab ---------- */
.growth-page{max-width:1480px}
.growth-page-head{margin-bottom:18px}
.growth-page-head .page-sub{max-width:820px}
.growth-sandbox-banner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
  padding:16px 18px;
  border:1px solid color-mix(in srgb,var(--teal) 30%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,var(--teal) 7%,var(--paper));
  box-shadow:0 18px 48px -42px color-mix(in srgb,var(--teal) 75%,transparent);
}
.growth-sandbox-mark{
  min-width:78px;
  padding:10px 11px;
  border:1px solid color-mix(in srgb,var(--teal) 46%,var(--line));
  border-radius:6px;
  color:var(--teal);
  background:var(--paper);
  font-size:10px;
  font-weight:880;
  letter-spacing:.13em;
  text-align:center;
}
.growth-sandbox-banner > div{min-width:0}
.growth-sandbox-banner b{display:block;color:var(--ink);font-size:14px}
.growth-sandbox-banner p{margin:4px 0 0;color:var(--ink-2);font-size:11.5px;line-height:1.45}
.growth-sandbox-status{
  padding:7px 10px;
  border-radius:999px;
  color:var(--green);
  background:color-mix(in srgb,var(--green) 10%,var(--paper));
  font-size:9.5px;
  font-weight:850;
  letter-spacing:.06em;
  white-space:nowrap;
  text-transform:uppercase;
}
.growth-plan-context{padding:clamp(20px,2.4vw,34px)}
.growth-section-head,.growth-controls-head,.growth-chart-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
}
.growth-section-head h2,.growth-controls-head h2{
  margin:5px 0 0;
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(22px,2vw,31px);
  line-height:1.08;
}
.growth-section-head p{max-width:760px;margin:8px 0 0;color:var(--ink-2);font-size:12px;line-height:1.5}
.growth-plan-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:23px;
  border-block:1px solid var(--line);
}
.growth-plan-metric{
  min-width:0;
  display:grid;
  grid-template-rows:auto auto auto 1fr;
  gap:9px;
  padding:20px clamp(15px,2vw,28px);
}
.growth-plan-metric + .growth-plan-metric{border-left:1px solid var(--line)}
.growth-plan-metric > span{display:flex;align-items:center;gap:8px;color:var(--ink-2);font-size:11px;font-weight:800}
.growth-plan-metric > span i{width:8px;height:8px;border-radius:50%;background:var(--metric-color);box-shadow:0 0 14px color-mix(in srgb,var(--metric-color) 48%,transparent)}
.growth-plan-metric > b{color:var(--ink);font-family:var(--serif);font-size:clamp(30px,3vw,43px);line-height:1}
.growth-plan-metric > b small{margin-left:3px;color:var(--ink-3);font-family:var(--sans);font-size:10px;font-weight:750}
.growth-plan-metric > small{align-self:start;color:var(--ink-3);font-size:10.5px;line-height:1.45}
.growth-plan-metric > button{
  justify-self:start;
  align-self:start;
  min-height:34px;
  padding:5px 0;
  color:var(--teal);
  font-size:10.5px;
  font-weight:820;
  text-decoration:underline;
  text-underline-offset:4px;
}
.growth-plan-metric > button:hover,.growth-plan-metric > button:focus-visible{color:var(--ink);outline:none}
.growth-plan-metric > button:disabled{color:var(--ink-3);cursor:default;text-decoration:none}
.growth-plan-metric.expenses{--metric-color:#D66556}
.growth-plan-metric.investing{--metric-color:#2E9D74}
.growth-plan-metric.savings{--metric-color:#6DAAD6}
.growth-plan-metric.savings.unavailable{--metric-color:#C34E5D}
.growth-plan-track{height:6px;overflow:hidden;border-radius:999px;background:var(--paper-3)}
.growth-plan-track i{display:block;width:var(--growth-share);height:100%;border-radius:inherit;background:var(--metric-color);transition:width .4s ease}
.growth-plan-note{
  margin-top:16px;
  padding:12px 14px;
  border-left:3px solid var(--gold);
  color:var(--ink-2);
  background:var(--gold-soft);
  font-size:11px;
  line-height:1.5;
}
.growth-plan-note b{color:var(--ink)}
.growth-workbench{display:grid;grid-template-columns:minmax(310px,.68fr) minmax(520px,1.32fr);gap:18px;margin-top:18px}
.growth-controls{padding:24px;align-self:stretch}
.growth-controls-head h2{font-size:25px}
.growth-reset{
  min-height:36px;
  padding:7px 10px;
  color:var(--teal);
  font-size:10.5px;
  font-weight:820;
  text-decoration:underline;
  text-underline-offset:4px;
}
.growth-reset:hover,.growth-reset:focus-visible{color:var(--ink);outline:none}
.growth-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:19px 0}
.growth-presets button{
  min-height:44px;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--ink-2);
  background:var(--paper-2);
  font-size:10px;
  font-weight:790;
  line-height:1.25;
  transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}
.growth-presets button:hover,.growth-presets button:focus-visible,.growth-presets button.active{
  color:var(--ink);
  border-color:color-mix(in srgb,var(--gold) 52%,var(--line));
  background:var(--gold-soft);
  outline:none;
}
.growth-presets button:active{transform:translateY(1px)}
.growth-presets button:disabled{opacity:.46;cursor:not-allowed}
.growth-control-grid{display:grid;gap:18px}
.growth-control-grid > div{min-width:0}
.growth-control-grid .money-in{height:52px}
.growth-control-grid .money-in input{font-size:22px}
.growth-control-grid .dial{padding:2px 0 3px}
.growth-control-help{display:block;margin-top:6px;color:var(--ink-3);font-size:9.5px;line-height:1.4}
.growth-control-foot{display:flex;align-items:flex-start;gap:8px;margin-top:19px;padding-top:15px;border-top:1px solid var(--line);color:var(--ink-3);font-size:10px;line-height:1.45}
.growth-control-lock{width:18px;height:18px;flex:none;display:grid;place-items:center;border-radius:50%;color:var(--green);background:color-mix(in srgb,var(--green) 12%,var(--paper));font-size:10px;font-weight:900}
.growth-chart-card{min-width:0;margin:0;padding:24px;overflow:hidden}
.growth-chart-head{align-items:flex-end}
.growth-chart-head .card-title{max-width:560px;margin-top:5px;font-family:var(--serif);font-size:clamp(20px,2vw,28px);line-height:1.12}
.growth-chart-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 15px;color:var(--ink-2);font-size:10px}
.growth-chart-legend span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.growth-chart-legend i{width:9px;height:9px;border-radius:50%}
.growth-chart-legend .deposits{background:var(--teal)}
.growth-chart-legend .growth{background:var(--gold)}
.growth-chart-summary{
  display:grid;
  grid-template-columns:1.25fr 1fr .7fr;
  margin:18px 0 5px;
  padding:12px 0;
  border-block:1px solid var(--line);
}
.growth-chart-summary span{display:grid;gap:3px;padding:0 15px}
.growth-chart-summary span + span{border-left:1px solid var(--line)}
.growth-chart-summary small{color:var(--ink-3);font-size:8.5px;font-weight:820;letter-spacing:.08em;text-transform:uppercase}
.growth-chart-summary b{color:var(--ink);font-size:15px}
#invest-chart{min-width:0}
#invest-chart .growth-chart{display:block;width:100%;max-width:none;min-height:290px}
.growth-chart-caption{margin:4px 0 0;color:var(--ink-3);font-size:9.5px;line-height:1.45;text-align:center}
.growth-scrub-readout{
  display:grid;
  grid-template-columns:.8fr repeat(3,1fr);
  gap:1px;
  overflow:hidden;
  margin:8px 0 0;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--line);
}
.growth-scrub-readout span{min-width:0;display:grid;gap:3px;padding:10px 11px;background:var(--paper-2)}
.growth-scrub-readout small{color:var(--ink-3);font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.growth-scrub-readout b{overflow:hidden;color:var(--ink);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}
.growth-results{margin-top:18px;padding:clamp(22px,2.8vw,38px);overflow:hidden}
.growth-results-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.growth-results-hero h2{margin:6px 0 0;color:var(--gold);font-family:var(--serif);font-size:clamp(42px,6vw,76px);line-height:.92}
.growth-results-hero p{margin:8px 0 0;color:var(--ink-2);font-size:11px}
.growth-results-hero > span{align-self:flex-start;padding:7px 9px;border:1px solid color-mix(in srgb,var(--gold) 48%,var(--line));border-radius:999px;color:var(--gold);background:var(--gold-soft);font-size:8.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.growth-result-equation{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:12px;padding:22px 0}
.growth-result-equation > div{min-width:0;display:grid;align-content:center;gap:5px;padding:15px 17px;border-left:3px solid var(--teal);background:var(--paper-2)}
.growth-result-equation > div.growth-result-highlight{border-color:var(--gold);background:var(--gold-soft)}
.growth-result-equation > i{align-self:center;color:var(--ink-3);font-style:normal;font-size:20px;font-weight:850}
.growth-result-equation span{color:var(--ink-3);font-size:9px;font-weight:820;letter-spacing:.07em;text-transform:uppercase}
.growth-result-equation b{color:var(--ink);font-family:var(--serif);font-size:clamp(21px,2.3vw,32px);line-height:1.05}
.growth-result-equation small{color:var(--ink-3);font-size:9.5px;line-height:1.4}
.growth-result-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line)}
.growth-result-insights article{min-width:0;display:grid;align-content:start;gap:7px;padding:17px 18px}
.growth-result-insights article + article{border-left:1px solid var(--line)}
.growth-result-insights span{color:var(--teal);font-size:8.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.growth-result-insights b{color:var(--ink-2);font-size:11px;line-height:1.5}
.growth-results-note{margin-top:18px;padding:13px 15px;border-left:3px solid var(--gold);color:var(--ink-2);background:var(--gold-soft);font-size:10.5px;line-height:1.5}
.growth-results-note b{color:var(--ink)}

@media(max-width:1100px){
  .growth-workbench{grid-template-columns:1fr}
  .growth-control-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
  .growth-controls{padding:22px}
}
@media(max-width:760px){
  .growth-sandbox-banner{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:14px}
  .growth-sandbox-status{grid-column:2;justify-self:start}
  .growth-section-head{display:grid;gap:12px}
  .growth-section-head .add-row{justify-self:start}
  .growth-plan-metrics{grid-template-columns:1fr}
  .growth-plan-metric{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-items:center;padding:17px 10px}
  .growth-plan-metric + .growth-plan-metric{border-left:0;border-top:1px solid var(--line)}
  .growth-plan-metric > b{grid-column:2;grid-row:1;color:var(--ink);font-size:29px;text-align:right}
  .growth-plan-track{grid-column:1 / -1}
  .growth-plan-metric > small,.growth-plan-metric > button{grid-column:1 / -1}
  .growth-chart-head{display:grid;gap:12px}
  .growth-chart-legend{justify-content:flex-start}
  .growth-result-equation{grid-template-columns:1fr}
  .growth-result-equation > i{text-align:center;line-height:.6}
  .growth-result-insights{grid-template-columns:1fr}
  .growth-result-insights article + article{border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:560px){
  .growth-page{padding-inline:10px}
  .growth-page-head{padding-inline:4px}
  .growth-sandbox-banner{grid-template-columns:1fr;gap:9px}
  .growth-sandbox-mark{justify-self:start;min-width:0}
  .growth-sandbox-status{grid-column:1}
  .growth-plan-context,.growth-controls,.growth-chart-card,.growth-results{padding:17px 13px}
  .growth-section-head h2,.growth-controls-head h2{font-size:22px}
  .growth-presets{grid-template-columns:1fr 1fr}
  .growth-control-grid{grid-template-columns:1fr;gap:17px}
  .growth-chart-summary{grid-template-columns:1fr 1fr}
  .growth-chart-summary span{padding:9px 8px}
  .growth-chart-summary span:nth-child(2){border-left:1px solid var(--line)}
  .growth-chart-summary span:nth-child(3){grid-column:1 / -1;border-top:1px solid var(--line);border-left:0}
  #invest-chart{margin-inline:-9px;width:calc(100% + 18px)}
  #invest-chart .growth-chart{min-height:250px}
  .growth-scrub-readout{grid-template-columns:1fr 1fr;margin-inline:9px}
  .growth-scrub-readout span:nth-child(3){border-top:1px solid var(--line)}
  .growth-results-hero{align-items:flex-start;flex-direction:column-reverse;gap:13px}
  .growth-results-hero h2{font-size:48px}
  .growth-result-equation{padding:17px 0}
}

/* ---------- v234: guided setup as a five-phase product journey ---------- */
.scrim{
  background:
    radial-gradient(900px 520px at 72% 8%,rgba(36,91,142,.20),transparent 66%),
    rgba(5,17,31,.64);
  backdrop-filter:blur(12px) saturate(.9);
}
.onboarding-modal{
  position:relative;
  width:min(100%,600px);
  border:1px solid color-mix(in srgb,var(--navy-700) 22%,var(--line));
  background:var(--paper);
  box-shadow:0 42px 120px -54px rgba(2,13,27,.88),0 0 0 1px rgba(255,255,255,.34) inset;
}
.onboarding-modal.onboarding-wide{width:min(100%,940px)}
.onboarding-modal::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  z-index:2;
  background:linear-gradient(90deg,var(--navy-700),var(--gold) 58%,var(--teal));
}
.onboarding-head{
  padding:25px 30px 18px!important;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(440px 190px at 100% 0,rgba(216,184,108,.10),transparent 72%),
    linear-gradient(180deg,var(--paper),var(--paper-2));
}
.onboarding-head .ob-progress-row{display:grid;gap:9px}
.ob-phase-meta{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ob-phase-name{
  color:var(--navy-700);
  font-size:10px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ob-progress-copy{color:var(--ink-3);font-size:10px;font-weight:800;letter-spacing:.08em}
.ob-phase-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%}
.ob-phase-segment{height:4px;border-radius:999px;background:var(--line-2);transition:background .25s ease,transform .25s ease}
.ob-phase-segment.complete{background:var(--navy-700)}
.ob-phase-segment.active{background:linear-gradient(90deg,var(--gold),var(--gold-2));transform:scaleY(1.45)}
.ob-step-kicker{margin-top:16px;color:var(--ink-3);font-size:10.5px;font-weight:760;letter-spacing:.02em}
.onboarding-head h2{
  max-width:20ch;
  margin:7px 0 0!important;
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(28px,3.1vw,38px)!important;
  line-height:1.03!important;
  text-wrap:balance;
}
.onboarding-head .muted{max-width:68ch;margin:8px 0 0!important;color:var(--ink-2);font-size:13px!important;line-height:1.55}
.onboarding-body{padding:20px 30px 13px!important;gap:18px;scrollbar-gutter:stable}
.onboarding-body::-webkit-scrollbar{width:8px}
.onboarding-body::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background-clip:padding-box;background:color-mix(in srgb,var(--navy-700) 32%,transparent)}
.ob-intro{display:grid;gap:18px;color:var(--ink-2);font-size:14px;line-height:1.65}
.ob-intro-lead{max-width:58ch;margin:0}
.ob-intro-outcomes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid var(--line)}
.ob-intro-outcomes > div{position:relative;display:grid;align-content:start;gap:5px;min-width:0;padding:18px 17px 18px 0}
.ob-intro-outcomes > div + div{padding-left:17px;border-left:1px solid var(--line)}
.ob-intro-outcomes span{color:var(--gold);font-size:9px;font-weight:850;letter-spacing:.1em}
.ob-intro-outcomes b{color:var(--ink);font-size:14px}
.ob-intro-outcomes small{color:var(--ink-3);font-size:11px;line-height:1.4}
.ob-privacy-note{padding:13px 15px;border-left:3px solid var(--teal);background:color-mix(in srgb,var(--teal) 7%,var(--paper-2));color:var(--ink-2);font-size:12px;line-height:1.5}
.onboarding-body .field{display:grid;gap:7px;margin:0;padding:0 0 17px;border-bottom:1px solid var(--line)}
.onboarding-body .field:last-child{padding-bottom:0;border-bottom:0}
.onboarding-body .field > label{margin:0;color:var(--ink);font-size:12.5px;font-weight:760}
.onboarding-body .ob-note{margin:0;color:var(--ink-3);font-size:11.5px;line-height:1.5}
.onboarding-body .ob-helper,.onboarding-body .ob-entry-note{border-radius:7px}
.onboarding-body .ob-total{
  position:sticky;
  bottom:-13px;
  z-index:3;
  border-color:color-mix(in srgb,var(--gold) 30%,var(--line));
  background:color-mix(in srgb,var(--paper) 92%,var(--gold-soft));
  box-shadow:0 -12px 30px -25px rgba(4,18,34,.7);
  backdrop-filter:blur(12px);
}
.onboarding-foot{
  min-height:74px;
  padding:14px 30px 17px!important;
  border-top:1px solid var(--line);
  background:var(--paper)!important;
}
.onboarding-foot .btn{min-height:44px;border-radius:7px}
.onboarding-foot .btn-pri{margin-left:auto;min-width:132px}
.onboarding-foot .ob-skip{color:var(--ink-2);font-size:11.5px;text-underline-offset:3px}
:root[data-theme="dark"] .onboarding-head{
  background:radial-gradient(440px 190px at 100% 0,rgba(216,184,108,.08),transparent 72%),linear-gradient(180deg,#0D1D30,#0A192A);
}
:root[data-theme="dark"] .ob-phase-name{color:#A9CBE9}
:root[data-theme="dark"] .ob-phase-segment.complete{background:#4E8EC6}
:root[data-theme="dark"] .ob-privacy-note{background:rgba(67,161,174,.08)}

@media(max-width:740px){
  .onboarding-modal,.onboarding-modal.onboarding-wide{width:min(100%,620px)}
  .onboarding-head{padding:21px 18px 15px!important}
  .onboarding-head h2{font-size:clamp(27px,8vw,34px)!important}
  .onboarding-body{padding:17px 18px 10px!important}
  .onboarding-foot{padding:12px 18px max(15px,env(safe-area-inset-bottom))!important}
  .onboarding-body .ob-total{bottom:-10px}
}
@media(max-width:520px){
  .scrim{padding:8px!important}
  .onboarding-modal,.onboarding-modal.onboarding-wide{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:14px;
  }
  .onboarding-head{padding:19px 16px 14px!important}
  .ob-step-kicker{margin-top:12px}
  .onboarding-head h2{max-width:18ch;font-size:29px!important}
  .onboarding-head .muted{font-size:12.5px!important}
  .onboarding-body{padding:15px 16px 8px!important;gap:15px}
  .ob-intro-outcomes{grid-template-columns:1fr}
  .ob-intro-outcomes > div{grid-template-columns:30px minmax(0,1fr);padding:12px 0}
  .ob-intro-outcomes > div + div{padding-left:0;border-left:0;border-top:1px solid var(--line)}
  .ob-intro-outcomes span{grid-row:1 / span 2;align-self:center}
  .onboarding-foot{grid-template-columns:1fr 1fr!important;gap:8px;padding:11px 16px max(13px,env(safe-area-inset-bottom))!important}
  .onboarding-foot .btn{width:100%;min-width:0}
  .onboarding-foot .btn-pri{margin:0}
  .onboarding-foot .ob-skip{grid-column:1 / -1;grid-row:2;order:3;justify-self:center}
}

/* ---------- v235: cohesive premium surface system ---------- */
.premium-view{--surface-accent:var(--gold);padding-bottom:28px}
.premium-view[data-surface="networth"]{--surface-accent:#72B9E8}
.premium-view[data-surface="budget"]{--surface-accent:#E7C66D}
.premium-view[data-surface="projection"]{--surface-accent:#D8B86C}
.premium-view[data-surface="monthly"]{--surface-accent:#65C59A}
.premium-view[data-surface="growth"]{--surface-accent:#D8B86C}
.premium-view[data-surface="settings"]{--surface-accent:#8DB9DE}
.premium-view > .page-head{
  position:relative;
  max-width:none;
  margin:0 0 22px;
  padding:18px 0 23px;
  border-bottom:1px solid color-mix(in srgb,var(--surface-accent) 22%,var(--line));
}
.premium-view > .page-head::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:clamp(72px,13vw,168px);
  height:2px;
  background:linear-gradient(90deg,var(--surface-accent),transparent);
}
.premium-view > .page-head .eyebrow{color:color-mix(in srgb,var(--surface-accent) 72%,var(--ink));font-size:10px;letter-spacing:.13em}
.premium-view > .page-head .page-title{max-width:19ch;margin-top:8px;font-size:clamp(39px,5vw,66px);line-height:.98;text-wrap:balance}
.premium-view > .page-head .page-sub{max-width:760px;margin-top:10px;color:var(--ink-2);font-size:14px;line-height:1.55;text-wrap:pretty}
.surface-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin:34px 0 15px;
  padding:0 2px 13px;
  border-bottom:1px solid var(--line);
}
.surface-section-head > div{display:grid;gap:4px;min-width:0}
.surface-section-head span{color:var(--surface-accent);font-size:9px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.surface-section-head h2{margin:0;color:var(--ink);font-family:var(--serif);font-size:clamp(23px,2.4vw,32px);line-height:1.08;text-wrap:balance}
.surface-section-head p{margin:2px 0 0;color:var(--ink-3);font-size:11.5px;line-height:1.45}
.surface-section-head .add-row{flex:none;align-self:center}
.premium-view .card{
  border-color:color-mix(in srgb,var(--surface-accent) 8%,var(--line));
  box-shadow:0 20px 54px -45px rgba(7,24,39,.58);
}
.premium-view .card:not(.chart-card):not(.overview-money-map){transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease}
@media(hover:hover){
  .premium-view .card:not(.chart-card):not(.overview-money-map):hover{
    border-color:color-mix(in srgb,var(--surface-accent) 24%,var(--line));
    box-shadow:0 26px 66px -48px rgba(7,24,39,.72);
  }
}
.premium-view :is(input:not([type="range"]),select,textarea):focus{
  border-color:color-mix(in srgb,var(--surface-accent) 78%,var(--ink))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--surface-accent) 14%,transparent)!important;
  outline:none;
}

/* Net worth: history first, editing second. */
.networth-page .nw-projection-bridge{margin-bottom:15px}
.networth-page .networth-home-hero{isolation:isolate;overflow:hidden}
.networth-page .networth-home-hero::after{
  content:"";
  position:absolute;
  inset:auto -15% -52% 12%;
  height:70%;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse,rgba(74,145,201,.14),transparent 68%);
}
.networth-page .history-chart-shell{transition:filter .22s ease}
.networth-page .history-chart-shell:hover{filter:brightness(1.045)}
.networth-page .history-inline-inspector{transition:border-color .2s ease,background .2s ease,transform .2s ease}
.networth-page .history-inline-inspector.selected{transform:translateY(-2px)}
.networth-page .history-inline-inspector.selected b{font-size:clamp(31px,3.4vw,44px)}
@media(max-width:620px){
  .networth-page .history-inline-inspector{min-height:72px}
  .networth-page .history-inline-inspector.selected b{font-size:31px}
}
.networth-page .nw-account-card,.networth-page .nw-debt-card{overflow:hidden}
.networth-page .nw-account-card::after,.networth-page .nw-debt-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.networth-page .nw-account-card{background:linear-gradient(135deg,color-mix(in srgb,#3DBE83 5%,var(--paper)),var(--paper) 55%)}
.networth-page .nw-debt-card{background:linear-gradient(135deg,color-mix(in srgb,var(--danger) 5%,var(--paper)),var(--paper) 55%)}
.networth-page .nw-debt-card .card-eyebrow{margin-bottom:12px}
.debt-list{display:grid;gap:12px}
.debt-item{
  display:grid;
  gap:12px;
  padding:15px;
  border:1px solid color-mix(in srgb,var(--danger) 12%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,var(--paper-2) 86%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48);
}
.debt-item:last-child{border-bottom:1px solid color-mix(in srgb,var(--danger) 12%,var(--line))}
.debt-primary{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(165px,.58fr) 28px;
  align-items:end;
  gap:10px;
}
.debt-input-group{display:grid;min-width:0;gap:7px}
.debt-input-group > span,
.debt-terms .dt-field > label{
  color:var(--ink-3);
  font-size:9.5px;
  font-weight:820;
  letter-spacing:.1em;
  line-height:1;
  text-transform:uppercase;
}
.debt-input-group .nm,
.debt-input-group .money-in input{
  width:100%;
  min-height:48px;
  box-sizing:border-box;
  border:1px solid var(--line-2);
  border-radius:8px;
  background:var(--paper-2);
  color:var(--ink);
  font-size:14px;
}
.debt-input-group .nm{padding:10px 12px;outline:none}
.debt-input-group .nm:focus{border-color:var(--glow);box-shadow:0 0 0 3px var(--glow-soft)}
.debt-primary .del{align-self:end;margin-bottom:11px;opacity:.58}
.debt-terms{
  gap:10px;
  margin:0;
  padding:12px 0 0;
  border-top:1px solid var(--line);
}
.debt-terms .dt-field{grid-template-rows:auto 44px;gap:7px}
.debt-terms .dt-field > label{margin:0}
.debt-terms .num-suffix{height:44px;min-height:44px;background:var(--paper-2)}
.debt-terms .num-suffix input{min-height:42px;font-size:14px}
.debt-cost-readout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 18px;
  padding:11px 12px;
  border:1px solid color-mix(in srgb,var(--danger) 9%,var(--line));
  border-radius:7px;
  background:color-mix(in srgb,var(--danger) 3%,var(--paper-3));
}
.debt-cost-readout > span{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.debt-cost-readout small{color:var(--ink-3);font-size:10px;font-weight:760}
.debt-cost-readout b{color:var(--ink);font-size:13px;white-space:nowrap}
.debt-cost-readout b i{color:var(--ink-3);font-size:9.5px;font-style:normal;font-weight:680}
.debt-cost-readout em{grid-column:1 / -1;color:var(--ink-3);font-size:9.5px;font-style:normal}
.debt-cost-readout.is-empty{display:block;color:var(--ink-3);font-size:10.5px;line-height:1.45}
@media(max-width:620px){
  .debt-item{gap:11px;padding:13px 11px}
  .debt-primary{grid-template-columns:minmax(0,1fr) 28px}
  .debt-name-field{grid-column:1}
  .debt-balance-field{grid-column:1}
  .debt-primary .del{grid-column:2;grid-row:1;margin-bottom:10px}
  .debt-terms{grid-template-columns:repeat(2,minmax(0,1fr))}
  .debt-cost-readout{grid-template-columns:1fr;gap:7px}
  .debt-cost-readout em{grid-column:1}
}

/* Budget: the map is the dashboard; inputs become a calmer workbench. */
.budget-page .overview-money-map{margin-top:0;border-color:rgba(216,184,108,.24);box-shadow:0 34px 84px -57px rgba(6,23,42,.92)}
.money-map-empty{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,1.15fr) auto;
  align-items:center;
  gap:28px;
  min-height:230px;
  padding:30px!important;
}
.money-map-empty-copy{display:grid;gap:7px;min-width:0}
.money-map-empty-copy h2{margin:0;color:#F8F6EF;font-family:var(--serif);font-size:clamp(26px,3vw,38px);line-height:1.05;text-wrap:balance}
.money-map-empty-copy p{max-width:48ch;margin:0;color:rgba(248,246,239,.66);font-size:11.5px;line-height:1.5}
.money-map-empty-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-block:1px solid rgba(255,255,255,.13)}
.money-map-empty-steps span{display:grid;grid-template-columns:26px minmax(0,1fr);align-content:center;gap:3px 9px;min-width:0;padding:17px 13px}
.money-map-empty-steps span + span{border-left:1px solid rgba(255,255,255,.13)}
.money-map-empty-steps i{grid-row:1 / span 2;align-self:center;display:grid;place-items:center;width:23px;height:23px;border:1px solid rgba(216,184,108,.44);border-radius:50%;color:#E8C979;font-style:normal;font-size:9px;font-weight:850}
.money-map-empty-steps b{color:#F8F6EF;font-size:10.5px}
.money-map-empty-steps small{overflow:hidden;color:rgba(248,246,239,.55);font-size:9px;line-height:1.3;text-overflow:ellipsis}
.money-map-empty-action{white-space:nowrap}
.budget-page .money-flow-experience{align-items:center}
.budget-page .money-flow-key-row{transition:background .18s ease,border-color .18s ease,transform .18s ease}
@media(hover:hover){.budget-page .money-flow-key-row:hover{transform:translateX(3px)}}
.budget-page .budget-workspace{align-items:start}
.budget-page .budget-income-card,.budget-page .budget-expense-card{background:linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--surface-accent) 3%,var(--paper-2)))}
.budget-page .budget-income-line{transition:background .18s ease}
.budget-page .budget-income-line:focus-within{background:color-mix(in srgb,var(--surface-accent) 5%,transparent)}
.budget-page .budget-investing-line{
  position:relative;
  padding-left:14px;
  border-radius:8px 8px 0 0;
  background:linear-gradient(90deg,rgba(231,203,124,.055),transparent 72%);
}
.budget-page .budget-investing-line::before{
  content:"";
  position:absolute;
  left:0;
  top:3px;
  bottom:19px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,#F8E4A8,#CBAA56);
  box-shadow:0 0 14px rgba(231,203,124,.24);
}
.budget-page .budget-investing-line > div:first-child > div:first-child{
  color:#E7CB7C!important;
}
.budget-page .budget-investing-line .money-in input{
  border-color:rgba(231,203,124,.34);
  box-shadow:inset 0 0 0 1px rgba(248,228,168,.025);
}
.budget-page .budget-investing-line:focus-within{
  background:linear-gradient(90deg,rgba(231,203,124,.105),rgba(231,203,124,.018) 74%,transparent);
}
.budget-page .budget-investing-line:focus-within .money-in input{
  border-color:#E7CB7C;
  box-shadow:0 0 0 3px rgba(231,203,124,.11),0 0 22px rgba(231,203,124,.08);
}
.budget-investment-editor{
  display:grid;
  gap:12px;
}
.budget-investment-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}
.budget-investment-head > div{
  display:grid;
  gap:4px;
}
.budget-investment-head b{
  color:#E7CB7C;
  font-size:14px;
}
.budget-investment-head span{
  color:var(--ink-2);
  font-size:12px;
  line-height:1.4;
}
.budget-investment-head strong{
  flex:none;
  color:#E7CB7C;
  font-family:var(--serif);
  font-size:22px;
  line-height:1;
}
.budget-investment-head strong small{
  margin-left:3px;
  color:var(--ink-2);
  font-family:var(--sans);
  font-size:10px;
}
.budget-investment-rows{
  display:grid;
  gap:8px;
}
.budget-investment-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(116px,138px) 32px;
  align-items:center;
  gap:8px;
  padding:8px;
  border:1px solid rgba(231,203,124,.18);
  border-radius:8px;
  background:color-mix(in srgb,var(--paper-2) 88%,rgba(231,203,124,.12));
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.budget-investment-row:focus-within{
  border-color:rgba(231,203,124,.55);
  background:color-mix(in srgb,var(--paper-2) 82%,rgba(231,203,124,.18));
  box-shadow:0 0 20px rgba(231,203,124,.08);
}
.budget-investment-row .nm{
  min-width:0;
  min-height:44px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  font-size:14px;
  font-weight:650;
}
.budget-investment-row .money-in input{
  min-height:44px;
  font-size:15px;
}
.budget-investment-row .del{
  display:grid;
  place-items:center;
  width:32px;
  height:40px;
  opacity:.62;
}
.budget-investment-row:hover .del,.budget-investment-row:focus-within .del{opacity:1}
.budget-investment-add{
  width:max-content;
  margin-top:0;
  color:#E7CB7C;
}
.budget-investment-empty{
  padding:13px 14px;
  border:1px dashed rgba(231,203,124,.3);
  border-radius:8px;
  color:var(--ink-2);
  font-size:12.5px;
}
@media(max-width:520px){
  .budget-investment-head{align-items:flex-start}
  .budget-investment-head strong{font-size:19px}
  .budget-investment-row{
    grid-template-columns:minmax(0,1fr) minmax(104px,38%) 40px;
    gap:6px;
    padding:6px;
  }
  .budget-investment-row .nm,.budget-investment-row .money-in input{min-height:48px;font-size:16px}
  .budget-investment-row .del{width:40px;height:48px;opacity:1}
  .budget-investment-add{min-height:44px;align-items:center}
}
.budget-page .erow{transition:background .18s ease,border-color .18s ease}
.budget-page .erow:focus-within{background:color-mix(in srgb,var(--surface-accent) 5%,var(--paper-2));border-color:color-mix(in srgb,var(--surface-accent) 25%,var(--line))}

/* Projection: chart receives the visual weight and controls stay subordinate. */
.projection-page-wrap .projection-chart-card{overflow:hidden;border-color:color-mix(in srgb,var(--gold) 24%,var(--line));box-shadow:0 34px 86px -60px rgba(5,18,34,.9)}
.projection-page-wrap .projection-chart-card .chart-head{padding-bottom:13px;border-bottom:1px solid color-mix(in srgb,var(--gold) 18%,var(--line))}
.projection-page-wrap .projection-chart-shell{position:relative;isolation:isolate}
.projection-page-wrap .projection-chart-shell::before{
  content:"";
  position:absolute;
  inset:7% 0 0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse at 78% 76%,rgba(216,184,108,.095),transparent 57%);
}
.projection-page-wrap .real-rate-banner{border-left:3px solid var(--gold)}
.projection-page-wrap .projection-dials{background:linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--gold) 3%,var(--paper-2)))}
.projection-page-wrap .dial{transition:background .18s ease}
.projection-page-wrap .dial:focus-within{background:var(--gold-soft)}

/* Monthly check-in: clear stages with low-friction confirmation. */
.monthly-page .monthly-period-bar{position:sticky;top:10px;z-index:7;backdrop-filter:blur(16px);box-shadow:0 18px 45px -37px rgba(4,18,34,.72)}
.monthly-page .checkin{overflow:hidden;border-color:color-mix(in srgb,var(--green) 24%,var(--line));background:linear-gradient(135deg,color-mix(in srgb,var(--green) 5%,var(--paper)),var(--paper) 60%)}
.monthly-page .monthly-category-group{scroll-margin-top:82px;transition:border-color .2s ease,box-shadow .2s ease}
.monthly-page .monthly-category-group:focus-within{border-color:color-mix(in srgb,var(--green) 32%,var(--line));box-shadow:0 22px 52px -45px rgba(22,108,77,.55)}
.monthly-page .monthly-expense-row{transition:background .17s ease,border-color .17s ease}
.monthly-page .monthly-expense-row:hover{background:color-mix(in srgb,var(--green) 3%,var(--paper-2))}
.monthly-page .monthly-expense-row.confirmed{box-shadow:inset 3px 0 0 color-mix(in srgb,var(--green) 70%,transparent)}
.monthly-page .monthly-nudge,.monthly-page .monthly-same{transition:transform .14s ease,background .14s ease,border-color .14s ease}
.monthly-page .monthly-nudge:active,.monthly-page .monthly-same:active{transform:scale(.95)}
.monthly-page .monthly-group-progress span{background:linear-gradient(90deg,var(--teal),var(--green),var(--gold));transition:width .35s cubic-bezier(.2,.8,.2,1)}

/* Share: one polished preview, one obvious action, explicit privacy. */
.premium-share-modal{width:min(100%,720px);border-color:color-mix(in srgb,var(--gold) 24%,var(--line))}
.premium-share-modal .share-head h2{font-size:clamp(28px,4vw,40px)!important}
.premium-share-modal .share-preview{overflow:hidden;border-radius:8px;background:#07172A;box-shadow:0 22px 50px -36px rgba(3,14,27,.8)}
.premium-share-modal .share-preview img{display:block;width:100%;aspect-ratio:1.91/1;object-fit:cover;transition:transform .45s cubic-bezier(.2,.8,.2,1)}
@media(hover:hover){.premium-share-modal .share-preview:hover img{transform:scale(1.012)}}
.share-trust-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--paper-2)}
.share-trust-strip span{position:relative;padding:11px 10px 11px 27px;color:var(--ink-2);font-size:10.5px;font-weight:720;line-height:1.25}
.share-trust-strip span + span{border-left:1px solid var(--line)}
.share-trust-strip span::before{content:"";position:absolute;left:11px;top:50%;width:7px;height:7px;border-radius:50%;background:var(--green);transform:translateY(-50%);box-shadow:0 0 0 4px color-mix(in srgb,var(--green) 10%,transparent)}

/* Settings: quick navigation and calm grouped controls. */
.settings-jump{
  position:sticky;
  top:10px;
  z-index:9;
  display:flex;
  gap:5px;
  width:max-content;
  max-width:100%;
  margin:-8px 0 18px;
  padding:5px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:color-mix(in srgb,var(--paper) 90%,transparent);
  box-shadow:0 18px 46px -38px rgba(5,20,37,.8);
  backdrop-filter:blur(16px);
  scrollbar-width:none;
}
.settings-jump::-webkit-scrollbar{display:none}
.settings-jump a{flex:none;padding:8px 12px;border-radius:5px;color:var(--ink-2);font-size:10.5px;font-weight:760;text-decoration:none;transition:color .16s ease,background .16s ease}
.settings-jump a:hover,.settings-jump a:focus-visible,.settings-jump a[aria-current="location"]{color:var(--ink);background:color-mix(in srgb,var(--surface-accent) 11%,var(--paper-2));outline:none}
.settings-page :is(#settings-account,#settings-profile,#settings-planning,#settings-privacy,#settings-data){scroll-margin-top:82px}
.settings-page .setrow{transition:background .18s ease,border-color .18s ease}
.settings-page .setrow:hover{background:color-mix(in srgb,var(--surface-accent) 4%,transparent)}
.settings-page .setrow b{color:var(--ink)}

@media(max-width:760px){
  .settings-page{padding-bottom:calc(180px + env(safe-area-inset-bottom))}
  .premium-view > .page-head{padding:11px 2px 19px;margin-bottom:17px}
  .premium-view > .page-head .page-title{font-size:clamp(37px,11vw,52px)}
  .surface-section-head{align-items:start;flex-direction:column;gap:10px;margin-top:28px}
  .surface-section-head .add-row{align-self:flex-start}
  .monthly-page .monthly-period-bar{top:6px}
  .money-map-empty{grid-template-columns:1fr;gap:20px;min-height:0;padding:23px 19px!important}
  .money-map-empty-action{justify-self:start}
  .share-trust-strip{grid-template-columns:1fr}
  .share-trust-strip span + span{border-left:0;border-top:1px solid var(--line)}
}
@media(max-width:520px){
  .premium-view{padding-inline:10px}
  .premium-view > .page-head{padding-inline:2px}
  .surface-section-head h2{font-size:25px}
  .settings-jump{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;margin-top:-5px;padding:4px;gap:3px;overflow:visible}
  .settings-jump a{min-width:0;padding:10px 3px;text-align:center;font-size:10px}
  .premium-share-modal .share-preview{margin-inline:-3px}
  .settings-page .setrow{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:11px;padding:16px 0}
  .settings-page .setrow > :is(.btn,.pill,.select-wrap){justify-self:start}
  .settings-page .setrow > div:last-child:not(:first-child){justify-content:flex-start!important}
  .settings-page .setrow .btn{min-height:40px}
  .money-map-empty-steps{grid-template-columns:1fr}
  .money-map-empty-steps span{padding:12px 2px}
  .money-map-empty-steps span + span{border-left:0;border-top:1px solid rgba(255,255,255,.13)}
  .money-map-empty-action{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .premium-view *, .onboarding-modal *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* ---------- v237: responsive monthly cash-flow explanation ---------- */
.money-flow-modal{width:min(790px,calc(100vw - 28px));max-width:790px}
.money-flow-modal .modal-body{overflow-x:hidden}
.money-flow-equation{
  min-width:0;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
}
.money-flow-equation > .source{
  min-width:0;
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-color:rgba(14,48,80,.16);
  background:linear-gradient(120deg,rgba(118,169,212,.10),rgba(255,255,255,.66));
}
.money-flow-equation > .source span{max-width:32ch}
.money-flow-equation > .source b{flex:none;font-size:clamp(27px,4vw,36px);font-variant-numeric:tabular-nums}
.money-flow-equation > i{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  color:var(--ink-3);
  font-size:15px;
  line-height:1;
}
.money-flow-equation > i::before,.money-flow-equation > i::after{content:"";height:1px;flex:1;background:var(--line)}
.money-flow-equation-uses{
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
}
.money-flow-equation-uses span{
  position:relative;
  min-width:0;
  min-height:108px;
  align-content:space-between;
  gap:12px;
  padding:15px 16px;
  border:1px solid var(--line);
  border-top:3px solid var(--flow-color);
  border-left-width:1px;
  border-radius:8px;
  background:var(--paper-2);
}
.money-flow-equation-uses span + span::before{
  content:"+";
  position:absolute;
  z-index:2;
  top:50%;
  left:-11px;
  display:grid;
  place-items:center;
  width:12px;
  height:20px;
  color:var(--ink-3);
  background:var(--paper);
  font-size:13px;
  font-weight:850;
  transform:translateY(-50%);
}
.money-flow-equation-uses small{overflow-wrap:anywhere;font-size:10.5px;font-weight:720}
.money-flow-equation-uses b{font-size:clamp(19px,2.5vw,25px);font-variant-numeric:tabular-nums}
.money-flow-modal-note{margin-top:16px}
.money-flow-workplace.modal-workplace{margin-top:18px;min-width:0;grid-template-columns:auto minmax(0,1fr) auto;gap:14px 18px;padding:17px 18px}
.money-flow-workplace.modal-workplace > span:nth-child(2){min-width:0}
.money-flow-workplace.modal-workplace strong{white-space:nowrap}

@media(max-width:620px){
  .money-flow-modal{width:calc(100vw - 16px)}
  .money-flow-equation > .source{min-height:0;align-items:flex-start;padding:16px}
  .money-flow-equation-uses{grid-template-columns:1fr}
  .money-flow-equation-uses span{min-height:78px;padding:13px 15px}
  .money-flow-equation-uses span + span::before{top:-15px;left:50%;width:24px;height:18px;transform:translateX(-50%)}
  .money-flow-workplace.modal-workplace{grid-template-columns:1fr auto;gap:8px 12px;padding:14px}
  .money-flow-workplace.modal-workplace .money-flow-workplace-tag{grid-column:1 / -1}
}
@media(max-width:390px){
  .money-flow-equation > .source{display:grid;gap:7px}
  .money-flow-equation > .source b{font-size:29px}
  .money-flow-workplace.modal-workplace{grid-template-columns:1fr}
  .money-flow-workplace.modal-workplace strong{justify-self:start}
}

/* ---------- v238: total monthly savings and investing ---------- */
.money-wealth-metrics{
  grid-template-columns:minmax(175px,1.05fr) 20px minmax(155px,.86fr) 20px minmax(200px,1.08fr);
  gap:10px;
  align-items:stretch;
}
.money-wealth-operator{
  display:grid;
  place-items:center;
  align-self:center;
  width:20px;
  height:20px;
  color:rgba(247,244,236,.56);
  font-size:17px;
  font-style:normal;
  font-weight:800;
}
.money-wealth-total{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  gap:7px 12px;
  padding:13px 15px;
  border:1px solid rgba(216,184,108,.3);
  border-radius:8px;
  background:linear-gradient(135deg,rgba(216,184,108,.12),rgba(53,183,125,.10));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 42px -34px rgba(216,184,108,.75);
}
.money-wealth-total > .money-wealth-label{grid-column:1 / -1}
.money-wealth-total > b{color:#9CE3B8;font-family:var(--serif);font-size:clamp(27px,2.5vw,38px);line-height:1;font-variant-numeric:tabular-nums}
.money-wealth-total > b small{margin-left:3px;color:rgba(247,244,236,.52);font-family:var(--sans);font-size:10px;font-weight:760}
.money-wealth-total-rate{display:grid;align-content:center;justify-items:end;gap:1px}
.money-wealth-total-rate strong{color:#F0D48A;font-family:var(--serif);font-size:22px;line-height:1}
.money-wealth-total-rate small{color:rgba(247,244,236,.56);font-size:8.5px;line-height:1.2;text-align:right}
.money-wealth-total-base{grid-column:1 / -1;color:rgba(247,244,236,.5);font-size:9.2px;line-height:1.35}

@media(max-width:1420px){
  .money-wealth-metrics{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}
  .money-wealth-operator.equals{display:none}
  .money-wealth-total{grid-column:1 / -1}
}
@media(max-width:560px){
  .money-wealth-metrics{grid-template-columns:1fr;gap:8px}
  .money-wealth-operator{justify-self:center;transform:rotate(0deg)}
  .money-wealth-operator.equals{display:grid}
  .money-wealth-total{grid-column:1}
}

/* ---------- v240: stable savings-plus-investing equation ---------- */
.money-wealth-metrics{
  grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);
  grid-template-areas:
    "investing plus savings"
    "equals equals equals"
    "total total total";
}
.money-wealth-metric.investing{grid-area:investing}
.money-wealth-operator:not(.equals){grid-area:plus}
.money-wealth-metric.savings{grid-area:savings}
.money-wealth-operator.equals{grid-area:equals;display:grid;justify-self:center;margin:-5px 0}
.money-wealth-total{grid-area:total;grid-column:1 / -1}

@media(max-width:560px){
  .money-wealth-metrics{
    grid-template-columns:1fr;
    grid-template-areas:"investing" "plus" "savings" "equals" "total";
  }
}

/* ---------- v242: budget income and expense glow hierarchy ---------- */
.budget-page .budget-glow-income,
.budget-page .budget-glow-expense{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transition:border-color .2s ease,box-shadow .24s ease,transform .2s ease;
}
.budget-page .budget-glow-income::before,
.budget-page .budget-glow-expense::before{
  content:"";
  position:absolute;
  z-index:2;
  inset:0 auto 0 0;
  width:3px;
  border-radius:8px 0 0 8px;
  pointer-events:none;
}
.budget-page .budget-glow-income::after,
.budget-page .budget-glow-expense::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
}
.budget-page .budget-glow-income{
  border-color:rgba(37,151,105,.29);
  box-shadow:var(--shadow),0 24px 58px -42px rgba(30,161,103,.82),0 0 0 1px rgba(61,190,130,.04);
}
.budget-page .budget-glow-income::before{background:linear-gradient(180deg,#55D198,#18795A)}
.budget-page .budget-glow-income::after{background:radial-gradient(420px 240px at -9% 5%,rgba(61,190,130,.10),transparent 68%)}
.budget-page .budget-glow-expense{
  border-color:rgba(195,78,93,.27);
  box-shadow:var(--shadow),0 24px 58px -42px rgba(195,78,93,.78),0 0 0 1px rgba(224,109,90,.035);
}
.budget-page .budget-glow-expense::before{background:linear-gradient(180deg,#F07B72,#A93245)}
.budget-page .budget-glow-expense::after{background:radial-gradient(420px 240px at -9% 5%,rgba(224,109,90,.085),transparent 68%)}
.budget-page .budget-glow-income:focus-within{
  border-color:rgba(37,151,105,.44);
  box-shadow:var(--shadow-lg),0 28px 70px -43px rgba(30,161,103,.88),0 0 0 1px rgba(61,190,130,.08);
}
.budget-page .budget-glow-expense:focus-within{
  border-color:rgba(195,78,93,.43);
  box-shadow:var(--shadow-lg),0 28px 70px -43px rgba(195,78,93,.84),0 0 0 1px rgba(224,109,90,.075);
}
:root[data-theme="dark"] .budget-page .budget-glow-income{
  border-color:rgba(75,203,145,.28);
  box-shadow:var(--shadow),0 0 48px -27px rgba(59,205,139,.58),inset 0 1px 0 rgba(255,255,255,.045);
}
:root[data-theme="dark"] .budget-page .budget-glow-expense{
  border-color:rgba(226,106,114,.27);
  box-shadow:var(--shadow),0 0 48px -27px rgba(238,104,92,.52),inset 0 1px 0 rgba(255,255,255,.045);
}

/* ---------- v243: clean monthly check-in rows ---------- */
.monthly-page .monthly-expense-row.confirmed{box-shadow:none}

/* ---------- v245: unified premium projection timeline ---------- */
.projection-page-wrap .projection-chart-card{
  --paper:#0A1929;
  --paper-2:#10253A;
  --paper-3:#142B41;
  --ink:#F8F6EF;
  --ink-2:rgba(248,246,239,.72);
  --ink-3:rgba(248,246,239,.53);
  --line:rgba(193,210,225,.15);
  color:var(--ink);
  border-color:rgba(216,184,108,.28);
  background:
    radial-gradient(900px 460px at 88% 35%,rgba(55,117,166,.18),transparent 65%),
    linear-gradient(140deg,#081725 0%,#0C2033 56%,#102A42 100%);
  box-shadow:0 38px 90px -58px rgba(3,15,28,.94),inset 0 1px 0 rgba(255,255,255,.055);
}
.projection-page-wrap .projection-chart-card .chart-head{
  align-items:center;
  padding:3px 4px 16px;
  border-color:rgba(216,184,108,.22);
}
.projection-chart-kicker{
  display:block;
  margin-bottom:5px;
  color:#E6C66F;
  font-size:9px;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.projection-page-wrap .projection-chart-card .card-title{color:#F8F6EF;font-size:clamp(22px,2.2vw,30px)}
.projection-page-wrap .projection-chart-card .chart-head p{margin-top:4px;color:rgba(248,246,239,.6);font-size:12.5px}
.projection-page-wrap .projection-chart-card .linklike{color:#F0D48A}
.projection-page-wrap .projection-chart-shell{
  margin-top:0;
  padding-top:8px;
  background:
    linear-gradient(180deg,rgba(121,174,214,.025),transparent 28%),
    radial-gradient(800px 300px at 82% 92%,rgba(216,184,108,.075),transparent 68%);
}
.projection-page-wrap .projection-chart-shell::before{display:none}
.projection-page-wrap .projection-chart .projection-gridline{stroke:rgba(189,207,223,.14)}
.projection-page-wrap .projection-chart .projection-axis,
.projection-page-wrap .projection-chart .axis{fill:rgba(222,231,239,.58)}
.projection-page-wrap .projection-age-spotlight{
  margin:0 -24px -18px!important;
  padding:18px 28px 20px;
  border-top:1px solid rgba(216,184,108,.24);
  background:
    radial-gradient(600px 190px at 0 0,rgba(216,184,108,.10),transparent 72%),
    linear-gradient(100deg,rgba(255,255,255,.035),rgba(118,169,212,.045));
}
.projection-page-wrap .projection-scrub-head{
  grid-template-columns:minmax(230px,.58fr) minmax(320px,1fr);
  align-items:center;
  gap:clamp(24px,4vw,60px);
}
.projection-page-wrap .projection-age-control{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:4px 12px;
}
.projection-page-wrap .projection-age-kicker{grid-column:1 / -1;color:#E6C66F;font-size:9px;letter-spacing:.14em}
.projection-page-wrap .projection-scrub-head label{color:rgba(248,246,239,.72);font-size:12px}
.projection-page-wrap .projection-scrub-head label input{
  width:68px;
  min-height:42px;
  color:#F8F6EF;
  -webkit-text-fill-color:#F8F6EF;
  border-color:rgba(216,184,108,.42);
  background:rgba(248,246,239,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
.projection-page-wrap .projection-scrub-head #projection-age-help{margin:0;color:rgba(248,246,239,.46);font-size:10px}
.projection-page-wrap .projection-scrub-head .projection-age-error{grid-column:1 / -1;margin:0}
.projection-page-wrap .projection-age-answer{text-align:right}
.projection-page-wrap .projection-age-answer > span{color:rgba(248,246,239,.56);font-size:9.5px;letter-spacing:.11em}
.projection-page-wrap .projection-age-answer > b{color:#F8F6EF;font-size:clamp(38px,4.2vw,58px);line-height:.98}
.projection-page-wrap .projection-age-answer > small{color:rgba(248,246,239,.46);font-size:10.5px}
.projection-page-wrap .projection-range-wrap{margin-top:14px}
.projection-page-wrap .projection-range-wrap input[type="range"]::-webkit-slider-runnable-track{
  border-color:rgba(216,184,108,.20);
  background:linear-gradient(90deg,rgba(118,169,212,.55),rgba(216,184,108,.78));
}
.projection-page-wrap .projection-range-wrap input[type="range"]::-webkit-slider-thumb{border-color:#0D2134;box-shadow:0 0 0 2px rgba(240,212,138,.72),0 7px 18px rgba(0,0,0,.42)}
.projection-page-wrap .projection-range-wrap input[type="range"]::-moz-range-track{
  border-color:rgba(216,184,108,.20);
  background:linear-gradient(90deg,rgba(118,169,212,.55),rgba(216,184,108,.78));
}
.projection-page-wrap .projection-range-wrap input[type="range"]::-moz-range-thumb{border-color:#0D2134;box-shadow:0 0 0 2px rgba(240,212,138,.72),0 7px 18px rgba(0,0,0,.42)}
.projection-page-wrap .projection-range-wrap > div{color:rgba(248,246,239,.47)}
.projection-page-wrap .projection-scrub-foot{
  margin-top:10px;
  padding-top:12px;
  border-color:rgba(193,210,225,.13);
}
.projection-page-wrap #projection-age-mix{display:flex;gap:26px;align-items:center}
.projection-page-wrap #projection-age-mix > span{display:grid;gap:2px}
.projection-page-wrap #projection-age-mix small{color:rgba(248,246,239,.43);font-size:8.5px;font-weight:760;letter-spacing:.08em;text-transform:uppercase}
.projection-page-wrap #projection-age-mix b{color:#F8F6EF;font-family:var(--serif);font-size:19px;line-height:1.1}
.projection-page-wrap .projection-guidance-actions{display:flex;justify-content:flex-end}
.projection-page-wrap .projection-calc-link{font-size:11.5px}

@media(max-width:700px){
  .projection-page-wrap .projection-chart-card .chart-head{display:grid;gap:10px;padding:1px 4px 13px}
  .projection-page-wrap .projection-basis-link{margin:0;font-size:11px}
  .projection-page-wrap .projection-age-spotlight{margin:0 -12px -16px!important;padding:15px 16px 18px}
  .projection-page-wrap .projection-scrub-head{grid-template-columns:1fr;gap:14px}
  .projection-page-wrap .projection-age-control{grid-template-columns:auto minmax(0,1fr)}
  .projection-page-wrap .projection-age-answer{padding:12px 0 0;text-align:left;border-color:rgba(193,210,225,.14)}
  .projection-page-wrap .projection-age-answer > b{font-size:clamp(38px,12vw,48px)}
  .projection-page-wrap .projection-range-wrap{margin-top:10px}
  .projection-page-wrap .projection-scrub-foot{display:grid;gap:12px}
  .projection-page-wrap #projection-age-mix{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .projection-page-wrap .projection-guidance-actions{margin:0;justify-content:start}
}
@media(max-width:390px){
  .projection-page-wrap .projection-age-answer > b{font-size:36px}
  .projection-page-wrap #projection-age-mix{grid-template-columns:1fr}
}

/* ---------- v256: mobile touch and keyboard confidence ---------- */
:where(button,a[href],input,select,textarea):focus-visible{
  outline:2px solid var(--glow);
  outline-offset:3px;
}

@media(max-width:760px){
  .onboarding-modal .chip-btn,
  .onboarding-modal .ob-del-row,
  .onboarding-foot .ob-skip,
  .settings-jump a,
  .settings-page .setrow .btn,
  .monthly-period-bar select,
  .monthly-income-mode button,
  .paycheck-entry-row .del,
  .paycheck-add,
  .monthly-goals-link,
  .foot-links > *{
    min-height:44px;
  }

  .onboarding-modal .chip-btn,
  .onboarding-foot .ob-skip,
  .settings-jump a,
  .paycheck-add,
  .monthly-goals-link,
  .foot-links > *{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .onboarding-modal .ob-del-row,
  .paycheck-entry-row .del{
    width:44px;
    min-width:44px;
    height:44px;
  }

  .onboarding-foot .ob-skip{padding:8px 10px}
  .settings-jump a{padding:10px 12px}
  .settings-page .dnum{min-height:44px;padding-block:0}
  .paycheck-entry-row{grid-template-columns:minmax(0,1fr) minmax(130px,46%) 44px}
  .foot-links > *{padding-block:8px}

  .settings-page input[type="range"],
  .onboarding-modal input[type="range"]{
    min-height:44px!important;
    height:44px!important;
    background:linear-gradient(var(--line-2),var(--line-2)) center / 100% 4px no-repeat!important;
  }

  .projection-range-wrap input[type="range"]{
    min-height:44px!important;
    height:44px!important;
  }
}

@media(max-width:430px){
  .paycheck-entry-row{grid-template-columns:minmax(0,1fr) 44px}
}

/* ---------- v263: balanced responsive footer ---------- */
.site-foot{
  display:grid;
  grid-template-columns:minmax(210px,.9fr) minmax(430px,2.25fr) minmax(210px,.9fr);
  grid-template-areas:
    "identity links status"
    ". disclaimer .";
  align-items:center;
  column-gap:28px;
  row-gap:5px;
  max-width:1240px;
  margin:42px auto 0;
  padding:27px 18px 31px;
  text-align:left;
}
.site-foot .foot-top{display:contents}
.site-foot .foot-person{grid-area:identity;justify-self:start}
.site-foot .foot-person div{gap:2px}
.site-foot .foot-person b{font-size:13px;line-height:1.2}
.site-foot .foot-person span{font-size:11.5px;line-height:1.35}
.site-foot .foot-status{grid-area:status;justify-self:end;margin:0}
.site-foot .foot-links{
  grid-area:links;
  justify-content:center;
  gap:4px 12px;
  min-width:0;
  margin:0;
  padding:0;
}
.site-foot .foot-links > *{min-height:34px;padding:6px 0;white-space:nowrap}
.site-foot .foot-links > * + *::before{margin-right:12px}
.site-foot .foot-disclaimer{grid-area:disclaimer;align-self:start;margin:0;text-align:center}

@media(max-width:1120px){
  .site-foot{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "identity status"
      "links links"
      "disclaimer disclaimer";
    row-gap:10px;
    padding-inline:22px;
  }
  .site-foot .foot-links{padding-top:3px}
}

@media(max-width:640px){
  .settings-page{padding-bottom:80px}
  .site-foot{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "identity"
      "status"
      "links"
      "disclaimer";
    gap:12px;
    width:calc(100% - 20px);
    margin-top:30px;
    padding:24px 8px calc(100px + env(safe-area-inset-bottom));
    text-align:center;
  }
  .site-foot .foot-person{justify-self:center;text-align:center}
  .site-foot .foot-person div{align-items:center}
  .site-foot .foot-person b{font-size:14px}
  .site-foot .foot-person span{font-size:12px}
  .site-foot .foot-status{justify-self:center;min-height:36px;padding:8px 12px;white-space:normal;text-align:center}
  .site-foot .foot-links{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:0;
    margin-top:2px;
    padding:6px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }
  .site-foot .foot-links > *{
    min-width:0;
    min-height:44px;
    padding:9px 8px;
    justify-content:flex-start;
    text-align:left;
    white-space:normal;
    line-height:1.25;
  }
  .site-foot .foot-links > * + *::before{display:none}
  .site-foot .foot-links > *:nth-child(even){padding-left:16px;border-left:1px solid var(--line)}
  .site-foot .foot-links > *:last-child:nth-child(odd){grid-column:1 / -1;justify-content:center;border-top:1px solid var(--line)}
  .site-foot .foot-disclaimer{max-width:31ch;justify-self:center;font-size:11.5px;line-height:1.5}
}

/* ---------- v269: focused investing sources and compact mobile net-worth math ---------- */
@media(max-width:560px){
  .money-wealth-breakdown{grid-template-columns:1fr 1fr;gap:6px}
  .money-wealth-source{padding:8px}
  .money-wealth-source small{font-size:8.2px}
  .money-wealth-source b{font-size:12px}
}
@media(max-width:430px){
  .history-balance-math{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
  }
  .history-balance-math span{display:grid;gap:1px}
  .history-balance-math span:nth-of-type(2){text-align:right}
  .history-balance-math b{font-size:13px}
  .history-balance-math small{font-size:10px}
  .history-balance-math strong{
    grid-column:auto;
    gap:4px;
    padding:0;
    border-top:0;
    font-size:9px;
    white-space:nowrap;
  }
  .history-balance-math strong i{font-size:13px}
}

/* ---------- v270: composed mobile net-worth summary ---------- */
@media(max-width:760px){
  .history-balance-summary{
    gap:12px;
    padding:13px;
    border-radius:7px;
  }
  .history-balance-math{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
    width:100%;
  }
  .history-balance-math span{
    display:grid;
    gap:2px;
    min-width:0;
  }
  .history-balance-math span:nth-of-type(2){text-align:right}
  .history-balance-math b{
    overflow:hidden;
    font-size:clamp(12px,3.8vw,15px);
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .history-balance-math small{
    font-size:9px;
    letter-spacing:.04em;
    text-transform:uppercase;
  }
  .history-balance-math > i{font-size:13px}
  .history-balance-math strong{
    display:inline-flex;
    grid-column:auto;
    align-items:center;
    gap:4px;
    padding:0;
    border:0;
    font-size:9px;
    line-height:1.1;
    white-space:nowrap;
  }
  .history-balance-math strong i{font-size:13px}
  .history-balance-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;
    gap:8px;
    width:100%;
    padding-top:11px;
  }
  .history-balance-actions .networth-asof{display:contents}
  .history-balance-actions .networth-asof > span{
    grid-column:1 / -1;
    padding-bottom:2px;
    color:rgba(247,244,236,.61);
    font-size:11px;
    line-height:1.35;
    text-align:left;
  }
  .history-balance-actions .linklike{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:9px 10px;
    border:1px solid rgba(240,212,138,.24);
    border-radius:6px;
    background:rgba(240,212,138,.055);
    font-size:10.5px!important;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    white-space:normal!important;
  }
}
@media(max-width:350px){
  .history-balance-summary{padding:11px}
  .history-balance-math{gap:4px}
  .history-balance-math b{font-size:11.5px}
  .history-balance-math small,
  .history-balance-math strong{font-size:8px}
}

/* ---------- v271: phone-first control sizing and form confidence ---------- */
@media(max-width:760px){
  :where(.premium-view,.modal,.onboarding-modal) :is(button,a[href]){
    touch-action:manipulation;
  }

  :where(.premium-view,.modal,.onboarding-modal) :is(input,select,textarea){
    scroll-margin-block:96px 150px;
  }

  .premium-view .add-row,
  .premium-view .projection-basis-link,
  .premium-view .projection-calc-link,
  .premium-view .growth-reset,
  .premium-view .growth-plan-metric button,
  .premium-view .history-year-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
  }

  .premium-view .add-row{
    padding:10px 4px;
    line-height:1.25;
  }

  .projection-page-wrap .projection-basis-link,
  .projection-page-wrap .projection-calc-link{
    padding-block:12px;
    line-height:1.25;
    text-align:left;
  }

  .projection-page-wrap .projection-basis-link{justify-content:flex-start}
  .projection-page-wrap .projection-calc-link{justify-content:flex-end}

  .projection-page-wrap .projection-scrub-head label input{
    min-height:44px;
  }

  .projection-page-wrap .projection-dials .dial .dval{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }

  .projection-page-wrap .projection-dials .dnum{
    min-height:44px;
    padding:9px 4px;
  }

  .projection-page-wrap .projection-dials input[type="range"],
  .growth-page input[type="range"]{
    min-height:44px;
    height:44px;
    background:linear-gradient(var(--line-2),var(--line-2)) center / 100% 4px no-repeat;
  }

  .growth-page .growth-plan-metric button{
    padding:9px 12px;
    line-height:1.25;
  }

  .growth-page .growth-reset{
    min-width:60px;
    padding:8px 12px;
  }

  .networth-page .history-balance-actions .linklike{
    min-height:44px;
  }

  .premium-view .erow{
    grid-template-columns:minmax(0,1fr) minmax(106px,38%) 44px;
    gap:6px;
    padding-block:6px;
  }

  .premium-view .erow .nm,
  .premium-view .erow .money-in input{
    min-width:0;
    min-height:44px;
    font-size:16px;
  }

  .premium-view .erow .nm{
    padding:9px 6px;
  }

  .premium-view .erow .del{
    display:grid;
    place-items:center;
    width:44px;
    min-width:44px;
    height:44px;
    opacity:1;
  }

  .networth-page .history-year-chips{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .networth-page .history-year-chip{
    width:100%;
    padding:8px 10px;
  }

  .monthly-page .monthly-adjuster{
    grid-template-columns:44px minmax(0,1fr) 44px 64px!important;
    gap:6px!important;
  }

  .monthly-page .monthly-nudge{
    width:44px;
    min-width:44px;
  }
}

/* ---------- v276: complete monthly money map ---------- */
.money-flow-total-equation{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 8px;
}
.money-flow-total-equation > span{display:inline-flex;align-items:baseline;gap:4px}
.money-flow-total-equation b{color:rgba(247,244,236,.9);font-size:inherit;font-weight:820}
.money-flow-total-equation > i{color:#F0D48A;font-style:normal;font-weight:850}
.money-flow-focus-label{
  max-width:22ch;
  color:#F7F4EC;
  font-size:13px;
  font-weight:820;
  line-height:1.25;
  text-align:right;
}
.money-flow-key-row.expense{background:linear-gradient(90deg,rgba(228,111,93,.07),transparent 58%)}
.money-flow-key-row.invest{background:linear-gradient(90deg,rgba(221,184,93,.085),transparent 62%)}
.money-flow-key-row.savings{background:linear-gradient(90deg,rgba(88,201,139,.07),transparent 58%)}
.money-flow-key-row.invest .money-flow-swatch{
  border:1px solid rgba(255,240,190,.55);
  box-shadow:0 0 16px rgba(221,184,93,.38);
}
.money-flow-key-row.invest > span small{color:rgba(240,212,138,.72)}
#budget-flow-donut .donut-center-label{
  font-size:7.25px;
  letter-spacing:.04em;
}
#budget-flow-donut .donut-center-label.multiline{font-size:7px;letter-spacing:.075em}

@media(max-width:520px){
  .money-flow-total-equation{justify-content:center;gap:4px 7px;text-align:center}
  .money-flow-total-equation > span{justify-content:center}
  .money-flow-focus > b{font-size:32px}
  .money-flow-focus-label{max-width:19ch;font-size:12px}
  #budget-flow-donut .donut-center-label{font-size:7px;letter-spacing:.03em}
  #budget-flow-donut .donut-center-label.multiline{font-size:6.8px;letter-spacing:.065em}
  .money-flow-key-row.invest{background:linear-gradient(90deg,rgba(221,184,93,.1),transparent 74%)}
}

/* ---------- v277: compact savings and investing summary ---------- */
.money-wealth-band.money-wealth-band-compact{
  grid-template-columns:minmax(190px,.58fr) minmax(0,1.42fr);
  gap:20px clamp(24px,3vw,46px);
  align-items:center;
  padding-block:19px;
}
.money-wealth-band-compact .money-wealth-intro h3{max-width:15ch;font-size:clamp(21px,1.8vw,27px)}
.money-wealth-band-compact .money-wealth-intro p{max-width:34ch}
.money-wealth-summary{min-width:0;display:grid;gap:10px}
.money-wealth-summary-head{display:flex;align-items:end;justify-content:space-between;gap:18px}
.money-wealth-summary-head > div{display:grid;gap:5px}
.money-wealth-summary-head > div > b{color:#9CE3B8;font-family:var(--serif);font-size:clamp(29px,2.4vw,38px);line-height:1;font-variant-numeric:tabular-nums}
.money-wealth-summary-head > div > b small{margin-left:3px;color:rgba(247,244,236,.48);font-family:var(--sans);font-size:9px;font-weight:760}
.money-wealth-summary-head .money-wealth-total-rate{display:flex;align-items:baseline;gap:7px;justify-items:initial}
.money-wealth-summary-head .money-wealth-total-rate strong{font-size:25px}
.money-wealth-summary-head .money-wealth-total-rate small{max-width:12ch;text-align:left}
.money-wealth-mix{height:8px;display:flex;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08);box-shadow:inset 0 1px 2px rgba(0,0,0,.28)}
.money-wealth-mix i{display:block;width:var(--share);min-width:0;transition:width .35s ease}
.money-wealth-mix .investing{background:linear-gradient(90deg,#CBAA56 0%,#E8CA78 35%,#F8E4A8 58%,#D3B461 100%)}
.money-wealth-mix .savings{background:linear-gradient(90deg,#3BAE76,#72D49C)}
.money-wealth-band-compact .money-wealth-breakdown{gap:6px}
.money-wealth-band-compact .money-wealth-source{padding:6px 8px}
.money-wealth-band-compact .money-wealth-source small{font-size:8.3px}
.money-wealth-band-compact .money-wealth-source b{font-size:11.5px}
.money-wealth-summary-base{color:rgba(247,244,236,.46);font-size:9.2px;line-height:1.4}

@media(max-width:900px){
  .money-wealth-band.money-wealth-band-compact{grid-template-columns:1fr;gap:15px}
  .money-wealth-band-compact .money-wealth-intro{display:block}
  .money-wealth-band-compact .money-wealth-intro h3{max-width:none;margin:5px 0}
}
@media(max-width:560px){
  .money-wealth-band.money-wealth-band-compact{gap:13px;padding:16px 13px}
  .money-wealth-summary-head{align-items:center}
  .money-wealth-summary-head > div > b{font-size:30px}
  .money-wealth-summary-head .money-wealth-total-rate{display:grid;gap:1px;text-align:right}
  .money-wealth-summary-head .money-wealth-total-rate strong{font-size:22px}
  .money-wealth-summary-head .money-wealth-total-rate small{max-width:14ch;text-align:right}
  .money-wealth-summary-base{font-size:8.8px}
}

/* ---------- v272: readable mobile onboarding guidance ---------- */
@media(max-width:760px){
  .onboarding-modal .onboarding-body .field > label{
    font-size:14px;
    line-height:1.4;
  }

  .onboarding-modal .onboarding-body .ob-note{
    font-size:13px;
    line-height:1.5;
  }
}

/* ---------- v273: Net Worth touch targets and chart tapping ---------- */
@media(max-width:760px){
  .networth-page .nw-projection-link{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding-block:10px;
  }

  .networth-page .history-chart{
    touch-action:pan-y;
  }

  .networth-page .debt-primary{
    grid-template-columns:minmax(0,1fr) 44px;
    gap:8px;
  }

  .networth-page .debt-primary .del{
    display:grid;
    place-items:center;
    width:44px;
    min-width:44px;
    height:44px;
    margin-bottom:2px;
    opacity:1;
  }

  .networth-page .debt-terms .dt-field{
    grid-template-rows:auto 46px;
  }

  .networth-page .debt-terms .num-suffix{
    height:46px;
    min-height:46px;
  }

  .networth-page .debt-terms .num-suffix input{
    min-height:44px;
    font-size:16px;
  }
}

/* ---------- v274: shared phone and tablet touch envelope ---------- */
@media(max-width:820px){
  :where(.premium-view,.modal,.onboarding-modal) :is(button,select,textarea,input:not([type="range"]):not([type="checkbox"]):not([type="radio"])){
    min-height:44px;
  }

  :where(.premium-view,.modal,.onboarding-modal) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea){
    font-size:16px;
  }

  :where(.premium-view,.modal,.onboarding-modal) input[type="range"]{
    min-height:44px;
    height:44px;
  }

  :where(.premium-view,.modal,.onboarding-modal) :is(.del,.ico,.help-dot),
  .btn-ghost.ico{
    min-width:44px;
  }

  :where(.premium-view,.modal,.onboarding-modal) .del,
  .btn-ghost.ico{
    width:44px;
    height:44px;
  }

  .monthly-page .monthly-adjuster{
    grid-template-columns:44px minmax(0,1fr) 44px 64px!important;
  }

  .monthly-page .monthly-nudge{
    width:44px;
    min-width:44px;
  }

  .site-foot .foot-links button.linklike{
    min-width:44px;
    min-height:44px;
  }
}

@media(max-width:430px){
  .projection-page-wrap .projection-calc-link{justify-content:flex-start}
}

@media(max-width:350px){
  .premium-view .erow{
    grid-template-columns:minmax(0,1fr) minmax(94px,38%) 44px;
    gap:4px;
  }

  .networth-page .history-year-chips{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .monthly-page .monthly-adjuster{
    grid-template-columns:44px minmax(0,1fr) 44px 58px!important;
    gap:4px!important;
  }
}

/* ---------- v290: integrated, space-efficient monthly money map ---------- */
#budget-live .money-flow-experience{
  grid-template-areas:none;
  grid-template-columns:minmax(320px,.84fr) minmax(470px,1.16fr);
  align-items:stretch;
  gap:clamp(26px,3vw,48px);
  padding:clamp(20px,2.3vw,32px);
}
#budget-live .money-flow-experience > .money-flow-viz{
  grid-area:auto;
  min-height:0;
  align-self:stretch;
  display:grid;
  grid-template-rows:minmax(292px,1fr) auto;
  align-content:center;
  padding:0;
}
#budget-live .money-flow-viz .overview-donut .chart{
  width:min(330px,100%);
  max-width:330px!important;
}
.money-flow-right{
  min-width:0;
  display:grid;
  grid-template-rows:auto auto;
  align-content:center;
  gap:18px;
}
.money-flow-right .money-flow-key{
  display:grid;
  align-content:center;
}
.money-flow-right .money-flow-key-row{
  min-height:82px;
  padding:13px 8px;
}
.money-flow-right .money-wealth-band{
  margin:0;
  padding:17px 18px;
  border:1px solid rgba(216,184,108,.2);
  border-radius:9px;
  background:linear-gradient(115deg,rgba(216,184,108,.09),rgba(53,183,125,.075));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 44px -42px rgba(53,183,125,.8);
}
.money-flow-right .money-wealth-band.money-wealth-band-compact{
  grid-template-columns:minmax(142px,.54fr) minmax(0,1.46fr);
  gap:18px;
}
.money-flow-right .money-wealth-intro > span{font-size:8.5px}
.money-flow-right .money-wealth-intro h3{
  max-width:16ch;
  margin:5px 0;
  font-size:clamp(18px,1.45vw,22px);
}
.money-flow-right .money-wealth-intro p{
  max-width:28ch;
  font-size:9.5px;
  line-height:1.4;
}
.money-flow-right .money-wealth-summary{gap:8px}
.money-flow-right .money-wealth-summary-head > div > b{
  font-size:clamp(28px,2.2vw,35px);
}
.money-flow-right .money-wealth-summary-head .money-wealth-total-rate strong{font-size:23px}

@media(max-width:980px){
  #budget-live .money-flow-experience{
    grid-template-columns:1fr;
    gap:18px;
  }
  #budget-live .money-flow-experience > .money-flow-viz{
    min-height:0;
    grid-template-rows:minmax(280px,auto) auto;
  }
  .money-flow-right{
    width:min(680px,100%);
    justify-self:center;
  }
}
@media(max-width:560px){
  #budget-live .money-flow-experience{
    gap:14px;
    padding:12px 10px;
  }
  #budget-live .money-flow-experience > .money-flow-viz{
    grid-template-rows:minmax(245px,auto) auto;
  }
  #budget-live .money-flow-viz .overview-donut .chart{
    width:min(270px,82vw)!important;
    max-width:270px!important;
  }
  .money-flow-right{gap:13px}
  .money-flow-right .money-flow-key-row{
    min-height:68px;
    padding:11px 6px;
  }
  .money-flow-right .money-wealth-band.money-wealth-band-compact{
    grid-template-columns:1fr;
    gap:10px;
    padding:14px 13px;
  }
  .money-flow-right .money-wealth-intro h3{
    max-width:none;
    font-size:20px;
  }
  .money-flow-right .money-wealth-intro p{display:none}
  .money-flow-right .money-wealth-summary-head{align-items:end}
}

/* ---------- v291: ranked expense, asset, and liability composition ---------- */
.ranked-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:11px;
}
.ranked-card-head .card-eyebrow{margin:0;min-width:0}
.ranked-card-title{
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 10px;
}
.category-share-badge{
  --category-accent:#7AB4D9;
  isolation:isolate;
  display:inline-flex;
  align-items:baseline;
  gap:5px;
  min-height:27px;
  padding:5px 10px 5px 9px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--category-accent) 32%,var(--line));
  border-radius:999px;
  background:
    linear-gradient(115deg,color-mix(in srgb,var(--category-accent) 14%,transparent),transparent 58%),
    color-mix(in srgb,var(--surface) 94%,var(--category-accent));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb,#fff 48%,transparent),
    0 6px 18px color-mix(in srgb,var(--category-accent) 10%,transparent);
  white-space:nowrap;
}
.category-share-badge::before{
  content:"";
  width:5px;
  height:5px;
  flex:none;
  border-radius:50%;
  background:var(--category-accent);
  box-shadow:0 0 9px color-mix(in srgb,var(--category-accent) 55%,transparent);
}
.category-share-badge b{
  color:var(--category-accent);
  font-size:11.5px;
  font-variant-numeric:tabular-nums;
  font-weight:900;
  letter-spacing:.01em;
}
.category-share-badge span{
  color:var(--ink-3);
  font-size:9px;
  font-weight:760;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.category-share-cash{--category-accent:#61AFCF}
.category-share-investment{--category-accent:#D5AE4F}
.category-share-property{--category-accent:#C9903F}
.category-share-vehicle{--category-accent:#D59E53}
.category-share-debt{--category-accent:#CF4D60}
.rank-order-note{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--ink-3);
  font-size:9.5px;
  font-weight:820;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}
.rank-order-note::before{
  content:"";
  width:20px;
  height:11px;
  background:
    linear-gradient(currentColor,currentColor) 0 1px / 20px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 5px / 14px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 9px / 8px 1px no-repeat;
  opacity:.62;
}
.ranked-edit-item{
  --rank-color:#7AB4D9;
  position:relative;
  padding:8px 0 11px;
  border-bottom:1px solid var(--line);
}
.ranked-edit-item:last-child{border-bottom:0}
.ranked-edit-item .erow{padding:0;border:0}
.ranked-share{
  display:grid;
  grid-template-columns:minmax(70px,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:17px;
  padding:2px 36px 0 4px;
}
.ranked-share-track{
  position:relative;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:color-mix(in srgb,var(--rank-color) 12%,var(--line));
}
.ranked-share-track i{
  display:block;
  width:var(--rank-share);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,color-mix(in srgb,var(--rank-color) 72%,#fff),var(--rank-color));
  box-shadow:0 0 12px color-mix(in srgb,var(--rank-color) 28%,transparent);
  animation:rank-share-in .48s cubic-bezier(.2,.75,.25,1) both;
}
.ranked-share > span{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:5px;
  min-width:112px;
  white-space:nowrap;
}
.ranked-share b{
  color:var(--rank-color);
  font-size:11.5px;
  font-variant-numeric:tabular-nums;
  font-weight:850;
}
.ranked-share small{color:var(--ink-3);font-size:9.5px;font-weight:650}
.ranked-share-expense{--rank-color:#D95E5B}
.ranked-share-cash{--rank-color:#61AFCF}
.ranked-share-investment{--rank-color:#D5AE4F}
.ranked-share-property{--rank-color:#C9903F}
.ranked-share-vehicle{--rank-color:#D59E53}
.ranked-share-debt{--rank-color:#CF4D60}
.budget-expense-card .ranked-edit-item:focus-within,
.nw-account-card .ranked-edit-item:focus-within{
  margin-inline:-8px;
  padding-inline:8px;
  border-radius:7px;
  background:color-mix(in srgb,var(--rank-color) 5%,transparent);
}
.expense-unused .ranked-edit-item{padding-block:5px}
.expense-unused .ranked-edit-item:last-child{border-bottom:0}
.nw-account-cash{--rank-color:#61AFCF}
.nw-account-investment{--rank-color:#D5AE4F}
.nw-account-property{--rank-color:#C9903F}
.nw-account-vehicle{--rank-color:#D59E53}
.nw-debt-card .ranked-share{
  --rank-color:#CF4D60;
  padding:0;
}
.nw-debt-card .ranked-share > span{min-width:130px}
@keyframes rank-share-in{from{width:0;opacity:.5}to{width:var(--rank-share);opacity:1}}
@media(prefers-reduced-motion:reduce){.ranked-share-track i{animation:none}}
@media(max-width:620px){
  .ranked-card-head{align-items:flex-start;gap:9px}
  .ranked-card-title{gap:7px}
  .category-share-badge{min-height:25px;padding:4px 8px}
  .category-share-badge b{font-size:10.5px}
  .category-share-badge span{font-size:8.2px}
  .rank-order-note{margin-top:2px;font-size:8.5px}
  .rank-order-note::before{width:16px;background-size:16px 1px,11px 1px,6px 1px}
  .ranked-share{grid-template-columns:minmax(54px,1fr) auto;gap:8px;padding-right:50px}
  .ranked-share > span{min-width:104px}
  .ranked-share small{font-size:8.8px}
  .nw-debt-card .ranked-share{grid-template-columns:minmax(50px,1fr) auto}
}
@media(max-width:390px){
  .ranked-card-head{display:block}
  .ranked-card-title{justify-content:space-between}
  .category-share-badge{margin-left:auto}
  .rank-order-note{font-size:0;gap:0}
  .ranked-card-head > .rank-order-note{display:none}
  .rank-order-note::before{margin-top:1px}
  .ranked-share{padding-right:48px}
  .ranked-share > span{min-width:96px}
}

/* ---------- v293: compact check-in progress and ranked monthly expenses ---------- */
.monthly-page .monthly-period-bar{
  min-height:0;
  margin-bottom:12px;
  padding:7px 10px;
}
.monthly-page .monthly-period-bar select{min-height:38px;padding-block:7px}
.monthly-page .monthly-period-bar span{font-size:11px}
.monthly-page .checkin.is-complete{
  margin-bottom:14px;
  padding:15px 18px!important;
}
.monthly-page .checkin.is-complete .checkin-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.monthly-page .checkin.is-complete .card-eyebrow{font-size:9px}
.monthly-page .checkin.is-complete .card-title{font-size:20px;line-height:1.1}
.monthly-page .checkin.is-complete .checkin-head p{margin-top:4px!important;font-size:11.5px!important;line-height:1.35}
.monthly-page .checkin.is-complete .check-score{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:8px 11px;
}
.monthly-page .checkin.is-complete .check-score span{font-size:22px}
.monthly-page .checkin.is-complete .check-score small{margin:0;font-size:8.5px}
.monthly-page .checkin.is-complete .check-steps{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:11px;
}
.monthly-page .checkin.is-complete .check-step{
  min-height:0;
  padding:9px 11px;
  gap:2px 7px;
  border-radius:7px;
}
.monthly-page .checkin.is-complete .check-step b{font-size:11.5px}
.monthly-page .checkin.is-complete .check-step small{font-size:10.5px;line-height:1.25}
.monthly-sort-note{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  color:var(--ink-3);
  font-size:9px;
  font-weight:800;
  letter-spacing:.065em;
  text-transform:uppercase;
}
.monthly-sort-note i{
  width:16px;
  height:9px;
  background:
    linear-gradient(currentColor,currentColor) 0 1px / 16px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 4px / 11px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 7px / 6px 1px no-repeat;
  opacity:.55;
}
.monthly-expense-name > span:first-child{display:block}
.monthly-expense-share{
  --monthly-expense-share:0%;
  display:grid;
  grid-template-columns:minmax(38px,82px) auto auto;
  align-items:center;
  gap:5px;
  width:min(100%,205px);
  margin-top:6px;
  white-space:nowrap;
}
.monthly-expense-share > i{
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:color-mix(in srgb,#E46F5D 11%,var(--line));
}
.monthly-expense-share > i em{
  display:block;
  width:var(--monthly-expense-share);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#F09A7B,#DE6258);
  box-shadow:0 0 10px rgba(222,98,88,.24);
}
.monthly-expense-share b{
  color:#D95E5B;
  font-size:10px;
  font-variant-numeric:tabular-nums;
  font-weight:880;
}
.monthly-expense-share small{
  margin:0;
  color:var(--ink-3);
  font-size:8.2px;
  font-weight:700;
  letter-spacing:.02em;
}
.monthly-expense-share.is-zero{display:flex;gap:5px}
@media(max-width:760px){
  .monthly-page .checkin.is-complete .check-steps{grid-template-columns:1fr;gap:6px}
  .monthly-page .checkin.is-complete .check-step{
    grid-template-columns:auto minmax(110px,.55fr) minmax(0,1fr);
    align-items:center;
  }
  .monthly-page .checkin.is-complete .check-step > span{grid-row:auto}
  .monthly-page .checkin.is-complete .check-step small{line-height:1.2}
  .monthly-expense-share{width:min(100%,190px)}
}
@media(max-width:480px){
  .monthly-page .monthly-period-bar{grid-template-columns:auto minmax(0,1fr);padding:7px 8px}
  .monthly-page .monthly-period-bar span{display:none}
  .monthly-page .checkin.is-complete{padding:13px 12px!important}
  .monthly-page .checkin.is-complete .checkin-head p{display:none}
  .monthly-page .checkin.is-complete .check-score{padding:7px 9px}
  .monthly-page .checkin.is-complete .check-score span{font-size:19px}
  .monthly-page .checkin.is-complete .check-steps{margin-top:9px}
  .monthly-page .checkin.is-complete .check-step{
    grid-template-columns:auto minmax(0,1fr);
    padding:8px 9px;
  }
  .monthly-page .checkin.is-complete .check-step small{grid-column:2}
  .monthly-sort-note{font-size:8px;letter-spacing:.045em}
  .monthly-expense-share{grid-template-columns:minmax(32px,72px) auto auto;width:min(100%,175px)}
  .monthly-expense-share small{font-size:7.8px}
}

/* ---------- v294: equal-width budget workspace columns ---------- */
@media(min-width:1041px){
  .budget-page .budget-workspace{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
  }
  .budget-page .budget-expense-grid{display:contents}
  .budget-page .budget-income-card,
  .budget-page .budget-expense-grid > .budget-expense-card{
    min-width:0;
    width:100%;
  }
}

/* ---------- v295: stronger projection balance readouts ---------- */
.projection-page-wrap #projection-age-mix{
  gap:clamp(28px,4vw,52px);
}
.projection-page-wrap #projection-age-mix > span{
  gap:5px;
  min-width:0;
}
.projection-page-wrap #projection-age-mix small{
  font-size:9.5px;
  letter-spacing:.095em;
}
.projection-page-wrap #projection-age-mix b{
  font-size:clamp(24px,2.25vw,31px);
  line-height:1;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
@media(max-width:700px){
  .projection-page-wrap #projection-age-mix{
    gap:16px;
    padding-top:2px;
  }
  .projection-page-wrap #projection-age-mix small{font-size:9px}
  .projection-page-wrap #projection-age-mix b{
    font-size:clamp(23px,7vw,29px);
  }
}
@media(max-width:390px){
  .projection-page-wrap #projection-age-mix{gap:14px}
}
/* ============================================================
   Connected accounts - optional read-only financial data layer
   ============================================================ */
.connected-page{width:min(1560px,calc(100% - 48px));margin:0 auto 48px;color:#f7f4ec}
.connected-page *{box-sizing:border-box}
.connected-page h1,.connected-page h2,.connected-page p{margin:0}
.connected-page button,.connected-page input,.connected-page textarea{font:inherit}
.connected-kicker{color:#e8c978;font-size:12px;font-weight:800;letter-spacing:1.6px;text-transform:uppercase}
.connected-link{appearance:none;background:none;border:0;border-bottom:1px solid currentColor;color:#f1d27d;cursor:pointer;font-weight:750;padding:2px 0;text-decoration:none}
.connected-link:hover{color:#fff0bd}
.connected-btn{align-items:center;border:1px solid transparent;border-radius:7px;cursor:pointer;display:inline-flex;font-weight:800;justify-content:center;min-height:48px;padding:0 20px}
.connected-btn:disabled{cursor:wait;opacity:.58}
.connected-btn-primary{background:linear-gradient(135deg,#f7dda0,#d7ae51);box-shadow:0 12px 28px rgba(207,166,74,.18);color:#07182b}
.connected-btn-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.connected-btn-secondary{background:rgba(255,255,255,.045);border-color:rgba(217,190,121,.3);color:#f7f4ec}
.connected-signin,.connected-empty,.connected-hero,.connected-section,.connected-skeleton{background:
  radial-gradient(circle at 12% 5%,rgba(34,118,160,.18),transparent 30%),
  linear-gradient(135deg,#071728,#0b2138 72%,#12304a);border:1px solid rgba(151,181,208,.2);box-shadow:0 22px 58px rgba(3,16,28,.17)}
.connected-signin{min-height:440px;padding:clamp(38px,7vw,92px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.connected-signin h1{font-family:var(--serif);font-size:clamp(36px,5vw,68px);line-height:1.04;max-width:860px;margin:16px 0}
.connected-signin p{color:#b9c4cf;font-size:18px;line-height:1.6;max-width:720px;margin-bottom:28px}
.connected-empty{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:clamp(32px,7vw,100px);min-height:650px;padding:clamp(34px,6vw,90px)}
.connected-empty-copy{align-self:center}
.connected-empty h1{font-family:var(--serif);font-size:clamp(46px,6vw,78px);letter-spacing:0;line-height:1.02;margin:16px 0 20px;max-width:820px}
.connected-empty-copy>p{color:#bbc6d1;font-size:17px;line-height:1.6;max-width:720px}
.connected-permission-list{border-bottom:1px solid rgba(255,255,255,.1);border-top:1px solid rgba(255,255,255,.1);display:grid;gap:0;margin:34px 0 28px}
.connected-permission-list span{display:grid;grid-template-columns:36px minmax(150px,.72fr) 1fr;gap:12px;align-items:center;padding:17px 0}
.connected-permission-list span+span{border-top:1px solid rgba(255,255,255,.08)}
.connected-permission-list i{align-items:center;background:rgba(228,194,108,.12);border:1px solid rgba(228,194,108,.3);border-radius:50%;color:#efd37e;display:flex;font-style:normal;font-weight:800;height:28px;justify-content:center;width:28px}
.connected-permission-list b{font-size:15px}.connected-permission-list small{color:#a8b6c3;font-size:13px;line-height:1.45}
.connected-empty-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.connected-fine{font-size:12px!important;margin-top:18px}
.connected-empty-visual{align-self:center;background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.12);padding:40px}
.connected-orbit{aspect-ratio:1;border:1px solid rgba(226,196,115,.32);border-radius:50%;display:grid;margin:0 auto 36px;place-items:center;position:relative;width:min(280px,90%)}
.connected-orbit:before,.connected-orbit:after{border:1px solid rgba(108,178,213,.22);border-radius:50%;content:"";inset:13%;position:absolute}
.connected-orbit:after{inset:28%;background:#071728}
.connected-orbit span{background:#e5c36c;border-radius:50%;box-shadow:0 0 20px rgba(229,195,108,.45);height:10px;position:absolute;width:10px}
.connected-orbit span:nth-child(1){left:8%;top:35%}.connected-orbit span:nth-child(2){right:11%;top:24%;background:#6eb7dc}.connected-orbit span:nth-child(3){bottom:7%;right:38%;background:#54d19d}
.connected-orbit b{font-family:var(--serif);font-size:27px;position:relative;text-align:center;z-index:1;width:110px}
.connected-preview-row{align-items:center;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;padding:15px 2px}
.connected-preview-row span{color:#9fadb9;font-size:13px}.connected-preview-row b{font-size:14px}
.connected-error{align-items:center;background:#371b25;border:1px solid #884958;color:#ffd5dc;display:flex;justify-content:space-between;margin-bottom:14px;padding:15px 18px}
.connected-error button{background:none;border:0;border-bottom:1px solid currentColor;color:inherit;cursor:pointer;font-weight:800}
.connected-refreshing{background:#d9bd70;color:#08192a;font-size:13px;font-weight:800;padding:8px 18px;position:sticky;top:0;z-index:5}
.connected-skeleton{display:grid;gap:14px;min-height:650px;padding:60px}.connected-skeleton span{animation:connectedPulse 1.5s ease-in-out infinite;background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.1),rgba(255,255,255,.04));height:110px}.connected-skeleton span:first-child{height:230px}
@keyframes connectedPulse{50%{opacity:.5}}
.connected-hero{display:grid;grid-template-columns:minmax(330px,.9fr) 1.35fr;gap:42px;padding:clamp(32px,5vw,64px);position:relative}
.connected-hero h1{font-family:var(--serif);font-size:clamp(52px,7vw,96px);letter-spacing:0;line-height:.95;margin:15px 0 18px}.connected-hero h1 small{color:#b7c1ca;display:block;font-family:var(--sans);font-size:13px;font-weight:750;letter-spacing:1.2px;margin-top:14px;text-transform:uppercase}
.connected-hero>div>p{color:#aebbc7;font-size:15px}
.connected-hero-metrics{align-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.connected-hero-metrics span{border-left:1px solid rgba(255,255,255,.11);min-height:106px;padding:18px 26px}.connected-hero-metrics span:nth-child(n+3){border-top:1px solid rgba(255,255,255,.11)}
.connected-hero-metrics small{color:#9daab6;display:block;font-size:12px;font-weight:700;margin-bottom:8px;text-transform:uppercase}.connected-hero-metrics b{font-family:var(--serif);font-size:30px}
.connected-hero-foot{align-items:center;border-top:1px solid rgba(255,255,255,.1);color:#9fadb9;display:flex;font-size:12px;gap:18px;grid-column:1/-1;padding-top:18px}
.connected-health{align-items:center;display:flex;gap:8px}.connected-health i{background:#52ce99;border-radius:50%;box-shadow:0 0 14px rgba(82,206,153,.45);height:8px;width:8px}.connected-health.needs_attention i,.connected-health.degraded i{background:#f2c968}
.connected-trial{align-items:center;background:linear-gradient(90deg,#f0d58e,#d7af55);color:#08192a;display:grid;gap:4px;grid-template-columns:auto auto 1fr auto;margin:14px 0;padding:16px 24px}.connected-trial span{font-size:11px;font-weight:900;letter-spacing:1.2px;text-transform:uppercase}.connected-trial b{font-size:14px}.connected-trial p{font-size:13px}.connected-trial .connected-link{color:#08192a}
.connected-trial.connected-membership{background:linear-gradient(100deg,#bfe8d5,#7bc6a6)}.connected-trial.connected-membership.attention{background:linear-gradient(100deg,#ffd7da,#f09ca5)}
.connected-section{margin-top:14px;padding:clamp(28px,4vw,52px)}
.connected-section-head{align-items:end;display:flex;gap:24px;justify-content:space-between;margin-bottom:26px}.connected-section-head h2{font-family:var(--serif);font-size:clamp(30px,4vw,48px);letter-spacing:0;line-height:1.05;margin-top:8px}.connected-section-note{color:#a8b6c3;font-size:13px;margin:-12px 0 24px}
.institution-list{border-bottom:1px solid rgba(255,255,255,.1)}
.institution-row{align-items:center;border-top:1px solid rgba(255,255,255,.1);display:grid;gap:16px;grid-template-columns:46px minmax(170px,1fr) auto auto 38px;padding:17px 0}
.institution-mark{align-items:center;background:linear-gradient(135deg,#1a4564,#0a2137);border:1px solid rgba(255,255,255,.15);display:flex;font-family:var(--serif);font-size:21px;height:42px;justify-content:center;width:42px}
.institution-row b{display:block}.institution-row small{color:#95a4b2;display:block;font-size:12px;margin-top:3px}
.institution-status{border:1px solid rgba(82,206,153,.25);color:#78dcb0;font-size:11px;font-weight:850;padding:6px 9px;text-transform:uppercase}.institution-status.needs_attention,.institution-status.error{border-color:rgba(241,113,124,.3);color:#ff9ba5}
.connected-icon-btn{background:transparent;border:1px solid rgba(255,255,255,.14);color:#a9b4bd;cursor:pointer;font-size:20px;height:34px;width:34px}
.connected-icon-btn:hover{border-color:#f18a93;color:#f18a93}
.connected-insights{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.connected-analytics .connected-section-head{align-items:flex-end}.connected-analytics .connected-section-head>.connected-section-note{margin:0;max-width:480px;text-align:right}
.connected-analytics-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
.connected-analytics-card{background:linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.022));border:1px solid rgba(255,255,255,.1);min-height:300px;padding:24px}
.connected-card-title{align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.1);display:flex;gap:18px;justify-content:space-between;margin-bottom:20px;padding-bottom:16px}.connected-card-title span{color:#e5c873;font-size:11px;font-weight:850;letter-spacing:1.2px;text-transform:uppercase}.connected-card-title b{display:block;font-size:17px;margin-top:6px}.connected-card-title>small{color:#91a1af;font-size:10px;line-height:1.6;text-align:right}.connected-card-title>small i{border-radius:50%;display:inline-block;height:7px;margin:0 5px 0 9px;width:7px}.connected-card-title>small i:first-child{margin-left:0}.connected-card-title i.income{background:#67d3a4}.connected-card-title i.spending{background:#ef7b83}
.connected-month-bars{align-items:end;display:grid;gap:12px;grid-template-columns:repeat(6,minmax(0,1fr));height:180px;padding-top:8px}.connected-month-bars>div{align-items:center;display:grid;gap:7px;grid-template-rows:16px 1fr 18px;height:100%;min-width:0;text-align:center}.connected-month-bars>div>span{color:#91a1af;font-size:10px;font-weight:800;text-transform:uppercase}.connected-month-bars>div>i{align-items:end;border-bottom:1px solid rgba(255,255,255,.14);display:flex;gap:4px;height:100%;justify-content:center;overflow:hidden}.connected-month-bars>div>i b{border-radius:3px 3px 0 0;display:block;max-width:14px;min-height:3px;width:35%}.connected-month-bars b.income{background:linear-gradient(180deg,#9ae3c4,#43b987)}.connected-month-bars b.spending{background:linear-gradient(180deg,#ffaaa7,#db626d)}.connected-month-bars strong{color:#b9c7d1;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connected-month-bars strong.negative{color:#ff9da4}.connected-cash-trend>p{color:#93a4b2;font-size:12px;line-height:1.5;margin-top:18px}
.connected-category-list,.connected-recurring-list{display:grid;gap:0}.connected-category-list>div{align-items:center;border-bottom:1px solid rgba(255,255,255,.075);display:grid;gap:13px;grid-template-columns:minmax(110px,.8fr) minmax(80px,1fr) auto;min-height:47px}.connected-category-list>div:last-child{border-bottom:0}.connected-category-list>div>span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connected-category-list>div>i{background:rgba(255,255,255,.08);height:5px;overflow:hidden}.connected-category-list>div>i>b{background:linear-gradient(90deg,#d6ae54,#f2d98b);display:block;height:100%}.connected-category-list strong{font-size:13px;text-align:right}.connected-category-list strong small{color:#8d9daa;display:block;font-size:9px;margin-top:2px}
.connected-recurring-list>div{align-items:center;border-bottom:1px solid rgba(255,255,255,.075);display:grid;gap:11px;grid-template-columns:28px minmax(0,1fr) auto;min-height:52px}.connected-recurring-list>div:last-child{border-bottom:0}.connected-recurring-list>div>i{align-items:center;background:rgba(225,194,110,.12);border:1px solid rgba(225,194,110,.28);border-radius:50%;color:#efd584;display:flex;font-size:9px;font-style:normal;font-weight:900;height:26px;justify-content:center;width:26px}.connected-recurring-list span b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connected-recurring-list span small{color:#8f9fab;font-size:10px}.connected-recurring-list strong{font-size:13px}
.connected-score-track{background:rgba(255,255,255,.08);height:8px;margin:28px 0 20px;overflow:hidden}.connected-score-track i{background:linear-gradient(90deg,#5d9fca,#6ed3a4,#e7c66f);display:block;height:100%}.connected-foundation dl{display:grid;gap:0;margin:0}.connected-foundation dl>div{align-items:center;border-bottom:1px solid rgba(255,255,255,.075);display:flex;gap:18px;justify-content:space-between;min-height:48px}.connected-foundation dt{color:#91a2af;font-size:11px}.connected-foundation dd{font-size:12px;font-weight:750;margin:0;text-align:right}.connected-foundation>p{color:#8697a5;font-size:10px;line-height:1.5;margin-top:18px}
.connected-insight{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);display:grid;gap:14px;grid-template-columns:9px 1fr;padding:21px}.connected-insight>i{background:#7bb8dc;height:9px;margin-top:5px;width:9px}.connected-insight.positive>i{background:#52ce99}.connected-insight.attention>i{background:#ef727f}.connected-insight b{font-size:15px}.connected-insight p{color:#bac5ce;font-size:13px;line-height:1.55;margin:8px 0}.connected-insight small{color:#e4c979}
.connected-account-grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(275px,1fr))}
.connected-account{align-items:center;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;min-height:106px;padding:20px;position:relative}
.connected-account:before{background:#50ce98;content:"";inset:0 auto 0 0;position:absolute;width:3px}.connected-account.debt:before{background:#ef717d}
.connected-account span,.connected-account small{color:#94a5b4;display:block;font-size:11px}.connected-account b{display:block;font-size:15px;margin:4px 0}.connected-account strong{font-family:var(--serif);font-size:25px}.connected-account.debt strong{color:#ff9aa3}
.transaction-tools{align-items:end;display:grid;gap:18px;grid-template-columns:minmax(240px,1fr) auto;margin-bottom:18px}.transaction-tools label span{color:#9aa8b5;display:block;font-size:11px;font-weight:800;margin-bottom:6px;text-transform:uppercase}.transaction-tools input{background:#071728;border:1px solid rgba(161,188,212,.3);color:#fff;min-height:46px;padding:0 14px;width:100%}
.connected-segments{background:rgba(255,255,255,.04);display:flex;padding:4px}.connected-segments button{background:transparent;border:0;color:#a8b5c1;cursor:pointer;min-height:38px;padding:0 14px}.connected-segments button.active{background:#f0d583;color:#071728;font-weight:850}
.transaction-table{border-bottom:1px solid rgba(255,255,255,.1)}.transaction-head,.transaction-row{display:grid;gap:16px;grid-template-columns:90px minmax(220px,1.4fr) minmax(150px,.8fr) 130px}.transaction-head{border-bottom:1px solid rgba(255,255,255,.13);color:#93a2af;font-size:11px;font-weight:850;padding:10px 14px;text-transform:uppercase}.transaction-row{align-items:center;background:none;border:0;border-bottom:1px solid rgba(255,255,255,.085);color:#f6f2e9;cursor:pointer;min-height:66px;padding:10px 14px;text-align:left;width:100%}.transaction-row:hover{background:rgba(255,255,255,.045)}.transaction-row.excluded{opacity:.48}.transaction-row>span{color:#aab6c0;font-size:13px}.transaction-row>span small{display:block;font-size:10px;margin-top:3px}.transaction-row strong{text-align:right}.transaction-row strong.income{color:#72d7aa}
.transaction-name{align-items:center!important;color:#f7f4ec!important;display:grid!important;gap:10px;grid-template-columns:34px 1fr}.transaction-name img,.transaction-name>i{background:#fff;border-radius:50%;grid-row:1/3;height:32px;object-fit:contain;width:32px}.transaction-name>i{align-items:center;background:#183750;color:#c8d4df;display:flex;font-style:normal;justify-content:center}.transaction-name small{grid-column:2}
.connected-no-results{color:#9facb8;padding:36px;text-align:center}
.connected-section-total{font-family:var(--serif);font-size:34px}
.holding-list article{align-items:center;border-top:1px solid rgba(255,255,255,.1);display:grid;gap:20px;grid-template-columns:minmax(190px,.7fr) 1fr 130px;padding:16px 0}.holding-list b,.holding-list small{display:block}.holding-list small{color:#98a7b3;font-size:11px;margin-top:3px}.holding-list article>span{background:rgba(255,255,255,.08);height:6px;overflow:hidden}.holding-list article>span i{background:linear-gradient(90deg,#d8af50,#f4df9c);display:block;height:100%}.holding-list strong{text-align:right}.holding-list strong small{font-weight:500}
.connected-modal-scrim{align-items:center;background:rgba(3,12,20,.74);display:flex;inset:0;justify-content:center;padding:20px;position:fixed;z-index:10000}.connected-modal{background:#f8f8f5;border:1px solid #cad4dc;color:#0a1d31;max-width:560px;padding:32px;width:100%}.connected-modal h2{font-family:var(--serif);font-size:34px;margin:8px 0 4px}.connected-modal>p{color:#687889;margin-bottom:24px}.connected-modal label:not(.connected-check){display:block;font-size:12px;font-weight:800;margin:14px 0;text-transform:uppercase}.connected-modal input[type=text],.connected-modal input:not([type]),.connected-modal textarea{background:#fff;border:1px solid #b8c7d3;display:block;margin-top:7px;min-height:48px;padding:11px 12px;width:100%}.connected-modal textarea{min-height:100px;resize:vertical}.connected-check{align-items:center;display:flex;font-size:13px;gap:10px;margin:18px 0}.connected-check input{height:19px;width:19px}.connected-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}
.connected-pricing-scrim{background:rgba(2,10,19,.86);overflow-y:auto}.connected-pricing{background:radial-gradient(circle at 86% 4%,rgba(46,127,169,.2),transparent 31%),linear-gradient(145deg,#071728,#0d2740);border:1px solid rgba(220,192,118,.36);box-shadow:0 32px 90px rgba(0,0,0,.45);color:#f8f4e9;max-width:880px;padding:clamp(28px,5vw,54px);position:relative;width:100%}.connected-pricing-close{align-items:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.16);color:#d9e1e7;cursor:pointer;display:flex;font-size:26px;height:40px;justify-content:center;position:absolute;right:18px;top:18px;width:40px}.connected-pricing h2{font-family:var(--serif);font-size:clamp(36px,5vw,56px);line-height:1.02;margin:12px 52px 14px 0}.connected-pricing-intro{color:#bac6d0;font-size:16px;line-height:1.6;max-width:720px}.connected-preview-note{align-items:center;background:rgba(114,194,160,.1);border-left:3px solid #70d5aa;display:flex;gap:16px;margin:24px 0;padding:14px 16px}.connected-preview-note b{color:#91e2bd;font-size:13px}.connected-preview-note span{color:#b9c6cf;font-size:13px}.connected-price-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.connected-price-grid article{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;min-height:290px;padding:26px;position:relative}.connected-price-grid article.recommended{background:linear-gradient(145deg,rgba(224,190,102,.12),rgba(255,255,255,.035));border-color:rgba(230,199,117,.5)}.connected-price-grid article>em{background:#e7c974;color:#071728;font-size:10px;font-style:normal;font-weight:900;padding:6px 9px;position:absolute;right:16px;text-transform:uppercase;top:16px}.connected-price-grid article>span{color:#d9c27e;font-size:11px;font-weight:850;letter-spacing:1.2px;text-transform:uppercase}.connected-price-grid h3{font-family:var(--serif);font-size:40px;margin:18px 0 8px}.connected-price-grid h3 small{color:#9eacb7;font-family:var(--sans);font-size:13px}.connected-price-grid p{color:#aebbc6;font-size:14px;line-height:1.55;margin-bottom:24px}.connected-price-grid .connected-btn{margin-top:auto;width:100%}.connected-pricing-includes{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;margin:26px 0 18px;padding:0}.connected-pricing-includes li{color:#c3cdd5;font-size:13px;padding-left:23px;position:relative}.connected-pricing-includes li:before{color:#75d8ad;content:"\2713";font-weight:900;left:0;position:absolute}.connected-pricing-fine{border-top:1px solid rgba(255,255,255,.1);color:#8394a2;font-size:11px;line-height:1.55;padding-top:16px}

@media (max-width:900px){
  .connected-page{width:min(100% - 24px,720px)}
  .connected-empty{grid-template-columns:1fr;min-height:0;padding:38px 24px}.connected-empty-visual{display:none}
  .connected-empty h1{font-size:44px}.connected-permission-list span{grid-template-columns:34px 1fr}.connected-permission-list small{grid-column:2}
  .connected-hero{grid-template-columns:1fr;padding:30px 22px}.connected-hero h1{font-size:56px}.connected-hero-metrics span{padding:16px 13px}.connected-hero-metrics b{font-size:24px}.connected-hero-foot{flex-wrap:wrap}
  .connected-trial{grid-template-columns:1fr auto}.connected-trial p{grid-column:1/-1}.connected-trial .connected-link{grid-column:1/-1;justify-self:start}
  .connected-section{padding:28px 20px}.connected-section-head{align-items:flex-start;flex-direction:column}.connected-section-head .connected-btn{width:100%}
  .connected-analytics .connected-section-head{align-items:flex-start}.connected-analytics .connected-section-head>.connected-section-note{text-align:left}.connected-analytics-grid{grid-template-columns:1fr}
  .institution-row{grid-template-columns:42px minmax(0,1fr) auto}.institution-status{grid-column:2}.institution-row>.connected-link{grid-column:2;justify-self:start}.institution-row>.connected-icon-btn{grid-column:3;grid-row:1}
  .transaction-tools{grid-template-columns:1fr}.connected-segments{overflow-x:auto}.connected-segments button{flex:1;white-space:nowrap}
  .transaction-head{display:none}.transaction-row{grid-template-columns:66px minmax(0,1fr) auto;padding:13px 2px}.transaction-row>span:nth-child(3){display:none}.transaction-name{grid-template-columns:32px minmax(0,1fr)}.transaction-row strong{font-size:14px}
  .holding-list article{grid-template-columns:minmax(130px,.7fr) 1fr}.holding-list article>span{grid-column:1/-1;grid-row:2}.holding-list article>strong{grid-column:2;grid-row:1}
}
@media (max-width:520px){
  .connected-page{width:100%;margin-bottom:28px}.connected-signin{min-height:500px;padding:36px 20px}.connected-signin h1{font-size:40px}
  .connected-empty{padding:34px 20px}.connected-empty h1{font-size:39px}.connected-empty-actions{align-items:stretch;flex-direction:column}.connected-empty-actions .connected-link{text-align:center}
  .connected-hero{border-left:0;border-right:0}.connected-hero h1{font-size:48px}.connected-hero-metrics{gap:0}.connected-hero-metrics span{min-height:90px}.connected-hero-metrics b{font-size:21px}
  .connected-section{border-left:0;border-right:0}.connected-section-head h2{font-size:34px}
  .connected-analytics-card{min-height:0;padding:19px 16px}.connected-card-title{gap:10px}.connected-month-bars{gap:7px;height:165px}.connected-category-list>div{gap:9px;grid-template-columns:minmax(90px,.85fr) minmax(55px,.7fr) auto}
  .connected-account-grid{grid-template-columns:1fr}.connected-account{min-height:92px}
  .connected-insights{grid-template-columns:1fr}.connected-modal{padding:24px 18px}.connected-modal-actions{flex-direction:column-reverse}.connected-modal-actions .connected-btn{width:100%}
  .connected-pricing-scrim{align-items:flex-start;padding:8px}.connected-pricing{min-height:calc(100% - 16px);padding:34px 18px}.connected-pricing h2{font-size:38px}.connected-preview-note{align-items:flex-start;flex-direction:column;gap:5px}.connected-price-grid{grid-template-columns:1fr}.connected-price-grid article{min-height:235px;padding:22px}.connected-pricing-includes{grid-template-columns:1fr}
}

/* v327: interactive net-worth composition */
.nw-composition-card{
  background:
    radial-gradient(circle at 4% 5%,rgba(70,151,194,.16),transparent 29%),
    radial-gradient(circle at 92% 92%,rgba(213,95,107,.105),transparent 30%),
    linear-gradient(135deg,#07182a 0%,#0a2138 56%,#102b45 100%);
  border:1px solid rgba(147,181,210,.22);
  border-radius:8px;
  box-shadow:0 26px 64px rgba(5,20,33,.18);
  color:#f7f4ec;
  margin-top:18px;
  overflow:hidden;
  padding:clamp(24px,3.4vw,48px);
  position:relative;
}
.nw-composition-card:before{
  background:linear-gradient(90deg,#b88931 0%,#f4dc94 42%,#dfba61 68%,#a97827 100%);
  content:"";
  height:2px;
  inset:0 0 auto;
  opacity:.88;
  position:absolute;
}
.nw-composition-head{align-items:flex-start;display:flex;gap:28px;justify-content:space-between;margin-bottom:28px}
.nw-composition-head>div{max-width:840px}
.nw-composition-eyebrow{color:#e6c773;display:block;font-size:11px;font-weight:850;letter-spacing:1.45px;margin-bottom:10px;text-transform:uppercase}
.nw-composition-head h2{font-family:var(--serif);font-size:clamp(31px,3.4vw,48px);letter-spacing:0;line-height:1.02;margin:0}
.nw-composition-head p{color:rgba(234,239,243,.66);font-size:14px;line-height:1.55;margin:10px 0 0}
.nw-composition-edit{color:#f0d176;flex:0 0 auto;margin-top:6px}
.nw-composition-stage{
  border-bottom:1px solid rgba(255,255,255,.1);
  border-top:1px solid rgba(255,255,255,.1);
  display:grid;
  gap:clamp(18px,2vw,32px);
  grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);
  padding:clamp(22px,2.5vw,34px) 0 4px;
}
.nw-mix-panel{min-width:0;padding-bottom:22px}
.nw-mix-panel-head{align-items:flex-end;display:flex;gap:18px;justify-content:space-between;margin-bottom:20px;min-height:54px}
.nw-mix-panel-head>div{display:grid;gap:5px}
.nw-mix-panel-head span{font-size:17px;font-weight:820}
.nw-mix-panel-head small{color:rgba(228,235,240,.5);font-size:10px;font-weight:750;letter-spacing:.75px;text-transform:uppercase}
.nw-mix-panel-head>b{font-family:var(--serif);font-size:clamp(27px,2.5vw,37px);letter-spacing:0;line-height:1}
.nw-mix-assets .nw-mix-panel-head>b{color:#a8d8f1}
.nw-mix-liabilities .nw-mix-panel-head>b{color:#ff989f}
.nw-mix-panel-body{align-items:center;display:grid;gap:clamp(18px,2vw,28px);grid-template-columns:minmax(190px,.8fr) minmax(210px,1.2fr)}
.nw-mix-viz{align-items:center;display:flex;flex-direction:column;min-width:0}
.nw-mix-donut{align-items:center;display:flex;justify-content:center;min-height:225px;width:100%}
.nw-mix-donut .chart{filter:drop-shadow(0 18px 30px rgba(0,0,0,.3));max-width:238px!important;width:min(238px,100%)!important}
.nw-mix-focus{align-items:center;display:flex;flex-direction:column;gap:4px;min-height:82px;padding:9px 4px 0;text-align:center;width:100%}
.nw-mix-focus>span{color:#a9cce3;font-size:10px;font-weight:850;letter-spacing:1.05px;text-transform:uppercase}
.nw-mix-liabilities .nw-mix-focus>span{color:#ef9ca3}
.nw-mix-focus>span[style]{color:var(--nw-mix-color)}
.nw-mix-focus>strong{font-size:13px;line-height:1.35}
.nw-mix-focus>b{font-family:var(--serif);font-size:26px;line-height:1.1}
.nw-mix-focus>small{color:rgba(228,235,240,.55);font-size:11px;line-height:1.4}
.nw-mix-reset{background:none;border:0;border-bottom:1px solid rgba(238,209,127,.66);color:#ecd17e;cursor:pointer;font-size:10px;font-weight:800;margin-top:4px;padding:0 0 2px}
.nw-mix-key{border-bottom:1px solid rgba(255,255,255,.1)}
.nw-mix-key-row{
  align-items:center;
  background:transparent;
  border:0;
  border-top:1px solid rgba(255,255,255,.1);
  color:#f7f4ec;
  cursor:pointer;
  display:grid;
  gap:11px;
  grid-template-columns:10px minmax(0,1fr) auto;
  min-height:66px;
  padding:10px 7px;
  text-align:left;
  transition:background .18s ease,box-shadow .18s ease,padding .18s ease;
  width:100%;
}
.nw-mix-key-row:hover,.nw-mix-key-row.active,.nw-mix-key-row:focus-visible{background:linear-gradient(90deg,rgba(255,255,255,.065),rgba(255,255,255,.012));outline:none;padding-left:12px;padding-right:12px}
.nw-mix-key-row.active{box-shadow:inset 3px 0 0 var(--nw-mix-color)}
.nw-mix-swatch{background:var(--nw-mix-gradient);border-radius:50%;box-shadow:0 0 14px color-mix(in srgb,var(--nw-mix-color) 52%,transparent);height:9px;width:9px}
.nw-mix-key-copy{display:grid;gap:4px;min-width:0}
.nw-mix-key-copy>b{font-size:12.5px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nw-mix-key-copy>small{color:rgba(228,235,240,.5);font-size:9.5px}
.nw-mix-key-row>strong{font-family:var(--serif);font-size:clamp(19px,1.7vw,25px);line-height:1;white-space:nowrap}
.nw-composition-operator{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:330px;position:relative}
.nw-composition-operator:before,.nw-composition-operator:after{background:linear-gradient(transparent,rgba(255,255,255,.13),transparent);content:"";height:37%;position:absolute;width:1px}
.nw-composition-operator:before{top:0}.nw-composition-operator:after{bottom:0}
.nw-composition-operator>span{align-items:center;background:rgba(239,122,126,.09);border:1px solid rgba(239,122,126,.34);border-radius:50%;color:#ff9da3;display:flex;font-family:var(--serif);font-size:27px;height:46px;justify-content:center;width:46px}
.nw-composition-operator>small{color:rgba(228,235,240,.42);font-size:8.5px;font-weight:850;letter-spacing:1px;margin-top:8px;text-transform:uppercase}
.nw-mix-empty-key{align-items:center;border-bottom:1px solid rgba(255,255,255,.1);border-top:1px solid rgba(255,255,255,.1);display:grid;gap:12px;grid-template-columns:32px 1fr;min-height:92px;padding:16px 4px}
.nw-mix-empty-key>span{align-items:center;background:rgba(83,202,145,.12);border:1px solid rgba(83,202,145,.28);border-radius:50%;color:#77dda9;display:flex;font-size:14px;height:30px;justify-content:center;width:30px}
.nw-mix-empty-key b,.nw-mix-empty-key small{display:block}.nw-mix-empty-key b{font-size:13px}.nw-mix-empty-key small{color:rgba(228,235,240,.53);font-size:10px;line-height:1.4;margin-top:5px}
.nw-zero-ring{align-items:center;aspect-ratio:1;background:radial-gradient(circle,rgba(6,18,28,.88) 0 48%,transparent 49%),conic-gradient(from 215deg,rgba(81,203,147,.42),rgba(81,203,147,.08),rgba(81,203,147,.42));border-radius:50%;box-shadow:0 18px 34px rgba(0,0,0,.25);display:flex;flex-direction:column;justify-content:center;max-width:215px;width:min(215px,100%)}
.nw-zero-ring>span{color:#74dca8;font-size:17px}.nw-zero-ring>b{font-family:var(--serif);font-size:29px}.nw-zero-ring>small{color:rgba(228,235,240,.54);font-size:9px;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.nw-zero-ring.nw-zero-assets{background:radial-gradient(circle,rgba(6,18,28,.88) 0 48%,transparent 49%),conic-gradient(from 215deg,rgba(120,185,228,.42),rgba(120,185,228,.08),rgba(120,185,228,.42))}.nw-zero-ring.nw-zero-assets>span{color:#8dc7e9}
.nw-mobile-mix-tabs{display:none}
.nw-composition-equation{align-items:stretch;background:linear-gradient(100deg,rgba(255,255,255,.035),rgba(228,195,109,.07));border:1px solid rgba(228,195,109,.2);display:grid;gap:12px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.15fr);margin-top:22px;padding:12px}
.nw-composition-equation>span{display:grid;gap:4px;min-width:0;padding:7px 12px}.nw-composition-equation>span small{color:rgba(228,235,240,.5);font-size:9px;font-weight:850;letter-spacing:.85px;text-transform:uppercase}.nw-composition-equation>span b{font-family:var(--serif);font-size:clamp(21px,2vw,29px);letter-spacing:0;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nw-composition-equation>i{align-self:center;color:rgba(229,197,111,.72);font-family:var(--serif);font-size:25px;font-style:normal}.nw-composition-equation>.nw-composition-net{background:linear-gradient(135deg,rgba(228,195,109,.13),rgba(120,185,228,.07));border-left:2px solid #e4c36d}.nw-composition-equation>.nw-composition-net small{color:#e7c975}.nw-composition-equation>.nw-composition-net b{color:#f7f4ec}
.history-balance-summary.history-actions-only{display:block;padding:11px 15px}.history-actions-only .history-balance-actions{justify-content:space-between;width:100%}
@media(hover:hover){.nw-mix-key-row:hover{transform:translateX(2px)}}

@media(max-width:1100px){
  .nw-composition-stage{gap:18px;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)}
  .nw-mix-panel-body{grid-template-columns:1fr}
  .nw-mix-donut{min-height:205px}.nw-mix-donut .chart{max-width:210px!important;width:210px!important}
  .nw-composition-operator{min-height:500px}
}
@media(max-width:820px){
  .nw-composition-card{padding:24px 18px}
  .nw-composition-head{align-items:flex-start;margin-bottom:20px}.nw-composition-head p{font-size:13px}.nw-composition-edit{margin-top:4px}
  .nw-mobile-mix-tabs{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.12);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px}
  .nw-mobile-mix-tabs button{background:transparent;border:0;color:rgba(232,237,241,.62);cursor:pointer;display:grid;gap:3px;min-height:58px;padding:8px 10px;text-align:center}
  .nw-mobile-mix-tabs button+button{border-left:1px solid rgba(255,255,255,.1)}
  .nw-mobile-mix-tabs button span{font-size:10px;font-weight:850;letter-spacing:.85px;text-transform:uppercase}.nw-mobile-mix-tabs button b{font-family:var(--serif);font-size:20px}
  .nw-mobile-mix-tabs button.active{background:linear-gradient(135deg,rgba(112,181,222,.15),rgba(255,255,255,.035));color:#f7f4ec;box-shadow:inset 0 -2px 0 #78b9e4}
  .nw-mobile-mix-tabs button:last-child.active{background:linear-gradient(135deg,rgba(229,108,117,.14),rgba(255,255,255,.035));box-shadow:inset 0 -2px 0 #ee7a7e}
  .nw-composition-stage{border-top:0;display:block;padding-top:18px}
  .nw-composition-operator{display:none}
  .nw-composition-stage[data-mobile-view="assets"] .nw-mix-liabilities,.nw-composition-stage[data-mobile-view="liabilities"] .nw-mix-assets{display:none}
  .nw-mix-panel-body{grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr)}
  .nw-mix-panel-head{margin-bottom:12px}
}
@media(max-width:620px){
  .nw-composition-card{border-left:0;border-radius:0;border-right:0;margin-left:-12px;margin-right:-12px;padding:22px 14px}
  .nw-composition-head{display:grid;gap:12px}.nw-composition-head h2{font-size:32px;max-width:330px}.nw-composition-head p{font-size:12px;max-width:340px}.nw-composition-edit{justify-self:start;margin:0}
  .nw-mobile-mix-tabs{margin-top:2px}
  .nw-composition-stage{padding-top:15px}
  .nw-mix-panel{padding-bottom:8px}
  .nw-mix-panel-head{min-height:46px}.nw-mix-panel-head span{font-size:15px}.nw-mix-panel-head>b{font-size:27px}.nw-mix-panel-head small{font-size:8.5px}
  .nw-mix-panel-body{gap:6px;grid-template-columns:1fr}
  .nw-mix-donut{min-height:246px}.nw-mix-donut .chart{max-width:248px!important;width:min(248px,78vw)!important}
  .nw-mix-focus{min-height:75px;padding-top:1px}
  .nw-mix-key-row{min-height:64px;padding:10px 5px}.nw-mix-key-row>strong{font-size:21px}.nw-mix-key-copy>b{font-size:12px}
  .nw-composition-equation{gap:5px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.16fr);margin-top:16px;padding:8px 6px}.nw-composition-equation>span{gap:3px;padding:7px 3px;text-align:center}.nw-composition-equation>span small{font-size:7.5px;letter-spacing:.48px}.nw-composition-equation>span b{font-size:clamp(14px,4.25vw,18px)}.nw-composition-equation>i{font-size:17px}.nw-composition-equation>.nw-composition-net{border-left:0;border-top:2px solid #e4c36d}
  .history-balance-summary.history-actions-only{padding:10px}.history-actions-only .history-balance-actions{padding-top:0;border-top:0}
}
@media(max-width:390px){
  .nw-composition-card{margin-left:-8px;margin-right:-8px;padding-left:12px;padding-right:12px}
  .nw-mix-donut{min-height:228px}.nw-mix-donut .chart{max-width:228px!important;width:min(228px,76vw)!important}
  .nw-mix-key-row{gap:8px;grid-template-columns:9px minmax(0,1fr) auto}.nw-mix-key-row>strong{font-size:19px}
  .nw-composition-equation>span small{font-size:7px}.nw-composition-equation>span b{font-size:14px}
}

/* ---------- v331: anchored net-worth history comparison ---------- */
.networth-page .history-inline-inspector{
  display:block;
  min-height:0;
  padding:16px 18px 14px;
  border:1px solid rgba(227,190,102,.28);
  border-radius:8px;
  background:
    radial-gradient(420px 120px at 8% 0,rgba(227,190,102,.12),transparent 72%),
    linear-gradient(112deg,rgba(255,255,255,.055),rgba(115,177,218,.055));
  box-shadow:inset 3px 0 0 rgba(227,190,102,.82),inset 0 1px 0 rgba(255,255,255,.055),0 18px 42px -38px rgba(0,0,0,.9);
  transform:none;
}
.history-current-anchor{
  display:grid;
  grid-template-columns:minmax(150px,.72fr) minmax(210px,1fr) auto;
  gap:16px;
  align-items:center;
  min-width:0;
}
.history-current-copy{display:grid;gap:3px;min-width:0}
.history-inline-inspector .history-current-copy b{
  color:rgba(247,244,236,.7);
  font-family:var(--sans);
  font-size:10px;
  font-weight:850;
  letter-spacing:.12em;
  line-height:1.2;
  text-transform:uppercase;
}
.history-inline-inspector .history-current-copy small{
  color:rgba(247,244,236,.52);
  font-size:11px;
  line-height:1.35;
  text-align:left;
}
.history-current-value{
  min-width:0;
  color:#f8f5ed;
  font-family:var(--serif);
  font-size:clamp(31px,3.4vw,46px);
  font-weight:700;
  letter-spacing:0;
  line-height:.95;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-inline-inspector .history-current-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(227,190,102,.28);
  border-radius:999px;
  color:#f0d37e;
  font-size:9px;
  font-weight:850;
  letter-spacing:.11em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
}
.history-current-chip i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#e5c168;
  box-shadow:0 0 0 4px rgba(229,193,104,.11),0 0 14px rgba(229,193,104,.44);
}
.history-context-deck{
  position:relative;
  min-height:68px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.09);
  overflow:hidden;
}
.history-inspector-hint,.history-comparison-reveal{
  position:absolute;
  inset:12px 0 0;
  min-width:0;
  transition:opacity .24s ease,transform .34s cubic-bezier(.2,.8,.2,1),visibility .24s ease;
}
.history-inspector-hint{
  display:flex;
  align-items:center;
  gap:11px;
  opacity:1;
  transform:translateY(0);
}
.history-hint-mark{
  display:grid;
  place-items:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border:1px solid rgba(116,183,226,.25);
  border-radius:50%;
  color:#91c8e9!important;
  font-size:16px!important;
  letter-spacing:0!important;
}
.history-inspector-hint>span:last-child{display:grid;gap:2px;min-width:0}
.history-inline-inspector .history-inspector-hint b{
  color:#f7f4ec;
  font-family:var(--sans);
  font-size:12px;
  font-weight:760;
  letter-spacing:0;
  line-height:1.25;
  text-transform:none;
}
.history-inline-inspector .history-inspector-hint small{
  color:rgba(247,244,236,.54);
  font-size:10.5px;
  line-height:1.35;
  text-align:left;
}
.history-comparison-reveal{
  display:grid;
  grid-template-columns:minmax(180px,max-content) minmax(260px,1fr) 30px;
  align-items:center;
  gap:clamp(10px,1.5vw,20px);
  padding:1px 0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-13px);
}
.history-past-snapshot,.history-growth-story{display:grid;min-width:0}
.history-past-snapshot{
  position:relative;
  gap:4px;
  padding-left:14px;
}
.history-past-snapshot::before{
  position:absolute;
  inset:2px auto 2px 0;
  width:2px;
  border-radius:999px;
  background:linear-gradient(180deg,#f6da8b,#b98b2e);
  box-shadow:0 0 14px rgba(227,190,102,.25);
  content:"";
}
.history-growth-story{
  gap:3px;
  padding:5px 0 0 clamp(11px,1.35vw,18px);
  border-left:1px solid rgba(255,255,255,.1);
}
.history-inline-inspector .history-past-snapshot>span{
  color:rgba(247,244,236,.5);
  font-size:8.5px;
  font-weight:850;
  letter-spacing:.115em;
  line-height:1.2;
  text-transform:uppercase;
}
.history-inline-inspector .history-past-snapshot>span{color:#e7cb7d}
.history-inline-inspector .history-past-snapshot>b{
  color:#f8f5ed;
  font-family:var(--serif);
  font-size:clamp(27px,2.7vw,36px);
  font-weight:700;
  letter-spacing:0;
  line-height:.98;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.history-growth-sentence{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 6px;
  max-width:520px;
  margin:0;
  color:rgba(247,244,236,.72);
  font-size:14px;
  font-weight:650;
  letter-spacing:0;
  line-height:1.45;
}
.history-growth-sentence>span{
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  letter-spacing:0!important;
  line-height:inherit!important;
  text-transform:none!important;
}
.history-inline-inspector .history-growth-sentence>b{
  color:#77d7a7;
  font-family:var(--serif);
  font-size:18px;
  font-weight:700;
  letter-spacing:0;
  line-height:1.1;
  white-space:nowrap;
}
.history-inline-inspector[data-comparison-tone="negative"] .history-growth-sentence>b{color:#ff959b}
.history-inline-inspector[data-comparison-tone="neutral"] .history-growth-sentence>b{display:none}
.history-comparison-close{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  background:rgba(255,255,255,.025);
  color:rgba(247,244,236,.58);
  cursor:pointer;
  font:500 18px/1 var(--sans);
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.history-comparison-close:hover,.history-comparison-close:focus-visible{
  border-color:rgba(227,190,102,.42);
  background:rgba(227,190,102,.1);
  color:#f6dc91;
  outline:none;
  transform:scale(1.04);
}
.history-comparison-close:disabled{pointer-events:none}
.history-inline-inspector.comparison-active .history-inspector-hint{
  opacity:0;
  visibility:hidden;
  transform:translateY(12px);
}
.history-inline-inspector.comparison-active .history-comparison-reveal{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.history-selected-guide{transition:x1 .22s cubic-bezier(.2,.8,.2,1),x2 .22s cubic-bezier(.2,.8,.2,1),stroke .2s ease}
.history-chart.comparing-history .history-selected-guide{stroke:rgba(120,185,228,.62)}
.history-dot.current.active{
  r:7;
  fill:#e4c36d;
  stroke:#fffaf0;
  stroke-width:3;
  filter:drop-shadow(0 0 8px rgba(228,195,109,.62));
}
.history-dot.inspected{
  r:7;
  fill:#78b9e4;
  stroke:#f7f4ec;
  stroke-width:2.5;
  filter:drop-shadow(0 0 7px rgba(120,185,228,.58));
}
.history-chart.comparing-history .history-current-callout{opacity:.78}

@media(max-width:620px){
  .networth-page .history-inline-inspector{padding:14px 13px 12px}
  .history-current-anchor{grid-template-columns:minmax(0,1fr) auto;gap:8px 10px}
  .history-current-copy{grid-column:1}
  .history-current-value{
    grid-column:1 / -1;
    grid-row:2;
    justify-self:stretch;
    width:100%;
    font-size:clamp(33px,10vw,43px);
    text-align:center;
  }
  .history-inline-inspector .history-current-chip{grid-column:2;grid-row:1;padding:6px 9px}
  .history-context-deck{min-height:92px;margin-top:10px;padding-top:10px}
  .history-inspector-hint,.history-comparison-reveal{inset:10px 0 0}
  .history-inspector-hint{align-items:flex-start;padding-top:3px}
  .history-comparison-reveal{
    grid-template-columns:minmax(0,1fr);
    gap:7px;
    padding:2px 32px;
  }
  .history-past-snapshot{
    justify-items:center;
    gap:3px;
    padding-left:0;
    text-align:center;
  }
  .history-past-snapshot::before{display:none}
  .history-growth-story{
    grid-column:1;
    justify-items:center;
    padding:1px 0 0;
    border-top:0;
    border-left:0;
    text-align:center;
  }
  .history-growth-sentence{justify-content:center}
  .history-comparison-close{position:absolute;right:0;top:7px;width:26px;height:26px;font-size:17px}
  .history-inline-inspector .history-past-snapshot>b{font-size:25px}
  .history-inline-inspector .history-past-snapshot>span{font-size:7.5px;letter-spacing:.075em}
  .history-growth-sentence{gap:3px 5px;font-size:11.5px;line-height:1.35}
  .history-inline-inspector .history-growth-sentence>b{font-size:14px}
}
@media(max-width:380px){
  .history-context-deck{min-height:102px}
  .history-inline-inspector .history-current-copy small{font-size:10px}
  .history-inline-inspector .history-inspector-hint small{font-size:9.7px}
  .history-inline-inspector .history-past-snapshot>b{font-size:23px}
  .history-comparison-reveal{grid-template-columns:minmax(0,1fr);gap:6px;padding-inline:29px}
}
@media(prefers-reduced-motion:reduce){
  .history-inspector-hint,.history-comparison-reveal,.history-selected-guide,.history-comparison-close{transition:none!important}
}

/* ---------- v305: interactive spending composition ---------- */
.expense-composition-card{
  position:relative;
  margin-top:20px;
  padding:clamp(24px,3vw,42px);
  overflow:hidden;
  border-color:rgba(121,181,216,.18);
  background:
    linear-gradient(135deg,rgba(255,255,255,.035),transparent 38%),
    linear-gradient(115deg,#0b1d30 0%,#0d2439 54%,#102a40 100%);
  box-shadow:0 34px 80px -58px rgba(4,17,31,.95);
  color:#f7f4ec;
}
.expense-composition-card::before{
  position:absolute;
  inset:0 0 auto;
  height:2px;
  background:linear-gradient(90deg,#ef7a66 0%,#e6c56f 34%,#79b6d8 68%,#8fd0a8 100%);
  content:"";
  opacity:.86;
}
.expense-composition-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  padding-bottom:15px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.expense-composition-head h2{
  margin:0;
  color:#fbf8f0;
  font-family:var(--serif);
  font-size:clamp(22px,2.1vw,30px);
  font-weight:700;
  letter-spacing:0;
  line-height:1.1;
}
.expense-composition-head p{
  margin:0;
  color:rgba(247,244,236,.66);
  font-size:12px;
  line-height:1.4;
  text-align:right;
}
.expense-composition-body{
  display:grid;
  grid-template-columns:minmax(290px,.8fr) minmax(430px,1.2fr);
  align-items:stretch;
  gap:clamp(24px,4vw,58px);
  padding-top:28px;
}
.expense-composition-viz{
  display:grid;
  grid-template-rows:minmax(275px,1fr) auto;
  align-items:center;
  min-width:0;
  padding:22px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:8px;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(4,14,26,.22));
}
.expense-composition-donut{
  display:grid;
  place-items:center;
  min-height:275px;
}
.expense-composition-donut .chart{
  width:min(300px,92%)!important;
  max-width:300px!important;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.2));
}
.expense-composition-donut .donut-seg{
  cursor:pointer;
  transition:filter .18s ease,opacity .18s ease,stroke-width .2s ease;
}
.expense-composition-donut .donut-seg.active{filter:brightness(1.12) saturate(1.08)}
.expense-composition-focus{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:4px 18px;
  min-height:104px;
  padding:18px 18px 16px 21px;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.1);
}
.expense-composition-focus::before{
  position:absolute;
  inset:19px auto 18px 0;
  width:3px;
  border-radius:999px;
  background:var(--expense-color,#e5c46d);
  box-shadow:0 0 16px color-mix(in srgb,var(--expense-color,#e5c46d) 42%,transparent);
  content:"";
}
.expense-composition-focus>span{
  grid-column:1;
  color:rgba(247,244,236,.54);
  font-size:9px;
  font-weight:850;
  letter-spacing:.105em;
  line-height:1.25;
  text-transform:uppercase;
}
.expense-composition-focus>b{
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  color:#f8f5ed;
  font-family:var(--serif);
  font-size:clamp(28px,3vw,42px);
  line-height:1;
  white-space:nowrap;
}
.expense-composition-focus>strong{
  grid-column:1;
  color:#f8f5ed;
  font-size:16px;
  line-height:1.25;
}
.expense-composition-focus>small{
  grid-column:1 / -1;
  color:rgba(247,244,236,.6);
  font-size:11.5px;
  line-height:1.4;
}
.expense-composition-focus button{
  grid-column:1 / -1;
  justify-self:start;
  padding:4px 0 1px;
  border:0;
  border-bottom:1px solid rgba(232,201,112,.58);
  background:transparent;
  color:#f0d37c;
  cursor:pointer;
  font:750 11px/1.25 var(--sans);
}
.expense-composition-panel{min-width:0}
.expense-composition-list-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  padding:1px 5px 12px;
  border-bottom:1px solid rgba(255,255,255,.13);
  color:rgba(247,244,236,.48);
  font-size:9px;
  font-weight:850;
  letter-spacing:.115em;
  text-transform:uppercase;
}
.expense-composition-list{
  max-height:465px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:rgba(232,201,112,.34) transparent;
  scrollbar-width:thin;
}
.expense-composition-list::-webkit-scrollbar{width:7px}
.expense-composition-list::-webkit-scrollbar-track{background:transparent}
.expense-composition-list::-webkit-scrollbar-thumb{
  border:2px solid transparent;
  border-radius:999px;
  background:rgba(232,201,112,.34);
  background-clip:padding-box;
}
.expense-composition-row{
  display:grid;
  grid-template-columns:14px minmax(150px,1fr) minmax(92px,.72fr) auto;
  align-items:center;
  gap:13px;
  width:100%;
  min-height:68px;
  padding:12px 5px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.09);
  background:transparent;
  color:inherit;
  cursor:pointer;
  text-align:left;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.expense-composition-row:last-child{border-bottom:0}
.expense-composition-row:hover,.expense-composition-row:focus-visible,.expense-composition-row.active{
  border-color:rgba(255,255,255,.14);
  background:linear-gradient(90deg,color-mix(in srgb,var(--expense-color) 12%,transparent),transparent 76%);
  outline:none;
}
.expense-composition-row:focus-visible{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--expense-color) 48%,transparent)}
.expense-composition-swatch{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--expense-gradient);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--expense-color) 10%,transparent),0 0 13px color-mix(in srgb,var(--expense-color) 26%,transparent);
}
.expense-composition-copy{
  display:grid;
  min-width:0;
  gap:3px;
}
.expense-composition-copy b{
  overflow:hidden;
  color:#f7f4ec;
  font-size:14px;
  font-weight:760;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.expense-composition-copy small{
  color:rgba(247,244,236,.45);
  font-size:9px;
  font-weight:750;
  letter-spacing:.075em;
  text-transform:uppercase;
}
.expense-composition-meter{
  display:block;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.09);
}
.expense-composition-meter i{
  display:block;
  width:max(3px,var(--expense-share));
  height:100%;
  border-radius:inherit;
  background:var(--expense-gradient);
  box-shadow:0 0 10px color-mix(in srgb,var(--expense-color) 28%,transparent);
}
.expense-composition-numbers{
  display:grid;
  justify-items:end;
  min-width:86px;
  gap:2px;
}
.expense-composition-numbers strong{
  color:#f8f5ed;
  font-family:var(--serif);
  font-size:20px;
  line-height:1;
  white-space:nowrap;
}
.expense-composition-numbers small{
  color:var(--expense-color);
  font-size:9px;
  font-weight:850;
  letter-spacing:.04em;
}
.expense-composition-foot{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.1);
}
.expense-composition-foot>span{
  color:#e8ca74;
  font-size:9px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.expense-composition-foot p{
  margin:0;
  color:rgba(247,244,236,.5);
  font-size:11px;
  line-height:1.4;
}
.expense-composition-reset{
  display:none;
  padding:7px 0 4px;
  border:0;
  border-bottom:1px solid rgba(232,201,112,.56);
  background:transparent;
  color:#f0d37c;
  cursor:pointer;
  font:780 11px/1.2 var(--sans);
}
.expense-composition-reset.visible{display:block}
.expense-composition-empty{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.expense-composition-empty h2{
  margin:7px 0 4px;
  color:#f8f5ed;
  font-family:var(--serif);
  font-size:28px;
}
.expense-composition-empty p{margin:0;color:rgba(247,244,236,.6)}

@media(max-width:920px){
  .expense-composition-body{grid-template-columns:1fr;gap:22px}
  .expense-composition-viz{grid-template-columns:minmax(250px,.8fr) minmax(260px,1fr);grid-template-rows:1fr}
  .expense-composition-focus{border-top:0;border-left:1px solid rgba(255,255,255,.1)}
  .expense-composition-focus::before{inset:18px auto 18px 14px}
  .expense-composition-list{max-height:430px}
}
@media(max-width:680px){
  .expense-composition-card{margin-top:14px;padding:20px 14px 18px}
  .expense-composition-head{align-items:baseline;gap:10px;padding-bottom:12px}
  .expense-composition-head h2{font-size:21px}
  .expense-composition-head p{max-width:118px;font-size:10.5px;line-height:1.3}
  .expense-composition-body{gap:16px;padding-top:16px}
  .expense-composition-viz{
    grid-template-columns:1fr;
    grid-template-rows:minmax(250px,auto) auto;
    padding:14px 10px 10px;
  }
  .expense-composition-donut{min-height:250px}
  .expense-composition-donut .chart{width:min(268px,82vw)!important;max-width:268px!important}
  .expense-composition-focus{
    min-height:94px;
    padding:15px 13px 13px 19px;
    border-top:1px solid rgba(255,255,255,.1);
    border-left:0;
  }
  .expense-composition-focus::before{inset:17px auto 15px 0}
  .expense-composition-focus>b{font-size:clamp(27px,9vw,38px)}
  .expense-composition-list-head{padding-inline:3px}
  .expense-composition-list{max-height:none;overflow:visible}
  .expense-composition-row{
    grid-template-columns:12px minmax(0,1fr) auto;
    gap:9px 11px;
    min-height:74px;
    padding:12px 3px;
  }
  .expense-composition-meter{grid-column:2 / 4;grid-row:2}
  .expense-composition-copy b{font-size:13px}
  .expense-composition-numbers{grid-column:3;grid-row:1;min-width:78px}
  .expense-composition-numbers strong{font-size:19px}
  .expense-composition-foot{grid-template-columns:1fr auto;gap:6px 12px;margin-top:14px;padding-top:13px}
  .expense-composition-foot p{grid-column:1 / -1;grid-row:2}
  .expense-composition-reset{grid-column:2;grid-row:1}
  .expense-composition-empty{align-items:flex-start;flex-direction:column}
}
@media(max-width:420px){
  .expense-composition-head p{max-width:108px}
  .expense-composition-focus{grid-template-columns:minmax(0,1fr) auto;gap-inline:9px}
  .expense-composition-focus>b{font-size:clamp(25px,8.5vw,34px)}
}
@media(prefers-reduced-motion:reduce){
  .expense-composition-row,.expense-composition-donut .donut-seg{transition:none!important}
}

/* v306: cinematic growth-chart system */
:is(.history-hero,.overview-hero-history) .history-chart-shell,
.projection-page-wrap .projection-chart-shell{
  --growth-navy:#16283A;
  --growth-navy-deep:#091A2B;
  --growth-grid:rgba(135,158,178,.20);
  --growth-gold:#E6BE5A;
  --growth-blue:#7DB9E2;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(157,181,201,.16);
  border-radius:8px;
  background:
    radial-gradient(circle at 86% 13%,rgba(230,190,90,.105),transparent 28%),
    radial-gradient(circle at 11% 92%,rgba(84,151,204,.09),transparent 33%),
    linear-gradient(145deg,#16283A 0%,#12273A 48%,#0B2135 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    inset 0 -40px 80px rgba(3,13,25,.13),
    0 22px 48px rgba(4,17,29,.17);
}
:is(.history-hero,.overview-hero-history) .history-chart-shell::after,
.projection-page-wrap .projection-chart-shell::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(118deg,rgba(255,255,255,.035),transparent 23% 76%,rgba(230,190,90,.025)),
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 28%);
  mix-blend-mode:screen;
}
:is(.history-hero,.overview-hero-history) .history-chart-shell>svg,
.projection-page-wrap .projection-chart-shell>svg{
  position:relative;
  z-index:1;
}
:is(.history-hero,.overview-hero-history) .history-grid,
.projection-page-wrap .projection-gridline{
  stroke:var(--growth-grid)!important;
  stroke-width:1!important;
  shape-rendering:geometricPrecision;
}
:is(.history-hero,.overview-hero-history) .history-axis-date,
.projection-page-wrap .projection-axis,
.projection-page-wrap .projection-chart .axis{
  fill:rgba(211,224,234,.56)!important;
  font-family:Inter,Arial,sans-serif;
  font-weight:650;
  letter-spacing:.01em;
}
:is(.history-hero,.overview-hero-history) .history-area,
.projection-page-wrap .projection-area{
  opacity:.76;
}
:is(.history-hero,.overview-hero-history) .history-line-glow,
.projection-page-wrap .projection-line-glow{
  fill:none;
  stroke:var(--growth-gold);
  stroke-width:11;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.17;
  filter:blur(5px);
  pointer-events:none;
}
:is(.history-hero,.overview-hero-history) .history-line-main,
.projection-page-wrap .projection-line-main{
  fill:none;
  stroke-width:3.35;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.22)) drop-shadow(0 0 5px rgba(230,190,90,.21));
}
:is(.history-hero,.overview-hero-history) .history-dot,
.projection-page-wrap .projection-data-point,
.projection-page-wrap .projection-history-dot{
  fill:var(--growth-blue);
  stroke:#071827;
  stroke-width:2.8;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.42));
  transition:filter .18s ease,stroke-width .18s ease,opacity .18s ease;
}
:is(.history-hero,.overview-hero-history) .history-dot:is(:hover,:focus,.active),
.projection-page-wrap .projection-history-dot:is(:hover,:focus){
  filter:drop-shadow(0 0 8px rgba(125,185,226,.62));
  stroke-width:3.2;
}
:is(.history-hero,.overview-hero-history) .history-dot.current{
  fill:var(--growth-gold);
  stroke:#FFF8E8;
  stroke-width:3.4;
  filter:drop-shadow(0 0 8px rgba(230,190,90,.75)) drop-shadow(0 0 19px rgba(230,190,90,.30));
}
:is(.history-hero,.overview-hero-history) .history-endpoint-halo,
.projection-page-wrap .projection-endpoint-halo{
  fill:var(--growth-gold);
  opacity:.16;
  filter:blur(3px);
  transform-box:fill-box;
  transform-origin:center;
  animation:growthEndpointPulse 3.4s ease-in-out infinite;
}
:is(.history-hero,.overview-hero-history) .history-endpoint-halo-outer,
.projection-page-wrap .projection-endpoint-halo-outer{
  opacity:.075;
  filter:blur(7px);
  animation-delay:-1.35s;
}
.projection-page-wrap .projection-endpoint{
  fill:var(--growth-gold);
  stroke:#FFF8E8;
  stroke-width:3.2;
  filter:drop-shadow(0 0 7px rgba(230,190,90,.88)) drop-shadow(0 0 18px rgba(230,190,90,.38));
}
.projection-page-wrap .projection-today-dot{
  fill:var(--growth-blue);
  stroke:#071827;
  stroke-width:3;
  filter:drop-shadow(0 0 6px rgba(125,185,226,.48));
}
.projection-page-wrap .projection-milestone-dot{
  fill:var(--growth-gold);
  stroke:#10263A;
  stroke-width:1.7;
  opacity:.85;
}
.projection-page-wrap .projection-history-line{
  fill:none;
  stroke:#78B4DF;
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.86;
  filter:drop-shadow(0 0 4px rgba(120,180,223,.22));
}
.projection-page-wrap .projection-today-stem,
.projection-page-wrap .projection-retirement-stem{
  stroke:rgba(230,190,90,.65);
  stroke-width:1.2;
}
.projection-page-wrap .projection-retirement-guide{
  stroke:rgba(230,190,90,.48);
  stroke-width:1;
  stroke-dasharray:4 5;
}
.projection-page-wrap .projection-today-callout rect,
.projection-page-wrap .projection-retirement-callout rect,
:is(.history-hero,.overview-hero-history) .history-current-callout rect{
  fill:rgba(5,20,34,.93);
  stroke:rgba(230,190,90,.68);
  stroke-width:1.15;
  filter:drop-shadow(0 8px 16px rgba(1,8,15,.36)) drop-shadow(0 0 8px rgba(230,190,90,.10));
}
.projection-page-wrap .projection-callout-kicker,
:is(.history-hero,.overview-hero-history) .history-current-callout text{
  fill:rgba(232,239,244,.68);
  font-family:Inter,Arial,sans-serif;
  font-size:8px;
  font-weight:800;
  letter-spacing:.13em;
}
.projection-page-wrap .projection-callout-value{
  fill:#F4D477;
  font-family:Inter,Arial,sans-serif;
  font-size:11.5px;
  font-weight:780;
  letter-spacing:0;
}
:is(.history-hero,.overview-hero-history) .history-selected-guide{
  stroke:rgba(125,185,226,.36);
  stroke-width:1;
  stroke-dasharray:3 5;
}
:is(.history-hero,.overview-hero-history) .history-chart-shell{
  padding:8px 10px 3px;
}
.projection-page-wrap .projection-chart-card{
  border-color:rgba(157,181,201,.16);
  background:linear-gradient(145deg,#16283A 0%,#10263A 56%,#0B2135 100%);
  box-shadow:0 24px 56px rgba(4,17,29,.18);
}
.projection-page-wrap .projection-chart-card .chart-head{
  border-color:rgba(157,181,201,.13);
}
.projection-page-wrap .projection-chart-card .card-title,
.projection-page-wrap .projection-chart-card .chart-head p{
  color:#F7F4EC;
}
.projection-page-wrap .projection-chart-card .chart-head p{
  color:rgba(218,229,237,.67);
}
.projection-page-wrap .projection-chart-card .linklike{
  color:#F2CF71;
}
.projection-page-wrap .projection-chart-shell{
  margin:0 14px 0;
  padding:2px 4px 0;
}
@keyframes growthEndpointPulse{
  0%,100%{transform:scale(.88);opacity:.09}
  50%{transform:scale(1.18);opacity:.22}
}
@media(max-width:700px){
  :is(.history-hero,.overview-hero-history) .history-chart-shell{
    margin-inline:-2px;
    padding:5px 2px 0;
  }
  .projection-page-wrap .projection-chart-shell{
    margin:0 5px;
    padding:0;
  }
  :is(.history-hero,.overview-hero-history) .history-line-main,
  .projection-page-wrap .projection-line-main{stroke-width:3}
  :is(.history-hero,.overview-hero-history) .history-line-glow,
  .projection-page-wrap .projection-line-glow{stroke-width:9;opacity:.15}
  .projection-page-wrap .projection-chart-card{border-radius:8px}
}
@media(prefers-reduced-motion:reduce){
  :is(.history-hero,.overview-hero-history) .history-endpoint-halo,
  .projection-page-wrap .projection-endpoint-halo{animation:none}
}

/* ---------- v418: focused monthly wealth-building metric ---------- */
.money-wealth-band.money-wealth-band-compact.money-wealth-focus-card,
.money-flow-right .money-wealth-band.money-wealth-band-compact.money-wealth-focus-card{
  grid-template-columns:minmax(0,1fr);
  gap:0;
  padding:18px 20px 17px;
  border-color:rgba(230,190,90,.27);
  background:
    radial-gradient(circle at 10% 0%,rgba(230,190,90,.11),transparent 38%),
    radial-gradient(circle at 94% 100%,rgba(79,199,137,.10),transparent 42%),
    linear-gradient(135deg,rgba(20,46,65,.96),rgba(13,39,58,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 22px 46px -40px rgba(230,190,90,.62);
}
.money-wealth-focus-card .money-wealth-summary{gap:12px}
.money-wealth-focus-card .money-wealth-summary-head{
  align-items:end;
  gap:22px;
}
.money-wealth-focus-card .money-wealth-summary-head > div{
  display:flex;
  align-items:baseline;
  gap:13px;
}
.money-wealth-focus-card .money-wealth-summary-head > div > b{
  color:#95E3B4;
  font-size:clamp(31px,2.45vw,40px);
  text-shadow:0 7px 24px rgba(77,194,132,.12);
}
.money-wealth-focus-card .money-wealth-label{white-space:nowrap}
.money-wealth-focus-card .money-wealth-total-rate{
  display:flex;
  align-items:baseline;
  gap:7px;
}
.money-wealth-focus-card .money-wealth-total-rate strong{
  color:#F2D479;
  font-size:clamp(25px,2vw,31px);
  text-shadow:0 6px 20px rgba(230,190,90,.12);
}
.money-wealth-focus-card .money-wealth-total-rate small{
  max-width:14ch;
  color:rgba(229,236,241,.55);
  text-align:left;
}
.money-wealth-track-wrap{position:relative;display:grid;gap:9px}
.money-wealth-focus-card .money-wealth-mix{
  position:relative;
  height:11px;
  overflow:visible;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(2,14,24,.5);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.38),
    0 7px 19px -14px rgba(230,190,90,.8);
}
.money-wealth-segment{
  position:relative;
  width:var(--share);
  min-width:0;
  height:100%;
  padding:0;
  border:0;
  appearance:none;
  cursor:pointer;
  transition:filter .2s ease,box-shadow .2s ease;
}
.money-wealth-segment:first-child{border-radius:999px 0 0 999px}
.money-wealth-segment:last-child{border-radius:0 999px 999px 0}
.money-wealth-segment.investing{
  background:linear-gradient(90deg,#C79C3D 0%,#E6BE5A 36%,#F7DEA0 61%,#D0A94D 100%);
}
.money-wealth-segment.savings{
  background:linear-gradient(90deg,#2E9E6A 0%,#4FC789 48%,#8CDFAD 100%);
}
.money-wealth-segment:hover,
.money-wealth-segment:focus-visible{
  z-index:3;
  filter:brightness(1.1) saturate(1.05);
  outline:none;
}
.money-wealth-segment.investing:hover,
.money-wealth-segment.investing:focus-visible{
  box-shadow:0 0 16px rgba(230,190,90,.3);
}
.money-wealth-segment.savings:hover,
.money-wealth-segment.savings:focus-visible{
  box-shadow:0 0 16px rgba(86,209,151,.28);
}
.money-wealth-segment-detail{
  position:absolute;
  left:50%;
  bottom:calc(100% + 13px);
  display:grid;
  min-width:142px;
  padding:9px 11px;
  border:1px solid rgba(230,190,90,.32);
  border-radius:7px;
  background:rgba(6,24,38,.97);
  box-shadow:0 15px 30px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05);
  color:#F7F4EC;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,6px) scale(.96);
  transform-origin:50% 100%;
  transition:opacity .18s ease,transform .18s ease;
}
.money-wealth-segment:first-child .money-wealth-segment-detail{
  left:0;
  transform:translate(0,6px) scale(.96);
  transform-origin:0 100%;
}
.money-wealth-segment:last-child .money-wealth-segment-detail{
  right:0;
  left:auto;
  transform:translate(0,6px) scale(.96);
  transform-origin:100% 100%;
}
.money-wealth-segment:hover .money-wealth-segment-detail,
.money-wealth-segment:focus .money-wealth-segment-detail{
  opacity:1;
  transform:translate(-50%,0) scale(1);
}
.money-wealth-segment:first-child:hover .money-wealth-segment-detail,
.money-wealth-segment:first-child:focus .money-wealth-segment-detail,
.money-wealth-segment:last-child:hover .money-wealth-segment-detail,
.money-wealth-segment:last-child:focus .money-wealth-segment-detail{
  transform:translate(0,0) scale(1);
}
.money-wealth-segment-detail small{
  color:rgba(231,238,243,.58);
  font-size:8px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.money-wealth-segment-detail b{margin-top:2px;font-size:15px}
.money-wealth-segment-detail em{
  margin-top:1px;
  color:rgba(231,238,243,.58);
  font-size:8.5px;
  font-style:normal;
}
.money-wealth-track-key{
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:rgba(229,236,241,.63);
  font-size:9px;
  font-weight:700;
}
.money-wealth-track-key span{display:flex;align-items:center;gap:6px}
.money-wealth-track-key i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#E6BE5A;
  box-shadow:0 0 10px rgba(230,190,90,.25);
}
.money-wealth-track-key .savings i{
  background:#56CD91;
  box-shadow:0 0 10px rgba(86,205,145,.23);
}
.money-wealth-track-key b{color:rgba(247,244,236,.88);font-size:9.5px}
@media(max-width:700px){
  .money-wealth-band.money-wealth-band-compact.money-wealth-focus-card,
  .money-flow-right .money-wealth-band.money-wealth-band-compact.money-wealth-focus-card{
    padding:15px 13px 14px;
  }
  .money-wealth-focus-card .money-wealth-summary{gap:10px}
  .money-wealth-focus-card .money-wealth-summary-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:10px;
  }
  .money-wealth-focus-card .money-wealth-summary-head > div{
    display:grid;
    gap:4px;
  }
  .money-wealth-focus-card .money-wealth-summary-head > div > b{font-size:30px}
  .money-wealth-focus-card .money-wealth-total-rate{
    display:grid;
    justify-items:end;
    gap:0;
  }
  .money-wealth-focus-card .money-wealth-total-rate strong{font-size:24px}
  .money-wealth-focus-card .money-wealth-total-rate small{
    max-width:11ch;
    font-size:7.5px;
    text-align:right;
  }
  .money-wealth-focus-card .money-wealth-label{
    white-space:normal;
    font-size:8.5px;
  }
  .money-wealth-track-key{font-size:8.5px}
  .money-wealth-track-key b{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .money-wealth-segment,
  .money-wealth-segment-detail{transition:none}
}

/* ---------- v315: standalone investing and saving result ---------- */
.budget-page .money-wealth-focus-card{
  width:100%;
  margin:16px 0 0;
  padding:clamp(19px,2.2vw,27px) clamp(20px,2.6vw,32px);
  border:1px solid rgba(230,190,90,.24);
  border-radius:8px;
  background:
    radial-gradient(circle at 8% 0%,rgba(230,190,90,.13),transparent 34%),
    radial-gradient(circle at 96% 100%,rgba(79,199,137,.12),transparent 38%),
    linear-gradient(132deg,#142E42 0%,#0E293E 55%,#0B263B 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 20px 42px -34px rgba(8,26,41,.72);
}
.budget-page .money-wealth-focus-card .money-wealth-summary{
  grid-template-columns:minmax(250px,.74fr) minmax(330px,1.26fr);
  align-items:center;
  gap:clamp(24px,3.4vw,52px);
}
.budget-page .money-wealth-focus-card .money-wealth-summary-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:20px;
  padding-right:clamp(8px,1.4vw,20px);
  border-right:1px solid rgba(224,233,239,.12);
}
.budget-page .money-wealth-focus-card .money-wealth-summary-head > div{
  display:grid;
  align-items:start;
  gap:7px;
}
.budget-page .money-wealth-focus-card .money-wealth-summary-head > div > b{
  font-size:clamp(34px,3.2vw,48px);
  line-height:.94;
}
.money-wealth-label-mobile{display:none}
.budget-page .money-wealth-focus-card .money-wealth-track-wrap{gap:10px}
.budget-page .money-wealth-focus-card .money-wealth-mix{height:13px}
.budget-page .money-wealth-focus-card .money-wealth-track-key{
  font-size:10px;
  letter-spacing:.02em;
}
.budget-page .money-wealth-focus-card .money-wealth-track-key b{font-size:10px}
.money-wealth-live{
  min-height:42px;
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:baseline;
  gap:8px;
  padding-top:3px;
  color:rgba(231,238,243,.68);
}
.money-wealth-live-kicker{
  color:#F0D176;
  font-size:8.5px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.money-wealth-live strong{
  color:#F7F4EC;
  font-size:12px;
}
.money-wealth-live small{
  color:rgba(224,233,239,.52);
  font-size:9.5px;
}
.money-wealth-segment.active{
  z-index:2;
  filter:brightness(1.12) saturate(1.07);
}
.money-wealth-segment.investing.active{box-shadow:0 0 17px rgba(230,190,90,.34)}
.money-wealth-segment.savings.active{box-shadow:0 0 17px rgba(86,209,151,.30)}

@media(max-width:980px){
  .budget-page .money-wealth-focus-card .money-wealth-summary{
    grid-template-columns:minmax(0,.9fr) minmax(300px,1.1fr);
    gap:24px;
  }
  .budget-page .money-wealth-focus-card .money-wealth-summary-head{gap:12px}
}
@media(max-width:900px){
  .budget-page .money-wealth-focus-card{
    margin-top:11px;
    padding:16px 14px 14px;
  }
  .budget-page .money-wealth-focus-card .money-wealth-summary{
    grid-template-columns:1fr;
    gap:15px;
  }
  .budget-page .money-wealth-focus-card .money-wealth-summary-head{
    padding:0 0 14px;
    border-right:0;
    border-bottom:1px solid rgba(224,233,239,.12);
  }
  .money-wealth-label-wide{display:none}
  .money-wealth-label-mobile{display:inline}
  .budget-page .money-wealth-focus-card .money-wealth-summary-head > div > b{
    font-size:34px;
  }
  .budget-page .money-wealth-focus-card .money-wealth-total-rate strong{font-size:25px}
  .budget-page .money-wealth-focus-card .money-wealth-total-rate small{
    max-width:10ch;
    line-height:1.25;
  }
  .budget-page .money-wealth-focus-card .money-wealth-mix{height:14px}
  .money-wealth-segment-detail{display:none}
  .money-wealth-live{
    min-height:48px;
    grid-template-columns:auto 1fr;
    align-items:baseline;
    gap:3px 8px;
    padding:8px 10px 0;
  }
  .money-wealth-live small{
    grid-column:1 / -1;
    line-height:1.35;
  }
}

/* ---------- v423: investing + saving, one stable responsive composition ---------- */
.budget-page .money-wealth-band.money-wealth-focus-card{
  display:block;
  width:100%;
  margin:18px 0 0;
  padding:clamp(22px,2.35vw,30px) clamp(22px,3vw,38px);
  overflow:hidden;
  border:1px solid rgba(230,190,90,.30);
  border-radius:8px;
  background:
    radial-gradient(circle at 6% -18%,rgba(230,190,90,.16),transparent 38%),
    radial-gradient(circle at 100% 116%,rgba(70,199,139,.14),transparent 42%),
    linear-gradient(132deg,#142f44 0%,#102b40 52%,#0b263b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 24px 56px -42px rgba(4,17,29,.86);
}
.budget-page .money-wealth-focus-card .money-wealth-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(19px,2.1vw,26px);
}
.budget-page .money-wealth-focus-card .money-wealth-summary-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:clamp(20px,3vw,42px);
  padding:0;
  border:0;
}
.budget-page .money-wealth-primary{
  display:grid;
  gap:8px;
  min-width:0;
}
.budget-page .money-wealth-label{
  display:block;
  color:#f4d77f;
  font-size:clamp(19px,1.42vw,22px);
  font-weight:850;
  letter-spacing:.105em;
  line-height:1.15;
  text-transform:uppercase;
  white-space:normal;
}
.budget-page .money-wealth-amount{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.budget-page .money-wealth-amount b{
  color:#98e6b7;
  font-family:var(--serif);
  font-size:clamp(43px,4.2vw,64px);
  font-weight:750;
  letter-spacing:0;
  line-height:.92;
  text-shadow:0 8px 28px rgba(79,199,137,.14);
}
.budget-page .money-wealth-amount small{
  color:rgba(229,237,242,.58);
  font-size:12px;
  font-weight:780;
  white-space:nowrap;
}
.budget-page .money-wealth-total-rate{
  display:grid;
  justify-items:end;
  gap:3px;
  min-width:126px;
  padding:2px 0 4px clamp(18px,2.3vw,32px);
  border-left:1px solid rgba(229,237,242,.13);
}
.budget-page .money-wealth-total-rate strong{
  color:#f4d77f;
  font-family:var(--serif);
  font-size:clamp(32px,3vw,45px);
  font-weight:750;
  letter-spacing:0;
  line-height:.92;
  text-shadow:0 7px 24px rgba(230,190,90,.14);
}
.budget-page .money-wealth-total-rate small{
  max-width:18ch;
  color:rgba(229,237,242,.58);
  font-size:11px;
  font-weight:720;
  line-height:1.32;
  text-align:right;
}
.budget-page .money-wealth-track-wrap{
  display:grid;
  gap:15px;
  min-width:0;
}
.budget-page .money-wealth-focus-card .money-wealth-mix{
  display:flex;
  width:100%;
  height:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(2,14,24,.56);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.40),
    0 8px 22px -15px rgba(230,190,90,.82);
}
.budget-page .money-wealth-focus-card .money-wealth-segment{
  display:block;
  flex:0 0 var(--share);
  width:var(--share);
  height:100%;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  pointer-events:none;
}
.budget-page .money-wealth-focus-card .money-wealth-segment.investing{
  background:linear-gradient(90deg,#c79b38 0%,#e6be5a 36%,#f8dfa0 62%,#d4aa48 100%);
  box-shadow:inset -1px 0 rgba(5,22,35,.35);
}
.budget-page .money-wealth-focus-card .money-wealth-segment.savings{
  background:linear-gradient(90deg,#2d9f69 0%,#50c98b 52%,#93e1b2 100%);
}
.budget-page .money-wealth-breakdown{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid rgba(229,237,242,.13);
  border-bottom:1px solid rgba(229,237,242,.13);
}
.budget-page .money-wealth-breakdown-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:7px 18px;
  min-width:0;
  padding:17px 22px 16px 0;
  border:0;
  border-radius:0;
  appearance:none;
  background:transparent;
  color:#f7f4ec;
  text-align:left;
  cursor:pointer;
  transition:background-color .18s ease,box-shadow .18s ease;
}
.budget-page .money-wealth-breakdown-item + .money-wealth-breakdown-item{
  padding-right:0;
  padding-left:22px;
  border-left:1px solid rgba(229,237,242,.13);
}
.budget-page .money-wealth-breakdown-title{
  display:grid;
  grid-template-columns:9px minmax(0,1fr);
  align-items:center;
  gap:2px 9px;
  min-width:0;
}
.budget-page .money-wealth-breakdown-title i{
  grid-row:1 / 3;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#e6be5a;
  box-shadow:0 0 13px rgba(230,190,90,.30);
}
.budget-page .money-wealth-breakdown-item.savings .money-wealth-breakdown-title i{
  background:#59cf91;
  box-shadow:0 0 13px rgba(89,207,145,.28);
}
.budget-page .money-wealth-breakdown-title > span{
  overflow:hidden;
  color:#f7f4ec;
  font-size:14px;
  font-weight:820;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.budget-page .money-wealth-breakdown-title small{
  color:rgba(229,237,242,.52);
  font-size:10px;
  font-weight:720;
  line-height:1.2;
}
.budget-page .money-wealth-breakdown-item > strong{
  color:#f7f4ec;
  font-family:var(--serif);
  font-size:clamp(25px,2.2vw,34px);
  font-weight:740;
  letter-spacing:0;
  line-height:1;
  white-space:nowrap;
}
.budget-page .money-wealth-breakdown-item.investing > strong{color:#f2d278}
.budget-page .money-wealth-breakdown-item.savings > strong{color:#91dfb0}
.budget-page .money-wealth-source{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px 7px;
  grid-column:1 / -1;
  overflow:hidden;
  color:rgba(229,237,242,.58);
  font-size:10.5px;
  font-weight:680;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.budget-page .money-wealth-source > span{white-space:nowrap}
.budget-page .money-wealth-source b{color:rgba(247,244,236,.88);font-weight:820}
.budget-page .money-wealth-source em{
  padding:0 4px;
  color:#f1cc6d;
  font-style:normal;
}
.budget-page .money-wealth-breakdown-item:hover,
.budget-page .money-wealth-breakdown-item.active{
  background:rgba(255,255,255,.027);
}
.budget-page .money-wealth-breakdown-item.investing:hover,
.budget-page .money-wealth-breakdown-item.investing.active{
  box-shadow:inset 0 -2px rgba(230,190,90,.58);
}
.budget-page .money-wealth-breakdown-item.savings:hover,
.budget-page .money-wealth-breakdown-item.savings.active{
  box-shadow:inset 0 -2px rgba(82,205,143,.55);
}
.budget-page .money-wealth-breakdown-item:focus-visible{
  position:relative;
  z-index:1;
  outline:2px solid #8ebde0;
  outline-offset:-2px;
}
.budget-page .money-wealth-focus-card .money-wealth-live[hidden]{display:none}

@media(max-width:700px){
  .budget-page .money-wealth-band.money-wealth-focus-card{
    margin-top:12px;
    padding:19px 16px 17px;
  }
  .budget-page .money-wealth-focus-card .money-wealth-summary{gap:17px}
  .budget-page .money-wealth-focus-card .money-wealth-summary-head{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:12px;
  }
  .budget-page .money-wealth-primary{gap:7px}
  .budget-page .money-wealth-label{
    font-size:17px;
    letter-spacing:.095em;
  }
  .budget-page .money-wealth-amount{gap:6px}
  .budget-page .money-wealth-amount b{font-size:38px}
  .budget-page .money-wealth-amount small{font-size:10px}
  .budget-page .money-wealth-total-rate{
    min-width:88px;
    padding:1px 0 2px 12px;
  }
  .budget-page .money-wealth-total-rate strong{font-size:28px}
  .budget-page .money-wealth-total-rate small{
    max-width:12ch;
    font-size:8.5px;
    line-height:1.25;
  }
  .budget-page .money-wealth-track-wrap{gap:12px}
  .budget-page .money-wealth-focus-card .money-wealth-mix{height:12px}
  .budget-page .money-wealth-breakdown{
    grid-template-columns:minmax(0,1fr);
  }
  .budget-page .money-wealth-breakdown-item,
  .budget-page .money-wealth-breakdown-item + .money-wealth-breakdown-item{
    grid-template-columns:minmax(0,1fr) auto;
    gap:5px 12px;
    padding:14px 2px 13px;
    border-left:0;
  }
  .budget-page .money-wealth-breakdown-item + .money-wealth-breakdown-item{
    border-top:1px solid rgba(229,237,242,.11);
  }
  .budget-page .money-wealth-breakdown-title > span{font-size:13px}
  .budget-page .money-wealth-breakdown-title small{font-size:9px}
  .budget-page .money-wealth-breakdown-item > strong{font-size:27px}
  .budget-page .money-wealth-source{
    font-size:9.5px;
    white-space:normal;
  }
}

@media(max-width:370px){
  .budget-page .money-wealth-label{font-size:15.5px}
  .budget-page .money-wealth-amount b{font-size:34px}
  .budget-page .money-wealth-total-rate strong{font-size:25px}
  .budget-page .money-wealth-breakdown-item > strong{font-size:25px}
}

@media(prefers-reduced-motion:reduce){
  .budget-page .money-wealth-breakdown-item{transition:none}
}

/* ---------- v425: one linked story for monthly allocation ---------- */
#budget-live .money-flow-experience{
  grid-template-columns:minmax(360px,1.08fr) minmax(320px,.92fr);
}
.money-flow-right.money-flow-right-condensed{
  align-self:center;
  align-content:center;
  grid-template-rows:auto auto;
  gap:0;
}
.money-flow-right-condensed .money-flow-key-row{
  min-height:104px;
  padding:18px 10px;
}
.money-flow-linked-guide{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  width:100%;
  min-height:88px;
  padding:17px 10px;
  border:0;
  border-bottom:1px solid rgba(229,237,242,.13);
  appearance:none;
  background:linear-gradient(90deg,rgba(230,190,90,.065),rgba(74,203,143,.055) 72%,transparent);
  color:#f7f4ec;
  text-align:left;
  cursor:pointer;
  transition:background-color .2s ease,padding .2s ease;
}
.money-flow-linked-guide > span{
  display:grid;
  gap:5px;
}
.money-flow-linked-guide small{
  color:#f3d67d;
  font-size:10px;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.money-flow-linked-guide b{
  font-size:14px;
  font-weight:780;
  line-height:1.35;
}
.money-flow-linked-guide i{
  color:#f3d67d;
  font-size:22px;
  font-style:normal;
  line-height:1;
  transition:transform .2s ease;
}
.money-flow-linked-guide:hover,
.money-flow-linked-guide:focus-visible{
  padding-right:7px;
  padding-left:13px;
  outline:0;
  background:linear-gradient(90deg,rgba(230,190,90,.11),rgba(74,203,143,.08) 72%,transparent);
}
.money-flow-linked-guide:hover i,
.money-flow-linked-guide:focus-visible i{transform:translateY(3px)}

.budget-page .money-wealth-focus-card{
  scroll-margin-block:clamp(76px,10vh,124px);
  transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.budget-page .money-wealth-focus-card:focus{outline:0}
.budget-page .money-wealth-focus-card:focus-visible{
  outline:2px solid rgba(136,190,230,.78);
  outline-offset:4px;
}
.budget-page .money-wealth-focus-card.has-linked-focus.is-investing-focus{
  border-color:rgba(242,210,120,.60);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 26px 64px -42px rgba(230,190,90,.78);
}
.budget-page .money-wealth-focus-card.has-linked-focus.is-savings-focus{
  border-color:rgba(107,218,157,.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 26px 64px -42px rgba(70,199,139,.72);
}
.budget-page .money-wealth-focus-card.has-linked-focus .money-wealth-breakdown-item:not(.active){
  opacity:.58;
}
.budget-page .money-wealth-focus-card .money-wealth-breakdown-item{
  transition:opacity .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.budget-page .money-wealth-focus-card .money-wealth-breakdown-item.active{
  opacity:1;
  background:linear-gradient(90deg,rgba(255,255,255,.038),transparent 84%);
}
.budget-page .money-wealth-focus-card.linked-attention{
  animation:moneyWealthAttention .82s ease both;
}
@keyframes moneyWealthAttention{
  0%,100%{transform:translateY(0)}
  42%{transform:translateY(-3px)}
}

@media(max-width:1180px){
  #budget-live .money-flow-experience{grid-template-columns:1fr}
  .money-flow-right.money-flow-right-condensed{
    width:min(660px,100%);
    justify-self:center;
  }
}
@media(max-width:560px){
  .money-flow-right-condensed .money-flow-key-row{
    min-height:74px;
    padding:12px 6px;
  }
  .money-flow-linked-guide{
    min-height:68px;
    padding:12px 6px;
  }
  .money-flow-linked-guide b{font-size:12.5px}
  .money-flow-linked-guide small{font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){
  .money-flow-linked-guide,
  .money-flow-linked-guide i,
  .budget-page .money-wealth-focus-card,
  .budget-page .money-wealth-focus-card .money-wealth-breakdown-item{transition:none}
  .budget-page .money-wealth-focus-card.linked-attention{animation:none}
}

/* ---------- v427: chart-led monthly allocation navigator ---------- */
#budget-live .money-flow-experience.money-flow-experience-solo{
  display:block;
  min-height:0;
  padding:clamp(22px,3.4vw,48px);
}
#budget-live .money-flow-experience-solo .money-flow-viz{
  width:min(760px,100%);
  min-height:0;
  margin:0 auto;
  padding:0;
  display:grid;
  grid-template-rows:auto auto;
  justify-items:center;
  gap:clamp(20px,2.4vw,30px);
}
#budget-live .money-flow-experience-solo .money-flow-chart-shell{
  width:min(520px,72vw);
  aspect-ratio:1;
  display:grid;
  place-items:center;
  position:relative;
  isolation:isolate;
}
#budget-live .money-flow-experience-solo .money-flow-donut{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  position:relative;
}
#budget-live .money-flow-experience-solo .money-flow-donut .donut-chart,
#budget-live .money-flow-experience-solo .money-flow-donut .chart{
  display:block;
  width:100%;
  height:auto;
  max-width:none!important;
  margin:0!important;
  overflow:visible;
  filter:
    drop-shadow(0 30px 44px rgba(0,0,0,.35))
    drop-shadow(0 0 24px rgba(111,171,209,.08));
}
#budget-live .money-flow-experience-solo .money-flow-focus{
  position:relative;
  width:min(640px,100%);
  min-height:124px;
  margin:0;
  padding:18px 22px 17px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  align-content:center;
  gap:6px;
  overflow:hidden;
  border:1px solid rgba(149,193,221,.18);
  border-radius:8px;
  background:
    radial-gradient(circle at 50% 0,rgba(115,180,216,.11),transparent 64%),
    linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 26px 56px -45px rgba(0,0,0,.86);
  text-align:center;
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
#budget-live .money-flow-experience-solo .money-flow-focus[hidden]{
  display:none!important;
}
#budget-live .money-flow-experience-solo .money-flow-focus::before{
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:var(--flow-color,#78b6d8);
  content:"";
  opacity:.2;
  transition:opacity .2s ease,box-shadow .2s ease;
}
#budget-live .money-flow-experience-solo .money-flow-focus.has-selection{
  border-color:color-mix(in srgb,var(--flow-color,#e6be5a) 42%,transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.065),
    0 28px 62px -46px color-mix(in srgb,var(--flow-color,#e6be5a) 54%,transparent);
}
#budget-live .money-flow-experience-solo .money-flow-focus.has-selection::before{
  opacity:.92;
  box-shadow:0 0 20px color-mix(in srgb,var(--flow-color,#e6be5a) 56%,transparent);
}
#budget-live .money-flow-experience-solo .money-flow-focus-kicker{
  color:var(--flow-color,#a7cded);
  font-size:10px;
  letter-spacing:.15em;
}
#budget-live .money-flow-experience-solo .money-flow-focus-label{
  max-width:none;
  color:#f8f5ed;
  font-family:var(--serif);
  font-size:clamp(21px,2.2vw,29px);
  font-weight:700;
  letter-spacing:0;
  line-height:1.06;
  text-align:center;
}
#budget-live .money-flow-experience-solo .money-flow-focus-value{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:11px;
}
#budget-live .money-flow-experience-solo .money-flow-focus-value b{
  color:#fbf8f0;
  font-family:var(--serif);
  font-size:clamp(30px,3.2vw,42px);
  line-height:1;
}
#budget-live .money-flow-experience-solo .money-flow-focus-value em{
  min-width:44px;
  padding:5px 9px;
  border:1px solid color-mix(in srgb,var(--flow-color,#e6be5a) 45%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--flow-color,#e6be5a) 10%,transparent);
  color:var(--flow-color,#e6be5a);
  font-size:10px;
  font-style:normal;
  font-weight:850;
  letter-spacing:.06em;
}
#budget-live .money-flow-experience-solo .money-flow-focus > small{
  grid-column:auto;
  max-width:54ch;
  color:rgba(235,240,243,.66);
  font-size:11.5px;
}
#budget-live .money-flow-experience-solo .money-flow-focus-action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:2px;
  color:#f1d277;
  font-size:10.5px;
  font-weight:820;
  letter-spacing:.02em;
}
#budget-live .money-flow-experience-solo .money-flow-focus-action i{
  font-size:15px;
  font-style:normal;
  line-height:1;
}
#budget-live .money-flow-experience-solo .money-flow-reset{
  grid-column:auto;
  justify-self:center;
  margin-top:0;
  padding:4px 0 0;
}
#budget-flow-donut .donut-seg{
  transition:filter .2s ease,opacity .2s ease,stroke-width .2s ease;
}
#budget-flow-donut .donut-seg:hover,
#budget-flow-donut .donut-seg:focus-visible{
  filter:brightness(1.1) drop-shadow(0 0 6px currentColor);
}
.budget-page #budget-expense-composition{
  scroll-margin-block:clamp(76px,10vh,124px);
  transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.budget-page #budget-expense-composition:focus{outline:0}
.budget-page #budget-expense-composition:focus-visible{
  outline:2px solid rgba(237,122,102,.74);
  outline-offset:4px;
}
.budget-page #budget-expense-composition.linked-attention{
  animation:expenseDestinationAttention .86s ease both;
}
@keyframes expenseDestinationAttention{
  0%,100%{
    transform:translateY(0);
    border-color:rgba(121,181,216,.18);
  }
  42%{
    transform:translateY(-3px);
    border-color:rgba(239,122,102,.68);
    box-shadow:0 34px 80px -48px rgba(239,122,102,.28);
  }
}

@media(max-width:700px){
  #budget-live .money-flow-experience.money-flow-experience-solo{
    margin-top:15px;
    padding:20px 12px 18px;
  }
  #budget-live .money-flow-experience-solo .money-flow-viz{gap:17px}
  #budget-live .money-flow-experience-solo .money-flow-chart-shell{
    width:min(350px,91vw);
  }
  #budget-live .money-flow-experience-solo .money-flow-focus{
    min-height:118px;
    padding:16px 14px 15px;
    gap:5px;
  }
  #budget-live .money-flow-experience-solo .money-flow-focus-label{font-size:21px}
  #budget-live .money-flow-experience-solo .money-flow-focus-value b{font-size:32px}
  #budget-live .money-flow-experience-solo .money-flow-focus > small{
    max-width:34ch;
    font-size:10.5px;
  }
  #budget-live .money-flow-experience-solo .money-flow-focus-action{font-size:10px}
}
@media(max-width:370px){
  #budget-live .money-flow-experience-solo .money-flow-chart-shell{width:min(318px,92vw)}
  #budget-live .money-flow-experience-solo .money-flow-focus{padding-inline:11px}
  #budget-live .money-flow-experience-solo .money-flow-focus-value b{font-size:29px}
}
@media(prefers-reduced-motion:reduce){
  #budget-live .money-flow-experience-solo .money-flow-focus,
  #budget-live .money-flow-experience-solo .money-flow-focus::before,
  #budget-flow-donut .donut-seg,
  .budget-page #budget-expense-composition{transition:none}
  .budget-page #budget-expense-composition.linked-attention{animation:none}
}

/* ---------- v433: one compact, chart-led Budget composition ---------- */
.budget-page .expense-composition-card{
  margin-top:2px;
  padding:clamp(20px,2.2vw,30px);
}
.budget-page .expense-composition-card::before{
  height:1px;
  background:linear-gradient(90deg,transparent 0%,#d6aa45 18%,#f0d98b 50%,#d6aa45 82%,transparent 100%);
  opacity:.9;
}
.budget-page .expense-composition-head{
  align-items:flex-start;
  gap:24px;
  padding-bottom:16px;
}
.budget-page .expense-composition-heading{
  display:grid;
  min-width:0;
  gap:5px;
}
.budget-page .expense-composition-heading .card-eyebrow{color:#e9c965}
.budget-page .expense-composition-heading h2{
  font-size:clamp(25px,2.25vw,34px);
}
.budget-page .expense-composition-heading p{
  max-width:58ch;
  color:rgba(238,242,244,.62);
  font-size:12px;
  line-height:1.45;
  text-align:left;
}
.budget-page .expense-composition-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  flex:0 0 auto;
}
.budget-page .expense-composition-actions .add-row{
  color:#efd277;
  white-space:nowrap;
}
.budget-page .expense-composition-context{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:16px;
  overflow:hidden;
  border:1px solid rgba(153,191,215,.13);
  border-radius:7px;
  background:rgba(3,14,26,.2);
}
.budget-page .expense-composition-context>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  gap:3px 12px;
  min-width:0;
  padding:13px 15px 12px;
  border-right:1px solid rgba(153,191,215,.11);
}
.budget-page .expense-composition-context>div:last-child{border-right:0}
.budget-page .expense-composition-context span{
  color:rgba(225,233,239,.56);
  font-size:9px;
  font-weight:850;
  letter-spacing:.1em;
  line-height:1.25;
  text-transform:uppercase;
}
.budget-page .expense-composition-context b{
  color:#fbf8f0;
  font-family:var(--serif);
  font-size:clamp(20px,1.7vw,27px);
  line-height:1;
  white-space:nowrap;
}
.budget-page .expense-composition-context>div:nth-child(2) b{color:#ef8b79}
.budget-page .expense-composition-context>div:nth-child(3) b{color:#86d9aa}
.budget-page .expense-composition-context small{
  grid-column:1 / -1;
  overflow:hidden;
  color:rgba(225,233,239,.48);
  font-size:9.5px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.budget-page .expense-composition-body{
  grid-template-columns:minmax(270px,.82fr) minmax(430px,1.18fr);
  align-items:start;
  gap:clamp(22px,3vw,42px);
  padding-top:20px;
}
.budget-page .expense-composition-viz{
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:1fr;
  place-items:center;
  min-height:0;
  padding:clamp(12px,1.6vw,20px);
}
.budget-page .expense-composition-donut{
  width:100%;
  min-height:0;
}
.budget-page .expense-composition-donut .chart{
  width:min(342px,92%)!important;
  max-width:342px!important;
}
.budget-page .expense-composition-list{max-height:408px}
.budget-page .expense-composition-row{
  min-height:58px;
  padding-block:9px;
}
.budget-page .expense-composition-foot{
  margin-top:15px;
  padding-top:12px;
}
.budget-page .expense-composition-list-toggle{display:none}

@media(max-width:840px){
  .budget-page .expense-composition-body{
    grid-template-columns:1fr;
    gap:17px;
  }
  .budget-page .expense-composition-viz{
    width:min(520px,100%);
    justify-self:center;
  }
  .budget-page .expense-composition-list{max-height:none;overflow:visible}
}
@media(max-width:620px){
  .budget-page .expense-composition-card{
    margin-top:0;
    padding:16px 12px 14px;
  }
  .budget-page .expense-composition-head{
    display:grid;
    gap:11px;
    padding-bottom:13px;
  }
  .budget-page .expense-composition-heading h2{font-size:24px}
  .budget-page .expense-composition-heading p{
    max-width:none;
    font-size:11px;
  }
  .budget-page .expense-composition-actions{
    justify-content:flex-start;
    gap:16px;
  }
  .budget-page .expense-composition-actions .add-row{font-size:10px}
  .budget-page .expense-composition-context{
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-top:13px;
  }
  .budget-page .expense-composition-context>div{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:10px 8px 9px;
  }
  .budget-page .expense-composition-context span{
    min-height:2.5em;
    font-size:7.5px;
  }
  .budget-page .expense-composition-context b{
    max-width:100%;
    font-size:clamp(16px,5vw,21px);
  }
  .budget-page .expense-composition-context small{display:none}
  .budget-page .expense-composition-body{
    gap:13px;
    padding-top:13px;
  }
  .budget-page .expense-composition-viz{
    padding:8px 4px;
  }
  .budget-page .expense-composition-donut .chart{
    width:min(278px,78vw)!important;
    max-width:278px!important;
  }
  .budget-page .expense-composition-panel:not(.is-expanded) .expense-composition-row:nth-child(n+6){
    display:none;
  }
  .budget-page .expense-composition-list-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:44px;
    margin-top:7px;
    padding:10px 3px;
    border:0;
    border-top:1px solid rgba(255,255,255,.12);
    background:transparent;
    color:#efd277;
    cursor:pointer;
    font:800 10.5px/1.2 var(--sans);
  }
  .budget-page .expense-composition-list-toggle i{
    font-size:16px;
    font-style:normal;
    transition:transform .18s ease;
  }
  .budget-page .expense-composition-panel.is-expanded .expense-composition-list-toggle i{
    transform:rotate(180deg);
  }
  .budget-page .expense-composition-foot{
    grid-template-columns:1fr auto;
    gap:8px;
    margin-top:10px;
    padding-top:10px;
  }
  .budget-page .expense-composition-foot p{display:none}
}
@media(max-width:370px){
  .budget-page .expense-composition-context>div{padding-inline:6px}
  .budget-page .expense-composition-context b{font-size:16px}
  .budget-page .expense-composition-donut .chart{
    width:min(252px,77vw)!important;
    max-width:252px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .budget-page .expense-composition-list-toggle i{transition:none}
}

/* ---------- v434: compact spending composition and stable donut focus ---------- */
.budget-page .expense-composition-card{
  padding:clamp(18px,2vw,26px);
}
.budget-page .expense-composition-head{
  align-items:center;
  padding-bottom:13px;
}
.budget-page .expense-composition-heading{
  max-width:680px;
}
.budget-page .expense-composition-heading h2{
  font-size:clamp(24px,2vw,31px);
}
.budget-page .expense-composition-context{
  margin-top:12px;
}
.budget-page .expense-composition-context>div{
  min-height:64px;
  padding:10px 14px 9px;
}
.budget-page .expense-composition-context b{
  font-size:clamp(19px,1.55vw,25px);
}
.budget-page .expense-composition-body{
  grid-template-columns:minmax(250px,.76fr) minmax(420px,1.24fr);
  gap:clamp(20px,2.6vw,36px);
  padding-top:16px;
}
.budget-page .expense-composition-viz{
  align-self:center;
  padding:6px 10px;
  border-color:transparent;
  background:transparent;
}
.budget-page .expense-composition-donut{
  min-height:250px;
}
.budget-page .expense-composition-donut .chart{
  width:min(316px,88%)!important;
  max-width:316px!important;
}
.budget-page .expense-composition-panel{
  align-self:start;
}
.budget-page .expense-composition-row{
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.budget-page .expense-composition-row:hover,
.budget-page .expense-composition-row.active{
  transform:translateX(-2px);
}
.budget-page .expense-composition-foot{
  min-height:32px;
  margin-top:10px;
  padding-top:9px;
}

@media(max-width:840px){
  .budget-page .expense-composition-body{
    grid-template-columns:1fr;
    gap:8px;
  }
  .budget-page .expense-composition-viz{
    padding-block:2px;
  }
  .budget-page .expense-composition-donut{
    min-height:236px;
  }
}
@media(max-width:620px){
  .budget-page .expense-composition-card{
    padding:14px 11px 12px;
  }
  .budget-page .expense-composition-head{
    gap:9px;
    padding-bottom:10px;
  }
  .budget-page .expense-composition-heading h2{
    font-size:22px;
  }
  .budget-page .expense-composition-heading p{
    font-size:10.5px;
  }
  .budget-page .expense-composition-context{
    margin-top:9px;
  }
  .budget-page .expense-composition-context>div{
    min-height:58px;
    padding:8px 7px;
  }
  .budget-page .expense-composition-context span{
    min-height:2.25em;
  }
  .budget-page .expense-composition-body{
    padding-top:9px;
  }
  .budget-page .expense-composition-donut{
    min-height:218px;
  }
  .budget-page .expense-composition-donut .chart{
    width:min(248px,72vw)!important;
    max-width:248px!important;
  }
  .budget-page .expense-composition-panel:not(.is-expanded) .expense-composition-row:nth-child(n+4){
    display:none;
  }
  .budget-page .expense-composition-row:hover,
  .budget-page .expense-composition-row.active{
    transform:none;
  }
  .budget-page .expense-composition-foot{
    margin-top:7px;
  }
}

/* ---------- v435: complete monthly allocation summary ---------- */
.budget-page .expense-composition-context{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.budget-page .expense-composition-context .expense-context-total,
.budget-page .expense-composition-context .expense-context-metric{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  gap:3px 12px;
  min-width:0;
  min-height:64px;
  padding:10px 14px 9px;
  border:0;
  border-right:1px solid rgba(153,191,215,.11);
  background:transparent;
  color:inherit;
  text-align:left;
}
.budget-page .expense-composition-context .expense-context-metric{
  position:relative;
  cursor:pointer;
  transition:background-color .18s ease,box-shadow .18s ease;
}
.budget-page .expense-composition-context .expense-context-metric::after{
  position:absolute;
  inset:auto 12px 0;
  height:2px;
  border-radius:999px;
  background:var(--metric-color);
  content:"";
  opacity:0;
  transform:scaleX(.45);
  transition:opacity .18s ease,transform .18s ease;
}
.budget-page .expense-composition-context .expense-context-metric:hover,
.budget-page .expense-composition-context .expense-context-metric:focus-visible,
.budget-page .expense-composition-context .expense-context-metric.active{
  outline:0;
  background:rgba(255,255,255,.035);
}
.budget-page .expense-composition-context .expense-context-metric:hover::after,
.budget-page .expense-composition-context .expense-context-metric:focus-visible::after,
.budget-page .expense-composition-context .expense-context-metric.active::after{
  opacity:1;
  transform:scaleX(1);
}
.budget-page .expense-composition-context .expense-context-metric.expenses{--metric-color:#f17d6c}
.budget-page .expense-composition-context .expense-context-metric.investing{--metric-color:#efd277}
.budget-page .expense-composition-context .expense-context-metric.savings{--metric-color:#77d9a4}
.budget-page .expense-composition-context .expense-context-metric.expenses b{color:#ef8b79}
.budget-page .expense-composition-context .expense-context-metric.investing b{color:#efd277}
.budget-page .expense-composition-context .expense-context-metric.savings b{color:#86d9aa}
.budget-page .expense-composition-context .expense-context-metric span,
.budget-page .expense-composition-context .expense-context-total span{
  min-height:0;
}
.budget-page .expense-composition-context .expense-context-metric small,
.budget-page .expense-composition-context .expense-context-total small{
  grid-column:1 / -1;
}
.budget-page .expense-composition-context > .expense-allocation-bar{
  grid-column:1 / -1;
  display:grid;
  grid-template-rows:28px;
  flex-direction:row;
  align-items:stretch;
  justify-content:stretch;
  gap:0;
  width:100%;
  height:38px;
  padding:5px;
  border-top:1px solid rgba(153,191,215,.11);
  background:rgba(0,8,17,.22);
}
.budget-page .expense-allocation-segment{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  width:100%;
  margin:0;
  height:28px;
  overflow:hidden;
  border:0;
  border-radius:0;
  color:#07111c;
  cursor:pointer;
  transition:filter .18s ease,transform .18s ease,opacity .18s ease;
}
.budget-page .expense-allocation-segment:not(:last-child){
  box-shadow:inset -2px 0 rgba(3,12,21,.34);
}
.budget-page .expense-allocation-segment:first-child{
  border-radius:5px 0 0 5px;
}
.budget-page .expense-allocation-segment:last-child{
  border-radius:0 5px 5px 0;
}
.budget-page .expense-allocation-segment:disabled{
  pointer-events:none;
}
.budget-page .expense-allocation-segment span{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:5px;
  min-width:0;
  min-height:0;
  padding:0 7px;
  color:rgba(4,13,22,.72);
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.budget-page .expense-allocation-segment span b{
  overflow:hidden;
  font-size:9px;
  letter-spacing:.05em;
  text-overflow:ellipsis;
  text-transform:uppercase;
}
.budget-page .expense-allocation-segment span em{
  flex:0 0 auto;
  font-size:11px;
  font-style:normal;
  letter-spacing:0;
}
.budget-page .expense-allocation-segment.expenses{
  background:linear-gradient(90deg,#d85650,#f28b76);
}
.budget-page .expense-allocation-segment.investing{
  background:linear-gradient(90deg,#d9aa43,#f5dc91);
}
.budget-page .expense-allocation-segment.savings{
  background:linear-gradient(90deg,#35b77b,#91dfb0);
}
.budget-page .expense-allocation-segment:hover,
.budget-page .expense-allocation-segment:focus-visible,
.budget-page .expense-allocation-segment.active{
  z-index:1;
  outline:2px solid rgba(255,255,255,.75);
  outline-offset:1px;
  filter:brightness(1.1);
  transform:scaleY(1.22);
}
.budget-page .expense-composition-card[data-allocation-focus="expenses"] .expense-allocation-segment:not(.expenses),
.budget-page .expense-composition-card[data-allocation-focus="investing"] .expense-allocation-segment:not(.investing),
.budget-page .expense-composition-card[data-allocation-focus="savings"] .expense-allocation-segment:not(.savings){
  opacity:.45;
}
@media(max-width:760px){
  .budget-page .expense-composition-context{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .budget-page .expense-composition-context .expense-context-total,
  .budget-page .expense-composition-context .expense-context-metric{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    min-height:62px;
    padding:9px 10px;
  }
  .budget-page .expense-composition-context .expense-context-metric:nth-child(2){
    border-right:0;
  }
  .budget-page .expense-composition-context .expense-context-metric:nth-child(3),
  .budget-page .expense-composition-context .expense-context-metric:nth-child(4){
    border-top:1px solid rgba(153,191,215,.11);
  }
  .budget-page .expense-composition-context .expense-context-metric:nth-child(4){
    border-right:0;
  }
  .budget-page .expense-composition-context .expense-context-metric small,
  .budget-page .expense-composition-context .expense-context-total small{
    display:block;
    max-width:100%;
    font-size:7.5px;
    white-space:normal;
  }
  .budget-page .expense-composition-context > .expense-allocation-bar{
    display:grid;
    grid-template-rows:26px;
    flex-direction:row;
    align-items:stretch;
    height:36px;
    padding:5px 4px;
  }
  .budget-page .expense-allocation-segment{
    height:26px;
  }
  .budget-page .expense-allocation-segment span{
    gap:2px;
    padding:0 3px;
  }
  .budget-page .expense-allocation-segment span b{
    font-size:7px;
    letter-spacing:.02em;
  }
  .budget-page .expense-allocation-segment span em{
    font-size:10px;
  }
}
@media(max-width:430px){
  .budget-page .expense-allocation-segment span b{
    display:none;
  }
  .budget-page .expense-allocation-segment span em{
    font-size:11px;
  }
}
@media(prefers-reduced-motion:reduce){
  .budget-page .expense-composition-context .expense-context-metric,
  .budget-page .expense-composition-context .expense-context-metric::after,
  .budget-page .expense-allocation-segment{
    transition:none;
  }
}

/* ---------- v439: monthly total hierarchy ---------- */
.budget-page .expense-composition-context{
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:
    linear-gradient(180deg,rgba(17,40,61,.62),rgba(3,14,26,.26));
}
.budget-page .expense-composition-context .expense-context-total{
  position:relative;
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:4px 22px;
  min-height:94px;
  padding:15px 18px 25px;
  border:0;
  border-bottom:1px solid rgba(153,191,215,.14);
  background:
    radial-gradient(circle at 50% 0,rgba(230,190,90,.09),transparent 48%),
    rgba(2,14,26,.22);
}
.budget-page .expense-context-total-copy,
.budget-page .expense-context-total-value{
  display:grid;
  gap:4px;
  min-width:0;
}
.budget-page .expense-context-total-value{
  justify-items:end;
  text-align:right;
}
.budget-page .expense-composition-context .expense-context-total span{
  color:#e9c965;
  font-size:10px;
  letter-spacing:.13em;
}
.budget-page .expense-composition-context .expense-context-total b{
  font-size:clamp(30px,3vw,43px);
  color:#fbf8f0;
}
.budget-page .expense-composition-context .expense-context-total small{
  display:block;
  grid-column:auto;
  overflow:visible;
  font-size:10px;
  text-overflow:clip;
  white-space:normal;
}
.budget-page .expense-context-total-value small{
  color:rgba(134,217,170,.72);
  font-weight:800;
  letter-spacing:.04em;
}
.budget-page .expense-context-total-value small.over{
  color:#f28c82;
}
.budget-page .expense-context-total-value small.open{
  color:#efd27a;
}
.budget-page .expense-context-total-bridge{
  position:absolute;
  inset:auto 18px 6px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  min-width:0;
}
.budget-page .expense-context-total-bridge i{
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(230,190,90,.32));
}
.budget-page .expense-context-total-bridge i:last-child{
  background:linear-gradient(90deg,rgba(230,190,90,.32),transparent);
}
.budget-page .expense-context-total-bridge span{
  color:rgba(225,233,239,.48);
  font-size:8px;
  letter-spacing:.12em;
}
.budget-page .expense-composition-context .expense-context-metric{
  min-height:76px;
  padding:12px 16px 11px;
}
.budget-page .expense-composition-context .expense-context-metric:nth-of-type(3){
  border-right:0;
}
.budget-page .expense-composition-context > .expense-allocation-bar{
  border-top:1px solid rgba(153,191,215,.08);
}
@media(max-width:760px){
  .budget-page .expense-composition-context{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .budget-page .expense-composition-context .expense-context-total{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    min-height:82px;
    padding:12px 11px 23px;
  }
  .budget-page .expense-composition-context .expense-context-total b{
    font-size:clamp(26px,8vw,34px);
  }
  .budget-page .expense-composition-context .expense-context-total small{
    display:block;
    font-size:8px;
  }
  .budget-page .expense-context-total-bridge{
    inset:auto 10px 5px;
    gap:7px;
  }
  .budget-page .expense-context-total-bridge span{
    min-height:0;
    font-size:6.5px;
    white-space:nowrap;
  }
  .budget-page .expense-composition-context .expense-context-metric{
    min-height:74px;
    padding:10px 8px 9px;
    border-top:0;
    border-right:1px solid rgba(153,191,215,.11);
  }
  .budget-page .expense-composition-context .expense-context-metric:nth-child(2),
  .budget-page .expense-composition-context .expense-context-metric:nth-child(3),
  .budget-page .expense-composition-context .expense-context-metric:nth-child(4){
    border-top:0;
  }
  .budget-page .expense-composition-context .expense-context-metric:nth-child(4){
    border-right:0;
  }
  .budget-page .expense-composition-context .expense-context-metric span{
    min-height:2.45em;
  }
}
@media(max-width:430px){
  .budget-page .expense-composition-context .expense-context-total{
    grid-template-columns:1fr;
    gap:7px;
    padding-bottom:24px;
    text-align:center;
  }
  .budget-page .expense-context-total-copy,
  .budget-page .expense-context-total-value{
    justify-items:center;
    text-align:center;
  }
  .budget-page .expense-context-total-copy small{
    max-width:34ch;
  }
  .budget-page .expense-composition-context .expense-context-metric{
    align-items:center;
    text-align:center;
  }
  .budget-page .expense-composition-context .expense-context-metric span{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    min-height:2.4em;
  }
  .budget-page .expense-composition-context .expense-context-metric b{
    font-size:clamp(15px,4.8vw,20px);
  }
  .budget-page .expense-composition-context .expense-context-metric small{
    text-align:center;
  }
}

/* v444: compact live contribution summary and premium spending-chart interaction */
.money-wealth-builder{
  --wealth-gold:#e9bf57;
  --wealth-gold-soft:#f5dc96;
  --wealth-green:#44c58f;
  --wealth-green-soft:#8ee0bb;
  --wealth-ink:#071a2c;
  --wealth-panel:#102a40;
  position:relative;
  display:grid;
  gap:clamp(24px,3vw,38px);
  overflow:hidden;
  padding:clamp(24px,4vw,52px);
  color:#f8f4ea;
  border:1px solid rgba(221,187,99,.25);
  border-radius:8px;
  background:
    linear-gradient(135deg,rgba(233,191,87,.07),transparent 34%),
    #0b2236;
  box-shadow:0 22px 46px rgba(4,17,29,.18);
}
.money-wealth-builder::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:2px;
  background:linear-gradient(90deg,var(--wealth-gold),var(--wealth-gold-soft) 42%,var(--wealth-green));
}
.money-wealth-builder-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,.32fr);
  gap:clamp(24px,4vw,64px);
  align-items:end;
}
.money-wealth-builder-hero{
  min-width:0;
}
.money-wealth-builder-eyebrow,
.money-wealth-builder-pace > span,
.money-wealth-five-year > span{
  display:block;
  color:#efcc72;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  line-height:1.25;
  text-transform:uppercase;
}
.money-wealth-builder-value-line{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:7px 12px;
  margin-top:8px;
}
.money-wealth-builder-value-line > strong{
  color:#91e1b8;
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(46px,5.4vw,76px);
  font-weight:700;
  line-height:.92;
  letter-spacing:0;
}
.money-wealth-builder-value-line > span{
  margin-bottom:7px;
  color:#e9eef1;
  font-size:15px;
  font-weight:700;
}
.money-wealth-share-graphic{
  flex:0 1 auto;
  align-self:center;
  display:grid;
  grid-template-columns:76px minmax(150px,1fr);
  gap:12px;
  align-items:center;
  min-width:min(100%,282px);
  margin-left:8px;
  padding:7px 15px 7px 8px;
  color:#f8f4ea;
  border:1px solid rgba(233,191,87,.28);
  border-radius:8px;
  background:rgba(255,255,255,.035);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.money-wealth-share-ring{
  position:relative;
  display:grid;
  place-items:center;
  width:76px;
  aspect-ratio:1;
  isolation:isolate;
}
.money-wealth-share-ring svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  transform:rotate(-90deg);
}
.money-wealth-share-track,
.money-wealth-share-segment{
  fill:none;
  stroke-width:9;
}
.money-wealth-share-track{
  stroke:rgba(143,166,182,.18);
}
.money-wealth-share-segment{
  cursor:pointer;
  transition:opacity .16s ease,filter .16s ease,stroke-width .16s ease;
}
.money-wealth-share-segment.investing{
  stroke:var(--wealth-gold);
}
.money-wealth-share-segment.saving{
  stroke:var(--wealth-green);
}
.money-wealth-share-segment:hover,
.money-wealth-share-segment:focus-visible,
.money-wealth-share-segment.is-active{
  stroke-width:11;
  filter:brightness(1.12);
}
.money-wealth-share-segment.is-muted{
  opacity:.34;
}
.money-wealth-share-segment:focus-visible{
  outline:none;
}
.money-wealth-share-ring strong{
  position:relative;
  z-index:1;
  color:#fff6df;
  font-family:var(--font-display,Georgia,serif);
  font-size:20px;
  line-height:1;
  pointer-events:none;
}
.money-wealth-share-copy{
  display:grid;
  gap:3px;
  min-width:0;
  line-height:1.18;
}
.money-wealth-share-copy b{
  color:#f3d783;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.money-wealth-share-copy strong{
  color:#f8f4ea;
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(17px,1.45vw,22px);
  line-height:1.05;
}
.money-wealth-share-copy span{
  color:#bdcbd4;
  font-size:11px;
  font-weight:650;
  line-height:1.3;
}
.money-wealth-builder h2{
  max-width:760px;
  margin:16px 0 6px;
  color:#fffaf0;
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(25px,2.4vw,38px);
  line-height:1.08;
  letter-spacing:0;
}
.money-wealth-builder-hero > p{
  max-width:64ch;
  margin:0;
  color:#b8c7d2;
  font-size:clamp(15px,1.2vw,18px);
  line-height:1.55;
}
.money-wealth-projection-link{
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:100%;
  margin-top:15px;
  padding:0 0 4px;
  color:#f1cf76;
  font:inherit;
  font-size:14px;
  font-weight:800;
  line-height:1.4;
  text-align:left;
  border:0;
  border-bottom:1px solid rgba(241,207,118,.58);
  border-radius:0;
  background:transparent;
  cursor:pointer;
  transition:color .16s ease,border-color .16s ease,transform .16s ease;
}
.money-wealth-projection-link > span{
  flex:0 0 auto;
  transition:transform .16s ease;
}
.money-wealth-projection-link:hover{
  color:#ffe49a;
  border-color:#ffe49a;
}
.money-wealth-projection-link:hover > span{
  transform:translateX(3px);
}
.money-wealth-projection-link:focus-visible{
  outline:2px solid #f8f4ea;
  outline-offset:5px;
}
.money-wealth-builder-pace{
  display:grid;
  gap:5px;
  min-width:0;
  padding:18px 20px;
  border:1px solid rgba(143,190,213,.2);
  border-left:3px solid var(--wealth-gold);
  border-radius:7px;
  background:rgba(255,255,255,.035);
}
.money-wealth-builder-pace strong{
  color:#f8f4ea;
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(26px,2.7vw,42px);
  line-height:1;
}
.money-wealth-builder-pace small{
  color:#9eafbb;
  font-size:12px;
  line-height:1.4;
}
.money-wealth-builder-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-width:0;
  padding:14px 18px;
  border:1px solid rgba(143,190,213,.18);
  border-radius:7px;
  background:rgba(255,255,255,.028);
}
.money-wealth-five-year{
  display:grid;
  grid-template-columns:auto auto;
  gap:3px 14px;
  align-items:baseline;
  min-width:0;
}
.money-wealth-five-year > span{
  grid-column:1;
  grid-row:1;
  color:#9db6c7;
}
.money-wealth-five-year > strong{
  grid-column:2;
  grid-row:1 / span 2;
  color:#f8f4ea;
  font-family:var(--font-display,Georgia,serif);
  font-size:clamp(23px,2.2vw,33px);
  font-weight:700;
  line-height:1;
}
.money-wealth-five-year p{
  grid-column:1;
  grid-row:2;
  margin:0;
  color:#9eafbb;
  font-size:12px;
  line-height:1.45;
}
.money-wealth-assumption{
  margin:0;
  color:#8fa6b6;
  font-size:12px;
  text-align:right;
}
#budget-expense-donut .donut-seg{
  transition:filter .16s ease,opacity .16s ease;
}
#budget-expense-donut .donut-seg:hover,
#budget-expense-donut .donut-seg:focus-visible{
  filter:brightness(1.1) saturate(1.06);
}
#budget-expense-donut .donut-seg:focus-visible{
  outline:3px solid #f8f4ea;
  outline-offset:4px;
}
@media(max-width:760px){
  .money-wealth-builder{
    gap:22px;
    padding:24px 18px;
  }
  .money-wealth-builder-head{
    grid-template-columns:1fr;
  }
  .money-wealth-builder-pace{
    padding:14px 16px;
  }
  .money-wealth-share-graphic{
    flex-basis:100%;
    width:min(100%,340px);
    max-width:100%;
    margin:5px 0 0;
  }
  .money-wealth-builder-foot{
    align-items:flex-start;
  }
  .money-wealth-assumption{
    max-width:26ch;
  }
}
@media(max-width:420px){
  .money-wealth-projection-link{
    display:flex;
    width:100%;
    justify-content:space-between;
    font-size:13px;
  }
  .money-wealth-builder-value-line > strong{
    font-size:clamp(39px,13vw,52px);
  }
  .money-wealth-builder-value-line > span{
    margin-bottom:4px;
    font-size:13px;
  }
  .money-wealth-share-graphic{
    grid-template-columns:68px minmax(0,1fr);
    gap:10px;
    padding:6px 12px 6px 7px;
  }
  .money-wealth-share-ring{
    width:68px;
  }
  .money-wealth-share-ring strong{
    font-size:18px;
  }
  .money-wealth-builder-foot{
    display:grid;
    gap:8px;
  }
  .money-wealth-five-year{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .money-wealth-assumption{
    max-width:none;
    padding-top:8px;
    border-top:1px solid rgba(143,190,213,.14);
    text-align:left;
  }
}
@media(prefers-reduced-motion:reduce){
  #budget-expense-donut .donut-seg,
  .money-wealth-share-segment,
  .money-wealth-projection-link,
  .money-wealth-projection-link > span{
    transition:none;
  }
}
/* Projection-only extra-contribution experiment */
.projection-whatif {
  margin: 0 28px 28px;
  padding: 24px;
  color: #f8f4ea;
  border: 1px solid rgba(230, 190, 90, .28);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(230, 190, 90, .09), transparent 38%),
    rgba(6, 25, 43, .74);
}

.projection-whatif-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  gap: 24px;
  align-items: end;
}

.projection-whatif-kicker {
  display: block;
  margin-bottom: 6px;
  color: #e6be5a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.projection-whatif h3 {
  margin: 0;
  color: #f8f4ea;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.05;
}

.projection-whatif-head p {
  max-width: 62ch;
  margin: 8px 0 0;
  color: #aebfcb;
  line-height: 1.55;
}

.projection-whatif-entry label {
  display: block;
  margin-bottom: 7px;
  color: #cbd7df;
  font-size: 12px;
  font-weight: 800;
}

.projection-extra-money {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(230, 190, 90, .4);
  border-radius: 7px;
  background: #0b1f34;
}

.projection-extra-money > span,
.projection-extra-money > small {
  color: #e6be5a;
  font-weight: 800;
}

.projection-extra-money input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  color: #fffaf0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 25px;
  font-weight: 700;
  text-align: right;
  border: 0;
  outline: 0;
  background: transparent;
}

.projection-extra-money:focus-within {
  border-color: #f1d27d;
  box-shadow: 0 0 0 3px rgba(230, 190, 90, .14);
}

.projection-extra-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.projection-extra-presets button {
  min-height: 36px;
  padding: 7px;
  color: #b8c8d3;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(143, 190, 213, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
}

.projection-extra-presets button:hover,
.projection-extra-presets button[aria-pressed="true"] {
  color: #071b2d;
  border-color: #e6be5a;
  background: #e6be5a;
}

.projection-extra-presets button:focus-visible,
.projection-whatif .linklike:focus-visible {
  outline: 2px solid #f8f4ea;
  outline-offset: 3px;
}

.projection-whatif-results {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr);
  gap: 14px;
  margin-top: 22px;
}

.projection-whatif-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid rgba(143, 190, 213, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
}

.projection-whatif-equation > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.projection-whatif-equation span,
.projection-whatif-impact > span {
  color: #98adbb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projection-whatif-equation strong {
  color: #f8f4ea;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.projection-whatif-revised strong {
  color: #8be2b4;
}

.projection-whatif-arrow {
  color: #e6be5a !important;
  font-size: 22px !important;
}

.projection-whatif-impact {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid rgba(139, 226, 180, .24);
  border-left: 3px solid #62d89b;
  border-radius: 7px;
  background: rgba(25, 105, 77, .12);
}

.projection-whatif-impact strong {
  color: #8be2b4;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.projection-whatif-impact p {
  margin: 2px 0 0;
  color: #c5d3db;
  font-size: 13px;
  line-height: 1.45;
}

.projection-whatif-breakdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(143, 190, 213, .17);
}

.projection-whatif-breakdown > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 15px 18px 2px 0;
}

.projection-whatif-breakdown > span + span {
  padding-left: 18px;
  border-left: 1px solid rgba(143, 190, 213, .17);
}

.projection-whatif-breakdown small {
  color: #93a8b6;
}

.projection-whatif-breakdown b {
  color: #f8f4ea;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.projection-whatif-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(143, 190, 213, .14);
}

.projection-whatif-foot p {
  max-width: 72ch;
  margin: 0;
  color: #879dab;
  font-size: 11.5px;
  line-height: 1.5;
}

.projection-whatif-foot .linklike {
  flex: none;
  color: #f1cf76;
  font-weight: 800;
}

@media (max-width: 760px) {
  .projection-whatif {
    margin: 0 14px 18px;
    padding: 20px 16px;
  }

  .projection-whatif-head,
  .projection-whatif-results {
    grid-template-columns: 1fr;
  }

  .projection-whatif-entry {
    margin-top: 2px;
  }

  .projection-whatif-equation {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .projection-whatif-arrow {
    justify-self: start;
    transform: rotate(90deg);
  }

  .projection-whatif-breakdown {
    grid-template-columns: 1fr;
  }

  .projection-whatif-breakdown > span {
    padding: 12px 0;
  }

  .projection-whatif-breakdown > span + span {
    padding-left: 0;
    border-top: 1px solid rgba(143, 190, 213, .14);
    border-left: 0;
  }

  .projection-whatif-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .projection-extra-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .projection-extra-presets button {
    transition: none;
  }
}

/* v450: expanded interactive investing and saving composition */
.money-wealth-builder-head {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.8vw, 34px);
  align-items: stretch;
}

.money-wealth-builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title copy"
    "title link";
  gap: 5px clamp(24px, 3vw, 46px);
  align-items: end;
  min-width: 0;
  padding: 0 4px clamp(14px, 1.6vw, 20px);
  border-bottom: 1px solid rgba(143, 190, 213, .17);
}

.money-wealth-builder-eyebrow {
  grid-area: eyebrow;
}

.money-wealth-builder h2 {
  grid-area: title;
  max-width: 680px;
  margin: 3px 0 0;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1;
}

.money-wealth-builder-hero > p {
  grid-area: copy;
  max-width: 34ch;
  margin: 0;
  font-size: clamp(14px, 1.05vw, 17px);
}

.money-wealth-builder-hero .money-wealth-projection-link {
  grid-area: link;
  justify-self: start;
  margin-top: 5px;
}

.money-wealth-share-panel {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(300px, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  min-width: 0;
  padding: clamp(20px, 2.6vw, 34px);
  border: 1px solid rgba(143, 190, 213, .2);
  border-radius: 8px;
  background:
    linear-gradient(122deg, rgba(233, 191, 87, .06), transparent 37%),
    rgba(255, 255, 255, .028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 18px 38px rgba(2, 14, 25, .16);
}

.money-wealth-share-graphic {
  display: grid;
  grid-template-columns: 1fr;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  justify-self: center;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.money-wealth-share-ring {
  width: clamp(170px, 15vw, 210px);
}

.money-wealth-share-ring svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.money-wealth-share-track,
.money-wealth-share-segment {
  stroke-width: 14;
}

.money-wealth-share-track {
  stroke: rgba(143, 166, 182, .14);
}

.money-wealth-share-segment {
  cursor: pointer;
  transition: opacity .18s ease, filter .18s ease, stroke-width .18s ease;
}

.money-wealth-share-segment:hover,
.money-wealth-share-segment:focus-visible,
.money-wealth-share-segment.is-active {
  stroke-width: 16;
  filter: brightness(1.08) saturate(1.04);
}

.money-wealth-share-ring-center {
  position: absolute;
  inset: 23%;
  z-index: 2;
  display: grid;
  min-width: 0;
  padding: 10px;
  color: #f8f4ea;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(143, 190, 213, .19);
  border-radius: 50%;
  background: #071a2c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 10px 22px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.money-wealth-share-ring-center strong {
  color: #fff7e5;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(31px, 3vw, 43px);
  line-height: .9;
  pointer-events: none;
}

.money-wealth-share-ring-center span {
  display: block;
  max-width: 9ch;
  margin: 7px auto 0;
  color: #9fb0bc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
  pointer-events: none;
}

.money-wealth-share-ring-center:hover,
.money-wealth-share-ring-center.is-active {
  border-color: rgba(233, 191, 87, .46);
}

.money-wealth-share-ring-center:focus-visible,
.money-wealth-share-category:focus-visible {
  outline: 2px solid #fff7e5;
  outline-offset: 4px;
}

.money-wealth-share-content {
  min-width: 0;
}

.money-wealth-share-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: end;
  min-width: 0;
  padding: 0 4px 19px;
}

.money-wealth-share-copy b {
  grid-column: 1;
  color: #f2cf75;
  font-size: 12px;
  letter-spacing: .11em;
}

.money-wealth-share-copy strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #fffaf0;
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: .94;
  text-align: right;
}

.money-wealth-share-copy span {
  grid-column: 1;
  color: #9eafbb;
  font-size: 12px;
}

.money-wealth-share-categories {
  border-top: 1px solid rgba(143, 190, 213, .16);
}

.money-wealth-share-category {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 14px 4px;
  color: #f8f4ea;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(143, 190, 213, .16);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color .16s ease, opacity .16s ease, padding .16s ease;
}

.money-wealth-share-category:hover,
.money-wealth-share-category.is-active {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, .035);
}

.money-wealth-share-category.is-muted,
.money-wealth-share-segment.is-muted {
  opacity: .34;
}

.money-wealth-share-swatch {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .025);
}

.money-wealth-share-category.investing .money-wealth-share-swatch {
  background: var(--wealth-gold);
}

.money-wealth-share-category.saving .money-wealth-share-swatch {
  background: var(--wealth-green);
}

.money-wealth-share-category > span:not(.money-wealth-share-swatch) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.money-wealth-share-category b {
  color: #f4f1e9;
  font-size: 15px;
  line-height: 1.2;
}

.money-wealth-share-category small {
  color: #8fa2b0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.money-wealth-share-category > strong {
  color: #fffaf0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1;
  text-align: right;
}

.money-wealth-builder-foot {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr) auto;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.money-wealth-builder-pace {
  padding: 16px 20px;
  border: 0;
  border-right: 1px solid rgba(143, 190, 213, .16);
  border-left: 3px solid var(--wealth-gold);
  border-radius: 0;
  background: transparent;
}

.money-wealth-five-year {
  padding: 16px 20px;
}

.money-wealth-assumption {
  padding: 16px 20px;
}

@media (max-width: 1020px) {
  .money-wealth-builder-head {
    grid-template-columns: 1fr;
  }

  .money-wealth-builder-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "title copy"
      "title link";
    gap: 7px 28px;
    align-items: end;
  }

  .money-wealth-builder-hero > * {
    grid-column: auto;
  }

  .money-wealth-projection-link {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    max-width: 100%;
  }

  .money-wealth-share-panel {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .money-wealth-builder {
    padding: 24px 16px;
  }

  .money-wealth-builder-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 2px 16px;
  }

  .money-wealth-builder h2 {
    max-width: 15ch;
    margin-top: 8px;
    font-size: clamp(29px, 9.2vw, 38px);
  }

  .money-wealth-builder-hero > p {
    max-width: 30ch;
    margin-top: 10px;
  }

  .money-wealth-builder-hero .money-wealth-projection-link {
    margin-top: 12px;
  }

  .money-wealth-share-panel {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 20px 16px;
  }

  .money-wealth-share-ring {
    width: min(58vw, 190px);
  }

  .money-wealth-share-copy {
    padding: 0 2px 14px;
  }

  .money-wealth-share-copy strong {
    font-size: clamp(32px, 11vw, 46px);
  }

  .money-wealth-share-category {
    min-height: 66px;
  }

  .money-wealth-builder-foot {
    grid-template-columns: 1fr 1fr;
  }

  .money-wealth-builder-pace,
  .money-wealth-five-year {
    min-height: 100%;
  }

  .money-wealth-five-year {
    display: grid;
    grid-template-columns: 1fr;
  }

  .money-wealth-five-year > span,
  .money-wealth-five-year > strong,
  .money-wealth-five-year p {
    grid-column: 1;
    grid-row: auto;
  }

  .money-wealth-assumption {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(143, 190, 213, .16);
    text-align: left;
  }
}

@media (max-width: 390px) {
  .money-wealth-share-panel {
    padding: 18px 13px;
  }

  .money-wealth-share-ring {
    width: min(62vw, 170px);
  }

  .money-wealth-share-copy {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .money-wealth-share-copy b,
  .money-wealth-share-copy strong,
  .money-wealth-share-copy span {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .money-wealth-share-copy strong {
    margin-top: 4px;
  }

  .money-wealth-share-category {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .money-wealth-share-category > strong {
    font-size: 21px;
  }

  .money-wealth-builder-foot {
    grid-template-columns: 1fr;
  }

  .money-wealth-builder-pace {
    border-right: 0;
    border-bottom: 1px solid rgba(143, 190, 213, .16);
  }

  .money-wealth-five-year {
    border-bottom: 1px solid rgba(143, 190, 213, .16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .money-wealth-share-segment,
  .money-wealth-share-category {
    transition: none;
  }
}

/* v453: compact wealth-building composition and live investment-source ledger */
.money-wealth-share-panel {
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.money-wealth-share-graphic {
  align-self: center;
  gap: 16px;
}

.money-wealth-share-ring {
  position: relative;
  width: clamp(200px, 18vw, 236px);
  aspect-ratio: 1;
}

.money-wealth-share-ring-center {
  inset: 24%;
}

.money-wealth-share-ring-center strong {
  max-width: 100%;
  font-size: clamp(22px, 2.25vw, 34px);
  letter-spacing: 0;
  white-space: nowrap;
}

.money-wealth-share-ring-center span {
  max-width: 12ch;
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: .1em;
}

.money-wealth-share-percentage {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 14px;
  color: #d7e3ea;
  border: 1px solid rgba(233, 191, 87, .25);
  border-radius: 999px;
  background: rgba(4, 21, 36, .54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.money-wealth-share-percentage strong {
  color: #f2cf75;
  font-family: var(--font-display, Georgia, serif);
  font-size: 22px;
  line-height: 1;
}

.money-wealth-share-percentage span {
  color: #9fb0bc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.money-wealth-share-content {
  display: grid;
  gap: 0;
  width: 100%;
}

.money-investing-sources-head span {
  color: #f2cf75;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.money-wealth-share-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 17px;
  border-top: 0;
}

.money-wealth-share-category {
  grid-template-columns: 10px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 11px;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid rgba(143, 190, 213, .17);
  border-radius: 7px;
  background: rgba(4, 20, 34, .34);
}

.money-wealth-share-category:hover,
.money-wealth-share-category.is-active {
  padding: 13px 14px;
  border-color: rgba(233, 191, 87, .34);
  background: rgba(255, 255, 255, .045);
}

.money-wealth-share-category.saving:hover,
.money-wealth-share-category.saving.is-active {
  border-color: rgba(72, 198, 146, .34);
}

.money-wealth-share-category .money-wealth-share-swatch {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.money-wealth-share-category > span:not(.money-wealth-share-swatch) {
  grid-column: 2;
  grid-row: 1;
}

.money-wealth-share-category > strong {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-left: 21px;
  font-size: clamp(25px, 2.3vw, 33px);
  text-align: left;
}

.money-investing-sources {
  padding-top: 16px;
  border-top: 1px solid rgba(143, 190, 213, .16);
}

.money-investing-sources-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 11px;
}

.money-investing-sources-head > div {
  display: grid;
  gap: 4px;
}

.money-investing-sources-head b {
  color: #f5f1e8;
  font-size: 14px;
  line-height: 1.2;
}

.money-investing-sources-head > small {
  flex: 0 0 auto;
  color: #91a3af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.money-investing-source-list {
  display: grid;
}

.money-investing-source {
  display: grid;
  grid-template-columns: 9px minmax(130px, 1fr) minmax(110px, .82fr) auto;
  gap: 10px 13px;
  align-items: center;
  min-width: 0;
  padding: 11px 4px;
  border-top: 1px solid rgba(143, 190, 213, .11);
}

.money-investing-source-mark {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #edc65f;
  box-shadow: 0 0 0 4px rgba(237, 198, 95, .07);
}

.money-investing-source-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.money-investing-source-name b {
  overflow: hidden;
  color: #e8edf0;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-investing-source-name small {
  color: #8499a8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.money-investing-source-meter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(48px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.money-investing-source-meter::before {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: rgba(143, 190, 213, .13);
}

.money-investing-source-meter i {
  grid-column: 1;
  grid-row: 1;
  width: var(--source-share);
  max-width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9aa45, #f3d982);
}

.money-investing-source-meter small {
  grid-column: 2;
  grid-row: 1;
  color: #a7b5be;
  font-size: 10px;
  font-weight: 800;
}

.money-investing-source > strong {
  min-width: 72px;
  color: #fff8e8;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.money-investing-source-empty {
  margin: 0;
  padding: 14px 4px;
  color: #9fb0bc;
  font-size: 12px;
  border-top: 1px solid rgba(143, 190, 213, .11);
}

@media (max-width: 900px) {
  .money-wealth-share-panel {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 24px;
  }

  .money-investing-source {
    grid-template-columns: 9px minmax(100px, 1fr) minmax(84px, .65fr) auto;
  }
}

@media (max-width: 680px) {
  .money-wealth-share-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .money-wealth-share-graphic {
    gap: 13px;
  }

  .money-wealth-share-ring {
    width: min(64vw, 205px);
  }

  .money-wealth-share-percentage {
    padding: 8px 12px;
  }

  .money-wealth-share-categories {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 0;
  }

  .money-wealth-share-category {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    min-height: 72px;
  }

  .money-wealth-share-category .money-wealth-share-swatch,
  .money-wealth-share-category > span:not(.money-wealth-share-swatch),
  .money-wealth-share-category > strong {
    grid-row: 1;
  }

  .money-wealth-share-category > strong {
    grid-column: 3;
    padding-left: 0;
    font-size: clamp(23px, 8vw, 30px);
    text-align: right;
  }

  .money-investing-sources {
    padding-top: 14px;
  }

  .money-investing-source {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 12px 2px;
  }

  .money-investing-source-mark {
    grid-column: 1;
    grid-row: 1;
  }

  .money-investing-source-name {
    grid-column: 2;
    grid-row: 1;
  }

  .money-investing-source > strong {
    grid-column: 3;
    grid-row: 1;
  }

  .money-investing-source-meter {
    grid-column: 2 / -1;
    grid-row: 2;
  }
}

@media (max-width: 390px) {
  .money-wealth-share-panel {
    padding: 18px 12px;
  }

  .money-wealth-share-ring {
    width: min(66vw, 184px);
  }

  .money-wealth-share-ring-center strong {
    font-size: 21px;
  }

  .money-wealth-share-percentage strong {
    font-size: 19px;
  }

  .money-wealth-share-category {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 10px;
  }

  .money-wealth-share-category:hover,
  .money-wealth-share-category.is-active {
    padding: 12px 10px;
  }

  .money-wealth-share-category b {
    font-size: 13px;
  }

  .money-wealth-share-category small {
    font-size: 9px;
  }

  .money-wealth-share-category > strong {
    font-size: 20px;
  }

  .money-investing-sources-head {
    align-items: start;
  }

  .money-investing-source-name b {
    white-space: normal;
  }

  .money-investing-source > strong {
    min-width: 62px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .money-investing-source-meter i {
    transition: none;
  }
}

/* Budget compositions: carry the Net Worth visual language into cash flow. */
.expense-composition-primary,
.money-wealth-builder {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(143, 190, 213, .22);
  background:
    radial-gradient(circle at 8% 12%, rgba(67, 139, 159, .11), transparent 31%),
    linear-gradient(135deg, #0b1c2d 0%, #10283e 100%);
  box-shadow: 0 24px 54px rgba(5, 17, 29, .16);
}

.expense-composition-primary::before,
.money-wealth-builder::before {
  display: block;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #e4bd5f 22%, #f3d98b 50%, #e4bd5f 78%, transparent);
  opacity: .9;
}

.expense-composition-primary .expense-composition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  gap: 36px;
  align-items: end;
  padding: 34px 40px 27px;
  border-bottom: 1px solid rgba(143, 190, 213, .15);
}

.expense-composition-primary .expense-composition-heading {
  min-width: 0;
}

.expense-composition-primary .expense-composition-heading .card-eyebrow,
.money-wealth-builder-eyebrow,
.money-wealth-builder-summary > span,
.expense-composition-head-summary > span {
  color: #e8c66f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.expense-composition-primary .expense-composition-heading h2 {
  max-width: 16ch;
  margin: 8px 0 9px;
  color: #fbf7ee;
  font-family: var(--font-display);
  font-size: clamp(33px, 3.3vw, 50px);
  line-height: 1;
  letter-spacing: 0;
}

.expense-composition-primary .expense-composition-heading p {
  max-width: 50ch;
  margin: 0;
  color: #aebdca;
  font-size: 15px;
  line-height: 1.55;
}

.expense-composition-head-summary {
  display: grid;
  min-width: 250px;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.expense-composition-head-summary > strong {
  color: #ff8a79;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 700;
  line-height: 1;
}

.expense-composition-head-summary > small {
  color: #8fa3b2;
  font-size: 12px;
  font-weight: 750;
}

.expense-composition-primary .expense-composition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  justify-content: flex-end;
  margin-top: 10px;
}

.expense-composition-primary .expense-composition-actions .add-row {
  padding: 2px 0;
  color: #eccb72;
  font-size: 12px;
  font-weight: 800;
  border: 0;
  border-bottom: 1px solid rgba(236, 203, 114, .55);
  border-radius: 0;
  background: transparent;
}

.expense-composition-primary .expense-composition-body {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(430px, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: 34px 40px 30px;
}

.expense-composition-primary .expense-composition-viz {
  display: grid;
  min-width: 0;
  min-height: 370px;
  place-items: center;
}

.expense-composition-primary .expense-composition-donut {
  width: min(100%, 370px);
  min-width: 0;
  aspect-ratio: 1;
}

.expense-composition-primary .expense-composition-panel {
  min-width: 0;
}

.expense-composition-primary .expense-composition-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 0 4px 10px;
  color: #8096a7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(143, 190, 213, .18);
}

.expense-composition-primary .expense-composition-list {
  max-height: 430px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(232, 198, 111, .55) transparent;
  scrollbar-width: thin;
}

.expense-composition-primary .expense-composition-row {
  display: grid;
  grid-template-columns: 10px minmax(128px, 1fr) minmax(70px, .48fr) minmax(100px, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 13px 4px;
  color: #eef2f2;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(143, 190, 213, .14);
  border-radius: 0;
  background: transparent;
  transition: background-color .18s ease, transform .18s ease;
}

.expense-composition-primary .expense-composition-row:hover,
.expense-composition-primary .expense-composition-row:focus-visible,
.expense-composition-primary .expense-composition-row.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, .055), transparent);
  transform: translateX(3px);
}

.expense-composition-primary .expense-composition-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--expense-gradient);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--expense-color) 14%, transparent);
}

.expense-composition-primary .expense-composition-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.expense-composition-primary .expense-composition-copy b {
  overflow: hidden;
  color: #f3f4f1;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expense-composition-primary .expense-composition-copy small,
.expense-composition-primary .expense-composition-numbers small {
  color: #8498a7;
  font-size: 10px;
  font-weight: 750;
}

.expense-composition-primary .expense-composition-meter {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(143, 190, 213, .13);
}

.expense-composition-primary .expense-composition-meter i {
  display: block;
  width: var(--expense-share);
  height: 100%;
  border-radius: inherit;
  background: var(--expense-gradient);
}

.expense-composition-primary .expense-composition-numbers {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.expense-composition-primary .expense-composition-numbers strong {
  color: #fff8ec;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.expense-composition-primary .expense-composition-list-toggle {
  width: 100%;
  margin-top: 10px;
  padding: 11px 0;
  color: #e8c66f;
  border: 0;
  border-top: 1px solid rgba(143, 190, 213, .15);
  background: transparent;
}

.expense-composition-primary .expense-composition-context {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) auto minmax(145px, .8fr) auto minmax(145px, .8fr) auto minmax(145px, .8fr);
  gap: 13px;
  align-items: center;
  margin: 0;
  padding: 21px 40px 24px;
  border-top: 1px solid rgba(143, 190, 213, .16);
  background: rgba(4, 16, 27, .22);
}

.expense-composition-primary .expense-context-total,
.expense-composition-primary .expense-context-metric {
  min-width: 0;
}

.expense-composition-primary .expense-context-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.expense-composition-primary .expense-context-total-copy,
.expense-composition-primary .expense-context-total-value,
.expense-composition-primary .expense-context-metric {
  display: grid;
  gap: 3px;
}

.expense-composition-primary .expense-context-total-copy > span,
.expense-composition-primary .expense-context-metric > span {
  color: #91a5b4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.expense-composition-primary .expense-context-total-copy small,
.expense-composition-primary .expense-context-total-value small,
.expense-composition-primary .expense-context-metric small {
  color: #7f93a2;
  font-size: 9px;
  font-weight: 700;
}

.expense-composition-primary .expense-context-total-value {
  justify-items: end;
}

.expense-composition-primary .expense-context-total-value b,
.expense-composition-primary .expense-context-metric b {
  color: #fff8ea;
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1;
  white-space: nowrap;
}

.expense-composition-primary .expense-context-total-value small.balanced {
  color: #75d4ac;
}

.expense-composition-primary .expense-context-total-value small.over {
  color: #ff897e;
}

.expense-composition-primary .expense-context-operator {
  color: rgba(232, 198, 111, .68);
  font-size: 19px;
  font-weight: 700;
}

.expense-composition-primary .expense-context-metric {
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
}

.expense-composition-primary .expense-context-metric.expenses b {
  color: #ff8877;
}

.expense-composition-primary .expense-context-metric.investing b {
  color: #efd174;
}

.expense-composition-primary .expense-context-metric.savings b {
  color: #79d7aa;
}

.expense-composition-primary .expense-allocation-bar {
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  height: 11px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(143, 190, 213, .12);
}

.expense-composition-primary .expense-allocation-segment {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #7f93a2;
}

.expense-composition-primary .expense-allocation-segment.expenses {
  background: linear-gradient(90deg, #dc5f57, #f18a76);
}

.expense-composition-primary .expense-allocation-segment.investing {
  background: linear-gradient(90deg, #d9a940, #f2d986);
}

.expense-composition-primary .expense-allocation-segment.savings {
  background: linear-gradient(90deg, #33aa80, #82d8ae);
}

.expense-composition-primary .expense-allocation-segment span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.expense-composition-primary .expense-composition-foot {
  display: flex;
  gap: 14px 22px;
  align-items: center;
  padding: 14px 40px 17px;
  color: #8196a6;
  font-size: 10px;
  border-top: 1px solid rgba(143, 190, 213, .12);
}

.expense-composition-primary .expense-composition-foot > span {
  color: #e8c66f;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.expense-composition-primary .expense-composition-foot p {
  flex: 1;
  margin: 0;
}

.expense-composition-primary .expense-composition-reset {
  padding: 0;
  color: #bdd5e4;
  font-size: 10px;
  border: 0;
  border-bottom: 1px solid rgba(189, 213, 228, .45);
  border-radius: 0;
  background: transparent;
}

.money-wealth-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 28px 48px;
  align-items: end;
  padding: 34px 40px 0;
}

.money-wealth-builder-hero h2 {
  max-width: 15ch;
  margin: 8px 0 8px;
  color: #fbf7ee;
  font-family: var(--font-display);
  font-size: clamp(33px, 3.3vw, 50px);
  line-height: 1;
}

.money-wealth-builder-hero p {
  max-width: 46ch;
  margin: 0;
  color: #aebdca;
  font-size: 15px;
  line-height: 1.5;
}

.money-wealth-builder-summary {
  display: grid;
  gap: 4px;
  min-width: 260px;
  justify-items: end;
  text-align: right;
}

.money-wealth-builder-summary > strong {
  color: #8ce1b8;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1;
  white-space: nowrap;
}

.money-wealth-builder-summary > small {
  color: #93a8b6;
  font-size: 12px;
  font-weight: 750;
}

.money-wealth-projection-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 9px;
  padding: 3px 0;
  color: #eccb72;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  border: 0;
  border-bottom: 1px solid rgba(236, 203, 114, .55);
  border-radius: 0;
  background: transparent;
}

.money-wealth-share-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, .82fr) minmax(440px, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: 100%;
  padding: 30px 0 31px;
  border-top: 1px solid rgba(143, 190, 213, .15);
}

.money-wealth-share-graphic {
  display: grid;
  gap: 16px;
  justify-items: center;
  min-width: 0;
}

.money-wealth-share-ring {
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.money-wealth-share-ring-center {
  border-color: rgba(232, 198, 111, .42);
  background: #08131d;
}

.money-wealth-share-ring-center strong {
  color: #fff8e9;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 36px);
}

.money-wealth-share-ring-center span {
  max-width: 14ch;
  color: #98aab6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.money-wealth-share-percentage {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 0;
  color: #91a5b4;
  border: 0;
  background: transparent;
}

.money-wealth-share-percentage strong {
  color: #e8c66f;
  font-family: var(--font-display);
  font-size: 25px;
}

.money-wealth-share-percentage span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.money-wealth-share-content {
  min-width: 0;
}

.money-wealth-share-categories {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(143, 190, 213, .18);
}

.money-wealth-share-category {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 86px;
  padding: 15px 4px;
  color: #eff3f1;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(143, 190, 213, .15);
  border-radius: 0;
  background: transparent;
  transition: background-color .18s ease, transform .18s ease;
}

.money-wealth-share-category:hover,
.money-wealth-share-category:focus-visible,
.money-wealth-share-category.is-active {
  padding: 15px 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .055), transparent);
  transform: translateX(3px);
}

.money-wealth-share-category .money-wealth-share-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.money-wealth-share-category.investing .money-wealth-share-swatch {
  background: linear-gradient(135deg, #d9a940, #f2d986);
  box-shadow: 0 0 0 4px rgba(232, 198, 111, .1);
}

.money-wealth-share-category.saving .money-wealth-share-swatch {
  background: linear-gradient(135deg, #2eaa7e, #82d8ae);
  box-shadow: 0 0 0 4px rgba(94, 208, 158, .1);
}

.money-wealth-share-category > span:not(.money-wealth-share-swatch) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.money-wealth-share-category b {
  color: #f0f3ef;
  font-size: 16px;
}

.money-wealth-share-category small {
  color: #8498a7;
  font-size: 10px;
  font-weight: 750;
}

.money-wealth-share-category > strong {
  color: #fff8ea;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1;
  white-space: nowrap;
}

.money-investing-sources {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid rgba(143, 190, 213, .16);
}

.money-investing-sources-head {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 6px;
}

.money-investing-sources-head > div {
  display: grid;
  gap: 3px;
}

.money-investing-sources-head span {
  color: #e8c66f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.money-investing-sources-head b {
  color: #e9eeee;
  font-size: 14px;
}

.money-wealth-builder-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px 40px 25px;
  border-top: 1px solid rgba(143, 190, 213, .16);
  background: rgba(4, 16, 27, .24);
}

.money-wealth-builder-pace,
.money-wealth-five-year {
  display: grid;
  gap: 3px;
}

.money-wealth-builder-pace > span,
.money-wealth-five-year > span {
  color: #91a5b4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.money-wealth-builder-pace > strong,
.money-wealth-five-year > strong {
  color: #fff8e9;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
}

.money-wealth-builder-pace small,
.money-wealth-five-year p,
.money-wealth-assumption {
  margin: 0;
  color: #8196a6;
  font-size: 10px;
  line-height: 1.4;
}

.money-wealth-five-year {
  justify-items: end;
  text-align: right;
}

.money-wealth-foot-operator {
  color: rgba(232, 198, 111, .6);
  font-size: 22px;
}

.money-wealth-assumption {
  grid-column: 1 / -1;
  text-align: center;
}

.expense-composition-primary button:focus-visible,
.money-wealth-builder button:focus-visible,
.money-wealth-builder [role="button"]:focus-visible {
  outline: 2px solid #f0cf78;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .expense-composition-primary .expense-composition-head,
  .money-wealth-builder-head {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 30px;
    padding-left: 30px;
  }

  .expense-composition-primary .expense-composition-body,
  .money-wealth-share-panel {
    grid-template-columns: minmax(230px, .75fr) minmax(360px, 1.25fr);
    gap: 30px;
  }

  .expense-composition-primary .expense-composition-context {
    grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(125px, .7fr));
  }

  .expense-composition-primary .expense-context-operator {
    display: none;
  }
}

@media (max-width: 720px) {
  .expense-composition-primary .expense-composition-head,
  .money-wealth-builder-head {
    grid-template-columns: 1fr;
    gap: 21px;
    align-items: start;
    padding: 25px 20px 21px;
  }

  .expense-composition-primary .expense-composition-heading h2,
  .money-wealth-builder-hero h2 {
    max-width: none;
    font-size: clamp(30px, 10vw, 40px);
  }

  .expense-composition-head-summary,
  .money-wealth-builder-summary {
    min-width: 0;
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .expense-composition-head-summary > strong,
  .money-wealth-builder-summary > strong {
    font-size: clamp(40px, 13vw, 52px);
  }

  .expense-composition-primary .expense-composition-actions {
    justify-content: flex-start;
  }

  .expense-composition-primary .expense-composition-body,
  .money-wealth-share-panel {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 24px 20px 25px;
  }

  .expense-composition-primary .expense-composition-viz {
    min-height: 0;
  }

  .expense-composition-primary .expense-composition-donut {
    width: min(84vw, 320px);
  }

  .expense-composition-primary .expense-composition-list-head {
    display: none;
  }

  .expense-composition-primary .expense-composition-list {
    max-height: none;
    overflow: visible;
  }

  .expense-composition-primary .expense-composition-row {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 7px 10px;
    min-height: 73px;
    padding: 12px 2px;
  }

  .expense-composition-primary .expense-composition-swatch {
    grid-column: 1;
    grid-row: 1;
  }

  .expense-composition-primary .expense-composition-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .expense-composition-primary .expense-composition-numbers {
    grid-column: 3;
    grid-row: 1;
  }

  .expense-composition-primary .expense-composition-numbers strong {
    font-size: 20px;
  }

  .expense-composition-primary .expense-composition-meter {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .expense-composition-primary .expense-composition-context {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 20px;
  }

  .expense-composition-primary .expense-context-total {
    grid-column: 1 / -1;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(143, 190, 213, .15);
  }

  .expense-composition-primary .expense-context-metric {
    min-width: 0;
  }

  .expense-composition-primary .expense-context-metric.savings {
    grid-column: 1 / -1;
  }

  .expense-composition-primary .expense-allocation-bar {
    grid-column: 1 / -1;
  }

  .expense-composition-primary .expense-composition-foot {
    display: grid;
    gap: 7px;
    padding: 14px 20px 17px;
  }

  .expense-composition-primary .expense-composition-reset {
    justify-self: start;
  }

  .money-wealth-share-panel {
    grid-column: 1;
    width: auto;
    margin: 0 -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .money-wealth-share-ring {
    width: min(74vw, 285px);
  }

  .money-wealth-share-category {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    min-height: 74px;
  }

  .money-wealth-share-category > strong {
    font-size: clamp(23px, 8vw, 30px);
  }

  .money-wealth-builder-foot {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .money-wealth-five-year {
    justify-items: start;
    text-align: left;
  }

  .money-wealth-foot-operator {
    display: none;
  }

  .money-wealth-assumption {
    padding-top: 14px;
    text-align: left;
    border-top: 1px solid rgba(143, 190, 213, .14);
  }
}

@media (max-width: 390px) {
  .expense-composition-primary .expense-composition-head,
  .money-wealth-builder-head,
  .expense-composition-primary .expense-composition-body,
  .expense-composition-primary .expense-composition-context,
  .expense-composition-primary .expense-composition-foot,
  .money-wealth-builder-foot {
    padding-right: 16px;
    padding-left: 16px;
  }

  .expense-composition-primary .expense-composition-heading h2,
  .money-wealth-builder-hero h2 {
    font-size: 30px;
  }

  .expense-composition-primary .expense-composition-context {
    grid-template-columns: 1fr;
  }

  .expense-composition-primary .expense-context-metric,
  .expense-composition-primary .expense-context-metric.savings {
    grid-column: 1;
  }

  .money-wealth-share-panel {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .money-wealth-share-ring {
    width: min(75vw, 245px);
  }

  .money-wealth-share-category {
    gap: 8px;
  }

  .money-wealth-share-category b {
    font-size: 14px;
  }

  .money-wealth-share-category > strong {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expense-composition-primary .expense-composition-row,
  .money-wealth-share-category,
  .expense-composition-primary .expense-composition-meter i {
    transition: none;
  }
}

/* Final allocation-summary layout: one total followed by three explicit parts. */
.expense-composition-primary .expense-composition-list {
  max-height: 468px;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scrollbar-gutter: stable;
}

.expense-composition-primary .expense-composition-row {
  scroll-snap-align: start;
}

.expense-composition-primary .expense-composition-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 26px 24px;
}

.expense-composition-primary .expense-context-total {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 2px 20px;
  border-bottom: 1px solid rgba(143, 190, 213, .16);
}

.expense-composition-primary .expense-context-total-copy,
.expense-composition-primary .expense-context-total-value {
  min-width: 0;
}

.expense-composition-primary .expense-context-total-value {
  display: grid;
  justify-items: end;
  text-align: right;
}

.expense-composition-primary .expense-context-total-value b {
  font-size: clamp(36px, 4vw, 58px);
  line-height: .95;
}

.expense-composition-primary .expense-context-parts {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  border-bottom: 1px solid rgba(143, 190, 213, .12);
}

.expense-composition-primary .expense-context-metric {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 130px;
  padding: 20px 16px;
  text-align: center;
  transform: none;
  border: 0;
  border-right: 1px solid rgba(143, 190, 213, .13);
  border-radius: 0;
  background: transparent;
}

.expense-composition-primary .expense-context-metric:last-child {
  border-right: 0;
}

.expense-composition-primary .expense-context-metric span,
.expense-composition-primary .expense-context-metric b,
.expense-composition-primary .expense-context-metric small {
  position: static;
  width: auto;
  max-width: 100%;
  margin: 0;
  translate: none;
}

.expense-composition-primary .expense-context-metric span {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .1em;
}

.expense-composition-primary .expense-context-metric b {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  white-space: nowrap;
}

.expense-composition-primary .expense-context-metric small {
  font-size: 12px;
  line-height: 1.25;
}

.expense-composition-primary .expense-allocation-bar {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
}

@media (max-width: 720px) {
  .expense-composition-primary .expense-composition-list {
    max-height: none;
    overflow: visible;
    scroll-snap-type: none;
  }

  .expense-composition-primary .expense-composition-context {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }

  .expense-composition-primary .expense-context-total {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 17px;
  }

  .expense-composition-primary .expense-context-total-value {
    justify-items: start;
    text-align: left;
  }

  .expense-composition-primary .expense-context-parts {
    grid-template-columns: 1fr;
  }

  .expense-composition-primary .expense-context-metric,
  .expense-composition-primary .expense-context-metric.savings {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    gap: 3px 14px;
    min-height: 84px;
    padding: 15px 2px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(143, 190, 213, .12);
  }

  .expense-composition-primary .expense-context-metric:last-child {
    border-bottom: 0;
  }

  .expense-composition-primary .expense-context-metric span {
    grid-column: 1;
    grid-row: 1;
  }

  .expense-composition-primary .expense-context-metric b {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: clamp(25px, 8vw, 34px);
  }

  .expense-composition-primary .expense-context-metric small {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ============================================================
   v456 — Budget composition parity with Net Worth
   ============================================================ */
.budget-page .budget-monthly-summary.card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(22px, 2.7vw, 34px);
  border: 1px solid #d8e0e5;
  border-radius: 10px;
  background:
    radial-gradient(circle at 3% 0%, rgba(73, 145, 185, .09), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fbfaf6 100%);
  color: #0b2034;
  box-shadow: 0 20px 54px -36px rgba(12, 36, 55, .38);
}

.budget-page .budget-monthly-summary.card::before {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #b8842c 0%, #efd479 43%, #d7aa4d 70%, #a97827 100%);
  opacity: .92;
}

.budget-page .budget-monthly-summary-head {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(390px, 1.22fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(67, 91, 111, .14);
}

.budget-page .budget-monthly-summary-copy,
.budget-page .budget-monthly-summary-total {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.budget-page .budget-monthly-summary-copy .card-eyebrow {
  color: #a87821;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .13em;
}

.budget-page .budget-monthly-summary-copy small {
  color: #718295;
  font-size: 14px;
  font-weight: 680;
}

.budget-page .budget-monthly-summary-total {
  grid-template-columns: minmax(180px, auto) minmax(190px, 1fr);
  gap: clamp(20px, 2.7vw, 38px);
  align-items: center;
}

.budget-page .budget-monthly-summary-total strong {
  color: #0a2034;
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 650;
  line-height: .92;
  white-space: nowrap;
}

.budget-page .budget-monthly-summary-total small {
  max-width: 330px;
  color: #5b7185;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
}

.budget-page .budget-monthly-summary-total small.balanced {
  color: #18825b;
}

.budget-page .budget-monthly-summary-total small.over {
  color: #bd493f;
}

.budget-page .budget-monthly-summary-total small.open {
  color: #986b16;
}

.budget-page .budget-monthly-summary-bar {
  display: grid;
  width: 100%;
  min-height: 46px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid rgba(38, 64, 83, .2);
  border-radius: 8px;
  background: #e6ebee;
  box-shadow: inset 0 1px 2px rgba(9, 29, 45, .08), 0 12px 24px -17px rgba(8, 31, 48, .55);
}

.budget-page .budget-monthly-summary-segment {
  display: flex;
  min-width: 0;
  min-height: 46px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 9px 8px;
  color: #092035;
  border: 0;
  border-radius: 0;
}

.budget-page .budget-monthly-summary-segment + .budget-monthly-summary-segment {
  box-shadow: inset 2px 0 0 rgba(8, 29, 44, .38);
}

.budget-page .budget-monthly-summary-segment.expenses {
  background: linear-gradient(90deg, #df5b54, #fb8d79);
}

.budget-page .budget-monthly-summary-segment.investing {
  background: linear-gradient(90deg, #dca93a, #f5da82);
}

.budget-page .budget-monthly-summary-segment.savings {
  background: linear-gradient(90deg, #34ad7b, #7bd5a7);
}

.budget-page .budget-monthly-summary-segment span,
.budget-page .budget-monthly-summary-segment em {
  display: inline;
  overflow: hidden;
  color: #082035;
  font-size: 11px;
  font-style: normal;
  font-weight: 880;
  letter-spacing: .055em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.budget-page .budget-monthly-summary-segment em {
  font-size: 12px;
  letter-spacing: 0;
}

.budget-page .budget-monthly-summary-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(67, 91, 111, .12);
}

.budget-page .budget-monthly-summary-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 5px;
  min-width: 0;
  min-height: 126px;
  align-content: center;
  justify-items: center;
  padding: 18px 14px;
  color: #10263a;
  text-align: center;
  border: 0;
  border-right: 1px solid rgba(67, 91, 111, .13);
  border-radius: 0;
  background: transparent;
}

.budget-page .budget-monthly-summary-part:last-child {
  border-right: 0;
}

.budget-page .budget-monthly-summary-part:hover {
  background: linear-gradient(180deg, rgba(80, 128, 158, .055), transparent);
}

.budget-page .budget-monthly-summary-part span {
  grid-column: 1;
  grid-row: 1;
  color: #5f7284;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.budget-page .budget-monthly-summary-part strong {
  grid-column: 1;
  grid-row: 2;
  color: #10263a;
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.budget-page .budget-monthly-summary-part small {
  grid-column: 1;
  grid-row: 3;
  color: #708397;
  font-size: 12px;
  font-weight: 700;
}

.budget-page .budget-monthly-summary-part.expenses strong {
  color: #ce554b;
}

.budget-page .budget-monthly-summary-part.investing strong {
  color: #a97817;
}

.budget-page .budget-monthly-summary-part.savings strong {
  color: #1b8b60;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary.card {
  border-color: rgba(143, 190, 213, .22);
  background:
    radial-gradient(circle at 4% 5%, rgba(70, 151, 194, .14), transparent 31%),
    linear-gradient(135deg, #07182a 0%, #0b243b 100%);
  color: #f8f4ea;
  box-shadow: 0 24px 54px rgba(2, 12, 22, .24);
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-head,
:root[data-theme="dark"] .budget-page .budget-monthly-summary-parts {
  border-color: rgba(159, 190, 213, .15);
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-copy .card-eyebrow {
  color: #efce78;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-copy small,
:root[data-theme="dark"] .budget-page .budget-monthly-summary-part span,
:root[data-theme="dark"] .budget-page .budget-monthly-summary-part small {
  color: #91a5b7;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-total strong {
  color: #fff9ef;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-total small.balanced {
  color: #70d9aa;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-total small.over {
  color: #ff958a;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-total small.open {
  color: #f0cb65;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-part {
  color: #f8f4ea;
  border-color: rgba(159, 190, 213, .14);
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-part.expenses strong {
  color: #ff8d7d;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-part.investing strong {
  color: #f2cf6c;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-part.savings strong {
  color: #77d9aa;
}

/* Desktop: both compositions are visible inside one balance-sheet surface. */
.budget-page .budget-composition-comparison {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(24px, 3vw, 38px);
  color: #f7f4ec;
  border: 1px solid rgba(147, 181, 210, .22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 2% 4%, rgba(65, 188, 139, .13), transparent 29%),
    radial-gradient(circle at 98% 6%, rgba(224, 100, 91, .11), transparent 28%),
    radial-gradient(circle at 44% 100%, rgba(224, 186, 86, .07), transparent 31%),
    linear-gradient(135deg, #07182a 0%, #0a2138 56%, #102b45 100%);
  box-shadow: 0 28px 70px rgba(5, 20, 33, .18);
}

.budget-page .budget-composition-comparison::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #b88931 0%, #f4dc94 42%, #dfba61 68%, #a97827 100%);
  opacity: .88;
}

.budget-page .budget-composition-tabs {
  display: none;
}

.budget-page .budget-composition-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
  align-items: stretch;
}

.budget-page .budget-composition-panel {
  display: flex;
  min-width: 0;
}

.budget-page .budget-composition-panel > .card {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #f7f4ec;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.budget-page .budget-composition-panel > .card::before {
  display: none;
}

.budget-page .budget-composition-operator {
  position: relative;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.budget-page .budget-composition-operator::before,
.budget-page .budget-composition-operator::after {
  position: absolute;
  width: 1px;
  height: 39%;
  content: "";
  background: linear-gradient(transparent, rgba(255, 255, 255, .14), transparent);
}

.budget-page .budget-composition-operator::before {
  top: 0;
}

.budget-page .budget-composition-operator::after {
  bottom: 0;
}

.budget-page .budget-composition-operator span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #f1cf76;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(228, 195, 109, .34);
  border-radius: 50%;
  background: rgba(228, 195, 109, .08);
}

.budget-page .budget-composition-operator small {
  margin-top: 8px;
  color: rgba(228, 235, 240, .42);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}

/* Expense half */
.budget-page .budget-composition-panel .expense-composition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 118px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.budget-page .budget-composition-panel .expense-composition-heading .card-eyebrow,
.budget-page .budget-composition-panel .money-wealth-builder-eyebrow,
.budget-page .budget-composition-panel .expense-composition-head-summary > span,
.budget-page .budget-composition-panel .money-wealth-builder-summary > span {
  color: #e6c773;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.budget-page .budget-composition-panel .expense-composition-heading h2,
.budget-page .budget-composition-panel .money-wealth-builder-hero h2 {
  max-width: 16ch;
  margin: 7px 0 6px;
  color: #fbf7ee;
  font-family: var(--serif);
  font-size: clamp(27px, 2.35vw, 34px);
  line-height: 1.04;
  text-wrap: balance;
}

.budget-page .budget-composition-panel .expense-composition-heading p,
.budget-page .budget-composition-panel .money-wealth-builder-hero p {
  max-width: 40ch;
  margin: 0;
  color: rgba(228, 235, 240, .58);
  font-size: 11px;
  line-height: 1.45;
}

.budget-page .budget-composition-panel .expense-composition-head-summary {
  display: grid;
  min-width: 132px;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.budget-page .budget-composition-panel .expense-composition-head-summary > strong {
  color: #ff8a79;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1;
}

.budget-page .budget-composition-panel .expense-composition-head-summary > small {
  color: rgba(228, 235, 240, .48);
  font-size: 9px;
}

.budget-page .budget-composition-panel .expense-composition-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 6px;
}

.budget-page .budget-composition-panel .expense-composition-actions .add-row,
.budget-page .budget-composition-panel .expense-composition-reset {
  padding: 1px 0 3px;
  color: #ecd078;
  font-size: 9px;
  font-weight: 800;
  border: 0;
  border-bottom: 1px solid rgba(236, 208, 120, .5);
  border-radius: 0;
  background: transparent;
}

.budget-page .budget-composition-panel .expense-composition-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  align-content: start;
  padding: 16px 0 0;
}

.budget-page .budget-composition-panel .expense-composition-viz {
  display: grid;
  min-height: 220px;
  padding: 0;
  place-items: center;
}

.budget-page .budget-composition-panel .expense-composition-donut {
  width: min(100%, 224px);
  min-width: 0;
  aspect-ratio: 1;
}

.budget-page .budget-composition-panel .expense-composition-donut .chart {
  width: min(224px, 100%) !important;
  max-width: 224px !important;
}

.budget-page .budget-composition-panel .expense-composition-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 0 4px 9px;
  color: rgba(228, 235, 240, .42);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.budget-page .budget-composition-panel .expense-composition-list {
  max-height: 292px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: none;
  scrollbar-color: rgba(232, 198, 111, .55) transparent;
  scrollbar-width: thin;
}

.budget-page .budget-composition-panel .expense-composition-row {
  display: grid;
  grid-template-columns: 9px minmax(90px, 1fr) minmax(56px, .42fr) auto;
  gap: 9px;
  min-height: 64px;
  align-items: center;
  padding: 10px 4px;
  color: #eef2f2;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  border-radius: 0;
  background: transparent;
}

.budget-page .budget-composition-panel .expense-composition-copy b {
  color: #f3f4f1;
  font-size: 12px;
}

.budget-page .budget-composition-panel .expense-composition-copy small,
.budget-page .budget-composition-panel .expense-composition-numbers small {
  color: rgba(228, 235, 240, .46);
  font-size: 8.5px;
}

.budget-page .budget-composition-panel .expense-composition-numbers {
  min-width: 68px;
}

.budget-page .budget-composition-panel .expense-composition-numbers strong {
  color: #fff8ec;
  font-size: clamp(18px, 1.7vw, 24px);
}

.budget-page .budget-composition-panel .expense-composition-context,
.budget-page .budget-composition-panel .expense-composition-foot {
  display: none !important;
}

/* Investing + saving half */
.budget-page .budget-composition-panel .money-wealth-builder {
  display: flex;
  flex-direction: column;
}

.budget-page .budget-composition-panel .money-wealth-builder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 118px;
  padding: 0 0 18px;
}

.budget-page .budget-composition-panel .money-wealth-builder-summary {
  display: grid;
  min-width: 150px;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.budget-page .budget-composition-panel .money-wealth-builder-summary > strong {
  color: #83ddb0;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1;
}

.budget-page .budget-composition-panel .money-wealth-builder-summary > small {
  color: rgba(228, 235, 240, .48);
  font-size: 9px;
}

.budget-page .budget-composition-panel .money-wealth-growth-link {
  display: inline-flex;
  gap: 8px;
  justify-self: end;
  margin-top: 8px;
  padding: 2px 0 4px;
  color: #ecd078;
  font-size: 9.5px;
  font-weight: 800;
  text-align: right;
  border: 0;
  border-bottom: 1px solid rgba(236, 208, 120, .5);
  border-radius: 0;
  background: transparent;
}

.budget-page .budget-composition-panel .money-wealth-share-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.budget-page .budget-composition-panel .money-wealth-share-graphic {
  width: 100%;
  max-width: 100%;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.budget-page .budget-composition-panel .money-wealth-share-ring {
  width: min(calc(100% - 20px), 224px);
  max-width: 100%;
}

.budget-page .budget-composition-panel .money-wealth-share-ring-center strong {
  font-size: clamp(21px, 2.2vw, 28px);
}

.budget-page .budget-composition-panel .money-wealth-share-percentage strong {
  font-size: 21px;
}

.budget-page .budget-composition-panel .money-wealth-share-category {
  min-height: 66px;
  padding: 10px 4px;
}

.budget-page .budget-composition-panel .money-wealth-share-category b {
  font-size: 12px;
}

.budget-page .budget-composition-panel .money-wealth-share-category small {
  font-size: 8.5px;
}

.budget-page .budget-composition-panel .money-wealth-share-category > strong {
  font-size: clamp(19px, 1.8vw, 25px);
}

.budget-page .budget-composition-panel .money-investing-sources {
  margin-top: 14px;
  padding-top: 13px;
}

.budget-page .budget-composition-panel .money-investing-sources-head b {
  font-size: 12px;
}

.budget-page .budget-composition-panel .money-investing-source-list {
  max-height: 188px;
  overflow-y: auto;
  scrollbar-color: rgba(232, 198, 111, .55) transparent;
  scrollbar-width: thin;
}

.budget-page .budget-composition-panel .money-investing-source {
  grid-template-columns: 8px minmax(84px, .9fr) minmax(64px, .7fr) auto;
  gap: 8px;
  min-height: 54px;
  padding: 8px 2px;
}

.budget-page .budget-composition-panel .money-investing-source-name b {
  font-size: 10px;
}

.budget-page .budget-composition-panel .money-investing-source-name small,
.budget-page .budget-composition-panel .money-investing-source-meter small {
  font-size: 7.5px;
}

.budget-page .budget-composition-panel .money-investing-source > strong {
  min-width: 62px;
  font-size: 13px;
}

.budget-page .budget-composition-panel .money-wealth-builder-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
}

.budget-page .budget-composition-panel .money-wealth-builder-pace > strong,
.budget-page .budget-composition-panel .money-wealth-five-year > strong {
  font-size: clamp(20px, 2vw, 27px);
}

.budget-page .budget-composition-panel .money-wealth-assumption {
  padding-top: 4px;
}

@media (max-width: 1100px) {
  .budget-page .budget-composition-stage {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 13px;
  }

  .budget-page .budget-composition-panel .expense-composition-head,
  .budget-page .budget-composition-panel .money-wealth-builder-head {
    grid-template-columns: 1fr;
    min-height: 164px;
    align-content: end;
  }

  .budget-page .budget-composition-panel .expense-composition-head-summary,
  .budget-page .budget-composition-panel .money-wealth-builder-summary {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .budget-page .budget-composition-panel .expense-composition-actions {
    justify-content: flex-start;
  }
}

/* Mobile: mirror Net Worth with two side-by-side selectors and one focused panel. */
@media (max-width: 820px) {
  .budget-page .budget-composition-comparison {
    padding: 24px 18px;
  }

  .budget-page .budget-composition-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0;
    background: rgba(255, 255, 255, .045);
  }

  .budget-page .budget-composition-tab {
    display: grid;
    min-width: 0;
    min-height: 68px;
    gap: 2px;
    align-content: center;
    justify-items: center;
    padding: 8px 6px;
    color: rgba(232, 237, 241, .62);
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .budget-page .budget-composition-tab + .budget-composition-tab {
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .budget-page .budget-composition-tab span {
    overflow: hidden;
    max-width: 100%;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .budget-page .budget-composition-tab b {
    max-width: 100%;
    overflow: hidden;
    font-family: var(--serif);
    font-size: clamp(18px, 5.5vw, 23px);
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .budget-page .budget-composition-tab small {
    font-size: 8px;
    font-weight: 700;
  }

  .budget-page .budget-composition-tab.active[data-budget-composition-tab="wealth"] {
    color: #fff8ef;
    background: linear-gradient(135deg, rgba(232, 198, 111, .14), rgba(79, 200, 145, .13));
    box-shadow: inset 0 -2px 0 #58cf98;
  }

  .budget-page .budget-composition-tab.active[data-budget-composition-tab="expenses"] {
    color: #fff8ef;
    background: linear-gradient(135deg, rgba(229, 108, 95, .16), rgba(255, 255, 255, .035));
    box-shadow: inset 0 -2px 0 #ee7a70;
  }

  .budget-page .budget-composition-stage {
    display: block;
    padding-top: 18px;
  }

  .budget-page .budget-composition-operator {
    display: none;
  }

  .budget-page .budget-composition-comparison[data-mobile-view="expenses"] .budget-composition-panel-wealth,
  .budget-page .budget-composition-comparison[data-mobile-view="wealth"] .budget-composition-panel-expenses {
    display: none;
  }

  .budget-page .budget-composition-panel .expense-composition-head,
  .budget-page .budget-composition-panel .money-wealth-builder-head {
    min-height: 0;
  }

  .budget-page .budget-composition-panel,
  .budget-page .budget-composition-panel > .card {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .budget-page .budget-composition-panel .money-wealth-share-panel {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px 0 0;
    overflow: visible;
  }

  .budget-page .budget-composition-panel .expense-composition-viz {
    min-height: 252px;
  }

  .budget-page .budget-composition-panel .expense-composition-donut,
  .budget-page .budget-composition-panel .money-wealth-share-ring {
    width: min(calc(100% - 20px), 272px);
    max-width: calc(100% - 20px);
  }

  .budget-page .budget-composition-panel .expense-composition-donut .chart {
    width: min(272px, 100%) !important;
    max-width: 272px !important;
  }
}

@media (max-width: 720px) {
  .budget-page .budget-monthly-summary.card {
    padding: 18px 14px 14px;
  }

  .budget-page .budget-monthly-summary-head {
    grid-template-columns: 1fr;
    gap: 11px;
    padding-bottom: 15px;
  }

  .budget-page .budget-monthly-summary-copy {
    justify-items: center;
    text-align: center;
  }

  .budget-page .budget-monthly-summary-total {
    grid-template-columns: 1fr;
    gap: 6px;
    justify-items: center;
    text-align: center;
  }

  .budget-page .budget-monthly-summary-total strong {
    font-size: clamp(42px, 13vw, 56px);
  }

  .budget-page .budget-monthly-summary-total small {
    max-width: 36ch;
    font-size: 11px;
    text-align: center;
  }

  .budget-page .budget-monthly-summary-bar {
    min-height: 30px;
    margin-top: 13px;
    border-radius: 6px;
  }

  .budget-page .budget-monthly-summary-segment {
    min-height: 30px;
    padding: 5px 3px;
  }

  .budget-page .budget-monthly-summary-segment span {
    display: none;
  }

  .budget-page .budget-monthly-summary-segment em {
    display: inline;
    font-size: 9px;
  }

  .budget-page .budget-monthly-summary-parts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .budget-page .budget-monthly-summary-part {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 4px;
    min-height: 100px;
    padding: 13px 4px;
    text-align: center;
    border-right: 1px solid rgba(67, 91, 111, .13);
    border-bottom: 0;
  }

  .budget-page .budget-monthly-summary-part span {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(7px, 2.4vw, 10px);
    letter-spacing: .07em;
  }

  .budget-page .budget-monthly-summary-part strong {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(19px, 6.1vw, 27px);
    text-align: center;
  }

  .budget-page .budget-monthly-summary-part small {
    grid-column: 1;
    grid-row: 3;
    font-size: clamp(8px, 2.4vw, 10px);
    line-height: 1.25;
  }
}

@media (max-width: 620px) {
  .budget-page .budget-composition-comparison {
    margin-right: 0;
    margin-left: 0;
    padding: 19px 14px 22px;
    border-radius: 9px;
  }

  .budget-page .budget-composition-panel .expense-composition-head,
  .budget-page .budget-composition-panel .money-wealth-builder-head {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .budget-page .budget-composition-panel .expense-composition-heading h2,
  .budget-page .budget-composition-panel .money-wealth-builder-hero h2 {
    max-width: 17ch;
    font-size: clamp(27px, 8.4vw, 32px);
  }

  .budget-page .budget-composition-panel .expense-composition-head-summary,
  .budget-page .budget-composition-panel .money-wealth-builder-summary {
    justify-items: start;
    text-align: left;
  }

  .budget-page .budget-composition-panel .expense-composition-actions {
    justify-content: flex-start;
  }

  .budget-page .budget-composition-panel .expense-composition-list {
    max-height: none;
    overflow: visible;
  }

  .budget-page .budget-composition-panel .expense-composition-row {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .budget-page .budget-composition-panel .expense-composition-meter {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .budget-page .budget-composition-panel .expense-composition-numbers {
    grid-column: 3;
    grid-row: 1;
  }

  .budget-page .budget-composition-panel .money-wealth-builder-foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .budget-page .budget-composition-panel .money-wealth-five-year {
    justify-items: start;
    text-align: left;
  }

  .budget-page .budget-composition-panel .money-wealth-growth-link {
    justify-self: start;
    margin-top: 9px;
    text-align: left;
  }

  .budget-page .budget-composition-panel .money-wealth-foot-operator {
    display: none;
  }

  .budget-page .budget-composition-panel .money-wealth-assumption {
    text-align: left;
  }

  .budget-page .budget-composition-panel .money-investing-source {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 7px 9px;
  }

  .budget-page .budget-composition-panel .money-investing-source-name {
    grid-column: 2;
    grid-row: 1;
  }

  .budget-page .budget-composition-panel .money-investing-source-meter {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .budget-page .budget-composition-panel .money-investing-source > strong {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .budget-page .budget-composition-comparison {
    margin-right: 0;
    margin-left: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .budget-page .budget-composition-panel .expense-composition-donut,
  .budget-page .budget-composition-panel .money-wealth-share-ring {
    width: min(calc(100% - 18px), 238px);
    max-width: calc(100% - 18px);
  }

  .budget-page .budget-composition-panel .expense-composition-donut .chart {
    width: min(238px, 100%) !important;
    max-width: 238px !important;
  }

  .budget-page .budget-composition-tab span {
    font-size: 8px;
  }

  .budget-page .budget-composition-tab small {
    font-size: 7.5px;
  }
}

/* Keep the v458 edit affordance aligned after all legacy Budget overrides. */
.budget-page .budget-composition-panel .expense-composition-row-shell .expense-composition-row {
  border-bottom: 0;
}

@media (max-width: 840px) {
  .budget-page .expense-composition-panel:not(.is-expanded) .expense-composition-row-shell:nth-child(n+6) {
    display: none;
  }
}

@media (max-width: 520px) {
  .budget-page .expense-composition-panel:not(.is-expanded) .expense-composition-row-shell:nth-child(n+4) {
    display: none;
  }
}

/* Budget v460: intentional light-mode palette for the future-building brief. */
:root:not([data-theme="dark"]) .budget-page .budget-building-brief {
  color: #102f46;
  border-color: #b8cedd;
  background:
    radial-gradient(circle at 92% -8%, rgba(30, 157, 105, .18), transparent 38%),
    radial-gradient(circle at -4% 108%, rgba(36, 112, 161, .12), transparent 38%),
    linear-gradient(118deg, #f4f9fd 0%, #ffffff 54%, #f1faf6 100%);
  box-shadow:
    0 18px 40px -28px rgba(17, 54, 80, .34),
    0 1px 0 rgba(255, 255, 255, .9) inset;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief::before {
  background: linear-gradient(90deg, #c89525 0%, #e1b64e 42%, #159164 100%);
  opacity: 1;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-flow {
  --budget-flow-destination: #08724d;
  --budget-flow-destination-bright: #075e41;
  --budget-flow-destination-halo: rgba(13, 134, 89, .34);
  color: #61798b;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-flow-label.destination {
  color: #08724d;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-flow-track {
  --budget-flow-start: #bd8618;
  --budget-flow-end: #0d8659;
  --budget-flow-start-halo: rgba(189, 134, 24, .32);
  --budget-flow-end-halo: rgba(13, 134, 89, .34);
  background: linear-gradient(90deg, rgba(190, 136, 23, .52), rgba(18, 139, 91, .76));
}

:root:not([data-theme="dark"]) .budget-page .budget-building-flow-track::after {
  background: linear-gradient(90deg, rgba(190, 136, 23, .82), rgba(13, 134, 89, .9));
}

:root:not([data-theme="dark"]) .budget-page .budget-building-flow-track::before,
:root:not([data-theme="dark"]) .budget-page .budget-building-flow-track i {
  background: var(--budget-flow-start);
  box-shadow: 0 0 11px var(--budget-flow-start-halo);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-flow-track b {
  color: #0d8659;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-copy .card-eyebrow {
  color: #9a6908;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-copy h2 {
  color: #102f46;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-copy p {
  color: #536c7e;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-copy p strong {
  color: #08724d;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-split > span {
  color: #73591e;
  border-color: #dfc989;
  background: linear-gradient(135deg, #fff9e8, #fffdf7);
  box-shadow: 0 7px 18px -16px rgba(140, 98, 13, .65);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-split > span:nth-child(2) {
  color: #176343;
  border-color: #a9d8c3;
  background: linear-gradient(135deg, #eaf8f1, #f8fcfa);
  box-shadow: 0 7px 18px -16px rgba(9, 105, 68, .6);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-split i {
  background: #c28a19;
  box-shadow: 0 0 0 3px rgba(194, 138, 25, .12);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-split i.saving {
  background: #12875a;
  box-shadow: 0 0 0 3px rgba(18, 135, 90, .12);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-split strong {
  color: #17364c;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-pace {
  border-color: #cfdee8;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-pace > div + div {
  border-color: #cfdee8;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-pace div span {
  color: #637a8c;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-brief-pace div strong {
  color: #17364c;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-growth-link {
  color: #8b6009;
  border-color: rgba(139, 96, 9, .45);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-growth-link:hover,
:root:not([data-theme="dark"]) .budget-page .budget-building-growth-link:focus-visible {
  color: #075f41;
  border-color: #075f41;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-growth-link:focus-visible {
  outline-color: #1c759d;
}

:root:not([data-theme="dark"]) .budget-page .budget-building-assumption {
  color: #718696;
}

/* ============================================================
   Experience v500 — whole-product responsive refinement
   ============================================================ */
html{
  min-width:320px;
  scroll-padding-top:84px;
}
body{
  min-width:320px;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
button,a,input,select,textarea{
  -webkit-tap-highlight-color:transparent;
}
.skip-link{
  position:fixed;
  left:16px;
  top:12px;
  z-index:200;
  padding:11px 15px;
  border:1px solid var(--gold);
  border-radius:8px;
  color:#06111f;
  background:#f5d989;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
  box-shadow:0 16px 40px -20px rgba(3,14,27,.8);
  transform:translateY(-160%);
  transition:transform .18s ease;
}
.skip-link:focus{transform:translateY(0)}
#view:focus{outline:none}
.topbar-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

/* A quick route transition should orient, never wash out the page. */
#view.view-enter > .wrap{
  animation:v500-page-in .38s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .hero,
#view.view-enter .overview-money-map,
#view.view-enter .chart-card,
#view.view-enter .projection-basis,
#view.view-enter .projection-dial-section,
#view.view-enter .budget-workspace,
#view.view-enter #nw-balances{
  animation:v500-surface-in .44s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .page-head .eyebrow,
#view.view-enter .page-head .page-title,
#view.view-enter .page-head .page-sub{
  animation:v500-page-in .34s cubic-bezier(.2,.72,.22,1) both;
}
#view.view-enter .page-head .page-title{animation-delay:.025s}
#view.view-enter .page-head .page-sub{animation-delay:.05s}
@keyframes v500-page-in{
  from{opacity:1;transform:translateY(5px)}
  to{opacity:1;transform:none}
}
@keyframes v500-surface-in{
  from{opacity:1;transform:translateY(6px) scale(.998)}
  to{opacity:1;transform:none}
}

/* Shared editorial rhythm and confident light-mode surfaces. */
.premium-view{
  width:100%;
  min-width:0;
}
.premium-view > .page-head{
  margin-bottom:clamp(18px,2.5vw,26px);
  padding-top:clamp(17px,2.8vw,28px);
}
.premium-view > .page-head .page-title{
  max-width:18ch;
  font-size:clamp(40px,4.65vw,62px);
  line-height:1;
}
.premium-view > .page-head .page-sub{
  max-width:70ch;
  font-size:14.5px;
}
:root:not([data-theme="dark"]) .premium-view .card:not(.projection-chart-card):not(.expense-composition-primary):not(.cta){
  border-color:#d8e0e7;
  background:linear-gradient(180deg,#fff 0%,#fdfefd 100%);
  box-shadow:0 1px 2px rgba(7,24,39,.035),0 18px 46px -38px rgba(7,24,39,.34);
}
.premium-view :is(.card,.hero,.chart-card,.callout){
  min-width:0;
}
.premium-view :is(svg.chart,.chart svg,.projection-chart,.growth-chart){
  max-width:100%;
}
.premium-view :is(input,select,textarea){
  min-width:0;
}
.premium-view details > summary{
  min-height:44px;
  align-items:center;
}
.premium-view .empty,
.premium-view [class*="-empty"]{
  text-wrap:pretty;
}
.method-sources{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.method-sources > div{
  grid-column:1 / -1;
  display:grid;
  gap:4px;
}
.method-sources > div b{color:var(--ink);font-size:13px}
.method-sources > div span{color:var(--ink-2);font-size:12px;line-height:1.5}
.method-sources > a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--accent);
  background:var(--paper-2);
  font-size:11.5px;
  font-weight:780;
  line-height:1.35;
  text-decoration:none;
}
.method-sources > a::after{
  content:"↗";
  margin-left:auto;
  padding-left:8px;
  color:var(--gold);
}

/* Mobile More sheet: every secondary destination remains one tap away. */
.mobile-more-modal{
  width:min(620px,calc(100vw - 28px));
  max-width:620px;
}
.mobile-more-modal .modal-head h2{
  max-width:17ch;
  margin-top:7px;
  font-size:clamp(28px,4vw,38px);
}
.mobile-more-modal .modal-head .muted{
  margin-top:8px;
  font-size:13px;
  line-height:1.5;
}
.mobile-more-grid{display:grid;gap:8px}
.mobile-more-destination{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:72px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--ink);
  background:var(--paper-2);
  text-align:left;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.mobile-more-destination:hover,
.mobile-more-destination:focus-visible{
  border-color:color-mix(in srgb,var(--gold) 62%,var(--line));
  background:color-mix(in srgb,var(--gold-soft) 62%,var(--paper-2));
  transform:translateY(-1px);
}
.mobile-more-destination.active{
  border-color:color-mix(in srgb,var(--teal) 52%,var(--line));
  background:color-mix(in srgb,var(--teal-soft) 60%,var(--paper-2));
}
.mobile-more-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid color-mix(in srgb,var(--gold) 28%,var(--line));
  border-radius:10px;
  color:var(--accent);
  background:linear-gradient(145deg,var(--paper-2),var(--gold-soft));
}
.mobile-more-icon .ni{width:21px;height:21px}
.mobile-more-destination > span:nth-child(2){
  display:grid;
  min-width:0;
  gap:3px;
}
.mobile-more-destination b{font-size:13.5px;line-height:1.2}
.mobile-more-destination small{color:var(--ink-2);font-size:11px;line-height:1.4}
.mobile-more-destination > i{color:var(--ink-3);font-style:normal}
.mobile-more-links{
  display:flex;
  flex-wrap:wrap;
  gap:4px 14px;
  padding:12px 4px 0;
}
.mobile-more-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--ink-2);
  font-size:11.5px;
  font-weight:720;
  text-underline-offset:3px;
}

/* The opener should feel like a focused mobile app, not a modal squeezed into one. */
.onboarding-modal .ob-progress-copy{white-space:nowrap}
.onboarding-modal.onboarding-wide{max-width:980px}
.onboarding-modal .ob-account-row{
  grid-template-columns:minmax(220px,1fr) minmax(220px,.78fr) minmax(190px,.72fr) 42px!important;
}
.onboarding-modal .ob-account-row select{
  text-overflow:ellipsis;
}
.onboarding-modal :is(.ob-account-row,.ob-debt-row,.ob-expense-row,.ob-invest-row){
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.onboarding-modal :is(.ob-account-row,.ob-debt-row,.ob-expense-row,.ob-invest-row):focus-within{
  border-color:color-mix(in srgb,var(--teal) 45%,var(--line));
  background:color-mix(in srgb,var(--teal-soft) 24%,var(--paper-2));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 10%,transparent);
}
.ob-real-rate-note a{
  color:inherit;
  font-weight:800;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

/* Budget: strengthen the future-building tile and keep every chart contained. */
:root:not([data-theme="dark"]) .budget-page .budget-building-brief{
  border-color:#a8c2d4;
  background:
    radial-gradient(circle at 95% -12%,rgba(18,145,91,.20),transparent 38%),
    radial-gradient(circle at -5% 112%,rgba(34,111,162,.15),transparent 40%),
    linear-gradient(116deg,#edf6fc 0%,#fff 51%,#edf9f3 100%);
  box-shadow:0 22px 54px -38px rgba(12,53,81,.52),inset 0 1px 0 rgba(255,255,255,.95);
}
:root:not([data-theme="dark"]) .budget-page .budget-building-brief-copy h2,
:root:not([data-theme="dark"]) .budget-page .budget-building-brief-split strong,
:root:not([data-theme="dark"]) .budget-page .budget-building-brief-pace div strong{
  color:#0a2a43;
}
.budget-page :is(.expense-composition-panel,.budget-building-brief,#budget-flow-donut){
  min-width:0;
  max-width:100%;
}
.budget-page .expense-composition-visual svg,
.budget-page #budget-flow-donut svg{
  display:block;
  max-width:100%;
  margin-inline:auto;
}
.budget-building-growth-link{
  min-height:42px;
  line-height:1.3;
}

/* Connected: a useful trust-first state even before sign-in. */
.connected-signin.connected-signin-welcome{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.72fr);
  align-items:center;
  gap:clamp(28px,5vw,74px);
  min-height:520px;
}
.connected-signin-welcome .connected-signin-copy{min-width:0}
.connected-signin-welcome .connected-signin-copy > p{
  max-width:660px;
}
.connected-signin-welcome .connected-fine{
  max-width:58ch;
  margin:18px 0 0;
  color:#8397a9;
}
.connected-signin-trust{
  display:grid;
  overflow:hidden;
  border:1px solid rgba(231,204,132,.2);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  box-shadow:0 26px 58px -42px rgba(0,0,0,.8);
}
.connected-signin-trust > div{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:2px 12px;
  padding:18px;
}
.connected-signin-trust > div + div{border-top:1px solid rgba(255,255,255,.09)}
.connected-signin-trust span{
  grid-row:1 / span 2;
  color:#e6c66f;
  font-size:10px;
  font-weight:850;
  letter-spacing:.1em;
}
.connected-signin-trust b{color:#f8f4e9;font-size:13px}
.connected-signin-trust small{color:#9fb0be;font-size:11.5px;line-height:1.5}
.connected-signin-welcome .connected-empty-actions{gap:10px}

/* Settings and sticky check-in controls should sit below the phone header. */
.settings-jump{
  scroll-snap-type:x proximity;
}
.settings-jump a{scroll-snap-align:center}
.settings-page :is(#settings-account,#settings-profile,#settings-planning,#settings-privacy,#settings-data){
  scroll-margin-top:136px;
}
.settings-page .card-eyebrow{
  margin-bottom:12px;
}
.settings-page .setrow{
  border-radius:7px;
  padding-inline:10px;
}

@media(hover:hover){
  :root:not([data-theme="dark"]) .premium-view .card:not(.chart-card):not(.expense-composition-primary):not(.cta){
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
  }
  :root:not([data-theme="dark"]) .premium-view .card:not(.chart-card):not(.expense-composition-primary):not(.cta):hover{
    border-color:#cbd6df;
    box-shadow:0 2px 5px rgba(7,24,39,.04),0 24px 58px -42px rgba(7,24,39,.42);
  }
}

@media(max-width:880px){
  html{scroll-padding-top:calc(78px + env(safe-area-inset-top,0px))}
  .main{
    width:100%;
    min-width:0;
    padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));
  }
  .topbar{
    min-height:64px;
    padding:
      calc(9px + env(safe-area-inset-top,0px))
      max(13px,env(safe-area-inset-right,0px))
      9px
      max(13px,env(safe-area-inset-left,0px))!important;
    box-shadow:0 10px 34px -30px rgba(4,18,34,.7);
  }
  .topbar .brand{min-width:0}
  .topbar-actions{gap:6px}
  .topbar .savedot{
    display:grid!important;
    place-items:center;
    width:32px;
    min-width:32px;
    height:32px;
    min-height:32px;
    border-radius:999px;
  }
  .mobnav{
    min-height:calc(68px + env(safe-area-inset-bottom,0px));
    padding:6px max(5px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));
    border-color:color-mix(in srgb,var(--accent) 14%,var(--line));
    box-shadow:0 -14px 38px -30px rgba(4,18,34,.65);
  }
  .mtab{
    position:relative;
    min-width:0;
    min-height:54px;
    justify-content:center;
    gap:3px;
    padding:6px 3px;
    border-radius:9px;
    font-size:9.5px;
    line-height:1.1;
  }
  .mtab::after{
    content:"";
    position:absolute;
    top:1px;
    width:18px;
    height:2px;
    border-radius:999px;
    background:transparent;
    transition:width .18s ease,background .18s ease;
  }
  .mtab.active{
    color:var(--accent);
    background:color-mix(in srgb,var(--accent-soft) 68%,transparent);
  }
  .mtab.active::after{
    width:28px;
    background:var(--gold);
  }
  :root[data-theme="dark"] .mtab.active{
    color:#f0d48a;
    background:rgba(216,184,108,.075);
  }
  .premium-view > .page-head .page-title{
    max-width:18ch;
    font-size:clamp(37px,8vw,48px);
  }
  .premium-view > .page-head .page-sub{font-size:14px}
  .settings-jump,
  .monthly-page .monthly-period-bar{
    top:calc(66px + env(safe-area-inset-top,0px));
  }
  .connected-page{
    width:min(100% - 24px,760px);
    margin-top:18px;
  }
  .connected-signin.connected-signin-welcome{
    grid-template-columns:1fr;
    gap:26px;
    min-height:0;
    padding:clamp(30px,7vw,54px) clamp(22px,6vw,42px);
  }
  .connected-signin-trust{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .connected-signin-trust > div{
    grid-template-columns:1fr;
    align-content:start;
    min-height:142px;
  }
  .connected-signin-trust > div + div{
    border-top:0;
    border-left:1px solid rgba(255,255,255,.09);
  }
  .connected-signin-trust span{grid-row:auto}
}

@media(max-width:620px){
  .wrap,
  .premium-view{
    width:100%;
    padding-inline:12px;
  }
  .premium-view > .page-head{
    margin-bottom:15px;
    padding:12px 2px 18px;
  }
  .premium-view > .page-head .eyebrow{font-size:9.5px}
  .premium-view > .page-head .page-title{
    max-width:16ch;
    font-size:clamp(34px,10.4vw,42px);
    line-height:1.02;
  }
  .premium-view > .page-head .page-sub{
    margin-top:8px;
    font-size:13.5px;
    line-height:1.52;
  }
  .premium-view .card-pad{padding:17px 15px}
  .premium-view :is(.card,.hero,.chart-card){
    border-radius:10px;
  }
  .method-sources{grid-template-columns:1fr}
  .method-sources > div{grid-column:1}
  .mobile-more-scrim{
    align-items:end!important;
    padding:0!important;
  }
  .mobile-more-modal{
    width:100%;
    max-width:100%;
    max-height:min(88dvh,760px);
    border-radius:18px 18px 0 0;
  }
  .mobile-more-modal .modal-head{
    padding:23px 18px 0!important;
  }
  .mobile-more-modal .modal-body{
    padding:16px 18px 8px!important;
  }
  .mobile-more-modal .modal-foot{
    padding:12px 18px calc(16px + env(safe-area-inset-bottom,0px))!important;
  }
  .mobile-more-modal .modal-foot .btn{width:100%}
  .mobile-more-destination{min-height:68px}

  .scrim:has(.onboarding-modal){
    align-items:stretch!important;
    padding:0!important;
  }
  .onboarding-modal,
  .onboarding-modal.onboarding-wide{
    width:100%!important;
    max-width:100%!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border:0!important;
    border-radius:0!important;
  }
  .onboarding-head{
    padding:
      calc(15px + env(safe-area-inset-top,0px))
      16px
      13px!important;
  }
  .onboarding-head h2{
    max-width:18ch;
    font-size:clamp(27px,8.2vw,32px)!important;
  }
  .onboarding-head .muted{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
  }
  .onboarding-body{
    overscroll-behavior:contain;
    padding:14px 15px 10px!important;
  }
  .onboarding-foot{
    min-height:72px;
    padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px))!important;
  }
  .onboarding-modal :is(.ob-account-row,.ob-debt-row,.ob-expense-row,.ob-invest-row){
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    padding:12px!important;
  }
  .onboarding-modal :is(.ob-account-row,.ob-debt-row,.ob-expense-row,.ob-invest-row) .ob-row-main{
    grid-column:1!important;
    padding-right:48px!important;
  }
  .onboarding-modal :is(.ob-account-row,.ob-debt-row,.ob-expense-row,.ob-invest-row) > div:not(.ob-row-main){
    grid-column:1!important;
  }
  .onboarding-modal .ob-del-row{
    top:34px!important;
    right:11px!important;
  }
  .onboarding-modal .ob-account-tools{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .onboarding-modal .ob-add-other{grid-column:1 / -1}
  .onboarding-modal .ob-total{
    bottom:-10px;
    padding:11px 12px;
  }
  .onboarding-modal .ob-total b{font-size:22px}

  .budget-building-brief{
    gap:13px;
    padding:17px 14px;
  }
  .budget-building-flow{
    grid-template-columns:auto minmax(42px,1fr) auto;
    gap:7px;
  }
  .budget-building-brief-main{grid-template-columns:1fr;gap:13px}
  .budget-building-brief-copy h2{font-size:clamp(22px,7vw,28px)}
  .budget-building-brief-split{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .budget-building-brief-split > span{
    min-width:0;
    padding:10px;
  }
  .budget-building-brief-pace{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .budget-building-growth-link{
    grid-column:1 / -1;
    justify-self:start;
    text-align:left;
  }
  .budget-page .expense-composition-edit{
    min-width:44px;
    min-height:44px;
  }

  .connected-page{width:100%;margin-top:0}
  .connected-signin.connected-signin-welcome{
    padding:32px 19px 26px;
    border-inline:0;
  }
  .connected-signin-welcome h1{
    max-width:12ch;
    font-size:clamp(38px,11vw,46px);
  }
  .connected-signin-welcome .connected-signin-copy > p{
    margin-bottom:20px;
    font-size:15px;
  }
  .connected-signin-welcome .connected-empty-actions{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
    gap:9px;
  }
  .connected-signin-welcome .connected-btn{width:100%}
  .connected-signin-trust{grid-template-columns:1fr}
  .connected-signin-trust > div{min-height:0}
  .connected-signin-trust > div + div{
    border-top:1px solid rgba(255,255,255,.09);
    border-left:0;
  }

  .settings-jump{
    width:calc(100% + 8px);
    max-width:calc(100% + 8px);
    margin-left:-4px;
    padding:4px;
    overflow-x:auto;
    grid-template-columns:none;
  }
  .settings-jump a{
    min-width:72px;
    padding-inline:10px;
  }
  .settings-page .setrow{padding-inline:3px}
}

@media(max-width:370px){
  .topbar .savedot{display:none!important}
  .premium-view > .page-head .page-title{font-size:33px}
  .mtab{font-size:8.8px}
  .mtab .ni{width:20px;height:20px}
  .budget-building-flow-label{font-size:7.2px}
  .budget-building-brief-split{grid-template-columns:1fr}
  .onboarding-modal .ob-account-tools{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  #view.view-enter > .wrap,
  #view.view-enter .hero,
  #view.view-enter .overview-money-map,
  #view.view-enter .chart-card,
  #view.view-enter .projection-basis,
  #view.view-enter .projection-dial-section,
  #view.view-enter .budget-workspace,
  #view.view-enter #nw-balances,
  #view.view-enter .page-head .eyebrow,
  #view.view-enter .page-head .page-title,
  #view.view-enter .page-head .page-sub{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
  }
  .skip-link,
  .mobile-more-destination,
  .mtab::after{
    transition:none!important;
  }
}

/* ===== css/v503.css ===== */
/* Siegel Financial v503 — final cascade layer for the Net Worth experience. */
.networth-page .history-inline-inspector{
  position:relative;
  display:grid;
  grid-template-columns:minmax(390px,1.08fr) minmax(310px,.92fr);
  min-height:0;
  gap:0;
  align-items:stretch;
  padding:0;
  overflow:hidden;
  border-color:rgba(229,193,104,.30);
  background:
    radial-gradient(520px 180px at 0 0,rgba(229,193,104,.145),transparent 72%),
    radial-gradient(420px 170px at 100% 100%,rgba(103,174,221,.105),transparent 75%),
    linear-gradient(112deg,rgba(255,255,255,.06),rgba(104,169,214,.045));
  box-shadow:inset 3px 0 0 rgba(229,193,104,.86),inset 0 1px 0 rgba(255,255,255,.065),0 24px 56px -45px rgba(0,0,0,.94);
  transform:none;
}
.networth-page .history-current-anchor{
  display:block;
  min-width:0;
  padding:19px 23px 18px;
  border-right:1px solid rgba(255,255,255,.095);
}
.networth-page .history-current-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.networth-page .history-current-copy{display:grid;gap:4px;min-width:0}
.networth-page .history-inline-inspector .history-current-copy b{color:#f2d47f;font-size:9.5px;letter-spacing:.145em}
.networth-page .history-inline-inspector .history-current-copy small{color:rgba(247,244,236,.48);font-size:10.5px;text-align:left}
.networth-page .history-inline-inspector .history-current-chip{
  grid-column:auto;
  grid-row:auto;
  min-height:27px;
  padding:5px 9px;
  border-color:rgba(229,193,104,.25);
  background:rgba(229,193,104,.055);
  color:#f1d887;
  font-size:8px;
}
.networth-page .history-current-value{
  display:block;
  grid-column:auto;
  grid-row:auto;
  justify-self:auto;
  width:100%;
  margin-top:13px;
  color:#fffaf0;
  font-size:clamp(43px,4.7vw,62px);
  line-height:.94;
  text-align:left;
}
.networth-page .history-current-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 18px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.085);
}
.networth-page .history-context-deck{
  position:relative;
  align-self:stretch;
  min-height:0;
  margin:0;
  padding:0;
  border-top:0;
}
.networth-page .history-inspector-hint,
.networth-page .history-comparison-reveal{inset:18px 20px}
.networth-page .history-inspector-hint{align-items:center;gap:13px;padding:0}
.networth-page .history-inline-inspector .history-inspector-hint b{
  font-size:12.5px;
  letter-spacing:0;
  text-transform:none;
}
.networth-page .history-inline-inspector .history-inspector-hint small{
  max-width:31ch;
  font-size:10.5px;
  letter-spacing:0;
  line-height:1.4;
  text-transform:none;
}
.networth-page .history-comparison-reveal{
  grid-template-columns:minmax(128px,.76fr) minmax(180px,1.24fr) 28px;
  gap:13px;
  padding:0;
}
@media(max-width:820px){
  .networth-page .history-inline-inspector{grid-template-columns:minmax(350px,1.06fr) minmax(270px,.94fr)}
  .networth-page .history-current-anchor{padding-inline:19px}
  .networth-page .history-inspector-hint,
  .networth-page .history-comparison-reveal{inset-inline:16px}
}
@media(max-width:700px){
  .networth-page .history-inline-inspector{display:block}
  .networth-page .history-current-anchor{
    padding:16px 16px 14px;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.09);
  }
  .networth-page .history-current-value{
    margin-top:12px;
    font-size:clamp(39px,11vw,50px);
    text-align:left;
  }
  .networth-page .history-current-meta{margin-top:12px;padding-top:10px}
  .networth-page .history-context-deck{min-height:83px}
  .networth-page .history-inspector-hint,
  .networth-page .history-comparison-reveal{inset:13px 15px}
  .networth-page .history-comparison-reveal{
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) 27px;
    gap:9px;
  }
  .networth-page .history-past-snapshot{justify-items:start;padding-left:10px;text-align:left}
  .networth-page .history-past-snapshot::before{display:block}
  .networth-page .history-growth-story{justify-items:start;padding:0 0 0 10px;border-left:1px solid rgba(255,255,255,.1);text-align:left}
  .networth-page .history-growth-sentence{justify-content:flex-start}
  .networth-page .history-comparison-close{position:static}
}
@media(max-width:430px){
  .networth-page .networth-home-hero{padding:10px!important}
  .networth-page .networth-history-primary{padding:10px 9px 12px}
  .networth-page .history-current-anchor{padding:14px 13px 13px}
  .networth-page .history-current-value{font-size:clamp(36px,12.2vw,46px)}
  .networth-page .history-current-meta{align-items:flex-end;gap:8px}
  .networth-page .history-context-deck{min-height:78px}
  .networth-page .history-inspector-hint,
  .networth-page .history-comparison-reveal{inset:12px}
  .networth-page .history-comparison-reveal{grid-template-columns:minmax(0,1fr) 25px}
  .networth-page .history-growth-story{grid-column:1;padding:2px 0 0 9px;border-left:0}
  .networth-page .history-comparison-close{grid-column:2;grid-row:1 / span 2}
}
@media(max-width:350px){
  .networth-page .history-current-meta{display:grid;grid-template-columns:1fr}
  .networth-page .history-current-progress{justify-content:flex-start}
  .networth-page .history-context-deck{min-height:86px}
}

/* ===== css/v507.css ===== */
/* Siegel Financial v507 — finite motion and cleaner responsive handoffs. */

/* Budget: one deliberate pass, once per page load. */
.budget-building-flow.is-playing .budget-building-flow-track::after{
  animation:budget-building-line-charge 2.9s cubic-bezier(.22,1,.36,1) 1 both;
}
.budget-building-flow.is-playing .budget-building-flow-track::before{
  animation:budget-building-particle 2.18s cubic-bezier(.22,1,.36,1) .18s 1 both;
}
.budget-building-flow.is-playing .budget-building-flow-track i{
  display:none!important;
  animation:none!important;
}
.budget-building-flow.is-playing .budget-building-flow-track b,
.budget-building-flow.is-playing .budget-building-flow-label.destination{
  animation-duration:2.9s;
  animation-iteration-count:1;
}

/* Net Worth: the longer-view bridge is the entry anchor, with the chart
   immediately following so both context and motion share the first viewport. */
.networth-page .nw-projection-bridge{
  scroll-margin-top:clamp(72px,10vh,108px);
}
@media(max-width:620px){
  .networth-page .nw-projection-bridge{
    margin-bottom:9px;
  }
}

/* Projection: the moving value converges on the permanent retirement callout.
   The inner group can scale without overriding its SVG positioning transform. */
.projection-playback-label-content{
  transform-box:fill-box;
  transform-origin:center;
  will-change:opacity,transform;
}
.projection-chart-shell.is-absorbing-projection .projection-annotations{
  opacity:1;
  transition-duration:.34s;
  transition-timing-function:cubic-bezier(.2,.75,.2,1);
}
.projection-retirement-callout.projection-is-receiving{
  transform-box:fill-box;
  transform-origin:center;
  animation:projection-retirement-receive .42s cubic-bezier(.18,.82,.2,1) both;
}
.projection-retirement-callout.projection-is-receiving rect{
  stroke-width:1.45;
  filter:drop-shadow(0 0 8px rgba(240,210,124,.33));
}
.projection-retirement-callout.projection-is-receiving .projection-endpoint{
  filter:drop-shadow(0 0 7px rgba(242,212,127,.82));
}
@keyframes projection-retirement-receive{
  0%{filter:brightness(.94);transform:scale(.992)}
  62%{filter:brightness(1.16);transform:scale(1.012)}
  100%{filter:none;transform:none}
}

/* The supporting category values should inform, not compete with the projected
   net-worth answer. Keep both categories side by side even on narrow phones. */
.projection-page-wrap #projection-age-mix{
  gap:clamp(20px,3vw,38px);
}
.projection-page-wrap #projection-age-mix > span{
  gap:4px;
}
.projection-page-wrap #projection-age-mix small{
  font-size:8.7px;
  letter-spacing:.085em;
}
.projection-page-wrap #projection-age-mix b{
  font-size:clamp(19px,1.75vw,23px);
  letter-spacing:-.018em;
}
@media(max-width:700px){
  .projection-page-wrap #projection-age-mix{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .projection-page-wrap #projection-age-mix small{
    font-size:8.1px;
    line-height:1.25;
  }
  .projection-page-wrap #projection-age-mix b{
    font-size:clamp(17px,5.3vw,20px);
  }
}
@media(max-width:350px){
  .projection-page-wrap #projection-age-mix{
    gap:7px;
  }
  .projection-page-wrap #projection-age-mix small{
    font-size:7.5px;
    letter-spacing:.065em;
  }
  .projection-page-wrap #projection-age-mix b{
    font-size:clamp(15.5px,5vw,17px);
  }
}

@media(prefers-reduced-motion:reduce){
  .budget-building-flow.is-playing .budget-building-flow-track::after,
  .budget-building-flow.is-playing .budget-building-flow-track::before,
  .budget-building-flow.is-playing .budget-building-flow-track b,
  .budget-building-flow.is-playing .budget-building-flow-label.destination,
  .projection-retirement-callout.projection-is-receiving{
    animation:none!important;
  }
  .projection-playback-label-content,
  .projection-chart-shell .projection-annotations{
    transition:none!important;
  }
}

/* ===== css/v508.css ===== */
/* Siegel Financial v508 — premium one-shot Budget allocation reveal. */

.budget-page .budget-monthly-summary-bar {
  position: relative;
  isolation: isolate;
  transform-origin: 50% 58%;
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-pending {
  opacity: 0;
  transform: translateY(12px) scale(.978);
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering {
  animation: budget-allocation-shell-enter .76s cubic-bezier(.16, 1, .3, 1) both;
  will-change: opacity, filter, transform;
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering::before,
.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering::before {
  z-index: 4;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: inherit;
  box-shadow:
    0 0 0 0 rgba(48, 180, 126, 0),
    inset 0 0 18px rgba(255, 255, 255, .12);
  animation: budget-allocation-lock-in .92s cubic-bezier(.16, 1, .3, 1) .82s both;
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering::after {
  z-index: 3;
  top: -35%;
  bottom: -35%;
  left: -28%;
  width: 16%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  filter: blur(.4px);
  transform: skewX(-17deg);
  animation: budget-allocation-sheen .92s cubic-bezier(.22, 1, .36, 1) .72s both;
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
  .budget-monthly-summary-segment {
  overflow: hidden;
  animation: budget-allocation-segment-build .72s cubic-bezier(.16, 1, .3, 1)
    var(--allocation-delay) both;
  will-change: clip-path, filter;
}

.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
  .budget-monthly-summary-segment span,
.budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
  .budget-monthly-summary-segment em {
  animation: budget-allocation-label-settle .42s cubic-bezier(.16, 1, .3, 1)
    var(--allocation-label-delay) both;
}

:root[data-theme="dark"] .budget-page
  .budget-monthly-summary-bar.is-budget-allocation-entering::before {
  border-color: rgba(244, 218, 145, .52);
  box-shadow:
    0 0 0 0 rgba(240, 203, 101, 0),
    inset 0 0 18px rgba(244, 218, 145, .08);
}

:root[data-theme="dark"] .budget-page
  .budget-monthly-summary-bar.is-budget-allocation-entering::after {
  background: linear-gradient(90deg, transparent, rgba(255, 244, 207, .54), transparent);
}

@keyframes budget-allocation-shell-enter {
  0% {
    opacity: 0;
    filter: saturate(.72) blur(1.5px);
    transform: translateY(13px) scale(.975);
  }
  58% {
    opacity: 1;
    filter: saturate(1.06) blur(0);
    transform: translateY(-2px) scale(1.006);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes budget-allocation-segment-build {
  0% {
    clip-path: inset(0 100% 0 0);
    filter: brightness(1.16) saturate(.72);
  }
  68% {
    filter: brightness(1.1) saturate(1.06);
  }
  100% {
    clip-path: inset(0);
    filter: none;
  }
}

@keyframes budget-allocation-label-settle {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(.975);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes budget-allocation-sheen {
  0% {
    left: -28%;
    opacity: 0;
  }
  18% {
    opacity: .78;
  }
  82% {
    opacity: .5;
  }
  100% {
    left: 116%;
    opacity: 0;
  }
}

@keyframes budget-allocation-lock-in {
  0% {
    opacity: 0;
    box-shadow:
      0 0 0 0 rgba(48, 180, 126, 0),
      inset 0 0 18px rgba(255, 255, 255, 0);
  }
  48% {
    opacity: 1;
    box-shadow:
      0 0 0 5px rgba(48, 180, 126, .10),
      inset 0 0 18px rgba(255, 255, 255, .16);
  }
  100% {
    opacity: 0;
    box-shadow:
      0 0 0 10px rgba(48, 180, 126, 0),
      inset 0 0 18px rgba(255, 255, 255, 0);
  }
}

@media (max-width: 720px) {
  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
    .budget-monthly-summary-segment {
    animation-duration: .66s;
  }

  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
    .budget-monthly-summary-segment em {
    font-variant-numeric: tabular-nums;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-page .budget-monthly-summary-bar.is-budget-allocation-pending,
  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none !important;
  }

  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering::before,
  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering::after {
    display: none;
    animation: none !important;
  }

  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
    .budget-monthly-summary-segment,
  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
    .budget-monthly-summary-segment span,
  .budget-page .budget-monthly-summary-bar.is-budget-allocation-entering
    .budget-monthly-summary-segment em {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    animation: none !important;
  }
}

/* ===== css/v510.css ===== */
/* Siegel Financial v510 — premium responsive spending composition. */

.budget-page .budget-composition-stack {
  gap: clamp(18px, 2.2vw, 26px);
}

.budget-page .expense-composition-primary {
  --expense-panel: #0a1c2f;
  --expense-panel-2: #102a42;
  --expense-line: rgba(167, 197, 218, .16);
  --expense-muted: #a8bac7;
  --expense-faint: #8298a8;
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 187, 214, .24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 9% 8%, rgba(73, 158, 189, .14), transparent 29%),
    radial-gradient(circle at 91% 7%, rgba(238, 132, 106, .11), transparent 27%),
    linear-gradient(135deg, var(--expense-panel) 0%, var(--expense-panel-2) 100%);
  color: #f7f4ec;
  box-shadow:
    0 30px 72px -48px rgba(2, 13, 24, .86),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

.budget-page .expense-composition-primary::before {
  display: block;
  width: auto;
  height: 2px;
  background:
    linear-gradient(90deg, transparent 0%, #d8a94a 14%, #f1d98f 50%, #d8a94a 86%, transparent 100%);
  opacity: .96;
}

.budget-page .expense-composition-primary .expense-composition-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, auto);
  align-items: end;
  gap: clamp(28px, 4.3vw, 64px);
  min-height: 0;
  padding: clamp(28px, 3.2vw, 38px) clamp(28px, 3.6vw, 42px) 25px;
  border-bottom: 1px solid var(--expense-line);
}

.budget-page .expense-composition-primary .expense-composition-heading {
  display: grid;
  max-width: 680px;
  min-width: 0;
  gap: 0;
}

.budget-page .expense-composition-primary .expense-composition-heading .card-eyebrow,
.budget-page .expense-composition-primary .expense-composition-head-summary > span {
  color: #f0cf7b;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .145em;
  line-height: 1.2;
  text-transform: uppercase;
}

.budget-page .expense-composition-primary .expense-composition-heading h2 {
  max-width: 17ch;
  margin: 8px 0 8px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(31px, 3.25vw, 45px);
  font-weight: 650;
  letter-spacing: -.018em;
  line-height: 1.02;
  text-wrap: balance;
}

.budget-page .expense-composition-primary .expense-composition-heading p {
  max-width: 58ch;
  margin: 0;
  color: var(--expense-muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

.budget-page .expense-composition-primary .expense-composition-head-summary {
  display: grid;
  min-width: 235px;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.budget-page .expense-composition-primary .expense-composition-head-summary > strong {
  color: #ff9b88;
  font-family: var(--serif);
  font-size: clamp(40px, 4.15vw, 56px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: .98;
  white-space: nowrap;
}

.budget-page .expense-composition-primary .expense-composition-head-summary > small {
  color: #9fb1be;
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: .015em;
}

.budget-page .expense-composition-primary .expense-composition-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  margin-top: 10px;
}

.budget-page .expense-composition-primary .expense-composition-actions .add-row,
.budget-page .expense-composition-primary .expense-composition-reset {
  min-height: 32px;
  padding: 5px 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(240, 207, 123, .48);
  border-radius: 0;
  color: #f0cf7b;
  background: transparent;
  font-size: 10.5px;
  font-weight: 790;
  line-height: 1.25;
}

.budget-page .expense-composition-primary .expense-composition-actions .add-row:hover,
.budget-page .expense-composition-primary .expense-composition-actions .add-row:focus-visible,
.budget-page .expense-composition-primary .expense-composition-reset:hover,
.budget-page .expense-composition-primary .expense-composition-reset:focus-visible {
  border-color: #ffe59c;
  color: #ffe59c;
}

.budget-page .expense-composition-primary .expense-composition-body {
  display: grid;
  grid-template-columns: minmax(330px, .88fr) minmax(410px, 1.12fr);
  align-items: stretch;
  gap: clamp(30px, 4.4vw, 58px);
  padding: clamp(26px, 3.2vw, 38px) clamp(28px, 3.6vw, 42px) clamp(28px, 3.5vw, 40px);
}

.budget-page .expense-composition-primary .expense-composition-viz {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  min-width: 0;
  min-height: 438px;
  padding: clamp(18px, 2.1vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(157, 192, 216, .15);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 36%, rgba(99, 181, 216, .11), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(3, 15, 26, .2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 22px 48px -40px rgba(0, 0, 0, .9);
}

.budget-page .expense-composition-chart-frame {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  place-items: center;
  isolation: isolate;
}

.budget-page .expense-composition-chart-frame::before,
.budget-page .expense-composition-chart-frame::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.budget-page .expense-composition-chart-frame::before {
  width: min(92%, 350px);
  aspect-ratio: 1;
  border: 1px solid rgba(157, 192, 216, .075);
  background:
    radial-gradient(circle, rgba(4, 17, 28, .1) 0 42%, transparent 43%),
    conic-gradient(from 195deg, rgba(240, 207, 123, .075), transparent 24% 73%, rgba(91, 198, 155, .055));
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, .012),
    0 24px 54px -34px rgba(2, 9, 17, .95);
}

.budget-page .expense-composition-chart-frame::after {
  width: min(68%, 250px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .04), transparent 69%);
  filter: blur(7px);
}

.budget-page .expense-composition-primary .expense-composition-donut {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 350px);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  place-items: center;
}

.budget-page .expense-composition-primary .expense-composition-donut .chart {
  display: block;
  width: min(350px, 100%) !important;
  max-width: 350px !important;
  margin: 0 auto !important;
  overflow: visible;
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, .22))
    drop-shadow(0 0 20px rgba(87, 167, 203, .055));
}

.budget-page .expense-composition-primary .expense-composition-donut .donut-reset circle {
  fill: rgba(5, 20, 33, .94) !important;
  stroke: rgba(235, 210, 145, .24) !important;
  stroke-width: 1.15 !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2));
}

.budget-page .expense-composition-primary .expense-composition-donut .donut-center-value {
  fill: #fffaf0 !important;
  font-family: var(--serif) !important;
  font-weight: 650 !important;
  letter-spacing: -.025em;
}

.budget-page .expense-composition-primary .expense-composition-donut .donut-center-label {
  fill: #a8bac7 !important;
  font-family: var(--sans) !important;
  font-weight: 820 !important;
  letter-spacing: .085em;
}

.budget-page .expense-composition-primary .expense-composition-donut .donut-seg {
  cursor: pointer;
  opacity: .96;
  transform-origin: 76px 76px;
  transition:
    filter .2s cubic-bezier(.2, .75, .25, 1),
    opacity .2s ease,
    stroke-width .2s cubic-bezier(.2, .75, .25, 1);
}

.budget-page .expense-composition-primary .expense-composition-donut .donut-segments:has(.donut-seg.active) .donut-seg:not(.active) {
  opacity: .34;
  filter: saturate(.7) brightness(.9);
}

.budget-page .expense-composition-primary .expense-composition-donut .donut-seg.active,
.budget-page .expense-composition-primary .expense-composition-donut .donut-seg:hover,
.budget-page .expense-composition-primary .expense-composition-donut .donut-seg:focus-visible {
  opacity: 1;
  stroke-width: 23px;
  filter:
    brightness(1.11)
    saturate(1.08)
    drop-shadow(0 0 4px rgba(255, 255, 255, .2));
  outline: none;
}

.budget-page .expense-composition-primary .expense-composition-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  width: min(100%, 360px);
  min-width: 0;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--expense-color) 28%, rgba(157, 192, 216, .13));
  border-radius: 9px;
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--expense-color) 10%, transparent), transparent 52%),
    rgba(2, 14, 24, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.budget-page .expense-composition-primary.has-expense-selection .expense-composition-highlight {
  border-color: color-mix(in srgb, var(--expense-color) 45%, rgba(157, 192, 216, .13));
  transform: translateY(-1px);
}

.budget-page .expense-composition-highlight > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.budget-page .expense-composition-highlight > span i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--expense-gradient);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--expense-color) 10%, transparent),
    0 0 13px color-mix(in srgb, var(--expense-color) 23%, transparent);
}

.budget-page .expense-composition-highlight > span em {
  overflow: hidden;
  color: #91a7b6;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.budget-page .expense-composition-highlight > strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: #f7f5ee;
  font-size: 13px;
  font-weight: 770;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-page .expense-composition-highlight > small {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px 5px;
  max-width: 145px;
  color: #94a9b7;
  font-size: 8.5px;
  font-weight: 720;
  line-height: 1.35;
  text-align: right;
}

.budget-page .expense-composition-highlight > small b {
  color: #fffaf0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1;
}

.budget-page .expense-composition-primary .expense-composition-panel {
  display: grid;
  min-width: 0;
  align-content: start;
}

.budget-page .expense-composition-primary .expense-composition-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 3px 4px 11px;
  border-bottom: 1px solid var(--expense-line);
  color: #8da2b2;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.budget-page .expense-composition-primary .expense-composition-list {
  max-height: 458px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: none;
  scrollbar-color: rgba(236, 202, 113, .44) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.budget-page .expense-composition-primary .expense-composition-row-shell {
  border-color: rgba(158, 190, 214, .115);
}

.budget-page .expense-composition-primary .expense-composition-row {
  display: grid;
  grid-template-columns: 11px minmax(126px, 1fr) minmax(76px, .48fr) minmax(90px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 11px 5px;
  border: 0;
  border-radius: 8px;
  color: #f4f5f1;
  background: transparent;
  text-align: left;
  transition: background .18s ease, transform .18s ease;
}

.budget-page .expense-composition-primary .expense-composition-row:hover,
.budget-page .expense-composition-primary .expense-composition-row:focus-visible,
.budget-page .expense-composition-primary .expense-composition-row.active,
.budget-page .expense-composition-primary .expense-composition-row.is-active {
  outline: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--expense-color) 12%, transparent), rgba(255, 255, 255, .02) 72%, transparent);
  transform: translateX(2px);
}

.budget-page .expense-composition-primary .expense-composition-row:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--expense-color) 42%, transparent);
}

.budget-page .expense-composition-primary .expense-composition-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--expense-gradient);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--expense-color) 11%, transparent),
    0 0 12px color-mix(in srgb, var(--expense-color) 22%, transparent);
}

.budget-page .expense-composition-primary .expense-composition-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.budget-page .expense-composition-primary .expense-composition-copy b {
  overflow: hidden;
  color: #f6f6f2;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 760;
  letter-spacing: -.005em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.budget-page .expense-composition-primary .expense-composition-copy small,
.budget-page .expense-composition-primary .expense-composition-numbers small {
  color: #8fa4b3;
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.budget-page .expense-composition-primary .expense-composition-meter {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(157, 192, 216, .12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .16);
}

.budget-page .expense-composition-primary .expense-composition-meter i {
  display: block;
  width: max(3px, var(--expense-share));
  height: 100%;
  border-radius: inherit;
  background: var(--expense-gradient);
  box-shadow: 0 0 10px color-mix(in srgb, var(--expense-color) 24%, transparent);
}

.budget-page .expense-composition-primary .expense-composition-numbers {
  display: grid;
  min-width: 82px;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.budget-page .expense-composition-primary .expense-composition-numbers strong {
  color: #fff9ef;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1;
  white-space: nowrap;
}

.budget-page .expense-composition-primary .expense-composition-numbers small {
  color: var(--expense-color);
  font-weight: 850;
}

.budget-page .expense-composition-primary .expense-composition-edit {
  min-width: 36px;
  min-height: 36px;
  margin-left: 7px;
  padding: 7px;
  border-color: rgba(232, 198, 111, .18);
  border-radius: 8px;
  color: #9cadb9;
  background: rgba(255, 255, 255, .025);
}

.budget-page .expense-composition-primary .expense-composition-edit:hover,
.budget-page .expense-composition-primary .expense-composition-edit:focus-visible {
  border-color: rgba(240, 207, 123, .48);
  color: #f0cf7b;
  background: rgba(240, 207, 123, .08);
}

.budget-page .expense-composition-primary .expense-composition-list-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 3px;
  border: 0;
  border-top: 1px solid var(--expense-line);
  color: #f0cf7b;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .budget-page .expense-composition-primary .expense-composition-body {
    grid-template-columns: minmax(300px, .82fr) minmax(360px, 1.18fr);
    gap: 26px;
  }

  .budget-page .expense-composition-primary .expense-composition-row {
    grid-template-columns: 10px minmax(112px, 1fr) minmax(58px, .42fr) auto;
    gap: 10px;
  }
}

@media (max-width: 1080px) {
  .budget-page .expense-composition-primary .expense-composition-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .budget-page .expense-composition-primary .expense-composition-viz {
    width: min(100%, 560px);
    min-height: 0;
    justify-self: center;
  }

  .budget-page .expense-composition-primary .expense-composition-list {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .budget-page .expense-composition-primary .expense-composition-list-toggle {
    display: flex;
  }

  .budget-page .expense-composition-primary .expense-composition-panel:not(.is-expanded)
    .expense-composition-row-shell:nth-child(n + 6) {
    display: none;
  }
}

@media (max-width: 720px) {
  .budget-page .expense-composition-primary .expense-composition-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    padding: 23px 18px 18px;
  }

  .budget-page .expense-composition-primary .expense-composition-heading h2 {
    max-width: 18ch;
    font-size: clamp(29px, 8.7vw, 36px);
  }

  .budget-page .expense-composition-primary .expense-composition-heading p {
    font-size: 11.5px;
    line-height: 1.48;
  }

  .budget-page .expense-composition-primary .expense-composition-head-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: end;
    width: 100%;
    min-width: 0;
    gap: 3px 16px;
    justify-items: start;
    text-align: left;
  }

  .budget-page .expense-composition-primary .expense-composition-head-summary > span {
    grid-column: 1;
    grid-row: 1;
  }

  .budget-page .expense-composition-primary .expense-composition-head-summary > strong {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    font-size: clamp(35px, 10.8vw, 46px);
    text-align: right;
  }

  .budget-page .expense-composition-primary .expense-composition-head-summary > small {
    grid-column: 1;
    grid-row: 2;
    font-size: 9.5px;
  }

  .budget-page .expense-composition-primary .expense-composition-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    margin-top: 8px;
  }

  .budget-page .expense-composition-primary .expense-composition-body {
    gap: 20px;
    padding: 18px 16px 23px;
  }

  .budget-page .expense-composition-primary .expense-composition-viz {
    width: 100%;
    padding: 14px 10px 12px;
    border-radius: 10px;
  }

  .budget-page .expense-composition-primary .expense-composition-donut {
    width: min(294px, 82vw);
  }

  .budget-page .expense-composition-primary .expense-composition-donut .chart {
    width: min(294px, 100%) !important;
    max-width: 294px !important;
  }

  .budget-page .expense-composition-primary .expense-composition-highlight {
    width: min(100%, 390px);
    margin-top: 8px;
  }

  .budget-page .expense-composition-primary .expense-composition-list-head {
    padding-inline: 2px;
  }

  .budget-page .expense-composition-primary .expense-composition-row {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    min-height: 72px;
    padding: 11px 3px;
  }

  .budget-page .expense-composition-primary .expense-composition-meter {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .budget-page .expense-composition-primary .expense-composition-numbers {
    grid-column: 3;
    grid-row: 1;
  }

  .budget-page .expense-composition-primary .expense-composition-row:hover,
  .budget-page .expense-composition-primary .expense-composition-row:focus-visible,
  .budget-page .expense-composition-primary .expense-composition-row.active,
  .budget-page .expense-composition-primary .expense-composition-row.is-active {
    transform: none;
  }

  .budget-page .expense-composition-primary .expense-composition-edit {
    min-width: 44px;
    min-height: 44px;
    margin-left: 4px;
  }
}

@media (max-width: 520px) {
  .budget-page .expense-composition-primary .expense-composition-panel:not(.is-expanded)
    .expense-composition-row-shell:nth-child(4) {
    display: grid;
  }

  .budget-page .expense-composition-primary .expense-composition-panel:not(.is-expanded)
    .expense-composition-row-shell:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 390px) {
  .budget-page .expense-composition-primary .expense-composition-head {
    padding: 21px 14px 17px;
  }

  .budget-page .expense-composition-primary .expense-composition-heading h2 {
    font-size: clamp(27px, 8.8vw, 31px);
  }

  .budget-page .expense-composition-primary .expense-composition-head-summary {
    gap-inline: 10px;
  }

  .budget-page .expense-composition-primary .expense-composition-head-summary > strong {
    font-size: clamp(32px, 10.5vw, 40px);
  }

  .budget-page .expense-composition-primary .expense-composition-body {
    padding: 15px 12px 20px;
  }

  .budget-page .expense-composition-primary .expense-composition-viz {
    padding-inline: 8px;
  }

  .budget-page .expense-composition-primary .expense-composition-donut {
    width: min(282px, 80vw);
  }

  .budget-page .expense-composition-primary .expense-composition-donut .chart {
    width: min(282px, 100%) !important;
    max-width: 282px !important;
  }

  .budget-page .expense-composition-primary .expense-composition-highlight {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px;
  }

  .budget-page .expense-composition-highlight > small {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    max-width: none;
    text-align: left;
  }

  .budget-page .expense-composition-highlight > strong {
    white-space: normal;
  }

  .budget-page .expense-composition-primary .expense-composition-copy b {
    font-size: 12.5px;
  }

  .budget-page .expense-composition-primary .expense-composition-numbers {
    min-width: 72px;
  }

  .budget-page .expense-composition-primary .expense-composition-numbers strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-page .expense-composition-primary .expense-composition-donut .donut-seg,
  .budget-page .expense-composition-primary .expense-composition-highlight,
  .budget-page .expense-composition-primary .expense-composition-row,
  .budget-page .expense-composition-primary .expense-composition-meter i {
    transition: none !important;
  }
}

/* ===== css/v511.css ===== */
/* Siegel Financial v511 — activation, retention, email rhythm, and mobile-first onboarding. */

/* Keep the premium opener, but let a first-time visitor reach the product quickly. */
.intro {
  transition:
    transform .52s cubic-bezier(.7, 0, .2, 1),
    opacity .3s ease .08s;
}

.intro-brand::before {
  animation-duration: 1s;
}

.intro-med {
  animation-duration: .48s;
  animation-delay: .04s;
}

.intro-med::before {
  animation-duration: .8s;
  animation-delay: .04s;
}

.intro-tag {
  animation-duration: .3s;
  animation-delay: .48s;
}

.intro-lift .intro-med {
  transition:
    transform .44s cubic-bezier(.55, 0, .2, 1),
    opacity .28s ease;
}

/* The progress rail now reflects either the four-step quick path or four-phase detail path. */
.onboarding-modal .ob-phase-track {
  grid-template-columns: repeat(var(--ob-phase-count, 4), minmax(0, 1fr));
}

.ob-mode-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ob-mode-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-content: start;
  gap: 7px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--teal) 8%, transparent), transparent 46%),
    var(--paper-2);
  text-align: left;
  box-shadow: 0 14px 34px -29px rgba(5, 25, 45, .72);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.ob-mode-choice:hover,
.ob-mode-choice:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  box-shadow: 0 20px 42px -30px rgba(5, 25, 45, .7);
}

.ob-mode-choice.selected {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 18%, transparent), transparent 48%),
    color-mix(in srgb, var(--gold-soft) 42%, var(--paper-2));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--gold) 12%, transparent),
    0 18px 40px -30px rgba(5, 25, 45, .72);
}

.ob-mode-choice b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.ob-mode-choice small {
  max-width: 31ch;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.48;
}

.ob-mode-badge {
  width: fit-content;
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ob-mode-choice.selected .ob-mode-badge {
  color: var(--chart-gold-label);
}

.ob-value-first {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal-soft) 45%, var(--paper-2));
}

.ob-value-first b {
  color: var(--ink);
  font-size: 12px;
}

.ob-value-first span {
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.48;
}

.quick-onboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.quick-onboard-grid .field:nth-last-child(-n + 2) {
  border-bottom-color: transparent;
}

.quick-live-readout {
  position: sticky;
  bottom: -13px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 3px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 14%, transparent), transparent 54%),
    color-mix(in srgb, var(--paper) 94%, var(--gold-soft));
  box-shadow: 0 -12px 30px -25px rgba(4, 18, 34, .7);
  backdrop-filter: blur(14px);
}

.quick-live-readout > span {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quick-live-readout > b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 650;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.quick-live-readout > small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.quick-live-readout.negative {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: color-mix(in srgb, var(--danger-soft) 34%, var(--paper));
}

.quick-live-readout.negative > b {
  color: var(--danger);
}

.onboarding-body .quick-refine-note {
  padding: 2px 1px 3px;
}

.ob-preserve-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--teal) 25%, var(--line));
  border-left: 3px solid var(--teal);
  border-radius: 9px;
  background: color-mix(in srgb, var(--teal-soft) 38%, var(--paper-2));
}

.ob-preserve-note b {
  color: var(--ink);
  font-size: 12px;
}

.ob-preserve-note span {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}

.ob-preserve-note small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--teal);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

/* Give the first useful result a true activation moment, without blocking the dashboard. */
.activation-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 21px;
  margin: 0 0 20px;
  padding: clamp(23px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(147, 188, 219, .26);
  border-radius: 13px;
  color: #f8f5ed;
  background:
    radial-gradient(circle at 91% 8%, rgba(216, 184, 108, .2), transparent 31%),
    radial-gradient(circle at 4% 100%, rgba(55, 137, 175, .22), transparent 38%),
    linear-gradient(132deg, #071827 0%, #0b2940 53%, #0a2133 100%);
  box-shadow:
    0 30px 72px -48px rgba(2, 13, 24, .9),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: activationEnter .58s cubic-bezier(.16, .84, .24, 1) both;
}

.activation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d8b86c 22%, #f2dc9b 51%, #7fb4d8 78%, transparent);
}

.activation-card::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  top: -210px;
  right: -90px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(216, 184, 108, .08);
  pointer-events: none;
}

@keyframes activationEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.activation-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  color: rgba(247, 244, 236, .68);
  background: rgba(255, 255, 255, .035);
  font-size: 21px;
  line-height: 1;
}

.activation-close:hover,
.activation-close:focus-visible {
  color: #fff;
  border-color: rgba(240, 207, 123, .5);
  background: rgba(240, 207, 123, .1);
}

.activation-copy {
  max-width: 720px;
  padding-right: 38px;
}

.activation-copy .card-eyebrow {
  color: #f0cf7b;
}

.activation-copy h2 {
  margin: 7px 0 8px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 48px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.activation-copy p {
  max-width: 66ch;
  margin: 0;
  color: #afc0cc;
  font-size: 13.5px;
  line-height: 1.57;
}

.activation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.activation-metrics > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 18px 18px 18px 0;
}

.activation-metrics > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.activation-metrics span {
  color: #9bb0bf;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.activation-metrics b {
  min-width: 0;
  overflow: hidden;
  color: #f8f5ed;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activation-metrics .positive b {
  color: #7fd0ad;
}

.activation-metrics .negative b {
  color: #ff9e8e;
}

.activation-metrics small {
  color: #8198a8;
  font-size: 10.5px;
  line-height: 1.35;
}

.activation-rhythm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 760px;
}

.activation-rhythm-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(123, 204, 169, .35);
  border-radius: 50%;
  color: #8ed8b8;
  background: rgba(63, 175, 125, .11);
  font-weight: 850;
}

.activation-rhythm div {
  display: grid;
  gap: 2px;
}

.activation-rhythm b {
  color: #f7f4ec;
  font-size: 12.5px;
}

.activation-rhythm small {
  color: #93a9b8;
  font-size: 11px;
  line-height: 1.42;
}

.activation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.activation-actions .btn {
  min-height: 43px;
}

.activation-actions .btn-pri {
  border-color: #e1c576;
  color: #071827;
  background: linear-gradient(135deg, #efd88f, #cfa957);
  box-shadow: 0 15px 30px -20px rgba(238, 210, 130, .75);
}

.activation-actions .btn-ghost {
  border-color: rgba(255, 255, 255, .2);
  color: #f7f4ec;
  background: rgba(255, 255, 255, .045);
}

.activation-actions .linklike {
  color: #a8c9df;
  font-size: 11.5px;
}

.activation-trust {
  color: #829aa9;
  font-size: 10.5px;
}

/* Persistent monthly habit cue: compact enough to earn its space on mobile. */
.plan-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr) auto;
  align-items: center;
  gap: clamp(17px, 2.5vw, 32px);
  margin: 18px 0;
  padding: 19px 21px;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--teal) 9%, transparent), transparent 44%),
    linear-gradient(120deg, var(--paper-2), color-mix(in srgb, var(--teal-soft) 22%, var(--paper-2)));
  box-shadow: 0 18px 42px -36px rgba(4, 29, 52, .62);
}

.plan-pulse.is-complete {
  border-color: color-mix(in srgb, #44a879 28%, var(--line));
  background:
    radial-gradient(circle at 100% 0, rgba(70, 190, 145, .1), transparent 44%),
    var(--paper-2);
}

.plan-pulse-copy {
  display: grid;
  gap: 4px;
}

.plan-pulse-copy > b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.13;
}

.plan-pulse-copy > span {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.plan-pulse-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.plan-pulse-steps > span {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 760;
}

.plan-pulse-steps i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: transparent;
  background: var(--paper);
  font-size: 10px;
  font-style: normal;
}

.plan-pulse-steps .done {
  color: var(--ink);
}

.plan-pulse-steps .done i {
  border-color: color-mix(in srgb, #3ba477 52%, var(--line));
  color: #2f8c65;
  background: color-mix(in srgb, #56bd8d 12%, var(--paper));
}

.plan-pulse-action {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.plan-pulse-action .btn {
  min-height: 40px;
  white-space: nowrap;
}

.plan-pulse-action small {
  color: var(--ink-3);
  font-size: 9.5px;
  white-space: nowrap;
}

/* Make the reminder lifecycle understandable before someone opts in. */
.email-rhythm-row {
  align-items: flex-start;
}

.email-rhythm-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.email-rhythm-preview > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1px 7px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  background: var(--paper);
}

.email-rhythm-preview i {
  grid-row: 1 / span 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-3);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.email-rhythm-preview b {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-rhythm-preview small {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-rhythm-preview > span.active {
  border-color: color-mix(in srgb, var(--teal) 26%, var(--line));
  color: var(--ink-2);
  background: color-mix(in srgb, var(--teal-soft) 34%, var(--paper));
}

.email-rhythm-preview > span.active i {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 72%, var(--paper));
}

.email-optin {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 2px 0 16px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--teal-soft) 30%, var(--paper-2));
  cursor: pointer;
}

.email-optin input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent-2);
}

.email-optin span {
  display: grid;
  gap: 3px;
}

.email-optin b {
  color: var(--ink);
  font-size: 12px;
}

.email-optin small {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.42;
}

.networth-page :is(.nw-projection-bridge, .networth-home-hero) {
  scroll-margin-top: 84px;
}

@media (max-width: 880px) {
  .plan-pulse {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .plan-pulse-steps {
    grid-column: 1;
  }

  .plan-pulse-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  .ob-intro {
    gap: 14px;
  }

  .ob-intro-lead {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .ob-mode-choices {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .ob-mode-choice {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 13px 14px;
  }

  .ob-mode-choice .ob-mode-badge {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .ob-mode-choice b {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .ob-mode-choice small {
    grid-column: 1 / -1;
    font-size: 10.5px;
  }

  .ob-value-first {
    grid-template-columns: 1fr;
    padding: 11px 12px;
  }

  .ob-value-first span {
    font-size: 10.5px;
  }

  .quick-onboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-onboard-grid .field:nth-last-child(-n + 2) {
    border-bottom-color: var(--line);
  }

  .quick-onboard-grid .field:last-child {
    border-bottom-color: transparent;
  }

  .quick-live-readout {
    bottom: -10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 12px 13px;
  }

  .quick-live-readout > b {
    font-size: clamp(22px, 7.4vw, 28px);
  }

  .quick-live-readout > small {
    font-size: 9.5px;
  }

  .ob-preserve-note {
    grid-template-columns: 1fr;
    padding: 11px 12px;
  }

  .ob-preserve-note span,
  .ob-preserve-note small {
    grid-column: 1;
    grid-row: auto;
  }

  .activation-card {
    gap: 17px;
    margin-inline: -1px;
    padding: 21px 16px 18px;
    border-radius: 11px;
  }

  .activation-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .activation-copy {
    padding-right: 34px;
  }

  .activation-copy h2 {
    max-width: 14ch;
    font-size: clamp(30px, 9.2vw, 39px);
  }

  .activation-copy p {
    font-size: 12.5px;
  }

  .activation-metrics {
    grid-template-columns: 1fr;
  }

  .activation-metrics > div,
  .activation-metrics > div + div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 3px 12px;
    padding: 13px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  .activation-metrics > div:first-child {
    border-top: 0;
  }

  .activation-metrics b {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 48vw;
    font-size: clamp(23px, 7.4vw, 30px);
  }

  .activation-metrics small {
    grid-column: 1;
  }

  .activation-rhythm {
    align-items: start;
  }

  .activation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activation-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .activation-actions .linklike {
    min-height: 38px;
    justify-self: center;
  }

  .activation-trust {
    text-align: center;
  }

  .plan-pulse {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 17px 15px;
  }

  .plan-pulse-steps,
  .plan-pulse-action {
    grid-column: 1;
    grid-row: auto;
  }

  .plan-pulse-action {
    justify-items: stretch;
  }

  .plan-pulse-action .btn {
    width: 100%;
    justify-content: center;
  }

  .plan-pulse-action small {
    text-align: center;
    white-space: normal;
  }

  .email-rhythm-preview {
    grid-template-columns: 1fr;
  }

  .email-rhythm-preview > span {
    grid-template-columns: 24px auto minmax(0, 1fr);
  }

  .email-rhythm-preview i {
    grid-row: 1;
  }

  .email-rhythm-preview b,
  .email-rhythm-preview small {
    grid-row: 1;
  }

  .email-rhythm-preview small {
    text-align: right;
  }

  .email-rhythm-row > .btn {
    min-width: 112px;
  }

  .networth-page :is(.nw-projection-bridge, .networth-home-hero) {
    scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 390px) {
  .onboarding-head .ob-progress-copy {
    font-size: 9px;
  }

  .onboarding-head h2 {
    font-size: 27px !important;
  }

  .onboarding-foot {
    grid-template-columns: .82fr 1.18fr !important;
  }

  .activation-rhythm-mark {
    width: 30px;
    height: 30px;
  }

  .plan-pulse-steps {
    gap: 3px;
  }

  .plan-pulse-steps > span {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 4px;
    font-size: 9px;
  }

  .plan-pulse-steps i {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activation-card,
  .ob-mode-choice {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== css/v512.css ===== */
/* Siegel Financial v512 — intentionally static Net Worth experience. */

/* Keep the useful entry framing from the prior release without replaying any
   value, panel, chart, point, glow, or page-reveal animation. */
.networth-page .networth-home-hero{
  scroll-margin-top:clamp(74px,10vh,112px);
}

.networth-page :is(.history-endpoint-halo,.history-endpoint-halo-outer){
  animation:none!important;
  transform:none!important;
}

/* ===== css/v513.css ===== */
/* Siegel Financial v513 — transparent nominal assumptions and separate inflation. */

/* ---------- Shared rate equation ---------- */
.assumption-math{
  display:grid;
  grid-template-columns:minmax(76px,1fr) 18px minmax(76px,1fr) 18px minmax(105px,1.2fr);
  align-items:stretch;
  gap:7px;
  min-width:0;
}
.assumption-math > span{
  display:grid;
  align-content:center;
  gap:3px;
  min-width:0;
  padding:10px 11px;
  border:1px solid color-mix(in srgb,var(--navy-700) 12%,var(--line));
  border-radius:9px;
  background:color-mix(in srgb,var(--paper-2) 94%,var(--navy-700));
}
.assumption-math > span i{
  overflow:hidden;
  color:var(--ink-3);
  font-size:9px;
  font-style:normal;
  font-weight:850;
  letter-spacing:.085em;
  line-height:1.15;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.assumption-math > span b{
  color:var(--ink);
  font-size:18px;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.025em;
  line-height:1;
}
.assumption-math > em{
  align-self:center;
  color:var(--ink-3);
  font-size:17px;
  font-style:normal;
  font-weight:850;
  text-align:center;
}
.assumption-math .assumption-real{
  border-color:color-mix(in srgb,var(--green) 38%,var(--line));
  background:linear-gradient(145deg,color-mix(in srgb,var(--green) 11%,var(--paper)),color-mix(in srgb,var(--teal) 5%,var(--paper-2)));
}
.assumption-math .assumption-real i{color:color-mix(in srgb,var(--green) 78%,var(--ink))}
.assumption-math .assumption-real b{color:var(--green)}
.assumption-math.negative .assumption-real{
  border-color:color-mix(in srgb,var(--danger) 38%,var(--line));
  background:color-mix(in srgb,var(--danger) 7%,var(--paper));
}
.assumption-math.negative .assumption-real :is(i,b){color:var(--danger)}
.assumption-math.compact{
  grid-template-columns:minmax(68px,1fr) 15px minmax(68px,1fr) 15px minmax(92px,1.15fr);
  gap:5px;
}
.assumption-math.compact > span{padding:8px 9px}
.assumption-math.compact > span b{font-size:16px}
.assumption-dial{
  display:grid;
  gap:12px;
  min-width:0;
}
.assumption-dial .dial{min-width:0}
.inflation-control-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px dashed color-mix(in srgb,var(--gold) 42%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,var(--gold) 7%,var(--paper-2));
  color:var(--ink-2);
  font-size:11px;
  font-weight:700;
  line-height:1.35;
}
.inflation-control-note b{
  flex:none;
  color:var(--gold);
  font-size:16px;
  font-variant-numeric:tabular-nums;
}

/* ---------- Detailed opener assumptions ---------- */
.onboarding-modal.onboarding-wide{width:min(100%,1000px);max-width:1000px}
.onboarding-body:has(.ob-assumption-intro){gap:16px}
.ob-assumption-intro{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(350px,.95fr);
  align-items:center;
  gap:26px;
  overflow:hidden;
  padding:22px 24px;
  border:1px solid color-mix(in srgb,var(--navy-700) 24%,var(--line));
  border-radius:13px;
  background:
    radial-gradient(520px 220px at 102% -14%,rgba(216,184,108,.18),transparent 64%),
    linear-gradient(135deg,color-mix(in srgb,var(--navy-700) 97%,#000),color-mix(in srgb,var(--navy-500) 93%,#000));
  box-shadow:0 24px 58px -42px rgba(3,17,32,.92),inset 0 1px 0 rgba(255,255,255,.09);
}
.ob-assumption-intro::after{
  position:absolute;
  inset:auto -70px -100px auto;
  width:220px;
  height:220px;
  border:1px solid rgba(216,184,108,.12);
  border-radius:50%;
  content:"";
}
.ob-assumption-intro > div:first-child{position:relative;z-index:1;min-width:0}
.assumption-history-badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  margin-bottom:10px;
  padding:5px 9px;
  border:1px solid rgba(232,202,126,.34);
  border-radius:999px;
  color:#F0D68D;
  background:rgba(216,184,108,.09);
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.ob-assumption-intro h3{
  margin:0;
  color:#FFF;
  font-family:var(--serif);
  font-size:clamp(25px,2.7vw,34px);
  letter-spacing:-.025em;
  line-height:1.03;
  text-wrap:balance;
}
.ob-assumption-intro p{
  max-width:62ch;
  margin:10px 0 0;
  color:rgba(241,246,250,.76);
  font-size:12.5px;
  line-height:1.6;
}
.ob-assumption-intro p b{color:#FFF}
.ob-assumption-intro .assumption-math{position:relative;z-index:1}
.ob-assumption-intro .assumption-math > span{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.055);
}
.ob-assumption-intro .assumption-math > span :is(i,b){color:#EFF5F8}
.ob-assumption-intro .assumption-math > em{color:rgba(255,255,255,.48)}
.ob-assumption-intro .assumption-math .assumption-real{
  border-color:rgba(106,211,161,.45);
  background:rgba(24,154,103,.16);
}
.ob-assumption-intro .assumption-math .assumption-real i{color:#A6E2C5}
.ob-assumption-intro .assumption-math .assumption-real b{color:#7FE0B1}
.ob-inflation-card,
.ob-assumption-card{
  position:relative;
  min-width:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--paper-2) 96%,var(--gold)));
  box-shadow:0 20px 48px -44px rgba(3,18,33,.70),inset 0 1px 0 rgba(255,255,255,.55);
}
.ob-inflation-card{
  border-color:color-mix(in srgb,var(--gold) 40%,var(--line));
  background:
    radial-gradient(440px 160px at 100% 0,color-mix(in srgb,var(--gold) 12%,transparent),transparent 65%),
    linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--gold) 4%,var(--paper-2)));
}
.ob-assumption-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.ob-assumption-card::before,
.ob-inflation-card::before{
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  border-radius:12px 0 0 12px;
  background:var(--card-accent,var(--gold));
  content:"";
}
.ob-assumption-card.stocks{--card-accent:var(--green)}
.ob-assumption-card.cash{--card-accent:var(--teal)}
.ob-assumption-card.home{--card-accent:var(--gold)}
.ob-assumption-card.income{--card-accent:#5E8FC4}
.ob-assumption-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:15px;
}
.ob-assumption-card-head > div{min-width:0}
.ob-assumption-index{
  display:inline-grid;
  place-items:center;
  min-width:27px;
  height:21px;
  margin-right:7px;
  border-radius:5px;
  color:color-mix(in srgb,var(--card-accent,var(--gold)) 80%,var(--ink));
  background:color-mix(in srgb,var(--card-accent,var(--gold)) 11%,var(--paper-2));
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  vertical-align:middle;
}
.ob-assumption-eyebrow{
  color:var(--ink-3);
  font-size:9px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
  vertical-align:middle;
}
.ob-assumption-card h3,
.ob-inflation-card h3{
  margin:7px 0 0;
  color:var(--ink);
  font-size:16px;
  letter-spacing:-.015em;
  line-height:1.2;
}
.assumption-default-pill{
  flex:none;
  padding:6px 8px;
  border:1px solid color-mix(in srgb,var(--card-accent,var(--gold)) 30%,var(--line));
  border-radius:999px;
  color:color-mix(in srgb,var(--card-accent,var(--gold)) 78%,var(--ink));
  background:color-mix(in srgb,var(--card-accent,var(--gold)) 7%,var(--paper));
  font-size:9px;
  font-weight:850;
  line-height:1.15;
  white-space:nowrap;
}
.ob-assumption-card .dial,
.ob-inflation-card .dial{
  padding:13px;
  border:1px solid color-mix(in srgb,var(--card-accent,var(--gold)) 15%,var(--line));
  border-radius:9px;
  background:color-mix(in srgb,var(--card-accent,var(--gold)) 3%,var(--paper-2));
}
.ob-assumption-card .dname,
.ob-inflation-card .dname{font-size:11.5px}
.ob-assumption-card .dval,
.ob-inflation-card .dval{font-size:17px}
.ob-assumption-card > p,
.ob-inflation-card > p{
  margin:14px 0 9px;
  color:var(--ink-2);
  font-size:11.25px;
  line-height:1.55;
}
.ob-assumption-card > p b,
.ob-inflation-card > p b{color:var(--ink)}
.ob-assumption-card > a,
.ob-inflation-card > a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  color:color-mix(in srgb,var(--card-accent,var(--gold)) 76%,var(--ink));
  font-size:10.5px;
  font-weight:800;
  line-height:1.25;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.ob-assumption-caution{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px 18px;
  padding:14px 16px;
  border:1px solid color-mix(in srgb,var(--gold) 30%,var(--line));
  border-radius:10px;
  background:color-mix(in srgb,var(--gold) 6%,var(--paper-2));
}
.ob-assumption-caution b{color:var(--ink);font-size:11.5px}
.ob-assumption-caution span{color:var(--ink-2);font-size:11px;line-height:1.45}

/* ---------- Projection assumptions ---------- */
.projection-page-wrap .real-rate-banner.purchasing-power-banner{
  position:relative;
  top:auto;
  z-index:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(355px,.9fr);
  align-items:center;
  gap:24px;
  margin:0 0 12px;
  padding:18px 20px;
  border-left:3px solid var(--gold);
  background:
    radial-gradient(420px 160px at 100% 0,color-mix(in srgb,var(--gold) 11%,transparent),transparent 68%),
    linear-gradient(135deg,var(--paper),color-mix(in srgb,var(--gold) 4%,var(--paper-2)));
  backdrop-filter:none;
}
.purchasing-power-copy{display:grid;gap:5px;min-width:0}
.purchasing-power-copy .projection-chart-kicker{
  color:var(--gold);
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.11em;
  text-align:left;
  text-transform:uppercase;
}
.purchasing-power-copy b{
  color:var(--ink);
  font-family:var(--serif);
  font-size:19px;
  line-height:1.18;
  white-space:normal;
}
.purchasing-power-copy p{
  max-width:64ch;
  margin:0;
  color:var(--ink-2);
  font-size:11.5px;
  line-height:1.5;
}
.projection-page-wrap .projection-dials{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  padding:14px;
  background:color-mix(in srgb,var(--paper-2) 96%,var(--gold));
}
.projection-assumption-card{
  min-width:0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  box-shadow:0 12px 32px -31px rgba(4,20,36,.65);
}
.projection-assumption-card.inflation{
  grid-column:1 / -1;
  border-color:color-mix(in srgb,var(--gold) 35%,var(--line));
  background:linear-gradient(105deg,color-mix(in srgb,var(--gold) 7%,var(--paper)),var(--paper));
}
.projection-assumption-card.stocks{border-top:2px solid color-mix(in srgb,var(--green) 70%,var(--line))}
.projection-assumption-card.cash{border-top:2px solid color-mix(in srgb,var(--teal) 70%,var(--line))}
.projection-assumption-card.income{border-top:2px solid color-mix(in srgb,#5E8FC4 70%,var(--line))}
.projection-assumption-card.home{border-top:2px solid color-mix(in srgb,var(--gold) 70%,var(--line))}
.projection-assumption-card .dial{padding:0;background:transparent!important}
.projection-assumption-card.inflation .assumption-dial{
  grid-template-columns:minmax(0,1fr) minmax(240px,.72fr);
  align-items:end;
  gap:18px;
}
.projection-assumption-card.inflation .inflation-control-note{min-height:48px}

/* ---------- Settings assumptions ---------- */
.settings-assumption-explainer{
  display:grid;
  gap:4px;
  margin:10px 0 13px;
  padding:13px 14px;
  border-left:3px solid var(--gold);
  border-radius:0 9px 9px 0;
  background:color-mix(in srgb,var(--gold) 7%,var(--paper-2));
}
.settings-assumption-explainer b{color:var(--ink);font-size:12.5px}
.settings-assumption-explainer span{color:var(--ink-2);font-size:11px;line-height:1.45}
.settings-assumption-stack{
  display:grid;
  gap:12px;
}
.settings-assumption-stack > .assumption-dial{
  padding:13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--paper-2);
}
.dollars-rate-note{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--line);
  color:var(--ink-2);
  font-size:10.5px;
  font-weight:680;
  line-height:1.45;
}

/* ---------- Theme and responsive treatment ---------- */
:root[data-theme="dark"] .ob-assumption-intro{
  background:
    radial-gradient(520px 220px at 102% -14%,rgba(216,184,108,.13),transparent 64%),
    linear-gradient(135deg,#071523,#102B45);
}
:root[data-theme="dark"] :is(.ob-inflation-card,.ob-assumption-card,.projection-assumption-card){
  box-shadow:0 22px 50px -40px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.035);
}
:root[data-theme="dark"] .assumption-math > span{
  background:color-mix(in srgb,var(--paper-2) 92%,#000);
}
:root[data-theme="dark"] .assumption-math .assumption-real{
  background:color-mix(in srgb,var(--green) 12%,var(--paper-2));
}

@media(max-width:860px){
  .ob-assumption-intro{
    grid-template-columns:1fr;
    gap:18px;
  }
  .ob-assumption-intro .assumption-math{max-width:560px}
  .projection-page-wrap .real-rate-banner.purchasing-power-banner{
    grid-template-columns:1fr;
    gap:14px;
  }
}

@media(max-width:700px){
  .ob-assumption-grid{grid-template-columns:1fr}
  .ob-assumption-intro{padding:18px}
  .ob-assumption-card,
  .ob-inflation-card{padding:15px}
  .projection-page-wrap .projection-dials{grid-template-columns:1fr;padding:10px}
  .projection-assumption-card.inflation{grid-column:auto}
  .projection-assumption-card.inflation .assumption-dial{grid-template-columns:1fr;gap:10px}
  .ob-assumption-caution{grid-template-columns:1fr;gap:5px}
}

@media(max-width:520px){
  .onboarding-body:has(.ob-assumption-intro){padding-inline:12px!important}
  .ob-assumption-intro{gap:15px;padding:16px 14px;border-radius:11px}
  .ob-assumption-intro h3{font-size:25px}
  .ob-assumption-intro p{font-size:11.5px}
  .assumption-history-badge{font-size:8px;letter-spacing:.08em}
  .ob-assumption-card-head{display:grid;gap:8px;margin-bottom:12px}
  .assumption-default-pill{justify-self:start}
  .ob-assumption-card > p,
  .ob-inflation-card > p{font-size:11px}
  .assumption-math,
  .assumption-math.compact{
    grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);
    gap:5px;
  }
  .assumption-math > span,
  .assumption-math.compact > span{padding:8px 7px}
  .assumption-math > span b,
  .assumption-math.compact > span b{font-size:15px}
  .assumption-math > span i{font-size:7.5px;letter-spacing:.045em}
  .assumption-math > em{font-size:14px}
  .assumption-math > em:nth-of-type(2){display:none}
  .assumption-math .assumption-real{
    grid-column:1 / -1;
    min-height:46px;
    text-align:center;
  }
  .projection-page-wrap .real-rate-banner.purchasing-power-banner{padding:15px 13px}
  .purchasing-power-copy b{font-size:18px}
  .projection-assumption-card{padding:12px}
  .inflation-control-note{align-items:flex-start;font-size:10px}
  .settings-assumption-stack > .assumption-dial{padding:11px}
}

@media(prefers-reduced-motion:reduce){
  .ob-assumption-card,
  .ob-inflation-card,
  .ob-assumption-intro{animation:none!important}
}

/* ===== css/v514.css ===== */
/* v514 - commercial readiness and Premium visibility */
.settings-premium-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background:
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--card) 94%, var(--gold) 6%), var(--card));
}
.settings-premium-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--gold), var(--teal));
}
.settings-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.settings-premium-copy h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.12;
}
.settings-premium-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}
.settings-premium-price {
  display: grid;
  min-width: 175px;
  gap: 5px;
  text-align: right;
}
.settings-premium-price strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
}
.settings-premium-price strong small {
  font-family: var(--sans);
  font-size: 12px;
}
.settings-premium-price span {
  color: var(--ink-2);
  font-size: 11px;
}
.settings-premium-price .btn {
  margin-top: 7px;
  justify-content: center;
}
@media (max-width: 700px) {
  .settings-premium-grid { grid-template-columns: 1fr; gap: 17px; }
  .settings-premium-price { min-width: 0; text-align: left; }
  .settings-premium-price .btn { width: 100%; }
}

/* ===== css/v515.css ===== */
/* v515: restore future-building priority and refine its headline amount. */
.budget-page .budget-building-amount {
  display: inline-block;
  padding: 0 .08em .02em;
  color: #f3d47b;
  font-size: 1.09em;
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: .94;
  white-space: nowrap;
  background:
    linear-gradient(90deg, rgba(229, 189, 91, .2), rgba(85, 204, 146, .18))
    0 94% / 100% .24em no-repeat;
  text-shadow: 0 0 22px rgba(229, 189, 91, .14);
}

:root:not([data-theme="dark"]) .budget-page .budget-building-amount {
  color: #08724d;
  background-image:
    linear-gradient(90deg, rgba(200, 149, 37, .24), rgba(21, 145, 100, .24));
  text-shadow: 0 7px 18px rgba(8, 114, 77, .08);
}

@media (max-width: 760px) {
  .budget-page .budget-building-amount {
    font-size: 1.08em;
    background-size: 100% .22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-page .budget-building-amount {
    text-shadow: none;
  }
}

/* ===== css/v516.css ===== */
/* Siegel Financial v516 — overall net worth and latest-entry comparison. */
.networth-page .history-inline-inspector {
  grid-template-columns: minmax(360px, 1.08fr) minmax(300px, .92fr);
}

.networth-page .history-current-anchor {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.networth-page .history-inline-inspector .history-current-copy b {
  color: #f4d77f;
  font-size: 10px;
  letter-spacing: .15em;
}

.networth-page .history-inline-inspector .history-current-copy small {
  max-width: 38ch;
  color: rgba(247, 244, 236, .54);
  font-size: 10.75px;
}

.networth-page .history-current-value {
  margin-top: 15px;
  color: #fffaf0;
  font-size: clamp(46px, 5vw, 66px);
  letter-spacing: -.025em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

.networth-page .history-current-meta {
  min-height: 27px;
}

.networth-page .history-current-coverage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(247, 244, 236, .46);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .03em;
  line-height: 1.25;
  white-space: nowrap;
}

.networth-page .history-current-coverage::before {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(142, 205, 239, .52);
  border-radius: 50%;
  background: rgba(120, 185, 228, .14);
  box-shadow: 0 0 0 3px rgba(120, 185, 228, .045);
  content: "";
}

.networth-page .history-latest-change {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 19px 22px 18px;
  overflow: hidden;
  background:
    radial-gradient(250px 135px at 100% 0, rgba(103, 174, 221, .13), transparent 72%),
    linear-gradient(135deg, rgba(255, 255, 255, .028), rgba(104, 169, 214, .025));
}

.networth-page .history-latest-change::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 216, 171, .7), rgba(229, 193, 104, .5));
  content: "";
  opacity: .8;
}

.networth-page .history-latest-change.negative::before {
  background: linear-gradient(90deg, transparent, rgba(255, 145, 154, .76), rgba(229, 193, 104, .42));
}

.networth-page .history-latest-change.neutral::before,
.networth-page .history-latest-change.is-empty::before {
  background: linear-gradient(90deg, transparent, rgba(145, 200, 233, .7), rgba(229, 193, 104, .42));
}

.networth-page .history-latest-change-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.networth-page .history-latest-change-head > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.networth-page .history-latest-change-head b {
  color: rgba(247, 244, 236, .78);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.networth-page .history-latest-change-head small {
  color: rgba(247, 244, 236, .43);
  font-size: 9.5px;
  line-height: 1.35;
}

.networth-page .history-latest-change-icon {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(111, 211, 160, .25);
  border-radius: 50%;
  background: rgba(63, 190, 132, .075);
}

.networth-page .history-latest-change-icon::before {
  position: absolute;
  left: 9px;
  top: 10px;
  width: 8px;
  height: 6px;
  border-top: 1.7px solid #82ddb0;
  border-right: 1.7px solid #82ddb0;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}

.networth-page .history-latest-change.negative .history-latest-change-icon {
  border-color: rgba(255, 137, 147, .27);
  background: rgba(255, 112, 125, .07);
}

.networth-page .history-latest-change.negative .history-latest-change-icon::before {
  border-color: #ff9ba3;
  transform: rotate(135deg);
}

.networth-page .history-latest-change.neutral .history-latest-change-icon,
.networth-page .history-latest-change.is-empty .history-latest-change-icon {
  border-color: rgba(133, 188, 225, .25);
  background: rgba(106, 171, 216, .075);
}

.networth-page .history-latest-change.neutral .history-latest-change-icon::before,
.networth-page .history-latest-change.is-empty .history-latest-change-icon::before {
  left: 9px;
  top: 14px;
  width: 9px;
  height: 0;
  border-top: 1.7px solid #91c8e9;
  border-right: 0;
  transform: none;
}

.networth-page .history-latest-change-value {
  display: block;
  margin-top: 12px;
  color: #8de0b4;
  font-family: var(--serif);
  font-size: clamp(31px, 3.25vw, 43px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: .96;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.networth-page .history-latest-change.negative .history-latest-change-value {
  color: #ffa1a8;
}

.networth-page .history-latest-change.neutral .history-latest-change-value {
  color: #a8d3ec;
}

.networth-page .history-latest-change-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  margin-top: 7px;
  color: rgba(247, 244, 236, .55);
  font-size: 10.5px;
  line-height: 1.35;
}

.networth-page .history-latest-change-subline > b {
  color: #8de0b4;
  font-size: 11.5px;
  font-weight: 820;
}

.networth-page .history-latest-change.negative .history-latest-change-subline > b {
  color: #ffa1a8;
}

.networth-page .history-latest-change.neutral .history-latest-change-subline > b {
  color: #a8d3ec;
}

.networth-page .history-latest-change-subline span > b {
  color: rgba(247, 244, 236, .78);
  font-weight: 780;
}

.networth-page .history-latest-change-period {
  display: grid;
  grid-template-columns: max-content minmax(28px, 1fr) max-content;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.networth-page .history-latest-change-period time {
  color: rgba(247, 244, 236, .48);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: .025em;
  white-space: nowrap;
}

.networth-page .history-latest-change-period > span {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 185, 228, .28), rgba(229, 193, 104, .46));
}

.networth-page .history-latest-change-period > span::before,
.networth-page .history-latest-change-period > span::after {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(225, 235, 242, .48);
  border-radius: 50%;
  background: #183149;
  content: "";
  transform: translateY(-50%);
}

.networth-page .history-latest-change-period > span::before {
  left: -1px;
}

.networth-page .history-latest-change-period > span::after {
  right: -1px;
  border-color: rgba(241, 214, 137, .72);
}

.networth-page .history-latest-change-empty-title {
  max-width: 23ch;
  margin-top: 13px;
  color: #f7f4ec;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 680;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.networth-page .history-latest-change.is-empty p {
  max-width: 34ch;
  margin: 8px 0 0;
  color: rgba(247, 244, 236, .5);
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .networth-page .history-inline-inspector {
    grid-template-columns: minmax(330px, 1.04fr) minmax(270px, .96fr);
  }

  .networth-page .history-latest-change {
    padding-inline: 18px;
  }
}

@media (max-width: 700px) {
  .networth-page .history-inline-inspector {
    display: grid;
    grid-template-columns: 1fr;
  }

  .networth-page .history-current-anchor {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  .networth-page .history-latest-change {
    min-height: 150px;
    padding: 16px;
  }

  .networth-page .history-latest-change-value {
    font-size: clamp(31px, 9.4vw, 39px);
  }

  .networth-page .history-latest-change-period {
    margin-top: 11px;
  }
}

@media (max-width: 430px) {
  .networth-page .history-current-value {
    font-size: clamp(39px, 12vw, 48px);
  }

  .networth-page .history-current-meta {
    align-items: center;
  }

  .networth-page .history-current-coverage {
    font-size: 8.2px;
  }

  .networth-page .history-latest-change {
    min-height: 143px;
    padding: 14px 13px;
  }

  .networth-page .history-latest-change-head small {
    font-size: 8.8px;
  }

  .networth-page .history-latest-change-value {
    margin-top: 10px;
  }

  .networth-page .history-latest-change-subline {
    margin-top: 6px;
    font-size: 10px;
  }

  .networth-page .history-latest-change-period {
    gap: 6px;
    margin-top: 10px;
    padding-top: 9px;
  }

  .networth-page .history-latest-change-period time {
    font-size: 8px;
  }

  .networth-page .history-latest-change-empty-title {
    font-size: 20px;
  }
}

@media (max-width: 350px) {
  .networth-page .history-current-meta {
    display: flex;
  }

  .networth-page .history-current-coverage {
    white-space: normal;
    text-align: right;
  }

  .networth-page .history-latest-change-period {
    grid-template-columns: max-content minmax(16px, 1fr) max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-latest-change,
  .networth-page .history-latest-change * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== css/v517.css ===== */
/* Siegel Financial v517 — reminder controls, repeatable Budget motion, and a retirement arrival moment. */

/* Settings navigation stays a single predictable row at every breakpoint. */
.settings-page .settings-jump {
  display: flex;
  grid-template-columns: none;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.settings-page .settings-jump a {
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

.settings-page :is(
  #settings-account,
  #settings-membership,
  #settings-reminders,
  #settings-profile,
  #settings-planning,
  #settings-privacy,
  #settings-data
) {
  scroll-margin-top: 142px;
}

.settings-reminder-card {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 32%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 97%, var(--teal) 3%), var(--paper));
  box-shadow: 0 26px 62px -54px color-mix(in srgb, var(--teal) 58%, transparent);
}

.settings-reminder-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--green));
  content: "";
  opacity: .86;
}

.settings-reminder-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
}

.settings-reminder-copy h2 {
  max-width: 24ch;
  margin: 5px 0 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 2.45vw, 32px);
  font-weight: 690;
  letter-spacing: -.018em;
  line-height: 1.08;
  text-wrap: balance;
}

.settings-reminder-copy p {
  max-width: 70ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.settings-reminder-day {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--paper-2) 88%, var(--gold) 4%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 36%, transparent);
}

.settings-reminder-day > span {
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 830;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.settings-reminder-day .select-wrap,
.settings-reminder-day select {
  width: 100%;
}

.settings-reminder-day select {
  min-height: 48px;
  padding-inline: 13px 38px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.settings-reminder-day small {
  color: var(--ink-3);
  font-size: 10px;
  line-height: 1.4;
}

.settings-reminder-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 2px 11px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper-2) 88%, transparent);
}

.settings-reminder-status-mark {
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 1px solid color-mix(in srgb, var(--ink-3) 55%, transparent);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink-3) 7%, transparent);
}

.settings-reminder-status.active .settings-reminder-status-mark {
  border-color: color-mix(in srgb, var(--green) 70%, white 10%);
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent);
}

.settings-reminder-status b {
  color: var(--ink);
  font-size: 12px;
}

.settings-reminder-status p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.settings-reminder-cadence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.settings-reminder-cadence > span {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 9px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--paper-2);
}

.settings-reminder-cadence i {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.settings-reminder-cadence .active i {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--paper));
}

.settings-reminder-cadence b {
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}

.settings-reminder-cadence small {
  min-width: 0;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.3;
}

.settings-reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

/* Projection playback lands in the retirement marker, then celebrates the arrival. */
.projection-page-wrap .projection-celebration {
  opacity: 0;
  pointer-events: none;
}

.projection-page-wrap .projection-celebration-ring {
  fill: none;
  stroke: #f3d47b;
  stroke-width: 1.7;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.projection-page-wrap .projection-celebration-rays line {
  stroke: #f5d77c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  opacity: 0;
}

.projection-page-wrap .projection-celebration-rays :is(.ray-2, .ray-4, .ray-6, .ray-8) {
  stroke: #80ddb0;
}

.projection-page-wrap .projection-celebration-particles :is(circle, path) {
  fill: #f5d77c;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.projection-page-wrap .projection-celebration-particles :is(.particle-2, .particle-4) {
  fill: #80ddb0;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration {
  opacity: 1;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-ring.ring-one {
  animation: projection-celebration-ring 1.02s cubic-bezier(.18, .82, .22, 1) both;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-ring.ring-two {
  animation: projection-celebration-ring 1.04s cubic-bezier(.18, .82, .22, 1) .12s both;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-rays line {
  animation: projection-celebration-ray .78s cubic-bezier(.16, .78, .2, 1) both;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-rays :is(.ray-2, .ray-5, .ray-8) {
  animation-delay: .08s;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-rays :is(.ray-3, .ray-6) {
  animation-delay: .15s;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-rays :is(.ray-4, .ray-7) {
  animation-delay: .21s;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-particles :is(circle, path) {
  animation: projection-celebration-particle .82s cubic-bezier(.16, .78, .2, 1) .12s both;
}

.projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration-particles :is(.particle-2, .particle-4) {
  animation-delay: .21s;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating {
  animation: projection-retirement-celebrate .92s cubic-bezier(.16, .82, .22, 1) both;
  transform-box: fill-box;
  transform-origin: center;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating rect {
  stroke: #f5d77c;
  stroke-width: 1.55;
  filter: drop-shadow(0 0 8px rgba(240, 210, 124, .5)) drop-shadow(0 10px 20px rgba(1, 8, 15, .38));
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-endpoint {
  animation: projection-retirement-endpoint .9s cubic-bezier(.16, .82, .22, 1) both;
}

@keyframes projection-celebration-ring {
  0% { opacity: 0; transform: scale(.34); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: scale(2.15); }
}

@keyframes projection-celebration-ray {
  0% { opacity: 0; stroke-dashoffset: 18; }
  24% { opacity: .95; }
  72% { opacity: .78; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: -4; }
}

@keyframes projection-celebration-particle {
  0% { opacity: 0; transform: scale(.25) rotate(-18deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.45) rotate(18deg); }
}

@keyframes projection-retirement-celebrate {
  0% { filter: brightness(.96); transform: scale(.99); }
  32% { filter: brightness(1.2); transform: scale(1.022); }
  68% { filter: brightness(1.08); transform: scale(1.008); }
  100% { filter: none; transform: none; }
}

@keyframes projection-retirement-endpoint {
  0% { filter: drop-shadow(0 0 3px rgba(230, 190, 90, .5)); transform: scale(.92); }
  40% { filter: drop-shadow(0 0 12px rgba(245, 215, 124, 1)) drop-shadow(0 0 26px rgba(128, 221, 176, .52)); transform: scale(1.34); }
  100% { filter: drop-shadow(0 0 7px rgba(230, 190, 90, .88)) drop-shadow(0 0 18px rgba(230, 190, 90, .38)); transform: none; }
}

@media (max-width: 880px) {
  .settings-page .settings-jump {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .settings-page .settings-jump a {
    flex-basis: 88px;
    min-width: 88px;
    padding-inline: 9px;
  }
}

@media (max-width: 700px) {
  .settings-reminder-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .settings-reminder-day {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 150px);
    align-items: center;
  }

  .settings-reminder-day > span,
  .settings-reminder-day small {
    grid-column: 1;
  }

  .settings-reminder-day .select-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 520px) {
  .settings-page .settings-jump {
    display: flex;
    grid-template-columns: none;
    width: calc(100% + 8px);
    max-width: calc(100% + 8px);
    margin-left: -4px;
    overflow-x: auto;
  }

  .settings-page .settings-jump a {
    flex: 0 0 82px;
    min-width: 82px;
    padding: 10px 8px;
  }

  .settings-reminder-card {
    padding: 20px 16px 17px;
  }

  .settings-reminder-copy h2 {
    font-size: 24px;
  }

  .settings-reminder-day {
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 13px;
  }

  .settings-reminder-day select {
    min-height: 44px;
    font-size: 19px;
  }

  .settings-reminder-cadence {
    grid-template-columns: 1fr;
  }

  .settings-reminder-cadence > span {
    min-height: 58px;
  }
}

@media (max-width: 370px) {
  .settings-reminder-day {
    grid-template-columns: 1fr;
  }

  .settings-reminder-day .select-wrap,
  .settings-reminder-day > span,
  .settings-reminder-day small {
    grid-column: 1;
    grid-row: auto;
  }

  .settings-reminder-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration,
  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating {
    animation: none !important;
  }

  .projection-page-wrap .projection-chart-shell.is-celebrating-projection .projection-celebration {
    display: none;
  }
}

/* ===== css/v518.css ===== */
/* Siegel Financial v518 — Net Worth entrance, compact latest change, and retirement gold orbit. */

.networth-page .history-inline-inspector {
  position: relative;
  isolation: isolate;
}

.networth-page .history-inline-inspector::after {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 3.2vw, 38px);
  top: 58%;
  width: min(48%, 330px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 214, 124, .95), rgba(126, 221, 176, .54), transparent);
  box-shadow: 0 0 12px rgba(241, 207, 112, .34);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20%) scaleX(.3);
  transform-origin: left;
}

.networth-page .history-inline-inspector.is-networth-entering::after {
  animation: networth-value-sweep 1.05s cubic-bezier(.18, .76, .22, 1) .12s both;
}

.networth-page .history-inline-inspector.is-networth-entering .history-current-copy,
.networth-page .history-inline-inspector.is-networth-entering .history-current-chip,
.networth-page .history-inline-inspector.is-networth-entering .history-current-meta {
  animation: networth-detail-enter .56s cubic-bezier(.18, .76, .22, 1) both;
}

.networth-page .history-inline-inspector.is-networth-entering .history-current-value {
  animation: networth-value-enter .88s cubic-bezier(.16, .82, .22, 1) both;
}

.networth-page .history-inline-inspector.is-networth-entering .history-latest-change {
  animation: networth-change-enter .72s cubic-bezier(.16, .78, .22, 1) .2s both;
}

@keyframes networth-detail-enter {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: none; }
}

@keyframes networth-value-enter {
  0% { opacity: .2; filter: blur(2px); transform: translateY(8px) scale(.985); }
  62% { opacity: 1; filter: none; }
  100% { opacity: 1; filter: none; transform: none; }
}

@keyframes networth-change-enter {
  0% { opacity: 0; transform: translateX(9px); }
  100% { opacity: 1; transform: none; }
}

@keyframes networth-value-sweep {
  0% { opacity: 0; transform: translateX(-20%) scaleX(.3); }
  25% { opacity: .84; }
  100% { opacity: 0; transform: translateX(118%) scaleX(.86); }
}

.networth-page .history-latest-change {
  min-height: 0;
  padding: 15px 18px 14px;
}

.networth-page .history-latest-change-head {
  align-items: center;
  gap: 10px;
}

.networth-page .history-latest-change-head > span {
  gap: 2px;
}

.networth-page .history-latest-change-head b {
  font-size: 8.5px;
  letter-spacing: .115em;
}

.networth-page .history-latest-change-head small {
  font-size: 8.5px;
}

.networth-page .history-latest-change-icon {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
}

.networth-page .history-latest-change-icon::before {
  left: 7px;
  top: 8px;
  width: 7px;
  height: 5px;
}

.networth-page .history-latest-change.neutral .history-latest-change-icon::before,
.networth-page .history-latest-change.is-empty .history-latest-change-icon::before {
  left: 7px;
  top: 11px;
  width: 8px;
}

.networth-page .history-latest-change-value {
  max-width: 100%;
  margin-top: 8px;
  overflow: visible;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
  text-overflow: clip;
}

.networth-page .history-latest-change-subline {
  margin-top: 4px;
}

.networth-page .history-latest-change-period {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
}

.networth-page .history-latest-change-period > span {
  width: 15px;
  flex: 0 0 15px;
  background: none;
}

.networth-page .history-latest-change-period > span::before {
  display: block;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: rgba(241, 214, 137, .72);
  content: "→";
  font-size: 10px;
  line-height: 1;
  transform: none;
}

.networth-page .history-latest-change-period > span::after {
  display: none;
}

.projection-page-wrap .projection-celebration {
  display: none;
}

.projection-page-wrap .projection-retirement-callout .projection-gold-orbit {
  fill: none;
  stroke: #f6d779;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: .13 .87;
  stroke-dashoffset: 0;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(246, 215, 121, .9)) drop-shadow(0 0 8px rgba(230, 190, 90, .42));
  pointer-events: none;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating {
  animation: projection-result-settle .72s cubic-bezier(.16, .82, .22, 1) both;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating > rect:not(.projection-gold-orbit) {
  stroke: #e8c668;
  stroke-width: 1.35;
  filter: drop-shadow(0 0 5px rgba(240, 210, 124, .26)) drop-shadow(0 10px 20px rgba(1, 8, 15, .34));
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-gold-orbit {
  opacity: 1;
  animation: projection-gold-orbit 3.25s linear .25s infinite;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-callout-value {
  animation: projection-result-value 1.05s cubic-bezier(.16, .82, .22, 1) both;
}

@keyframes projection-result-settle {
  0% { filter: brightness(.98); transform: scale(.985); }
  42% { filter: brightness(1.12); transform: scale(1.014); }
  100% { filter: none; transform: none; }
}

@keyframes projection-result-value {
  0% { opacity: .6; filter: blur(1px); }
  46% { opacity: 1; filter: drop-shadow(0 0 7px rgba(246, 215, 121, .72)); }
  100% { opacity: 1; filter: none; }
}

@keyframes projection-gold-orbit {
  to { stroke-dashoffset: -1; }
}

@media (max-width: 700px) {
  .networth-page .history-latest-change {
    min-height: 0;
    padding: 12px 14px 11px;
  }

  .networth-page .history-latest-change-value {
    width: 100%;
    font-size: clamp(25px, 8.4vw, 34px);
  }

  .networth-page .history-latest-change-period {
    margin-top: 7px;
  }
}

@media (max-width: 380px) {
  .networth-page .history-latest-change {
    padding-inline: 12px;
  }

  .networth-page .history-latest-change-value {
    font-size: clamp(24px, 8vw, 30px);
    letter-spacing: -.035em;
  }

  .networth-page .history-latest-change-head small {
    display: none;
  }

  .networth-page .history-latest-change-period time {
    font-size: 7.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-inline-inspector.is-networth-entering *,
  .networth-page .history-inline-inspector.is-networth-entering::after,
  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating,
  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating * {
    animation: none !important;
  }

  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-gold-orbit {
    opacity: 0;
  }
}

/* ===== css/v519.css ===== */
/* Siegel Financial v519 — responsive Settings, category freshness, and monthly-money sources. */

/* ---------- Budget: show the two inputs behind Monthly money ---------- */
.budget-page .budget-monthly-summary-sources {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  margin-top: 5px;
}

.budget-page .budget-monthly-summary-sources > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.budget-page .budget-monthly-summary-sources small {
  overflow: hidden;
  color: #718295;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .075em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.budget-page .budget-monthly-summary-sources b {
  color: #263e53;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.budget-page .budget-monthly-summary-sources em {
  color: #8997a5;
  font-size: 8px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
}

.budget-page .budget-monthly-summary-sources > i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #9b792c;
  font-family: var(--serif);
  font-size: 14px;
  font-style: normal;
  border: 1px solid rgba(183, 144, 54, .25);
  border-radius: 50%;
  background: rgba(224, 193, 113, .08);
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources small {
  color: #91a5b7;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources b {
  color: #e9eef2;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources em {
  color: #7f93a5;
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources > i {
  color: #f0cf77;
  border-color: rgba(240, 207, 119, .23);
  background: rgba(240, 207, 119, .06);
}

/* ---------- Net Worth: real per-category freshness ---------- */
.networth-page .nw-category-updated {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -3px 0 13px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .025em;
  line-height: 1.25;
}

.networth-page .nw-category-updated::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 72%, var(--ink-3));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 8%, transparent);
  content: "";
}

.networth-page .nw-category-updated :is(time, span) {
  color: var(--ink-2);
  font-weight: 730;
}

.networth-page .nw-category-updated:has(span)::before {
  background: var(--ink-3);
  box-shadow: none;
  opacity: .55;
}

/* ---------- Settings: purposeful desktop rail and compact phone control ---------- */
.settings-page {
  max-width: 1240px;
}

.settings-mobile-jump {
  display: none;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(176px, 204px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2.2vw, 30px);
}

.settings-rail {
  position: sticky;
  top: 20px;
  display: grid;
  min-width: 0;
  gap: 12px;
}

.settings-page .settings-jump {
  position: static;
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 7px;
  gap: 3px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--paper) 96%, var(--teal) 4%);
  box-shadow: 0 18px 46px -39px rgba(5, 20, 37, .62);
  backdrop-filter: none;
}

.settings-page .settings-jump a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px 9px 13px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: .01em;
  text-align: left;
  border-radius: 7px;
  white-space: normal;
}

.settings-page .settings-jump a::before {
  position: absolute;
  inset: 9px auto 9px 0;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.settings-page .settings-jump a i {
  color: var(--ink-3);
  font-size: 10px;
  font-style: normal;
  opacity: .48;
  transition: opacity .16s ease, transform .16s ease;
}

.settings-page .settings-jump a:hover i,
.settings-page .settings-jump a:focus-visible i,
.settings-page .settings-jump a[aria-current="location"] i {
  opacity: 1;
  transform: translateX(2px);
}

.settings-page .settings-jump a[aria-current="location"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--teal) 8%, var(--paper-2));
}

.settings-page .settings-jump a[aria-current="location"]::before {
  background: linear-gradient(var(--gold), var(--green));
}

.settings-rail-save {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 2px 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--paper-2) 92%, var(--green) 3%);
}

.settings-rail-save i {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent);
}

.settings-rail-save b {
  color: var(--ink);
  font-size: 10px;
}

.settings-rail-save small {
  color: var(--ink-3);
  font-size: 8.5px;
  line-height: 1.35;
}

.settings-content {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.settings-section-stack {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.settings-content :is(.card, .settings-premium-card, .settings-reminder-card, .settings-setup-card) {
  min-width: 0;
  margin: 0;
}

.settings-plan-grid,
.settings-security-grid {
  display: grid;
  min-width: 0;
  gap: 16px;
  align-items: start;
}

.settings-plan-grid {
  grid-template-columns: minmax(260px, .7fr) minmax(440px, 1.3fr);
}

.settings-security-grid {
  grid-template-columns: minmax(430px, 1.3fr) minmax(250px, .7fr);
}

.settings-page :is(
  #settings-account,
  #settings-membership,
  #settings-reminders,
  #settings-profile,
  #settings-planning,
  #settings-privacy,
  #settings-data
) {
  scroll-margin-top: 22px;
}

.settings-page :is(#settings-account, #settings-membership, #settings-reminders, #settings-profile, #settings-planning, #settings-privacy, #settings-data):focus {
  outline: none;
}

.settings-page :is(#settings-account, #settings-membership, #settings-reminders, #settings-profile, #settings-planning, #settings-privacy, #settings-data):focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 4px;
}

.settings-page .settings-account-card,
.settings-page .settings-setup-card {
  overflow: hidden;
}

.settings-page .settings-account-card {
  border-color: color-mix(in srgb, var(--teal) 22%, var(--line));
}

.settings-page .settings-setup-card {
  padding-block: 15px;
  border-style: dashed;
  background: color-mix(in srgb, var(--paper-2) 95%, var(--gold) 3%);
}

.settings-action-group,
.settings-legal-links,
.settings-data-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings-data-actions {
  justify-content: flex-start;
}

.settings-field-gap {
  margin-top: 13px;
}

.settings-profile-retirement {
  margin-top: 16px;
}

.settings-profile-card,
.settings-planning-card,
.settings-privacy-card,
.settings-data-card {
  height: auto;
}

.settings-planning-card .settings-assumption-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-planning-card .settings-assumption-stack > :is(.assumption-dial, .settings-withdrawal-dial) {
  min-width: 0;
}

.settings-planning-card .settings-withdrawal-dial {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
}

.settings-planning-card .settings-withdrawal-dial .dial {
  padding: 0;
  background: transparent;
}

.settings-reminder-card {
  padding: clamp(20px, 2.5vw, 28px);
}

.settings-reminder-head {
  grid-template-columns: minmax(0, 1fr) minmax(184px, 214px);
  gap: clamp(20px, 3vw, 34px);
}

.settings-reminder-copy h2 {
  max-width: 27ch;
  font-size: clamp(22px, 2.2vw, 29px);
}

.settings-reminder-day {
  gap: 7px;
  padding: 14px;
}

.settings-reminder-guidance,
.settings-reminder-saved {
  display: block;
}

.settings-reminder-saved {
  padding-top: 7px;
  color: color-mix(in srgb, var(--green) 86%, var(--ink));
  font-size: 9px;
  font-weight: 740;
  border-top: 1px solid var(--line);
}

.settings-reminder-status {
  margin-top: 15px;
}

.settings-reminder-cadence {
  margin-top: 10px;
}

.settings-reminder-cadence > span {
  min-height: 58px;
  padding: 11px 12px;
}

.settings-reminder-actions {
  margin-top: 11px;
}

.settings-data-card {
  border-color: color-mix(in srgb, var(--green) 19%, var(--line));
}

:root[data-theme="dark"] .settings-page .settings-jump {
  background: color-mix(in srgb, var(--paper) 94%, var(--teal) 6%);
}

:root[data-theme="dark"] .settings-page .settings-jump a[aria-current="location"] {
  background: rgba(216, 184, 108, .075);
}

@media (max-width: 1120px) {
  .settings-plan-grid,
  .settings-security-grid {
    grid-template-columns: 1fr;
  }

  .settings-planning-card .settings-assumption-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .settings-page {
    padding-bottom: calc(105px + env(safe-area-inset-bottom));
  }

  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-rail {
    display: none;
  }

  .settings-mobile-jump {
    position: sticky;
    z-index: 9;
    top: calc(66px + env(safe-area-inset-top, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: -4px 0 14px;
    padding: 9px 10px 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    box-shadow: 0 18px 46px -36px rgba(5, 20, 37, .72);
    backdrop-filter: blur(16px);
  }

  .settings-mobile-jump > span:first-child {
    display: grid;
    min-width: 0;
    gap: 1px;
  }

  .settings-mobile-jump b {
    color: var(--ink);
    font-size: 10px;
  }

  .settings-mobile-jump small {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .settings-mobile-jump .select-wrap,
  .settings-mobile-jump select {
    width: 100%;
  }

  .settings-mobile-jump select {
    min-height: 42px;
    padding-block: 0;
    font-size: 13px;
    font-weight: 720;
  }

  .settings-page :is(
    #settings-account,
    #settings-membership,
    #settings-reminders,
    #settings-profile,
    #settings-planning,
    #settings-privacy,
    #settings-data
  ) {
    scroll-margin-top: calc(132px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 700px) {
  .settings-content {
    gap: 13px;
  }

  .settings-plan-grid,
  .settings-security-grid {
    gap: 13px;
  }

  .settings-page .card-pad {
    padding: 18px 16px;
  }

  .settings-planning-card .settings-assumption-stack {
    grid-template-columns: 1fr;
  }

  .settings-reminder-head {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .settings-reminder-copy h2 {
    margin-bottom: 7px;
    font-size: clamp(22px, 7vw, 26px);
  }

  .settings-reminder-day {
    grid-template-columns: minmax(0, 1fr) 124px;
    align-items: center;
    gap: 4px 12px;
    padding: 12px;
  }

  .settings-reminder-day > span {
    grid-column: 1;
    grid-row: 1;
  }

  .settings-reminder-day .select-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .settings-reminder-guidance {
    grid-column: 1;
    grid-row: 2;
  }

  .settings-reminder-saved {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 6px;
  }

  .settings-reminder-cadence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-reminder-cadence > span {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 52px;
    gap: 4px 6px;
    padding: 9px 7px;
  }

  .settings-reminder-cadence i {
    width: 21px;
    height: 21px;
  }

  .settings-reminder-cadence b {
    font-size: 9px;
  }

  .settings-reminder-cadence small {
    display: none;
  }

  .settings-page .setrow {
    gap: 10px;
    padding: 14px 1px;
  }

  .settings-action-group,
  .settings-legal-links,
  .settings-data-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .settings-legal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-legal-links .btn,
  .settings-data-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .settings-page {
    padding-inline: 10px;
  }

  .settings-mobile-jump {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .settings-reminder-card {
    padding: 18px 15px 15px;
  }

  .settings-reminder-cadence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-reminder-cadence > span {
    min-height: 50px;
  }

  .budget-page .budget-monthly-summary-sources {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .budget-page .budget-monthly-summary-sources small {
    font-size: 8px;
  }

  .budget-page .budget-monthly-summary-sources b {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .settings-mobile-jump {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .settings-mobile-jump > span:first-child {
    display: none;
  }

  .settings-reminder-day {
    grid-template-columns: 1fr;
  }

  .settings-reminder-day > span,
  .settings-reminder-day .select-wrap,
  .settings-reminder-guidance,
  .settings-reminder-saved {
    grid-column: 1;
    grid-row: auto;
  }

  .settings-reminder-actions .btn,
  .settings-data-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .settings-legal-links {
    grid-template-columns: 1fr;
  }

  .budget-page .budget-monthly-summary-sources {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    gap: 6px;
  }

  .budget-page .budget-monthly-summary-sources > i {
    width: 16px;
    height: 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-page .settings-jump a i {
    transition: none;
  }
}

/* ===== css/v520.css ===== */
/* Siegel Financial v520 — polished Net Worth history point inspection. */
.networth-page .history-chart-shell {
  position: relative;
}

.networth-page .history-point-tooltip {
  --history-tip-arrow-x: 50%;
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 176px;
  max-width: calc(100% - 20px);
  padding: 12px 14px 11px;
  overflow: visible;
  border: 1px solid rgba(232, 197, 106, .48);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 12%, rgba(230, 190, 90, .12), transparent 34%),
    linear-gradient(145deg, rgba(17, 42, 63, .985), rgba(5, 19, 33, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 40px -19px rgba(0, 0, 0, .92),
    0 0 24px rgba(230, 190, 90, .10);
  color: #F7F4EC;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) scale(.985);
  transform-origin: bottom center;
  transition: opacity .16s ease, visibility .16s ease, transform .2s cubic-bezier(.2, .75, .2, 1);
}

.networth-page .history-point-tooltip::after {
  content: "";
  position: absolute;
  left: var(--history-tip-arrow-x);
  bottom: -6px;
  width: 11px;
  height: 11px;
  border-right: 1px solid rgba(232, 197, 106, .48);
  border-bottom: 1px solid rgba(232, 197, 106, .48);
  background: #071B2E;
  transform: translateX(-50%) rotate(45deg);
}

.networth-page .history-point-tooltip.is-below {
  transform-origin: top center;
}

.networth-page .history-point-tooltip.is-below::after {
  top: -6px;
  bottom: auto;
  border: 0;
  border-top: 1px solid rgba(232, 197, 106, .48);
  border-left: 1px solid rgba(232, 197, 106, .48);
}

.networth-page .history-point-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.networth-page .history-point-tooltip-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(222, 233, 241, .68);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.networth-page .history-point-tooltip-kicker i {
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid rgba(255, 250, 235, .86);
  border-radius: 50%;
  background: #E6BE5A;
  box-shadow: 0 0 0 3px rgba(230, 190, 90, .12), 0 0 10px rgba(230, 190, 90, .38);
}

.networth-page .history-point-tooltip > b {
  overflow-wrap: anywhere;
  color: #FFF9E9;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 720;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.networth-page .history-point-tooltip time {
  color: #F0D27B;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .015em;
  line-height: 1.3;
}

.networth-page .history-point-tooltip small {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(219, 231, 239, .11);
  color: rgba(221, 232, 240, .68);
  font-size: 9.5px;
  line-height: 1.35;
}

@media (max-width: 600px), (hover: none), (pointer: coarse) {
  .networth-page .history-point-tooltip {
    gap: 2px;
    padding: 11px 13px 10px;
    border-color: rgba(240, 207, 113, .58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .085),
      0 18px 38px -18px rgba(0, 0, 0, .94),
      0 0 26px rgba(230, 190, 90, .13);
  }

  .networth-page .history-point-tooltip > b {
    font-size: clamp(22px, 6.7vw, 27px);
  }

  .networth-page .history-point-tooltip time {
    font-size: 10px;
  }

  .networth-page .history-point-tooltip small {
    font-size: 9px;
  }

  .networth-page .history-hit {
    r: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-point-tooltip {
    transition: none !important;
  }
}

/* ===== css/v522.css ===== */
/* Siegel Financial v522 — precision monthly-money source operator. */

.budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus {
  --budget-plus-color: #9c7425;
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  place-self: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 166, 72, .14) 0 34%, rgba(205, 166, 72, .055) 50%, transparent 72%);
}

.budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::before,
.budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: var(--budget-plus-color);
  box-shadow: 0 0 7px rgba(188, 143, 43, .16);
  content: "";
  transform: translate(-50%, -50%);
}

.budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus {
  --budget-plus-color: #efc965;
  background: radial-gradient(circle, rgba(239, 201, 101, .15) 0 34%, rgba(239, 201, 101, .055) 50%, transparent 72%);
}

:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::before,
:root[data-theme="dark"] .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::after {
  box-shadow: 0 0 8px rgba(239, 201, 101, .22);
}

@media (max-width: 370px) {
  .budget-page .budget-monthly-summary-sources {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  }

  .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus,
  .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::before,
  .budget-page .budget-monthly-summary-sources > .budget-monthly-summary-plus::after {
    transition: none !important;
  }
}

/* ===== css/v523.css ===== */
/* Siegel Financial v523 — focused insight pages, one Update hub, and a 1-year Net Worth forecast. */

.insight-update-cta,
.update-finish-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--paper-2) 86%, var(--accent-soft)), var(--paper));
  box-shadow: 0 16px 36px -31px rgba(4, 18, 33, .5);
}

.insight-update-cta::before,
.update-finish-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  content: "";
}

.insight-update-cta > div,
.update-finish-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.insight-update-cta > div > span,
.update-finish-card > div > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.insight-update-cta > div > b,
.update-finish-card > div > b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.insight-update-cta > div > small,
.update-finish-card > div > small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}

.update-page {
  --update-line: color-mix(in srgb, var(--accent) 17%, var(--line));
}

.update-jumpbar {
  position: sticky;
  z-index: 12;
  top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px;
  border: 1px solid var(--update-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 89%, transparent);
  box-shadow: 0 16px 38px -31px rgba(4, 18, 33, .72);
  backdrop-filter: blur(16px);
}

.update-jumpbar button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 9px;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.update-jumpbar button:hover,
.update-jumpbar button:focus-visible {
  border-color: var(--update-line);
  background: color-mix(in srgb, var(--paper-2) 86%, var(--accent-soft));
  transform: translateY(-1px);
}

.update-jumpbar button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 9px;
  color: color-mix(in srgb, var(--gold) 76%, var(--ink));
  background: color-mix(in srgb, var(--gold) 8%, var(--paper));
  font-size: 9px;
  font-weight: 850;
}

.update-jumpbar button > b {
  align-self: end;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-jumpbar button > small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 9.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-section {
  margin-top: 18px;
  padding: clamp(17px, 2.5vw, 25px);
  border: 1px solid var(--update-line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--paper-2) 92%, var(--accent-soft)), var(--paper) 38%);
  scroll-margin-top: 88px;
}

.update-section:focus { outline: none; }

.update-section:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 3px;
}

.update-section-head {
  margin-top: 0;
  padding: 0 0 17px;
  border-bottom: 1px solid var(--update-line);
}

.update-section-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.update-balance-grid,
.update-budget-workspace { margin-top: 18px; }

.update-history-card { margin-top: 18px; }

.update-page .nw-category-updated { margin-bottom: 10px; }

.update-finish-card { margin-top: 22px; }

/* Net Worth chart forecast: actual history remains solid gold; the estimate is dashed teal. */
.networth-page .history-forecast-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  align-items: center;
  margin: 4px 0 2px;
  padding: 0 2px;
  color: rgba(229, 237, 243, .72);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .025em;
}

.networth-page .history-forecast-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.networth-page .history-forecast-legend i {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
}

.networth-page .history-forecast-legend .actual i {
  background: linear-gradient(90deg, #F0D27B, #E6BE5A);
  box-shadow: 0 0 8px rgba(230, 190, 90, .25);
}

.networth-page .history-forecast-legend .forecast i {
  height: 0;
  border-top: 2px dashed #79D2C7;
}

.networth-page .history-forecast-legend small {
  margin-left: auto;
  color: rgba(216, 229, 238, .48);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.networth-page .history-projection-band {
  fill: none;
  stroke: rgba(91, 196, 183, .13);
  stroke-width: 13;
  stroke-linecap: round;
}

.networth-page .history-projection-line {
  fill: none;
  stroke: #79D2C7;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: .075 .05;
  filter: drop-shadow(0 0 5px rgba(80, 206, 190, .3));
  animation: history-forecast-reveal .72s .78s both cubic-bezier(.2, .72, .2, 1);
}

.networth-page .history-projection-halo {
  fill: rgba(83, 207, 191, .12);
  stroke: rgba(121, 210, 199, .36);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: history-forecast-pulse 1.4s 1.15s 2 ease-out;
}

.networth-page .history-dot.projected {
  fill: #0C2C3D;
  stroke: #8BE1D6;
  stroke-width: 2.4;
}

.networth-page .history-forecast-callout rect {
  fill: rgba(7, 28, 45, .96);
  stroke: rgba(132, 224, 211, .52);
  stroke-width: 1;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, .25));
}

.networth-page .history-forecast-callout-label {
  fill: rgba(179, 234, 227, .76);
  font-size: 6.6px;
  font-weight: 850;
  letter-spacing: .08em;
}

.networth-page .history-forecast-callout-value {
  fill: #F8F4E8;
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 760;
}

.networth-page .nw-mix-key-copy em {
  display: block;
  margin-top: 2px;
  color: color-mix(in srgb, var(--ink-3) 75%, transparent);
  font-size: 8px;
  font-style: normal;
  font-weight: 620;
  letter-spacing: .015em;
  line-height: 1.2;
}

@keyframes history-forecast-reveal {
  from { opacity: 0; stroke-dashoffset: .42; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes history-forecast-pulse {
  0% { opacity: 0; transform: scale(.72); }
  45% { opacity: 1; transform: scale(1.08); }
  100% { opacity: .4; transform: scale(1); }
}

@media (max-width: 760px) {
  .insight-update-cta,
  .update-finish-card {
    grid-template-columns: 1fr 1fr;
  }

  .insight-update-cta > div,
  .update-finish-card > div { grid-column: 1 / -1; }

  .insight-update-cta .btn,
  .update-finish-card .btn { justify-content: center; }

  .update-jumpbar { top: 7px; }

  .update-jumpbar button {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    min-height: 64px;
    padding: 8px 5px;
    text-align: center;
  }

  .update-jumpbar button > span {
    grid-row: auto;
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }

  .update-jumpbar button > b {
    max-width: 100%;
    font-size: 10.5px;
    white-space: normal;
  }

  .update-jumpbar button > small { display: none; }

  .update-section { scroll-margin-top: 82px; }

  .update-section-actions { width: 100%; }

  .update-section-actions .btn,
  .update-section-actions .add-row { flex: 1 1 auto; justify-content: center; }

  .networth-page .history-forecast-legend small {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 390px) {
  .insight-update-cta,
  .update-finish-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .insight-update-cta > div,
  .update-finish-card > div { grid-column: auto; }

  .update-section { margin-inline: -2px; padding: 14px 12px; border-radius: 18px; }

  .update-jumpbar { margin-inline: -2px; }

  .networth-page .history-forecast-legend {
    gap: 6px 11px;
    font-size: 8.8px;
  }

  .networth-page .history-forecast-legend i { width: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-projection-line,
  .networth-page .history-projection-halo {
    animation: none !important;
  }
}

/* ===== css/v524.css ===== */
/* Siegel Financial v524 — unified mobile rhythm for the primary dashboard. */

@media (max-width: 620px) {
  .networth-page {
    padding-inline: 14px;
    padding-bottom: 18px;
  }

  .networth-page > .page-head {
    margin-bottom: 12px;
    padding: 9px 2px 13px;
  }

  .networth-page > .page-head .eyebrow {
    font-size: 9px;
    line-height: 1.25;
  }

  .networth-page > .page-head .page-title {
    max-width: 15ch;
    margin-top: 7px;
    font-size: clamp(32px, 9.4vw, 38px);
    line-height: 1.02;
  }

  .networth-page > .page-head .page-sub {
    max-width: 42ch;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.48;
  }

  .networth-page > :is(.callout, .account-entry),
  .networth-page .plan-pulse {
    margin-bottom: 14px;
  }

  .networth-page .account-entry {
    gap: 14px;
    padding: 16px 15px;
    border-radius: 14px;
  }

  .networth-page .account-entry .card-eyebrow {
    margin-bottom: 5px;
  }

  .networth-page .account-entry b {
    font-size: 16px;
    line-height: 1.24;
  }

  .networth-page .account-entry span {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.48;
  }

  .networth-page .account-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .networth-page .account-entry-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 10px;
    justify-content: center;
  }

  .networth-page .nw-projection-bridge {
    margin-bottom: 14px;
  }

  .networth-page .networth-home-hero {
    gap: 0;
    margin-top: 0;
    padding: 8px !important;
    border-radius: 14px;
  }

  .networth-page .networth-history-primary {
    grid-template-rows: auto;
    gap: 9px;
    min-height: 0;
    padding: 9px 8px 10px;
    border-radius: 11px;
  }

  .networth-page .history-inline-inspector {
    border-radius: 10px;
  }

  .networth-page .history-current-anchor {
    padding: 14px 13px 12px;
  }

  .networth-page .history-current-topline {
    gap: 10px;
  }

  .networth-page .history-inline-inspector .history-current-copy b {
    font-size: 9.25px;
  }

  .networth-page .history-inline-inspector .history-current-copy small {
    font-size: 9.5px;
    line-height: 1.35;
  }

  .networth-page .history-inline-inspector .history-current-chip {
    min-height: 24px;
    padding: 4px 8px;
  }

  .networth-page .history-current-value {
    max-width: 100%;
    margin-top: 11px;
    font-size: clamp(31px, 10.6vw, 42px);
    letter-spacing: -.035em;
    line-height: .96;
    white-space: nowrap;
  }

  .networth-page .history-current-meta {
    gap: 8px;
    min-height: 0;
    margin-top: 10px;
    padding-top: 9px;
  }

  .networth-page .history-current-asof,
  .networth-page .history-current-coverage {
    font-size: 8.25px;
    line-height: 1.3;
  }

  .networth-page .history-current-coverage {
    max-width: 46%;
    justify-content: flex-end;
    white-space: normal;
    text-align: right;
  }

  .networth-page .history-latest-change {
    min-height: 0;
    padding: 11px 13px 10px;
  }

  .networth-page .history-latest-change-head b,
  .networth-page .history-latest-change-head small {
    font-size: 8.25px;
  }

  .networth-page .history-latest-change-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
  }

  .networth-page .history-latest-change-value {
    margin-top: 7px;
    font-size: clamp(24px, 7.6vw, 31px);
    letter-spacing: -.03em;
  }

  .networth-page .history-latest-change-subline {
    margin-top: 3px;
    font-size: 9.5px;
  }

  .networth-page .history-latest-change-period {
    margin-top: 7px;
    padding-top: 6px;
  }

  .networth-page .history-latest-change-empty-title {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.14;
  }

  .networth-page .history-latest-change.is-empty p {
    margin: 5px 0 0;
    font-size: 10.5px;
    line-height: 1.38;
  }

  .networth-page .history-forecast-legend {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 4px 12px;
    margin: 1px 0 0;
    padding-inline: 2px;
    font-size: 8.6px;
    line-height: 1.2;
  }

  .networth-page .history-forecast-legend span {
    gap: 6px;
  }

  .networth-page .history-forecast-legend i {
    width: 18px;
  }

  .networth-page .history-forecast-legend small {
    grid-column: 1 / -1;
    width: auto;
    margin: 0;
    font-size: 7.5px;
    letter-spacing: .065em;
  }

  .networth-page .history-chart-shell {
    min-height: 205px;
    margin-inline: 0;
    padding: 4px 1px 0;
    border-radius: 9px;
  }

  .networth-page .history-chart-shell:has(.history-empty) {
    min-height: 154px;
  }

  .networth-page .history-empty {
    min-height: 138px;
    gap: 4px;
    padding: 14px 12px;
  }

  .networth-page .history-empty b {
    font-size: 14px;
  }

  .networth-page .history-empty span {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 10.75px;
  }

  .networth-page .history-balance-summary.history-actions-only {
    padding: 8px 9px;
  }

  .networth-page .history-actions-only .history-balance-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    padding: 0;
  }

  .networth-page .history-balance-actions .networth-asof {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
  }

  .networth-page .history-balance-actions .networth-asof > span {
    grid-column: 1 / -1;
    padding: 0;
    font-size: 9.75px;
  }

  .networth-page .history-balance-actions .linklike {
    min-height: 40px;
    padding: 8px 9px;
  }

  .networth-page .history-hero-foot {
    gap: 3px;
    padding: 10px 11px;
    border-radius: 9px;
  }

  .networth-page .history-return-note {
    gap: 3px;
  }

  .networth-page .history-return-note b {
    font-size: 9px;
  }

  .networth-page .history-return-note small {
    font-size: 10.25px;
    line-height: 1.4;
  }

  .networth-page .nw-composition-card,
  .networth-page .priority-alert,
  .networth-page .plan-pulse,
  .networth-page .account-entry-sync,
  .networth-page .networth-update-cta {
    margin-top: 14px;
  }

  .networth-page .networth-update-cta {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 15px;
    border-radius: 14px;
  }

  .networth-page .networth-update-cta > div {
    gap: 2px;
  }

  .networth-page .networth-update-cta > div > b {
    font-size: 13px;
  }

  .networth-page .networth-update-cta > div > small {
    font-size: 10.5px;
  }

  .networth-page .networth-update-cta .btn-pri {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  /* History is already available in the chart card; avoid a duplicate phone CTA. */
  .networth-page .networth-update-cta .btn-ghost {
    display: none;
  }

  .site-foot {
    gap: 10px;
    width: calc(100% - 24px);
    margin-top: 22px;
    padding-top: 20px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 350px) {
  .networth-page {
    padding-inline: 12px;
  }

  .networth-page > .page-head .page-title {
    font-size: 31px;
  }

  .networth-page .account-entry-actions {
    grid-template-columns: 1fr;
  }

  .networth-page .history-current-value {
    font-size: 32px;
  }

  .networth-page .history-current-coverage {
    max-width: 44%;
  }

  .networth-page .history-latest-change-head small {
    display: none;
  }

  .networth-page .history-forecast-legend {
    gap-inline: 9px;
    font-size: 8.1px;
  }

  .networth-page .history-forecast-legend i {
    width: 15px;
  }
}

/* ===== css/v525.css ===== */
/* Siegel Financial v525: one responsive layout system, from phone to desktop. */
:root {
  --ui-gap: 20px;
  --ui-radius: 16px;
}

/* Shared page frame: every destination starts and ends on the same edge. */
.main #view > .premium-view {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  padding: 0 32px 24px;
}
.main #view > .premium-view > .page-head {
  margin: 0 0 22px;
  padding: 24px 0 20px;
}
.main #view > .premium-view > .page-head .page-title {
  max-width: 24ch;
  margin-top: 8px;
  font-size: clamp(38px, 4.3vw, 52px);
  line-height: 1.04;
  text-wrap: pretty;
}
.main #view > .premium-view > .page-head .page-sub {
  max-width: 66ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.premium-view :is(.card, .hero, .insight-update-cta, .update-section, .plan-pulse) {
  min-width: 0;
}
.premium-view .btn {
  line-height: 1.3;
}
.premium-view :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Undo obsolete fixed grid tracks: the legend must never occupy a chart row. */
.networth-page .networth-home-hero {
  display: block;
  min-height: 0;
  margin-top: 0;
  padding: 22px !important;
  border-radius: var(--ui-radius);
}
.networth-page .networth-history-primary {
  display: grid;
  grid-template-rows: none;
  grid-auto-rows: max-content;
  align-content: start;
  min-height: 0;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.networth-page .history-inline-inspector {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  border-radius: 12px;
}
.networth-page .history-current-anchor {
  gap: 0;
  align-items: stretch;
  padding: 22px;
}
.networth-page .history-current-topline {
  width: 100%;
  gap: 14px;
  padding-right: 16px;
}
.networth-page .history-current-copy,
.networth-page .history-inline-inspector .history-current-copy :is(b, small) {
  text-align: left;
}
.networth-page .history-inline-inspector .history-current-copy small {
  color: #a9b9c6;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.networth-page .history-current-value {
  margin-top: 16px;
  overflow: visible;
  text-overflow: clip;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.03;
}
.networth-page .history-current-meta {
  width: 100%;
  flex-wrap: wrap;
  min-height: 0;
  margin-top: 14px;
  padding-top: 12px;
}
.networth-page .history-inline-inspector .history-current-meta span {
  letter-spacing: 0;
  text-transform: none;
}
.networth-page .history-current-asof,
.networth-page .history-current-coverage {
  font-size: 10px;
}
.networth-page .history-latest-change {
  gap: 0;
  padding: 20px;
}
.networth-page .history-latest-change-head > span {
  text-align: left;
}
.networth-page .history-latest-change-head small {
  color: #97aabc;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}
.networth-page .history-latest-change-value {
  overflow: visible;
  text-overflow: clip;
}
.networth-page .history-latest-change-period > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  line-height: 1;
}
.networth-page .history-forecast-legend {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}
.networth-page .history-chart-shell {
  min-height: 0;
}
.networth-page .history-chart-shell .history-chart {
  display: block;
  min-height: 0;
}
.networth-page .history-chart-shell:has(.history-empty) {
  min-height: 166px;
}
.networth-page .history-empty {
  min-height: 150px;
}
.networth-page .history-hero-foot {
  padding: 12px 14px;
}
.networth-page .history-return-note {
  grid-template-columns: 1fr;
  gap: 4px;
}
.networth-page .info-light {
  z-index: 5;
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.networth-page .info-light::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(246,243,236,.35);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.networth-refresh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--paper-2);
}
.networth-refresh > div { display: grid; min-width: 0; gap: 3px; }
.networth-refresh b { font-size: 12px; line-height: 1.3; }
.networth-refresh span { color: var(--ink-3); font-size: 11px; line-height: 1.4; }
.networth-refresh .linklike { flex: none; min-height: 40px; font-size: 12px; font-weight: 780; }
.networth-page .nw-projection-bridge { margin: var(--ui-gap) 0 0; border-radius: var(--ui-radius); }
.networth-page .nw-composition-card { margin-top: var(--ui-gap); border-radius: var(--ui-radius); }

/* Settings grids size from the space left by the rail, not the whole screen. */
.settings-layout { grid-template-columns: minmax(160px, 190px) minmax(0, 1fr); gap: 22px; }
.settings-content { container-type: inline-size; }
.settings-plan-grid { grid-template-columns: minmax(0, 1fr); }
.settings-profile-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-profile-card > .card-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.settings-profile-card .settings-field-gap, .settings-profile-retirement { margin-top: 0; }
.settings-security-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.settings-planning-card .settings-assumption-stack {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.settings-page .assumption-math { min-width: 0; }
.settings-page .assumption-math > span { min-width: 0; }
.settings-page .assumption-math i { white-space: normal; }
@container (max-width: 740px) {
  .settings-plan-grid, .settings-security-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 600px) {
  .settings-reminder-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .settings-reminder-copy h2 { max-width: 100%; font-size: 26px; }
}

/* A single, explicit currency prefix for the scenario control. */
.projection-extra-money::before { content: none; }
.projection-extra-money > span { flex: none; }
.update-finish-card { grid-template-columns: minmax(0, 1fr) auto; }
.insight-update-cta, .update-finish-card { border-radius: var(--ui-radius); }
.site-foot { max-width: 1200px; margin-top: 24px; }

@media (max-width: 1120px) {
  .settings-plan-grid, .settings-security-grid { grid-template-columns: minmax(0, 1fr); }
  .insight-update-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-update-cta > div { grid-column: 1 / -1; }
  .insight-update-cta .btn { justify-content: center; }
}
@media (max-width: 880px) {
  :root { --ui-gap: 16px; }
  .main #view > .premium-view { padding: 0 20px 20px; }
  .main #view > .premium-view > .page-head { padding: 20px 0 17px; margin-bottom: 18px; }
  .main #view > .premium-view > .page-head .page-title { font-size: clamp(34px, 5.5vw, 44px); }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .update-jumpbar { top: calc(71px + env(safe-area-inset-top, 0px)); }
  .update-section, #update-history-manager { scroll-margin-top: calc(160px + env(safe-area-inset-top, 0px)); }
  .main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .site-foot { padding-bottom: 24px; }
}
@media (max-width: 700px) {
  .networth-page .history-inline-inspector { grid-template-columns: minmax(0, 1fr); }
  .networth-page .history-current-anchor { padding: 17px 16px 15px; }
  .networth-page .history-current-topline { padding-right: 12px; }
  .networth-page .history-current-value { margin-top: 12px; font-size: clamp(33px, 10.8vw, 46px); }
  .networth-page .history-current-meta { flex-wrap: nowrap; margin-top: 12px; padding-top: 10px; }
  .networth-page .history-latest-change { padding: 12px 16px 11px; }
  .networth-page .history-latest-change-head b { font-size: 9px; }
  .networth-page .history-latest-change-head small { font-size: 9px; }
  .networth-page .history-latest-change-value { margin-top: 7px; font-size: clamp(25px, 7.5vw, 32px); }
  .networth-page .history-latest-change-subline { font-size: 10px; }
  .networth-page .history-latest-change-period { margin-top: 7px; padding-top: 7px; }
}
@media (max-width: 620px) {
  :root { --ui-gap: 14px; --ui-radius: 14px; }
  .main #view > .premium-view { padding: 0 14px 16px; }
  .main #view > .premium-view > .page-head { margin-bottom: 14px; padding: 14px 1px 15px; }
  .main #view > .premium-view > .page-head .eyebrow { font-size: 9px; line-height: 1.3; }
  .main #view > .premium-view > .page-head .page-title {
    max-width: none;
    margin-top: 7px;
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.07;
  }
  .main #view > .premium-view > .page-head .page-sub { margin-top: 8px; font-size: 13px; line-height: 1.5; }
  .topbar { min-height: 64px; }
  .networth-page .networth-home-hero { padding: 16px !important; }
  .networth-page .networth-history-primary { gap: 12px; }
  .networth-page .history-current-topline { align-items: start; gap: 9px; padding-right: 8px; }
  .networth-page .history-inline-inspector .history-current-copy b { font-size: 9.5px; }
  .networth-page .history-inline-inspector .history-current-copy small { font-size: 10px; line-height: 1.45; }
  .networth-page .history-inline-inspector .history-current-chip { min-height: 23px; padding: 5px 7px; font-size: 7.5px; gap: 5px; }
  .networth-page .history-current-chip i { width: 5px; height: 5px; }
  .networth-page .history-current-asof, .networth-page .history-current-coverage { font-size: 9px; }
  .networth-page .history-current-coverage { max-width: 48%; line-height: 1.4; }
  .networth-page .history-forecast-legend { display: flex; gap: 5px 13px; font-size: 9px; padding: 0; }
  .networth-page .history-forecast-legend small { width: 100%; font-size: 8px; line-height: 1.4; }
  .networth-page .history-chart-shell { margin: 0; padding: 4px 2px 0; }
  .networth-page .history-actions-only .history-balance-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .networth-page .history-balance-actions .networth-asof { display: contents; }
  .networth-page .history-balance-actions .networth-asof > span { grid-column: 1 / -1; font-size: 10px; line-height: 1.4; }
  .networth-page .history-balance-actions .networth-asof-sep { display: none; }
  .networth-page .history-balance-actions .linklike { min-height: 44px; font-size: 11px !important; padding: 8px; }
  .networth-page .history-hero-foot { padding: 11px 12px; }
  .networth-page .history-return-note b { font-size: 9px; }
  .networth-page .history-return-note small { font-size: 11px; line-height: 1.5; }
  .networth-page .nw-composition-card { margin-inline: 0; padding: 16px; border: 1px solid rgba(147,181,210,.22); }
  .networth-page .nw-mix-panel-head { gap: 12px; }
  .networth-page .nw-mix-key-row { padding-inline: 2px; }
  .networth-page .nw-composition-equation { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
  .networth-page .nw-composition-equation > i { display: none; }
  .networth-page .nw-composition-equation > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; text-align: left; }
  .networth-page .nw-composition-equation > span small { font-size: 9px; line-height: 1.4; }
  .networth-page .nw-composition-equation > span b { font-size: 19px; flex: 0 1 auto; overflow: visible; text-overflow: clip; }
  .networth-page .nw-composition-equation > .nw-composition-net { border-top: 1px solid rgba(228,195,109,.3); }
  .networth-page .networth-update-cta { margin-top: var(--ui-gap); }
  .networth-refresh { padding: 10px 12px; margin-bottom: 14px; gap: 10px; }
  .networth-refresh b { font-size: 11.5px; }
  .networth-refresh span { font-size: 10.5px; }
  .budget-page .budget-monthly-summary { padding: 18px 15px 15px; border-radius: var(--ui-radius); }
  .budget-page .budget-monthly-summary-head { gap: 15px; }
  .budget-page .budget-monthly-summary-total strong { font-size: clamp(36px, 11vw, 46px); }
  .budget-page .budget-monthly-summary-part { min-width: 0; padding-inline: 6px; }
  .budget-page .budget-monthly-summary-part strong { font-size: clamp(19px, 6vw, 25px); }
  .budget-page .budget-monthly-summary-part small { font-size: 9.25px; line-height: 1.4; }
  .budget-page .budget-composition-stack { gap: var(--ui-gap); }
  .budget-page .budget-building-brief { border-radius: var(--ui-radius); }
  .budget-page .expense-composition-primary { border-radius: var(--ui-radius); }
  .insight-update-cta, .update-finish-card { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: var(--ui-gap); padding: 16px; }
  .insight-update-cta .btn, .update-finish-card .btn { width: 100%; min-height: 44px; justify-content: center; white-space: normal; }
  .update-section { margin: 14px 0 0; padding: 16px 12px; border-radius: var(--ui-radius); }
  .update-section-head h2 { font-size: 25px; line-height: 1.15; }
  .update-section-head p { font-size: 12px; line-height: 1.5; }
  .update-balance-grid { gap: 14px; }
  .update-jumpbar { margin-inline: 0; padding: 5px; gap: 4px; border-radius: 12px; }
  .update-jumpbar button { min-height: 60px; padding: 7px 3px; }
  .settings-mobile-jump { margin: 0 0 14px; }
  .settings-content { gap: 14px; }
  .settings-profile-card { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .settings-page .setrow { line-height: 1.5; }
  .settings-page .settings-data-actions .btn { flex: 1 1 100px; }
  .projection-page-wrap .projection-chart-card { border-radius: var(--ui-radius); }
  .projection-page-wrap .projection-whatif { border-radius: 12px; }
  .connected-page { margin-inline: 14px; width: calc(100% - 28px); }
  .connected-signin.connected-signin-welcome { padding: 28px 18px; border: 1px solid rgba(147,181,210,.22); border-radius: var(--ui-radius); }
  .connected-signin-welcome h1 { font-size: 36px; }
  .site-foot { width: calc(100% - 28px); margin-top: 18px; padding: 20px 0 22px; }
  .site-foot .foot-links > *:nth-child(even) { padding-left: 12px; }
  .site-foot .foot-disclaimer { max-width: 36ch; }
  .intro-stage { width: min(100%, 350px); padding-inline: 20px; }
  .intro-stage .intro-med { width: min(100%, 290px); }
}
@media (max-width: 350px) {
  .main #view > .premium-view { padding-inline: 12px; }
  .networth-page .networth-home-hero { padding: 12px !important; }
  .networth-page .history-current-anchor { padding: 16px 13px 13px; }
  .networth-page .history-current-value { font-size: 34px; }
  .networth-page .history-current-topline { padding-right: 14px; }
  .networth-page .history-inline-inspector .history-current-copy small { font-size: 9.5px; }
  .networth-page .history-current-coverage { font-size: 8.5px; }
  .networth-page .history-latest-change { padding-inline: 13px; }
  .networth-page .history-latest-change-head small { display: none; }
  .networth-page .history-forecast-legend { font-size: 8.5px; gap-inline: 10px; }
  .settings-page .settings-legal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-page .settings-legal-links .btn { font-size: 10px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-view *, .premium-view *::before, .premium-view *::after { scroll-behavior: auto !important; }
}

/* ===== css/system.css ===== */
/* ============================================================
   Siegel Financial design system (v526)
   ------------------------------------------------------------
   One set of tokens and components for everything built from v526 on:
   Today, comparisons, the plan summary, and the retirement settings.
   It builds on the brand tokens already defined in styles.css
   (--paper, --ink, --gold, --accent, --line, --danger) so both themes
   work, and it is NOT another override sheet: every selector here is
   namespaced .sf-* and no legacy selector is restyled.

   Direction: "ledger and horizon". Warm paper, navy ink, one gold
   accent. Hairline rules instead of boxes, large serif numerals, and
   a single deep-navy panel for the path ahead.
   ============================================================ */
:root{
  /* spacing: 4px base */
  --sf-1:4px; --sf-2:8px; --sf-3:12px; --sf-4:16px; --sf-5:24px; --sf-6:32px; --sf-7:48px; --sf-8:64px;
  /* type scale (rem so text enlargement and zoom scale everything) */
  --sf-t-xs:.8125rem; --sf-t-sm:.9375rem; --sf-t-md:1.0625rem; --sf-t-lg:1.375rem; --sf-t-xl:1.75rem; --sf-t-2xl:clamp(2rem,1.2rem + 2.6vw,3.25rem);
  --sf-radius:14px; --sf-radius-sm:10px;
  --sf-touch:44px;
  /* status: always paired with an icon and a word, never color alone */
  --sf-ok:#1F6B4A; --sf-ok-bg:#E6F1EA;
  --sf-risk:#A2372F; --sf-risk-bg:#F7E6E3;
  --sf-unknown:#5A6675; --sf-unknown-bg:#ECF0F4;
  --sf-gold-ink:#7A5A16;              /* gold that passes 4.5:1 on paper */
  --sf-panel:#071B31; --sf-panel-ink:#F6F3EC; --sf-panel-muted:#B8C4D2; --sf-panel-line:rgba(246,243,236,.16);
  --sf-focus:#0B5CAD;
}
:root[data-theme="dark"]{
  --sf-ok:#7FD3A8; --sf-ok-bg:rgba(127,211,168,.12);
  --sf-risk:#FF9A92; --sf-risk-bg:rgba(255,138,130,.12);
  --sf-unknown:#AEBAC8; --sf-unknown-bg:rgba(174,186,200,.12);
  --sf-gold-ink:#E8CB83;
  --sf-panel:#0B1828; --sf-panel-line:rgba(246,243,236,.14);
  --sf-focus:#9CCBFF;
}

/* ---------- foundations ---------- */
.sf-today{padding-bottom:var(--sf-8);font-size:var(--sf-t-sm);line-height:1.6;color:var(--ink)}
.sf-today h2,.sf-modal h2{font-family:var(--serif);font-weight:640;line-height:1.15}
.sf-today :focus-visible,.sf-modal :focus-visible,.sf-toast :focus-visible,.sf-strip :focus-visible,.sf-goal-order :focus-visible{outline:3px solid var(--sf-focus);outline-offset:2px;border-radius:6px}
.sf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sf-kicker,.sf-eyebrow{font-size:var(--sf-t-xs);font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:var(--sf-gold-ink);margin:0}
.sf-note{font-size:var(--sf-t-xs);line-height:1.6;color:var(--ink-2);margin-top:var(--sf-3)}
.sf-center{text-align:center}
.sf-empty{color:var(--ink-2);font-size:var(--sf-t-sm)}
.sf-h3{font-family:var(--sans);font-size:var(--sf-t-md);font-weight:650;line-height:1.3;margin-bottom:var(--sf-2)}
.sf-ico{display:inline-flex;width:20px;height:20px;flex:none}
.sf-ico svg{width:100%;height:100%}
.sf-section-head{max-width:64ch;margin-bottom:var(--sf-5)}
.sf-section-head h2{font-size:var(--sf-t-xl);margin:var(--sf-2) 0}
.sf-section-head p:not(.sf-kicker){color:var(--ink-2)}
.sf-today>section,.sf-today>nav,.sf-today>aside{margin-top:var(--sf-7)}

/* ---------- controls ---------- */
.sf-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sf-2);min-height:var(--sf-touch);padding:10px 18px;border-radius:999px;
  border:1.5px solid var(--line-2);background:transparent;color:var(--ink);font:600 var(--sf-t-sm)/1.2 var(--sans);text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s}
.sf-btn:hover{border-color:var(--ink-2);background:var(--paper-3)}
.sf-btn-primary{background:var(--active-bg);border-color:var(--active-bg);color:var(--active-fg)}
.sf-btn-primary:hover{background:var(--accent-2);border-color:var(--accent-2);color:var(--active-fg)}
.sf-link{display:inline-flex;align-items:center;min-height:var(--sf-touch);padding:0 2px;background:none;border:0;color:var(--accent);font:600 var(--sf-t-sm)/1.3 var(--sans);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;text-align:left}
:root[data-theme="dark"] .sf-link{color:var(--accent-2)}
.sf-link:hover{text-decoration-thickness:2px}
.sf-row-links{display:flex;flex-wrap:wrap;gap:var(--sf-3);margin-top:var(--sf-4)}
.sf-chips{display:flex;flex-wrap:wrap;gap:var(--sf-2)}
.sf-chip{min-height:var(--sf-touch);padding:9px 16px;border-radius:999px;border:1.5px solid var(--line-2);background:var(--paper-2);color:var(--ink);font:600 var(--sf-t-sm)/1.2 var(--sans);cursor:pointer}
.sf-chip:hover{border-color:var(--ink-2)}
.sf-chip-toggle[aria-pressed="true"]{background:var(--active-bg);border-color:var(--active-bg);color:var(--active-fg)}
.sf-chip-toggle[aria-pressed="true"]::before{content:"✓ ";font-weight:700}
.sf-field{display:grid;gap:6px;font:600 var(--sf-t-xs)/1.3 var(--sans);color:var(--ink-2)}
.sf-field input,.sf-field select,.sf-select select{min-height:var(--sf-touch);padding:8px 12px;border:1.5px solid var(--line-2);border-radius:var(--sf-radius-sm);background:var(--paper-2);color:var(--ink);font:500 var(--sf-t-md)/1.2 var(--sans);font-variant-numeric:tabular-nums;width:100%}
.sf-money{position:relative;display:block}
.sf-money i{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--ink-3)}
.sf-money input{padding-left:26px}
.sf-select{display:grid;gap:6px;font:600 var(--sf-t-xs)/1.3 var(--sans);color:var(--ink-2)}
.sf-seg{display:inline-flex;flex-wrap:wrap;gap:6px}
.sf-seg button{min-height:var(--sf-touch);padding:8px 14px;border:1.5px solid var(--line-2);border-radius:999px;background:var(--paper-2);font:600 var(--sf-t-xs)/1.2 var(--sans);cursor:pointer}
.sf-seg button[aria-pressed="true"]{background:var(--active-bg);border-color:var(--active-bg);color:var(--active-fg)}
.sf-details{border-top:1px solid var(--line);margin-top:var(--sf-4)}
.sf-details>summary{display:flex;align-items:center;gap:var(--sf-2);min-height:var(--sf-touch);cursor:pointer;font:600 var(--sf-t-sm)/1.3 var(--sans);color:var(--ink);list-style:none}
.sf-details>summary::-webkit-details-marker{display:none}
.sf-details>summary::before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1.5px solid currentColor;border-radius:50%;font-weight:500;line-height:1}
.sf-details[open]>summary::before{content:"−"}
.sf-prose ul{padding-left:20px;display:grid;gap:var(--sf-2);margin:var(--sf-2) 0 var(--sf-3)}

/* ---------- hero ---------- */
.sf-hero{padding:var(--sf-7) 0 0;max-width:820px}
.sf-title{font-family:var(--serif);font-weight:640;font-size:var(--sf-t-2xl);line-height:1.06;margin:var(--sf-3) 0 var(--sf-4);letter-spacing:-.01em;text-wrap:balance}
.sf-lede{font-size:var(--sf-t-md);line-height:1.55;color:var(--ink-2);max-width:60ch}
.sf-reliability{display:inline-flex;align-items:center;gap:var(--sf-3);min-height:var(--sf-touch);margin-top:var(--sf-5);padding:8px 16px 8px 12px;border:1.5px solid var(--line-2);border-radius:999px;background:var(--paper-2);color:var(--ink);font:500 var(--sf-t-xs)/1.3 var(--sans);cursor:pointer;text-align:left}
.sf-reliability:hover{border-color:var(--ink-2)}
.sf-rel-dots{display:inline-flex;gap:3px}
.sf-rel-dots i{width:8px;height:8px;border-radius:50%;border:1.5px solid var(--ink-3)}
.sf-rel-dots i.on{background:var(--sf-gold-ink);border-color:var(--sf-gold-ink)}

/* ---------- notice ---------- */
.sf-notice{display:flex;gap:var(--sf-5);align-items:flex-start;justify-content:space-between;padding:var(--sf-5);border:1.5px solid var(--gold);border-radius:var(--sf-radius);background:var(--gold-soft)}
.sf-notice p{margin-top:6px;color:var(--ink-2);max-width:72ch}
.sf-notice .sf-btn{flex:none;background:var(--paper-2)}

/* ---------- position: three figures on a ruled line ---------- */
.sf-position{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:2px solid var(--ink);border-bottom:1px solid var(--line)}
.sf-figure{padding:var(--sf-5) var(--sf-5) var(--sf-4) 0;min-width:0}
.sf-figure+.sf-figure{padding-left:var(--sf-5);border-left:1px solid var(--line)}
.sf-figure-label{font:650 var(--sf-t-xs)/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.sf-figure-value{font-family:var(--serif);font-weight:620;font-size:clamp(1.9rem,1.1rem + 2.3vw,3rem);line-height:1.1;margin:var(--sf-2) 0 var(--sf-1);overflow-wrap:anywhere}
.sf-figure-value small{font:500 var(--sf-t-md)/1 var(--sans);color:var(--ink-2)}
.sf-figure-value.is-neg{color:var(--sf-risk)}
.sf-figure-note{font-size:var(--sf-t-xs);color:var(--ink-2);min-height:2.6em}

/* ---------- story ---------- */
.sf-story{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sf-6)}
.sf-story-col h3{display:flex;align-items:center;gap:var(--sf-2);font:650 var(--sf-t-sm)/1.3 var(--sans);padding-bottom:var(--sf-3);border-bottom:1px solid var(--line);margin-bottom:var(--sf-3)}
.sf-tone-ok h3,.sf-tone-ok .sf-strip-status{color:var(--sf-ok)}
.sf-tone-risk h3,.sf-tone-risk .sf-strip-status{color:var(--sf-risk)}
.sf-tone-unknown h3,.sf-tone-unknown .sf-strip-status{color:var(--sf-unknown)}
.sf-story-col ul{list-style:none;display:grid;gap:var(--sf-4)}
.sf-story-col li b{display:block;font-weight:650;line-height:1.35;color:var(--ink)}
.sf-story-col li span{display:block;font-size:var(--sf-t-xs);color:var(--ink-2);margin-top:2px}
.sf-story-col .sf-link{font-size:var(--sf-t-xs)}

/* ---------- path: the one dark panel ---------- */
.sf-path{background:var(--sf-panel);color:var(--sf-panel-ink);border-radius:var(--sf-radius);padding:var(--sf-6);border:1px solid var(--sf-panel-line)}
.sf-path .sf-kicker{color:#E3C47D}
.sf-path-head h2{font-size:var(--sf-t-xl);margin:var(--sf-2) 0;max-width:30ch;text-wrap:balance;color:var(--sf-panel-ink)}
.sf-path-head p:not(.sf-kicker){color:var(--sf-panel-muted);max-width:62ch}
.sf-path-chart{margin-top:var(--sf-5)}
.sf-chart{display:block;width:100%;height:auto;overflow:visible}
.sf-chart .sf-grid{stroke:var(--sf-panel-line);stroke-width:1}
.sf-chart .sf-zero{stroke:#FF9A92;stroke-width:1;stroke-dasharray:4 4}
.sf-chart .sf-axis{fill:var(--sf-panel-muted);font:500 12px var(--sans)}
.sf-chart .sf-mark{stroke:var(--sf-panel-muted);stroke-width:1;stroke-dasharray:2 4}
.sf-chart .sf-mark-label{fill:var(--sf-panel-ink);font:600 12px var(--sans)}
.sf-chart .sf-mark.is-risk{stroke:#FF9A92}
.sf-chart .sf-mark-label.is-risk{fill:#FFB3AD}
.sf-chart .sf-gap{fill:#FF9A92;opacity:.55}
.sf-chart .sf-area{fill:#E3C47D;opacity:.1}
.sf-chart .sf-line{fill:none;stroke-linejoin:round;stroke-linecap:round}
.sf-chart .is-plan{stroke:#E3C47D;stroke-width:3}
.sf-chart .is-cautious{stroke:#9CC4E4;stroke-width:2;stroke-dasharray:7 6}
.sf-chart .is-base{stroke:#B8C4D2;stroke-width:2;stroke-dasharray:2 5}
.sf-chart .sf-dot{fill:#E3C47D;stroke:var(--sf-panel);stroke-width:2}
.sf-legend{list-style:none;display:flex;flex-wrap:wrap;gap:var(--sf-2) var(--sf-5);margin-top:var(--sf-3);font-size:var(--sf-t-xs);color:var(--sf-panel-muted)}
.sf-legend li{display:flex;align-items:center;gap:var(--sf-2)}
.sf-key{width:26px;height:0;border-top:3px solid #E3C47D;flex:none}
.sf-key.is-cautious{border-top:2px dashed #9CC4E4}
.sf-key.is-base{border-top:2px dotted #B8C4D2}
.sf-key.is-gap{border-top:6px solid #FF9A92;opacity:.7}
.sf-path-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sf-4);margin-top:var(--sf-5);padding-top:var(--sf-5);border-top:1px solid var(--sf-panel-line)}
.sf-path-facts dt{font:650 var(--sf-t-xs)/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--sf-panel-muted)}
.sf-path-facts dd{font-size:var(--sf-t-md);font-weight:600;margin-top:4px}
.sf-path .sf-details{border-color:var(--sf-panel-line)}
.sf-path .sf-details>summary{color:var(--sf-panel-ink)}
.sf-path .sf-prose,.sf-path .sf-prose li{color:var(--sf-panel-muted)}
.sf-path .sf-prose b{color:var(--sf-panel-ink)}
.sf-path .sf-link{color:#E3C47D}
.sf-path .sf-table{color:var(--sf-panel-ink)}
.sf-path .sf-table th,.sf-path .sf-table td{border-color:var(--sf-panel-line)}
.sf-path .sf-table caption,.sf-path .sf-table thead th{color:var(--sf-panel-muted)}

/* ---------- tables ---------- */
.sf-table-wrap{overflow-x:auto;margin:var(--sf-3) 0}
.sf-table{width:100%;border-collapse:collapse;font-size:var(--sf-t-xs);font-variant-numeric:tabular-nums}
.sf-table caption{text-align:left;color:var(--ink-2);padding-bottom:var(--sf-2)}
.sf-table th,.sf-table td{text-align:right;padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.sf-table th:first-child,.sf-table td:nth-child(2):not(.is-num){text-align:left}
.sf-table thead th{font-weight:650;color:var(--ink-2);white-space:normal;vertical-align:bottom}
.sf-table tbody th{font-weight:600}

/* ---------- next steps ---------- */
.sf-action{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sf-5);padding:var(--sf-5) 0;border-top:1px solid var(--line)}
.sf-action:first-of-type{border-top:2px solid var(--ink)}
.sf-action-n{font-family:var(--serif);font-size:2.25rem;line-height:1;color:var(--sf-gold-ink);min-width:1.4ch}
.sf-action h3{font-family:var(--serif);font-weight:640;font-size:var(--sf-t-lg);line-height:1.2}
.sf-returned{display:inline-block;margin-top:var(--sf-2);padding:3px 10px;border-radius:999px;background:var(--sf-unknown-bg);color:var(--sf-unknown);font-size:var(--sf-t-xs);font-weight:600}
.sf-why{margin-top:var(--sf-2);color:var(--ink-2);max-width:70ch}
.sf-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sf-4) var(--sf-5);margin-top:var(--sf-4)}
.sf-facts dt,.sf-notes dt{font:650 var(--sf-t-xs)/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.sf-facts dd,.sf-notes dd{margin-top:4px}
.sf-help{margin-top:var(--sf-4);padding:var(--sf-3) var(--sf-4);border-left:3px solid var(--gold);background:var(--gold-soft);border-radius:0 var(--sf-radius-sm) var(--sf-radius-sm) 0;font-size:var(--sf-t-xs);max-width:74ch}
.sf-action-btns{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sf-3);margin-top:var(--sf-4)}
.sf-action-quiet{display:inline-flex;flex-wrap:wrap;gap:var(--sf-4);margin-left:auto}
.sf-action-quiet .sf-link{color:var(--ink-2);font-weight:500}
.sf-more,.sf-log{list-style:none;display:grid;gap:var(--sf-3);padding:var(--sf-2) 0 var(--sf-3)}
.sf-more li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--sf-4);align-items:center}
.sf-more li span{grid-column:1;font-size:var(--sf-t-xs);color:var(--ink-2)}
.sf-more li .sf-link{grid-column:2;grid-row:1 / span 2}
.sf-log li b{display:block;font-weight:600}
.sf-log li span{font-size:var(--sf-t-xs);color:var(--ink-2)}

/* ---------- focus, progress, tiles ---------- */
.sf-household{display:grid;grid-template-columns:repeat(2,minmax(0,240px));gap:var(--sf-4);margin-top:var(--sf-5)}
.sf-progress-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:var(--sf-7)}
.sf-deltas{list-style:none;margin-top:var(--sf-2)}
.sf-deltas li{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(110px,auto);gap:var(--sf-4);align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line)}
.sf-deltas b{font-family:var(--serif);font-size:var(--sf-t-md)}
.sf-deltas em{font-style:normal;font-size:var(--sf-t-xs);color:var(--ink-2);text-align:right}
.sf-foot-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sf-4)}
.sf-tile{display:grid;gap:6px;align-content:start;min-height:var(--sf-touch);padding:var(--sf-5);border:1.5px solid var(--line-2);border-radius:var(--sf-radius);background:var(--paper-2);text-align:left;cursor:pointer;color:var(--ink)}
.sf-tile:hover{border-color:var(--ink-2)}
.sf-tile b{font-family:var(--serif);font-size:var(--sf-t-lg);font-weight:640}
.sf-tile b::after{content:" →";color:var(--sf-gold-ink)}
.sf-tile span{font-size:var(--sf-t-xs);color:var(--ink-2)}
.sf-disclaimer{margin-top:var(--sf-7);font-size:var(--sf-t-xs);color:var(--ink-2);text-align:center}

/* ---------- strip on Future, goal order on Goals, settings ---------- */
.sf-strip{display:grid;gap:var(--sf-3);padding:var(--sf-5);margin-bottom:var(--sf-4);border:1.5px solid var(--line-2);border-radius:var(--sf-radius);background:var(--paper-2)}
.sf-strip-status{display:flex;align-items:center;gap:var(--sf-2);font:650 var(--sf-t-md)/1.3 var(--sans)}
.sf-strip dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sf-4)}
.sf-strip dt{font:650 var(--sf-t-xs)/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.sf-strip dd{font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums}
.sf-goal-order{margin:var(--sf-4) 0}
.sf-goal-order ol{margin:var(--sf-3) 0 0 20px;display:grid;gap:var(--sf-2)}
.sf-goal-order li span{display:block;font-size:var(--sf-t-xs);color:var(--ink-2)}
.settings-retirement-card{margin-top:18px}
.sf-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sf-4) var(--sf-5);align-items:start}
.sf-settings-dials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sf-5);margin-top:var(--sf-5)}
.ob-focus{margin:18px 0 6px;display:grid;gap:10px;text-align:left}
.ob-focus b{font-size:14px}

/* ---------- dialogs ---------- */
.scrim.sf-scrim .modal.sf-modal{max-width:none;width:min(560px,calc(100vw - 24px))}
.scrim.sf-scrim .modal.sf-modal.sf-modal-wide{width:min(880px,calc(100vw - 24px))}
.sf-modal .modal-head h2{font-size:var(--sf-t-xl);margin-top:var(--sf-2)}
.sf-modal .modal-body{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;font-size:var(--sf-t-sm);line-height:1.6}
.sf-modal .modal-foot{flex-wrap:wrap;gap:var(--sf-3);align-items:center}
.sf-modal .modal-foot .btn{min-height:var(--sf-touch)}
.sf-checklist,.sf-questions{list-style:none;display:grid}
.sf-checklist li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--sf-3);align-items:center;padding:var(--sf-3) 0;border-bottom:1px solid var(--line)}
.sf-checklist li.is-known .sf-ico{color:var(--sf-ok)}
.sf-checklist li.is-missing .sf-ico{color:var(--sf-unknown)}
.sf-checklist b,.sf-questions b{display:block;font-weight:650}
.sf-checklist span:not(.sf-ico),.sf-questions li>div>span{font-size:var(--sf-t-xs);color:var(--ink-2)}
.sf-questions li{display:grid;gap:var(--sf-3);padding:var(--sf-4) 0;border-bottom:1px solid var(--line)}
.sf-compare-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,240px));gap:var(--sf-4);align-items:end}
.sf-alt{grid-column:1/-1;font-size:var(--sf-t-xs);color:var(--ink-2)}
.sf-warning{display:flex;gap:var(--sf-3);align-items:flex-start;margin-top:var(--sf-4);padding:var(--sf-3) var(--sf-4);border-radius:var(--sf-radius-sm);background:var(--sf-risk-bg);color:var(--sf-risk);font-weight:600}
.sf-compare-table th,.sf-compare-table td{white-space:normal}
.sf-compare-table{margin-top:var(--sf-4)}
.sf-compare-table td.is-better{color:var(--sf-ok);font-weight:650}
.sf-compare-table td.is-worse{color:var(--sf-risk);font-weight:650}
.sf-compare-table td.is-better::before{content:"▲ "}
.sf-compare-table td.is-worse::before{content:"▼ "}
.sf-compare-table th small{font-weight:400;color:var(--ink-2)}
.sf-compare-chart{background:var(--sf-panel);border-radius:var(--sf-radius-sm);padding:var(--sf-4)}
.sf-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sf-4);margin-top:var(--sf-4)}
.sf-notes dd{font-size:var(--sf-t-xs);color:var(--ink-2)}
.sf-confirm{margin-top:var(--sf-5);padding:var(--sf-4) var(--sf-5);border:2px solid var(--gold);border-radius:var(--sf-radius-sm);background:var(--gold-soft)}
.sf-confirm p{margin-top:6px;color:var(--ink-2)}
.sf-summary-frame{border:1px solid var(--line-2);border-radius:var(--sf-radius-sm);background:#fff;max-height:52vh;overflow:auto}

/* ---------- toast ---------- */
.sf-toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translate(-50%,20px);z-index:90;display:flex;align-items:center;gap:var(--sf-4);max-width:min(560px,calc(100vw - 32px));padding:12px 18px;border-radius:var(--sf-radius-sm);background:#071B31;color:#F6F3EC;font:500 var(--sf-t-sm)/1.4 var(--sans);box-shadow:var(--shadow-lg);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.sf-toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.sf-toast-undo{min-height:36px;padding:6px 14px;border:1.5px solid #E3C47D;border-radius:999px;background:none;color:#E3C47D;font:650 var(--sf-t-sm)/1 var(--sans);cursor:pointer}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .sf-story{grid-template-columns:1fr;gap:var(--sf-5)}
  .sf-facts,.sf-notes{grid-template-columns:1fr}
  .sf-path-facts,.sf-strip dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sf-progress-grid{grid-template-columns:1fr;gap:var(--sf-6)}
  .sf-foot-links{grid-template-columns:1fr}
  .sf-action-quiet{margin-left:0;width:100%}
}
@media (max-width:640px){
  .sf-today>section,.sf-today>nav,.sf-today>aside{margin-top:var(--sf-6)}
  .sf-hero{padding-top:var(--sf-5)}
  .sf-position{grid-template-columns:1fr}
  .sf-figure{padding:var(--sf-4) 0}
  .sf-figure+.sf-figure{padding-left:0;border-left:0;border-top:1px solid var(--line)}
  .sf-figure-note{min-height:0}
  .sf-path{padding:var(--sf-5) var(--sf-4);margin-left:-8px;margin-right:-8px}
  .sf-chart .sf-axis,.sf-chart .sf-mark-label{font-size:17px}
  .sf-action{grid-template-columns:1fr;gap:var(--sf-2)}
  .sf-notice{flex-direction:column}
  .sf-household,.sf-settings-grid,.sf-settings-dials{grid-template-columns:1fr}
  .sf-btn{flex:1 1 auto}
  .sf-deltas li{grid-template-columns:minmax(0,1fr) auto}
  .sf-deltas em{grid-column:1/-1;text-align:left}
  .sf-more li{grid-template-columns:1fr}
  .sf-more li .sf-link{grid-column:1;grid-row:auto}
  .sf-checklist li{grid-template-columns:auto minmax(0,1fr)}
  .sf-checklist li .sf-btn{grid-column:2;justify-self:start}
}
@media (prefers-reduced-motion:reduce){
  .sf-toast,.sf-btn{transition:none}
}

/* ---------- print: only the summary ---------- */
.sf-print-root{display:none}
@media print{
  body.sf-printing>*:not(.sf-print-root){display:none !important}
  body.sf-printing{background:#fff !important}
  body.sf-printing .sf-print-root{display:block}
}

/* ---------- Net Worth: per-account view and chart/table toggle ---------- */
.nw-accounts-btn{display:inline-flex;width:auto;justify-self:start;align-self:flex-start;align-items:center;gap:8px;min-height:var(--sf-touch);margin-top:10px;padding:8px 16px;border:1.5px solid rgba(227,196,125,.55);border-radius:999px;background:rgba(227,196,125,.08);color:#F0D48A;font:600 var(--sf-t-sm)/1.2 var(--sans);cursor:pointer}
.nw-accounts-btn:hover{background:rgba(227,196,125,.18);border-color:#E3C47D}
.nw-accounts-btn:focus-visible,.nw-view-toggle button:focus-visible{outline:3px solid #9CCBFF;outline-offset:2px}
.nw-view-toggle{display:flex;justify-content:flex-end;margin:12px 0 8px}
.nw-view-toggle button{background:transparent;border-color:rgba(246,243,236,.3);color:#F6F3EC}
.nw-view-toggle button[aria-pressed="true"]{background:#E3C47D;border-color:#E3C47D;color:#06111F}
.history-chart-shell.is-table{height:auto;min-height:0;aspect-ratio:auto;padding:4px 0 8px;background:none;border:0}
.nw-table{color:#F6F3EC;font-size:var(--sf-t-sm)}
.nw-table caption,.nw-table thead th{color:#B8C4D2}
.nw-table th,.nw-table td{border-bottom-color:rgba(246,243,236,.16)}
.nw-table tr.is-current th,.nw-table tr.is-current td{font-weight:700;color:#F0D48A}
.nw-table tr.is-projection th,.nw-table tr.is-projection td{font-style:italic;color:#B8C4D2}
.nw-table-wrap:focus-visible{outline:3px solid #9CCBFF;outline-offset:2px}
.nw-table-note{margin:8px 0 0;color:#B8C4D2;font-size:var(--sf-t-xs)}
.sf-table.nw-acct-table td,.sf-table.nw-acct-table thead th:last-child{text-align:right}
.sf-table.nw-table td{text-align:right}
.nw-acct-table tbody th{font-weight:400;padding-left:18px}
.nw-acct-table tr.nw-acct-group th{font-weight:700;padding-left:10px;padding-top:16px}
.nw-acct-table tr.nw-acct-group td{font-weight:700;padding-top:16px}
.nw-acct-table tfoot th,.nw-acct-table tfoot td{font-weight:600;border-bottom:0;border-top:1px solid var(--line)}
.nw-acct-table tfoot tr.nw-acct-total th,.nw-acct-table tfoot tr.nw-acct-total td{font-family:var(--serif);font-size:var(--sf-t-lg);font-weight:640;border-top:2px solid var(--ink)}
.nw-table-lead{margin:0 0 6px}
.nw-table-swipe{display:none}
@media (max-width:760px){.nw-table-swipe{display:inline}}
