.plan-hero {
  padding-top: 40px;
}

.planIntroLabel {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 1203;
  transform: translateX(-50%);
  pointer-events: none;
}

.planIntroLabel[hidden] {
  display: none !important;
}

.planIntroLabelScrim {
  position: fixed;
  inset: 0;
  z-index: 1201;
  background: rgba(110, 140, 184, 0.05);
  backdrop-filter: blur(0.9px);
  -webkit-backdrop-filter: blur(0.9px);
  pointer-events: auto;
}

.planIntroLabelScrim[hidden] {
  display: none !important;
}

.planIntroLabelBubble {
  position: relative;
  width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    0 0 0 1px rgba(244, 202, 92, 0.28),
    0 0 28px rgba(244, 202, 92, 0.22),
    0 18px 40px rgba(8, 15, 26, 0.18);
  backdrop-filter: blur(12px);
}

.planIntroLabelBubble::before {
  content: "";
  position: absolute;
  left: var(--plan-intro-pointer-x, 50%);
  top: -10px;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,.94);
  border-left: 1px solid rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.65);
  transform: translateX(-50%) rotate(45deg);
}

.planIntroLabel.is-app-shell .planIntroLabelBubble {
  width: min(300px, calc(100vw - 40px));
  border-radius: 16px 16px 0 0;
  margin-bottom: -2px;
}

.planIntroLabel.is-app-shell .planIntroLabelBubble::before {
  display: none;
}

.planIntroLabelKicker {
  color: #1f7a58;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(63, 143, 111, 0.14);
  box-shadow: inset 0 0 0 1px rgba(63, 143, 111, 0.10);
}

.planIntroLabelText {
  margin-top: 4px;
  color: #203041;
  font-size: 16px;
  line-height: 1.42;
}

.planIntroLabel.is-entering .planIntroLabelBubble {
  animation: planIntroLabelIn 240ms cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes planIntroLabelIn {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.planIntroNavTarget {
  position: relative;
  z-index: 1204;
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.75),
    0 0 0 8px rgba(244, 202, 92, 0.28),
    0 0 24px rgba(244, 202, 92, 0.22);
}

@keyframes planIntroMobileHaloPulse {
  0% {
    box-shadow:
      0 0 0 2px rgba(255, 248, 214, 0.98),
      0 0 0 8px rgba(244, 202, 92, 0.42),
      0 0 0 16px rgba(244, 202, 92, 0.16),
      0 0 28px rgba(244, 202, 92, 0.24);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 250, 224, 1),
      0 0 0 10px rgba(244, 202, 92, 0.52),
      0 0 0 20px rgba(244, 202, 92, 0.22),
      0 0 34px rgba(244, 202, 92, 0.32);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(255, 248, 214, 0.98),
      0 0 0 8px rgba(244, 202, 92, 0.42),
      0 0 0 16px rgba(244, 202, 92, 0.16),
      0 0 28px rgba(244, 202, 92, 0.24);
  }
}

.planVisualOnboardingOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.planVisualOnboardingOverlay.hidden {
  display: none;
}

.planVisualOnboardingScrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 18, 0.58);
  backdrop-filter: blur(4px);
  animation: planVisualOnboardingScrimIn 340ms cubic-bezier(.18, .8, .22, 1) both;
  will-change: opacity, backdrop-filter;
}

@keyframes planVisualOnboardingScrimIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.planVisualOnboardingCommentary {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(28px + var(--portzo-safe-bottom, env(safe-area-inset-bottom, 0px)));
  width: min(500px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 98px;
  padding: 14px 16px 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(95, 170, 130, 0.97), rgba(54, 116, 85, 0.98)),
    radial-gradient(circle at top, rgba(255,255,255,.18), transparent 44%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 18px 40px rgba(4, 10, 16, 0.22),
    inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  z-index: 1702;
  transform: translateX(-50%);
}

.planVisualOnboardingCommentary.hidden {
  display: none !important;
}

.planVisualOnboardingProgress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.planVisualOnboardingCommentary h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #ffffff;
  text-wrap: balance;
}

.planVisualOnboardingMeta {
  min-width: 0;
  text-align: center;
}

.planVisualOnboardingBody {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.38;
  text-wrap: balance;
}

.planVisualOnboardingDot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.planVisualOnboardingDot.is-active {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
  transform: scale(1.02);
}

.planVisualOnboardingNavBtn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.planVisualOnboardingNavBtn:disabled {
  opacity: .42;
  cursor: default;
}

.planVisualOnboardingTarget {
  position: relative;
  z-index: 1301;
  pointer-events: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.72),
    0 0 0 10px rgba(63,143,111,.22),
    0 20px 42px rgba(3, 10, 18, 0.18);
  border-radius: 24px;
  animation: planVisualOnboardingPulse 1.8s ease-in-out infinite;
  transform-origin: center center;
  will-change: box-shadow, transform, filter;
}

.planVisualOnboardingOverlay .planVisualOnboardingTarget {
  z-index: 1301 !important;
}

.planChartOnboardingTarget.planVisualOnboardingTarget {
  position: absolute !important;
  z-index: 1701 !important;
}

.planDebugChart.planVisualOnboardingTarget {
  position: relative !important;
  z-index: 1701 !important;
  border-radius: 18px;
}

.planHeroCard.planVisualOnboardingHeroTarget {
  position: relative;
  z-index: 1701;
}

.plan-assumptions.planVisualOnboardingTarget {
  position: relative !important;
  z-index: 1500 !important;
  isolation: isolate;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.82),
    0 0 0 12px rgba(63,143,111,.24),
    0 26px 54px rgba(3, 10, 18, 0.24),
    0 0 0 9999px rgba(255,255,255,0);
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 0;
}

.plan-assets-debug.planVisualOnboardingTarget {
  position: relative !important;
  z-index: 1500 !important;
  isolation: isolate;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.84),
    0 0 0 12px rgba(63,143,111,.26),
    0 28px 56px rgba(3, 10, 18, 0.26),
    0 0 0 9999px rgba(255,255,255,0);
  outline: 2px solid rgba(255,255,255,.78);
  outline-offset: 0;
  filter: brightness(1.02);
}

.planVisualOnboardingTarget.is-entering {
  animation:
    planVisualOnboardingTargetIn 360ms cubic-bezier(.16, .84, .22, 1) forwards,
    planVisualOnboardingPulse 1.8s ease-in-out 360ms infinite;
}

@keyframes planVisualOnboardingTargetIn {
  from {
    transform: scale(0.985);
    filter: brightness(0.96);
    box-shadow:
      0 0 0 0 rgba(255,255,255,0),
      0 0 0 0 rgba(63,143,111,0),
      0 0 0 rgba(3, 10, 18, 0);
  }
  to {
    transform: scale(1);
    filter: brightness(1);
    box-shadow:
      0 0 0 2px rgba(255,255,255,.72),
      0 0 0 10px rgba(63,143,111,.22),
      0 20px 42px rgba(3, 10, 18, 0.18);
  }
}

@keyframes planVisualOnboardingPulse {
  0% { box-shadow: 0 0 0 2px rgba(255,255,255,.72), 0 0 0 10px rgba(63,143,111,.18), 0 20px 42px rgba(3,10,18,.14); }
  50% { box-shadow: 0 0 0 2px rgba(255,255,255,.82), 0 0 0 14px rgba(63,143,111,.28), 0 24px 46px rgba(3,10,18,.20); }
  100% { box-shadow: 0 0 0 2px rgba(255,255,255,.72), 0 0 0 10px rgba(63,143,111,.18), 0 20px 42px rgba(3,10,18,.14); }
}

body.plan-onboarding-active .plan-hero,
body.plan-onboarding-active .portfolioMain {
  pointer-events: none;
}

body.plan-onboarding-active .planVisualOnboardingOverlay,
body.plan-onboarding-active .planVisualOnboardingOverlay *,
body.plan-onboarding-active .planVisualOnboardingCommentary,
body.plan-onboarding-active .planVisualOnboardingCommentary *,
body.plan-onboarding-active .planIntroLabel,
body.plan-onboarding-active .planIntroLabel *,
body.plan-onboarding-active .planIntroLabelScrim,
body.plan-onboarding-active .planIntroNavTarget,
body.plan-onboarding-active .planIntroNavTarget * {
  pointer-events: auto;
}

body.plan-intro-label-active #planVisualOnboardingCommentary {
  display: none !important;
}

@media (max-width: 720px) {
  body.plan-intro-label-active {
    overflow: hidden;
  }

  body.plan-intro-label-active .mobileBottomNav {
    z-index: 1204;
  }

  body.plan-intro-label-active .mobileBottomNav .planIntroNavTarget {
    box-shadow:
      0 0 0 3px rgba(255, 248, 214, 0.98),
      0 0 0 10px rgba(244, 202, 92, 0.52),
      0 0 0 18px rgba(244, 202, 92, 0.18),
      0 0 34px rgba(244, 202, 92, 0.3);
    animation: planIntroMobileHaloPulse 1.8s ease-in-out infinite;
  }

  .planIntroLabel {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    z-index: 1205;
    transform: translateX(-50%) !important;
    pointer-events: auto;
  }

  .planIntroLabelBubble {
    width: min(320px, calc(100vw - 32px));
  }

  .planIntroLabelBubble::before {
    left: var(--plan-intro-pointer-x, 50%);
    top: auto;
    bottom: -10px;
    border-left: 0;
    border-top: 0;
    border-right: 1px solid rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.65);
    transform: translateX(-50%) rotate(45deg);
  }

  .planIntroLabel.is-app-shell {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .planIntroLabel.is-app-shell .planIntroLabelBubble {
    width: min(300px, calc(100vw - 40px));
    border-radius: 16px 16px 0 0;
    margin-bottom: -2px;
  }

  .planIntroLabel.is-app-shell .planIntroLabelBubble::before {
    display: none;
  }

  .planVisualOnboardingCommentary {
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    z-index: 1704;
  }

  .planVisualOnboardingCommentary h3 {
    font-size: 18px;
    line-height: 1.08;
  }

  .planVisualOnboardingCommentary {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    min-height: 116px;
    padding: 16px 16px 15px;
    border-radius: 22px;
    transform-origin: center center;
  }

  .planVisualOnboardingBody {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.34;
  }

  .planVisualOnboardingNavBtn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .planVisualOnboardingProgress {
    gap: 6px;
  }

  .planVisualOnboardingDot {
    width: 6px;
    height: 6px;
  }

  body.plan-onboarding-chart-step .planVisualOnboardingCommentary {
    bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    min-height: 108px;
    padding: 14px 14px 13px;
    border-radius: 20px;
  }

  body.plan-onboarding-chart-step .planVisualOnboardingCommentary h3 {
    font-size: 17px;
    line-height: 1.08;
  }

  body.plan-onboarding-chart-step .planVisualOnboardingBody {
    font-size: 15px;
    line-height: 1.32;
  }

  body.plan-onboarding-chart-step .planVisualOnboardingNavBtn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  body.plan-onboarding-chart-step .planVisualOnboardingProgress {
    gap: 5px;
  }

  body.plan-onboarding-chart-step .planVisualOnboardingDot {
    width: 5px;
    height: 5px;
  }
}


body.plan-loading #planTotalIncome,
body.plan-loading #planProjectionMeta,
body.plan-loading #planLumpSumMeta,
body.plan-loading .planLegend,
body.plan-loading #planAskAiBtn,
body.plan-loading #planCalcLink {
  visibility: hidden;
}

body.plan-loading.plan-hero-value-visible #planTotalIncome {
  visibility: visible;
}

body.plan-loading .plan-assumptions {
  display: none;
}

body.plan-onboarding-active #planAdvancedToggle,
body.plan-onboarding-active #planAdvancedBody {
  display: none !important;
}

body.plan-onboarding-active #planAskAiBtn,
body.plan-onboarding-active #planCalcLink {
  pointer-events: none;
  opacity: 0.45;
}

.planHeroCard {
  background: white;
  height: auto;
  min-height: 440px;
  overflow: visible;
}

.planHeroCard::before {
  display: none;
}

.planHeroCard canvas {
  opacity: 1;
}

.planHeroSummary {
  margin: 0;
  max-width: 520px;
  position: relative;
  z-index: 4;
}

.planHeroSummary .portfolioGreeting {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.08;
  font-weight: 500;
  color: #344054;
}

.planHeroSummary .portfolioLabel {
  font-size: 14px;
  color: #667085;
  margin-bottom: 8px;
}

.planHeroSummary .portfolioValue {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.plan-hero .portfolioMeta {
  font-size: 14px;
  line-height: 1.4;
  color: #667085;
  margin-bottom: 8px;
}

.planMetaPills {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
}

.planSampleEstimateNote {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e7c46a;
  background: #fff4cc;
  color: #7a5610;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.planSampleEstimateNote.hidden {
  display: none !important;
}

.planMoneyToggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  margin-top: 8px;
  margin-bottom: 2px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(248, 250, 252, 0.96);
}

.planMoneyBtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.planMoneyBtn:hover {
  color: #344054;
  background: rgba(16, 24, 40, 0.04);
}

.planMoneyBtn.active {
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
}

.planHintLabel {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.planHintLabel::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 220px;
  max-width: min(220px, 78vw);
  padding: 7px 9px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 244, 190, 0.98), rgba(255, 224, 112, 0.94));
  border: 1px solid rgba(245, 188, 38, 0.48);
  color: #332400;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  box-shadow:
    0 0 0 4px rgba(255, 211, 77, 0.14),
    0 0 24px rgba(245, 188, 38, 0.36),
    0 10px 22px rgba(126, 86, 9, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 130ms ease, transform 130ms ease;
  z-index: 20;
}

.planHintLabel:hover::after,
.planHintLabel:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Portfolio base sets .heroOverlay to pointer-events:none; Plan needs this interactive. */
.plan-hero .heroOverlay {
  pointer-events: none;
}

.planHeroSummary {
  pointer-events: auto;
}

/* Keep chart from running underneath hero copy on desktop. */
.plan-hero .portfolioChartWrap {
  left: clamp(320px, 40%, 520px);
  right: 0;
}

.planChartOnboardingTarget {
  position: absolute;
  inset: 18px 14px 52px 14px;
  border-radius: 20px;
  pointer-events: none;
}

.planChartTitle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: auto;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: #667085;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.planChartTitle .info-wrap {
  z-index: 12;
}


.planHeroIntro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planHeroEyebrow {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.planHeroTitle {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #0e1726;
}

.planHeroText {
  margin: 0;
  max-width: 62ch;
  color: #526177;
  font-size: 14px;
}

.plan-hero-number {
  margin-bottom: 8px;
}

.planValueSuffix {
  font-size: 0.42em;
  font-weight: 560;
  color: #667085;
  vertical-align: baseline;
  margin-left: 4px;
}

.planValueInfo {
  appearance: none;
  border: 1px solid rgba(102, 112, 133, 0.35);
  background: #ffffff;
  color: #667085;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
}

.planLegend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 12px;
  justify-content: center;
}

.planLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16,24,40,0.04);
}

.planLegendLine {
  width: 14px;
  height: 0;
  border-top: 2px solid #3f8f6f;
  display: inline-block;
}

.planMetaPills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 6px;
}

@media (min-width: 761px) {
  .planMetaPills {
    margin-bottom: 18px;
  }
}

.planMetaPill {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #526177;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.planMetaPill strong {
  font-weight: 700;
  color: #344054;
}

.planMetaText {
  display: inline;
  color: #526177;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.planMetaText strong {
  font-weight: 700;
  color: #344054;
}

.planAnnualIncomeLabelMobile {
  display: none;
}

@media (max-width: 760px) {
  .planAnnualIncomeLabelDesktop {
    display: none;
  }

  .planAnnualIncomeLabelMobile {
    display: inline;
  }
}

.planLegendLine.dashed {
  border-top-style: dashed;
  border-top-color: #2f6f5a;
}

.planLegendLine.projected {
  border-top-color: #f59e0b;
}

.planLegendLine.target {
  border-top-color: #175cd3;
  border-top-style: solid;
}

.plan-assumptions {
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

main.portfolioMain {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

main.portfolioMain > .assetCard,
main.portfolioMain > .planAiSection {
  margin: 0;
}

.portfolioMain > .planAiSection {
  display: none;
  width: 100%;
}

.portfolioMain > .planAiSection .portfolioBenchmarkInner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.portfolioMain > .planAiSection.isVisible {
  display: grid;
  margin-top: 0;
}

.planAiSection .pbv2AiSummary {
  margin-top: 30px;
}

.planAssumptionsToggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.planAssumptionsToggle::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 2px solid rgba(52, 64, 84, 0.72);
  border-bottom: 2px solid rgba(52, 64, 84, 0.72);
  transform: rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
  opacity: 0.9;
}

details.assetCard:not([open]) > .planAssumptionsToggle {
  border-bottom: none;
}

details.assetCard[open] > .planAssumptionsToggle {
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

details.assetCard[open] > .planAssumptionsToggle::after {
  transform: rotate(225deg);
}

.planAssumptionsToggle::-webkit-details-marker {
  display: none;
}

.planAssumptionsBody {
  padding: 14px 26px 16px 18px;
}

.planAssumptionGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 40px;
}

.planAssumptionItem {
  padding: 0;
}

.planAssumptionItem .modalLabel {
  margin-bottom: 6px;
  display: inline-block;
}

.planAssumptionItem .goalsRow {
  --thumb-size: 32px;
  --thumb-pos: 50%;
  position: relative;
  width: min(100%, 360px);
  max-width: 360px;
  min-height: 36px;
  display: block;
}

.planAssumptionItem .goalsValue {
  position: absolute;
  left: var(--thumb-left, var(--thumb-pos));
  top: 16px;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  background: #3f8f6f;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(16,24,40,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

.planAssumptionItem .goalsRow.is-ready .goalsValue {
  opacity: 1;
}

.planAssumptionItem .goalsSlider {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
  height: 32px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  display: block;
}

.planAssumptionItem .goalsSlider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #3f8f6f 0%,
      #3f8f6f var(--thumb-pos, 50%),
      rgba(16, 24, 40, 0.12) var(--thumb-pos, 50%),
      rgba(16, 24, 40, 0.12) 100%
    );
}

.planAssumptionItem .goalsSlider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      #3f8f6f 0%,
      #3f8f6f var(--thumb-pos, 50%),
      rgba(16, 24, 40, 0.12) var(--thumb-pos, 50%),
      rgba(16, 24, 40, 0.12) 100%
    );
}

.planAssumptionItem .goalsSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
}

.planAssumptionItem .goalsSlider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
}

.planBaselineMarkerRow .goalsBaselineMarker {
  position: absolute;
  left: var(--baseline-pos, 50%);
  top: 6px;
  transform: translateX(-50%);
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: rgba(71, 84, 103, 0.5);
  z-index: 1;
  pointer-events: none;
}

.planAdvancedToggle {
  margin-top: 8px;
  border: 1px solid var(--ui-border-default, rgba(16,24,40,0.14));
  background: #ecfdf3;
  color: #0f5132;
  border-radius: var(--ui-radius-sm, 10px);
  padding: 8px 12px;
  font-size: var(--ui-font-label, 13px);
  font-weight: 550;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.planAdvancedArrow {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #067647;
  transition: transform 0.2s ease;
}

.planAdvancedToggle.is-open .planAdvancedArrow {
  transform: rotate(180deg);
}

.planAdvancedBody {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 40px;
}

.planAdvancedBody.hidden {
  display: none;
}

.planAssumptionHint {
  margin-top: 14px;
}

.planHintValue {
  font-weight: 700;
  color: #0f172a;
}

.plan-debug {
  margin-top: 0;
  padding: 18px 20px 20px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.plan-assets-debug {
  overflow: visible;
}

.plan-assumptions:hover,
.plan-assumptions:focus-within,
.plan-debug:hover,
.plan-debug:focus-within {
  z-index: 30;
}

.planAskAiBtn {
  appearance: none;
  display: block;
  margin: 20px 0 0;
  border: 1px solid #2f6f5f;
  background: #2f6f5f;
  color: #ffffff;
  border-radius: var(--ui-radius-lg, 14px);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(47, 111, 95, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.planAskAiBtn:hover {
  transform: translateY(-1px);
  border-color: #25584b;
  background: #25584b;
  box-shadow: 0 6px 18px rgba(16,24,40,0.16);
}

.planAskAiBtn:active {
  transform: translateY(0);
}

.planAskAiBtn.isThinking {
  opacity: 0.86;
  cursor: wait;
}

.planAskAiBtn.isOpen {
  background: #25584b;
  border-color: #25584b;
}

.planAiActions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 5;
}

.planCalcLink {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 6;
}

.planCalcLink:hover {
  color: #115e59;
}

.planCalcModal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  background: rgba(16,24,40,0.42);
  display: grid;
  place-items: center;
  padding: 20px;
}

.planCalcModal.hidden {
  display: none;
}

.planOnboardingCompleteModal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(7, 12, 18, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.planOnboardingCompleteModal.hidden {
  display: none;
}

.planOnboardingCompleteCard {
  width: min(420px, calc(100vw - 36px));
  padding: 24px 22px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,247,0.97)),
    radial-gradient(circle at top, rgba(127, 175, 154, 0.18), transparent 54%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 26px 64px rgba(6, 14, 20, 0.24),
    0 0 0 1px rgba(63,143,111,0.08);
  text-align: center;
}

.planOnboardingCompleteKicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(63, 143, 111, 0.12);
  color: #1f7a58;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planOnboardingCompleteTitle {
  margin: 14px 0 10px;
  color: #101828;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.planOnboardingCompleteText {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.5;
}

.planOnboardingCompleteActions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.planOnboardingCompletePrimary,
.planOnboardingCompleteSecondary {
  min-height: 46px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.planOnboardingCompletePrimary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, #315f4a 0%, #284f3d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 14px 28px rgba(30, 68, 51, 0.18);
}

.planOnboardingCompleteSecondary {
  border: 1px solid rgba(16, 24, 40, 0.08);
  color: #344054;
  background: rgba(255,255,255,0.86);
}

@media (hover: hover) {
  .planOnboardingCompletePrimary:hover,
  .planOnboardingCompleteSecondary:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .planOnboardingCompleteModal {
    align-items: end;
    padding: 18px 14px calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .planOnboardingCompleteCard {
    width: min(100%, 420px);
    border-radius: 22px;
    padding: 22px 18px 18px;
  }

  .planOnboardingCompleteTitle {
    font-size: 25px;
  }
}

.planCalcModalCard {
  width: min(720px, 100%);
  max-height: min(84vh, 700px);
  max-height: min(calc(var(--portzo-viewport-height, 100vh) - 32px), 700px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(16,24,40,0.14);
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(16,24,40,0.22), 0 8px 16px rgba(16,24,40,0.12);
  padding: 16px 16px 14px;
}

.planCalcModalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.planCalcModalTitle {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #101828;
}

.planCalcModalClose {
  appearance: none;
  border: 1px solid rgba(16,24,40,0.12);
  background: #f8fafc;
  color: #344054;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.planCalcModalClose:hover {
  background: #f2f4f7;
}

.planCalcModalIntro {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #475467;
}

.planCalcModalList {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #344054;
}

.planCalcModalList li strong {
  color: #101828;
}

.planCalcModalFootnote {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(16,24,40,0.08);
  font-size: 12px;
  line-height: 1.4;
  color: #475467;
}

body.planCalcModalOpen {
  overflow: hidden;
}

.plan-income-debug {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.plan-assets-debug {
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.planIncomeBreakdownTable th,
.planIncomeBreakdownTable td {
  text-align: center;
  white-space: nowrap;
}

.plan-income-debug .planDebugTableWrap {
  padding: 0 18px 16px;
  max-height: 290px;
  overflow-y: auto;
  background: #ffffff;
}

.plan-assets-debug .planDebugTableWrap {
  padding: 8px 18px 16px;
}

.plan-assets-debug .planDebugTable th:nth-child(2),
.plan-assets-debug .planDebugTable td:nth-child(2) {
  text-align: center;
}

.plan-income-debug .planDebugTable thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(237, 246, 241, 0.98), rgba(231, 242, 236, 0.98));
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(16,24,40,0.08);
}

.plan-income-debug .planDebugTable tbody tr:nth-child(odd) {
  background: #ffffff;
}

.plan-income-debug .planDebugTable tbody tr:nth-child(even) {
  background: #f3fbf7;
}

.plan-income-debug .planDebugTable tbody tr.retirementRow td {
  border-top: 3px solid #f59e0b;
}


.plan-hero .assetCard,
.plan-assumptions,
.plan-debug {
  transition: none;
}

.plan-hero .assetCard:hover,
.plan-assumptions:hover,
.plan-debug:hover {
  transform: none;
  border-color: rgba(16,24,40,0.06);
  box-shadow:
    0 1px 0 rgba(16,24,40,0.02),
    0 8px 24px rgba(16,24,40,0.06),
    0 24px 48px rgba(16,24,40,0.04);
}

.planDebugHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.planDebugTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 620;
  color: var(--text);
}

.planDebugChart {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: none;
  border-radius: 10px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.planHeroCard.planChartIsEmpty .planDebugChart {
  opacity: 0.2;
}

.planChartEmptyState {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
}

.planChartEmptyState.hidden {
  display: none;
}

.planChartEmptyState p {
  margin: 0;
  max-width: 360px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.planChartEmptyStateLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16,24,40,0.12);
  background: #ffffff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 600;
}

.planChartEmptyStateLink:hover {
  border-color: rgba(23, 92, 211, 0.35);
  background: #eff8ff;
}

.planChartHoverTip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  background: #2f6f5f;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(16,24,40,0.24);
  white-space: normal;
  min-width: 190px;
  --tip-tx: -50%;
  --tip-ty: calc(-100% - 12px);
  transform: translate(var(--tip-tx), var(--tip-ty));
  transition: opacity 120ms ease, transform 120ms ease;
  opacity: 1;
  will-change: transform, left, top, opacity;
}

.planChartHoverTip::after {
  content: "";
  position: absolute;
  left: calc(50% + var(--tip-arrow-left, 0px));
  bottom: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #2f6f5f;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.planChartHoverTip.hidden {
  opacity: 0;
  transform: translate(var(--tip-tx), calc(var(--tip-ty) + 4px));
}

.planChartHoverTip.is-side-right {
  --tip-tx: 14px;
  --tip-ty: -50%;
}

.planChartHoverTip.is-side-left {
  --tip-tx: calc(-100% - 14px);
  --tip-ty: -50%;
}

.planChartHoverTip.is-side-right::after,
.planChartHoverTip.is-side-left::after {
  top: calc(50% + var(--tip-arrow-top, 0px));
  bottom: auto;
  transform: translateY(-50%) rotate(45deg);
}

.planChartHoverTip.is-side-right::after {
  left: -6px;
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.planChartHoverTip.is-side-left::after {
  left: auto;
  right: -6px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.planChartHoverTip .planTooltipAge {
  color: #d0d5dd;
  font-weight: 500;
}

.planChartHoverTip .planTooltipTotal {
  display: inline-block;
  font-size: 13.5px;
  line-height: 1.3;
}

.planChartHoverTip .planTooltipTotal strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.planChartHoverTip .planTooltipBreakdown {
  color: rgba(255,255,255,0.9);
}

.planChartHoverTip .planTooltipBreakdownList {
  display: block;
}

.planChartHoverTip .planTooltipBreakdownItem {
  display: block;
}

@media (max-width: 760px) {
  .planChartHoverTip {
    background: rgba(47, 111, 95, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 7px 9px;
    font-size: 11px;
    min-width: 172px;
    box-shadow: 0 6px 14px rgba(16,24,40,0.18);
    --tip-ty: calc(-100% - 8px);
  }

  .planChartHoverTip::after {
    bottom: -5px;
    width: 9px;
    height: 9px;
    background: rgba(47, 111, 95, 0.92);
  }

  .planChartHoverTip.hidden {
    transform: translate(var(--tip-tx), calc(var(--tip-ty) + 3px));
  }

  .planChartHoverTip.is-side-right {
    --tip-tx: 10px;
  }

  .planChartHoverTip.is-side-left {
    --tip-tx: calc(-100% - 10px);
  }

  .planChartHoverTip.is-side-right::after {
    left: -5px;
    background: rgba(47, 111, 95, 0.92);
  }

  .planChartHoverTip.is-side-left::after {
    right: -5px;
    background: rgba(47, 111, 95, 0.92);
  }

  .planChartHoverTip .planTooltipAge {
    color: rgba(255,255,255,0.78);
  }

  .planChartHoverTip .planTooltipTotal {
    font-size: 12.5px;
  }

  .planChartHoverTip .planTooltipTotal strong {
    font-size: 13.5px;
  }

  .planChartHoverTip .planTooltipBreakdown {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.25;
    color: rgba(255,255,255,0.82);
  }

  .planChartHoverTip .planTooltipBreakdownItem + .planTooltipBreakdownItem {
    margin-top: 2px;
  }
}

.planDebugTableWrap {
  overflow-x: auto;
}

.planDebugTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.planDebugTable th,
.planDebugTable td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid rgba(16,24,40,0.08);
}

.planDebugTable th {
  font-weight: 620;
  color: #214235;
  background: linear-gradient(180deg, rgba(237, 246, 241, 0.92), rgba(231, 242, 236, 0.92));
}

.planDebugTable th[data-sort-key] {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
}

.planDebugTable th[data-sort-key]::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.75px solid rgba(33, 66, 53, 0.48);
  border-bottom: 1.75px solid rgba(33, 66, 53, 0.48);
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.75;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.planDebugTable th[data-sort-key][aria-sort="ascending"]::after {
  transform: translateY(-25%) rotate(225deg);
  opacity: 1;
  border-color: rgba(23, 92, 211, 0.8);
}

.planDebugTable th[data-sort-key][aria-sort="descending"]::after {
  transform: translateY(-65%) rotate(45deg);
  opacity: 1;
  border-color: rgba(23, 92, 211, 0.8);
}

.planDebugTable td {
  color: #0f172a;
}

.planDebugTable tr.isClickable {
  cursor: pointer;
}

.planDebugTable tr.isClickable td:first-child {
  color: #175cd3;
  text-decoration: underline;
  text-decoration-color: rgba(23, 92, 211, 0.35);
}

.planDebugTotalRow td {
  font-weight: 700;
  color: #0f172a;
  background: rgba(58, 140, 107, 0.14);
  border-top: 2px solid rgba(58, 140, 107, 0.28);
}

.planDebugTotalRow td:first-child {
  color: #344054;
  text-decoration: none;
}

.projectedValueMeta {
  font-size: 12px;
  color: #667085;
  font-style: italic;
  white-space: nowrap;
}

.projectedValueMetaLink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(102, 112, 133, 0.45);
  text-underline-offset: 2px;
}

.projectedValueMetaLink:hover {
  color: #1f7a58;
  text-decoration-color: rgba(31, 122, 88, 0.55);
}

.projectedValueMetaLump {
  color: #7a8598;
  font-style: normal;
  letter-spacing: 0.01em;
}

.planTypePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  background: #f2f4f7;
  color: #344054;
}

.planTypePill.pension {
  background: #ecfdf3;
  border-color: #a6f4c5;
  color: #067647;
}

.planTypePill.property {
  background: #fffaeb;
  border-color: #fedf89;
  color: #b54708;
}

.planTypePill.cash {
  background: #eff8ff;
  border-color: #b2ddff;
  color: #175cd3;
}

@media (max-width: 980px) {
  .plan-hero .portfolioChartWrap {
    left: 0;
  }
  .planAssumptionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
  }
  .planAdvancedBody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
  }
}

@media (max-width: 760px) {
  .plan-hero .portfolioSummary {
    padding: 10px 12px 9px;
    border-radius: 12px;
    margin-bottom: 6px;
    display: grid;
    gap: 2px;
  }

  .plan-hero .portfolioGreeting {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
  }

  .plan-hero .planSampleEstimateNote {
    margin-left: 0;
    padding: 1px 6px;
    font-size: 10px;
  }

  .plan-hero .portfolioLabel {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .plan-hero .portfolioValue {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 2px;
  }

  .plan-hero .portfolioMeta {
    font-size: 10px;
    line-height: 1.2;
    min-height: 0;
    -webkit-line-clamp: 1;
  }

  .plan-hero #planHeroHint,
  .plan-hero #planLumpSumMeta {
    margin-top: 1px;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    margin-top: 6px;
    margin-bottom: 0;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 6px 8px;
    font-size: 10px;
  }

  .plan-hero .portfolioChartWrap .planLegend .planLegendLine {
    width: 14px;
  }

  .plan-hero .planAiActions {
    margin-top: 6px;
    gap: 4px;
    align-items: flex-start;
  }

  .plan-hero .planAskAiBtn {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 13px;
    font-size: 14px;
    align-self: flex-start;
  }

  .plan-hero .planCalcLink {
    font-size: 11px;
  }
}

@media (min-width: 941px) and (max-width: 1100px) {
  .planHeroCard {
    height: auto;
    padding: 22px 0 16px;
  }

  .plan-hero .heroOverlay {
    position: relative;
    z-index: 3;
    padding: 0 20px;
    display: block;
    pointer-events: auto;
  }

  .planHeroSummary {
    max-width: none;
  }

  .plan-hero .portfolioChartWrap {
    position: relative;
    left: 0;
    right: auto;
    top: auto;
    bottom: auto;
    height: auto;
    min-height: 300px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
  }

  .planChartOnboardingTarget {
    inset: 18px 10px 40px 10px;
    border-radius: 18px;
  }

  .plan-hero .planDebugChart {
    position: relative;
    width: 100% !important;
    height: 300px !important;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px;
  }

  .plan-hero .portfolioChartWrap .planAskAiBtn {
    align-self: center;
    width: auto;
    max-width: none;
    margin-top: 12px;
  }

  .plan-hero .portfolioChartWrap .planAiActions {
    width: 100%;
    margin-top: 8px;
  }

  .planAssumptionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planAdvancedBody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) and (min-width: 681px) {
  .planHeroCard {
    height: auto;
    padding: 20px 0 16px;
  }

  .plan-hero .heroOverlay {
    padding: 0 18px;
  }

  .planHeroSummary {
    max-width: none;
  }

  .plan-hero .portfolioChartWrap {
    position: relative;
    left: 0;
    right: auto;
    top: auto;
    bottom: auto;
    height: auto;
    min-height: 280px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
  }

  .plan-hero .planDebugChart {
    position: relative;
    width: 100% !important;
    height: 280px !important;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 10px;
  }

  .plan-hero .portfolioChartWrap .planAskAiBtn {
    align-self: center;
    width: auto;
    max-width: none;
    margin-top: 12px;
  }
}

@media (max-width: 680px) {
  .plan-hero {
    padding-top: 18px;
  }

  .planHeroCard {
    height: auto;
    padding: 18px 0 14px;
  }

  .plan-hero .heroOverlay {
    position: relative;
    z-index: 3;
    padding: 0 16px;
    display: block;
    pointer-events: auto;
  }

  .planHeroSummary {
    max-width: none;
  }

  .plan-hero .portfolioSummary {
    padding: 10px 12px 9px;
    border-radius: 12px;
    margin-bottom: 6px;
    display: grid;
    gap: 2px;
  }

  .plan-hero .portfolioGreeting {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
  }

  .plan-hero .planSampleEstimateNote {
    margin-left: 0;
    padding: 1px 6px;
    font-size: 10px;
  }

  .plan-hero .portfolioLabel {
    font-size: 10px;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .plan-hero .portfolioValue {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 2px;
  }

  .plan-hero .portfolioMeta {
    font-size: 10px;
    line-height: 1.2;
    min-height: 0;
    -webkit-line-clamp: 1;
  }

  .plan-hero #planHeroHint,
  .plan-hero #planLumpSumMeta {
    margin-top: 1px;
  }

  .planHeroIntro {
    gap: 4px;
  }

  .planHeroTitle {
    font-size: 34px;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
  }

  .planHeroText {
    font-size: 12px;
    line-height: 1.45;
    color: #526177;
  }

  .plan-hero-number {
    margin-bottom: 4px;
  }

  .planValueSuffix {
    font-size: 0.5em;
  }

  .planLegend {
    margin-top: 6px;
    gap: 8px 10px;
    font-size: 11px;
  }

  .planLegendItem {
    gap: 5px;
  }

  .planLegendLine {
    width: 18px;
  }

  .plan-hero .portfolioChartWrap {
    position: relative;
    left: 0;
    right: auto;
    top: auto;
    bottom: auto;
    height: auto;
    min-height: 250px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
  }

  .planChartTitle {
    top: 6px;
    font-size: 13px;
    padding: 3px 8px;
  }

  .plan-hero .planDebugChart {
    position: relative;
    width: 100% !important;
    height: 250px !important;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    margin-top: 6px;
    margin-bottom: 0;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 6px 8px;
    font-size: 10px;
  }

  .plan-hero .portfolioChartWrap .planLegend .planLegendLine {
    width: 14px;
  }

  .planAskAiBtn {
    margin-top: 14px;
    width: auto;
    max-width: none;
    align-self: center;
    padding: 13px 18px;
    font-size: 14px;
  }

  .plan-hero .planAiActions {
    margin-top: 6px;
    gap: 4px;
    align-items: flex-start;
  }

  .plan-hero .planAskAiBtn {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 13px;
    font-size: 14px;
    align-self: flex-start;
  }

  .plan-hero .planCalcLink {
    font-size: 11px;
  }

  .planCalcModal {
    padding: 12px;
  }

  .planCalcModalCard {
    max-height: 88vh;
    border-radius: 14px;
  }

  .planAssumptionGrid {
    grid-template-columns: 1fr;
  }
  .planAdvancedBody {
    grid-template-columns: 1fr;
  }

  .planDebugHeader {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Final compact pass for plan hero on phones. Keep at end so it wins cascade. */
@media (max-width: 760px) {
  .planHeroCard {
    padding: 10px 0 10px !important;
  }

  .plan-hero .heroOverlay {
    padding: 0 12px !important;
  }

  .plan-hero .portfolioSummary {
    padding: 10px 11px 9px !important;
    border-radius: 14px !important;
    margin-bottom: 4px !important;
    gap: 2px !important;
  }

  .plan-hero .portfolioGreeting {
    font-size: 24px !important;
    line-height: 1.08 !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
  }

  .plan-hero .portfolioLabel {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin-bottom: 5px !important;
    letter-spacing: 0.02em !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: rgba(71, 84, 103, 0.88) !important;
  }

  .plan-hero .portfolioValue {
    font-size: 32px !important;
    line-height: 1.04 !important;
    margin-bottom: 4px !important;
    letter-spacing: -0.015em !important;
  }

  .plan-hero #planProjectionMeta {
    display: none !important;
  }

  .plan-hero .portfolioMeta {
    font-size: 11px !important;
    line-height: 1.28 !important;
    min-height: 0 !important;
    -webkit-line-clamp: 2 !important;
  }

  .plan-hero .planSampleEstimateNote {
    font-size: 10px !important;
    padding: 1px 6px !important;
  }

  .plan-hero .planMetaPills {
    gap: 6px !important;
    margin-top: 6px !important;
    margin-bottom: 1px !important;
  }

  .plan-hero .planMetaPill {
    padding: 5px 10px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .plan-hero .portfolioChartWrap {
    min-height: 272px !important;
    margin-top: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .plan-hero .planDebugChart {
    height: 272px !important;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    margin-top: 4px !important;
    gap: 4px 7px !important;
    font-size: 9px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .plan-hero .portfolioChartWrap .planLegend .planLegendLine {
    width: 12px !important;
  }

  .plan-hero .planAiActions {
    margin-top: 4px !important;
    gap: 3px !important;
    align-items: center !important;
  }

  .plan-hero .planAskAiBtn {
    margin-top: 6px !important;
    padding: 11px 15px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    align-self: center !important;
  }

  .plan-hero .planCalcLink {
    font-size: 10px !important;
    align-self: center !important;
    text-align: center !important;
  }
}

/* App-shell/mobile-nav compact pass (when viewport media query does not match expected phone width). */
body.mobile-bottom-nav-active .planHeroCard {
  padding: 10px 0 10px !important;
}

body.mobile-bottom-nav-active .plan-hero .heroOverlay {
  padding: 0 12px !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioSummary {
  padding: 10px 11px 9px !important;
  border-radius: 14px !important;
  margin-bottom: 4px !important;
  gap: 2px !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioGreeting {
  font-size: 24px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  margin-bottom: 2px !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioLabel {
  font-size: 12px !important;
  line-height: 1.15 !important;
  margin-bottom: 5px !important;
  letter-spacing: 0.02em !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: rgba(71, 84, 103, 0.88) !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioValue {
  font-size: 32px !important;
  line-height: 1.04 !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.015em !important;
}

body.mobile-bottom-nav-active .plan-hero #planProjectionMeta {
  display: none !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioMeta {
  font-size: 11px !important;
  line-height: 1.28 !important;
  min-height: 0 !important;
  -webkit-line-clamp: 2 !important;
}

body.mobile-bottom-nav-active .plan-hero .planSampleEstimateNote {
  font-size: 10px !important;
  padding: 1px 6px !important;
}

body.mobile-bottom-nav-active .plan-hero .planMetaPills {
  gap: 6px !important;
  margin-top: 6px !important;
  margin-bottom: 1px !important;
}

body.mobile-bottom-nav-active .plan-hero .planMetaPill {
  padding: 5px 10px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioChartWrap {
  min-height: 272px !important;
  margin-top: 2px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-bottom: 8px !important;
}

body.mobile-bottom-nav-active .plan-hero .planDebugChart {
  height: 272px !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioChartWrap .planLegend {
  margin-top: 4px !important;
  gap: 4px 7px !important;
  font-size: 9px !important;
  justify-content: center !important;
  text-align: center !important;
}

body.mobile-bottom-nav-active .plan-hero .portfolioChartWrap .planLegend .planLegendLine {
  width: 12px !important;
}

body.mobile-bottom-nav-active .plan-hero .planAiActions {
  margin-top: 4px !important;
  gap: 3px !important;
  align-items: center !important;
}

body.mobile-bottom-nav-active .plan-hero .planAskAiBtn {
  margin-top: 6px !important;
  padding: 11px 15px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
  align-self: center !important;
}

body.mobile-bottom-nav-active .plan-hero .planCalcLink {
  font-size: 10px !important;
  align-self: center !important;
  text-align: center !important;
}

/* Final mobile tidy-up pass for Plan. Keep this last so it wins previous compact overrides. */
@media (max-width: 760px) {
  .plan-hero .portfolioSummary,
  .plan-hero .planHeroSummary {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  .plan-hero {
    padding-top: 18px;
  }

  .planHeroCard {
    min-height: 0 !important;
    padding: 16px 0 12px !important;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0) 120px),
      radial-gradient(circle at top right, rgba(255,255,255,0.52), rgba(255,255,255,0) 28%),
      linear-gradient(180deg, rgba(252,253,252,0.98), rgba(241,244,242,0.94));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.72),
      0 16px 38px rgba(16,24,40,0.07);
    overflow: hidden;
  }

  .plan-hero .heroOverlay {
    padding: 0 16px !important;
  }

  .planHeroSummary,
  .plan-hero .portfolioSummary {
    max-width: min(76%, 280px);
    padding: 2px 2px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 2px !important;
    gap: 4px !important;
  }

  .plan-hero .portfolioGreeting {
    font-size: 17px !important;
    line-height: 1.08 !important;
    font-weight: 520 !important;
    margin-bottom: 6px !important;
    color: rgba(71, 84, 103, 0.78) !important;
  }

  .plan-hero .portfolioLabel {
    font-size: 10px !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    color: rgba(102, 112, 133, 0.9) !important;
    margin-bottom: 2px !important;
  }

  .planHeroTitle,
  .plan-hero .portfolioValue {
    font-size: 39px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.05em !important;
    font-weight: 680 !important;
    margin-bottom: 4px !important;
  }

  .planValueSuffix {
    font-size: 0.46em;
    font-weight: 560;
    color: #667085;
    margin-left: 5px;
  }

  .plan-hero .portfolioMeta {
    font-size: 10px !important;
    line-height: 1.28 !important;
    color: rgba(102, 112, 133, 0.82) !important;
    min-height: 0 !important;
    -webkit-line-clamp: 2 !important;
  }

  .plan-hero .planMetaPills {
    gap: 6px !important;
    margin-top: 8px !important;
    margin-bottom: 2px !important;
  }

  .plan-hero .planMetaPill {
    padding: 6px 11px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
    background: rgba(236, 241, 238, 0.92) !important;
    color: #5b667a !important;
  }

  .plan-hero .planMetaText {
    font-size: 11px !important;
    line-height: 1.28 !important;
    color: rgba(82, 97, 119, 0.92) !important;
  }

  .planChartTitle {
    display: none !important;
  }

  .plan-hero .portfolioChartWrap {
    min-height: 264px !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
  }

  .planChartOnboardingTarget {
    inset: 16px 8px 38px 8px;
    border-radius: 16px;
  }

  .plan-hero .planDebugChart {
    height: 264px !important;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    margin-top: 8px !important;
    gap: 8px !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 10px !important;
  }

  .planLegendItem {
    padding: 5px 10px;
    background: rgba(242, 244, 247, 0.78);
    color: #667085;
  }

  .plan-hero .planAiActions {
    margin-top: 6px !important;
    gap: 0 !important;
    align-items: center !important;
  }

  .plan-hero .planAiActions.planAiActionsLinkOnly {
    min-height: 0;
    width: 100%;
    margin-top: 6px !important;
    align-items: center !important;
  }

  .plan-hero .planAiActions.planAiActionsLinkOnly #planAskAiBtn {
    display: none !important;
  }

  .plan-hero #planHeroHint.planMetaPillsWithAi .planAskAiBtnMobileProxy[hidden] {
    display: inline-flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .plan-hero .planHeroHintRowMobile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    gap: 10px;
    padding-right: 18px;
    box-sizing: border-box;
    margin-bottom: -4px;
    min-height: 34px;
  }

  .plan-hero #planHeroHint.planMetaPillsWithAi {
    display: block !important;
    flex: 0 0 auto;
    overflow: visible !important;
    white-space: normal !important;
    min-height: auto !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    margin-top: 0 !important;
  }

  .plan-hero #planHeroHint.planMetaPillsWithAi .planMetaText,
  .plan-hero #planHeroHint.planMetaPillsWithAi .planMetaPill {
    display: inline-block !important;
    min-width: 0;
    max-width: none;
    white-space: nowrap !important;
  }

  .plan-hero .planAskAiBtnMobileProxy {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto;
    position: static;
    z-index: 6;
    margin: 0 !important;
    min-height: 34px !important;
    padding: 0 15px !important;
    font-size: 12px !important;
    font-weight: 760 !important;
    line-height: 1 !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(77, 136, 113, 0.42) !important;
    background: linear-gradient(180deg, #3f8f6f 0%, #2f6f5f 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.2),
      0 8px 18px rgba(47, 111, 95, 0.18);
    align-self: center !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap;
    color: #ffffff;
    width: auto !important;
    max-width: none !important;
    align-content: center !important;
    vertical-align: middle !important;
  }

  .plan-hero .planCalcLink {
    font-size: 11px !important;
    color: #1f6d63;
    align-self: center !important;
    text-align: center;
  }

  .plan-hero .portfolioChartWrap .planLegend {
    font-size: 11px !important;
    gap: 6px 10px !important;
    margin-top: 6px !important;
    margin-bottom: -6px !important;
  }

  .plan-hero .portfolioChartWrap .planLegend .planLegendLine {
    width: 14px !important;
  }

  .plan-assumptions,
  .plan-debug {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,248,0.94));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.8),
      0 14px 34px rgba(16,24,40,0.06);
    overflow: visible;
  }

  .planAssumptionsToggle {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 620;
    color: #0f172a;
    border-bottom: 1px solid rgba(16, 24, 40, 0.05) !important;
  }

  .planAssumptionsToggle::after {
    width: 8px;
    height: 8px;
    border-right-width: 1.75px;
    border-bottom-width: 1.75px;
  }

  .planAssumptionsBody {
    padding: 14px 18px 16px;
  }

  .planAssumptionGrid,
  .planAdvancedBody {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .planAssumptionItem .modalLabel {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: #344054;
  }

  .planAssumptionItem .goalsRow {
    --thumb-size: 32px;
    width: 100%;
    max-width: none;
    min-height: 40px;
  }

  .planAssumptionItem .goalsValue {
    width: 34px;
    height: 34px;
    min-width: 34px;
    top: 16px;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(16,24,40,0.16);
  }

  .planAssumptionItem .goalsSlider {
    height: 32px;
  }

  .planAssumptionItem .goalsSlider::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
  }

  .planAssumptionItem .goalsSlider::-moz-range-thumb {
    width: 32px;
    height: 32px;
  }

  .planAdvancedToggle {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(236, 245, 240, 0.92);
    color: #184d39;
    border-color: rgba(63, 143, 111, 0.18);
  }

  .plan-assets-debug .planDebugTableWrap {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(63,143,111,0.58) rgba(16,24,40,0.08);
  }

  .plan-assets-debug .planDebugTableWrap::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  .plan-assets-debug .planDebugTableWrap::-webkit-scrollbar-track {
    background: rgba(16,24,40,0.08);
    border-radius: 999px;
  }

  .plan-assets-debug .planDebugTableWrap::-webkit-scrollbar-thumb {
    background: rgba(63,143,111,0.58);
    border-radius: 999px;
  }

  .plan-assets-debug .planDebugTableWrap::-webkit-scrollbar-thumb:hover {
    background: rgba(63,143,111,0.72);
  }

  .planDebugTable {
    min-width: 760px;
    font-size: 13px;
  }

  .planDebugTable th,
  .planDebugTable td {
    padding: 14px 14px;
    border-bottom: 1px solid rgba(16,24,40,0.05);
  }

  .planDebugTable th {
    color: #344054;
    background: linear-gradient(180deg, rgba(244,247,245,0.96), rgba(239,243,241,0.96));
    font-size: 11px;
    font-weight: 650;
  }

  .planDebugTable th[data-sort-key] {
    padding-right: 28px;
  }

  .planDebugTable th[data-sort-key]::after {
    right: 12px;
    width: 6px;
    height: 6px;
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
    border-right-color: rgba(52, 64, 84, 0.42);
    border-bottom-color: rgba(52, 64, 84, 0.42);
  }

  .planDebugTable td {
    color: #1f2937;
  }

  .planDebugTable tr.isClickable td:first-child {
    color: #2459c3;
    text-decoration-color: rgba(36, 89, 195, 0.28);
  }

  .planDebugTotalRow td {
    background: rgba(99, 130, 113, 0.08);
    border-top: 1px solid rgba(99, 130, 113, 0.16);
  }

  .planTypePill {
    padding: 4px 11px;
    font-size: 11px;
    font-weight: 620;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  }
}

body.mobile-bottom-nav-active .planHeroCard {
  min-height: 0 !important;
  padding: 16px 0 12px !important;
}

@media (max-width: 760px) {
  .plan-hero #planHeroHint,
  .plan-hero .planHeroHintRowMobile {
    min-height: 34px !important;
  }

  .plan-hero .portfolioChartWrap,
  body.mobile-bottom-nav-active .plan-hero .portfolioChartWrap {
    min-height: 326px !important;
  }

  .plan-hero .planDebugChart,
  body.mobile-bottom-nav-active .plan-hero .planDebugChart {
    height: 326px !important;
  }
}

@media (max-width: 940px) and (orientation: landscape) {
  :root {
    --plan-landscape-bottom-guard: 0px;
    --plan-landscape-chart-width: 60vw;
    --plan-landscape-panel-width: 40vw;
  }

  html,
  body,
  body.portzo-app-shell,
  body.mobile-bottom-nav-active {
    background: #ffffff !important;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overscroll-behavior-y: contain;
  }

  #navMount {
    display: none !important;
  }

  #navMount .nav,
  #navMount .mobileBottomNav,
  .mobileBottomNav {
    display: none !important;
  }

  .plan-hero {
    width: var(--plan-landscape-chart-width);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 !important;
    background: #ffffff;
  }

  .portfolioHeroInner {
    width: var(--plan-landscape-chart-width) !important;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
  }

  .planHeroCard,
  body.mobile-bottom-nav-active .planHeroCard {
    position: relative;
    width: var(--plan-landscape-chart-width) !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
    background: #ffffff !important;
  }

  .planHeroCard::before {
    display: block !important;
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 28vw;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.34) 46%, rgba(255,255,255,0) 100%);
  }

  .plan-hero .heroOverlay {
    position: absolute !important;
    inset: 0;
    z-index: 4;
    display: block;
    padding: 0 !important;
    pointer-events: none;
  }

  .planHeroSummary,
  .plan-hero .portfolioSummary {
    position: absolute;
    left: 8px;
    top: 27px;
    width: auto !important;
    max-width: min(230px, 31vw) !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,0.68) !important;
    border: 1px solid rgba(16,24,40,0.08) !important;
    box-shadow: 0 10px 24px rgba(16,24,40,0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: grid !important;
    gap: 2px !important;
    pointer-events: auto;
  }

  .plan-hero #planProjectionMeta,
  .plan-hero #planLumpSumMeta,
  .plan-hero .planSampleEstimateNote {
    display: none !important;
  }

  .plan-hero .portfolioGreeting {
    display: block !important;
    margin: 0 !important;
    font-size: clamp(10px, 1.2vw, 13px) !important;
    line-height: 1.12 !important;
    font-weight: 600 !important;
    color: rgba(71, 84, 103, 0.86) !important;
  }

  .plan-hero .portfolioLabel {
    display: block !important;
    margin: 0 !important;
    font-size: clamp(8px, 1vw, 10px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.02em !important;
    font-weight: 500 !important;
    color: rgba(82, 97, 119, 0.9) !important;
  }

  .plan-hero .portfolioValue {
    font-size: clamp(18px, 2.65vw, 28px) !important;
    line-height: 0.96 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    color: #0b1731;
  }

  .planValueSuffix {
    font-size: 0.38em;
    letter-spacing: 0;
    margin-left: 4px;
  }

  .plan-hero #planHeroHint,
  .plan-hero .planHeroHintRowMobile {
    min-height: 0 !important;
    margin: 0 !important;
  }

  .plan-hero #planHeroHint {
    display: block !important;
  }

  .plan-hero #planHeroHint,
  .plan-hero #planHeroHint .planMetaText,
  .plan-hero #planHeroHint .planMetaPill {
    font-size: clamp(9px, 1.1vw, 11px) !important;
    line-height: 1.2 !important;
    color: rgba(82, 97, 119, 0.94) !important;
    white-space: normal !important;
  }

  .plan-hero .planDebugChart,
  body.mobile-bottom-nav-active .plan-hero .planDebugChart {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }

  .planChartOnboardingTarget {
    inset: 0 !important;
    border-radius: 0 !important;
  }

  .plan-hero .planLegend {
    position: static !important;
    z-index: 5;
    max-width: 100%;
    margin: 3px 0 0 !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    font-size: clamp(7px, 0.9vw, 9px) !important;
    pointer-events: none;
  }

  .planLegendItem {
    padding: 3px 5px !important;
    border: 1px solid rgba(16,24,40,0.07);
    background: rgba(255,255,255,0.74) !important;
    box-shadow: 0 10px 22px rgba(16,24,40,0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .plan-hero .planAiActions,
  .plan-hero .planCalcLink,
  .plan-hero .planAskAiBtn,
  .plan-hero .planAskAiBtnMobileProxy {
    display: none !important;
  }

  .portfolioMain {
    position: fixed;
    top: 0;
    right: 0;
    bottom: var(--plan-landscape-bottom-guard);
    left: var(--plan-landscape-chart-width);
    z-index: 20;
    width: var(--plan-landscape-panel-width) !important;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0 !important;
    padding: 8px 8px 12px !important;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border-left: 1px solid rgba(16,24,40,0.08);
    gap: 10px;
  }

  .portfolioMain > .planAiSection,
  .portfolioMain > .plan-debug {
    display: none !important;
  }

  .plan-assumptions {
    border-radius: 16px;
    border: 1px solid rgba(16,24,40,0.08);
    box-shadow: 0 10px 26px rgba(16,24,40,0.07);
    overflow: visible;
  }

  .planAssumptionsToggle {
    min-height: 38px;
    padding: 8px 12px;
    font-size: clamp(13px, 1.7vw, 16px);
    position: sticky;
    top: -8px;
    z-index: 2;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: default;
  }

  .planAssumptionsToggle .info-wrap {
    position: relative;
    z-index: 40;
  }

  .planAssumptionsToggle .info-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    bottom: auto;
    left: auto;
    right: 0;
    transform: none;
    width: min(240px, calc(var(--plan-landscape-panel-width) - 24px));
    max-width: calc(var(--plan-landscape-panel-width) - 24px);
    z-index: 2200;
  }

  .plan-assumptions > .planAssumptionsToggle::after {
    display: none;
  }

  .planAssumptionsBody {
    padding: 12px 12px 16px;
  }

  .planAdvancedToggle {
    display: none !important;
  }

  .planAdvancedBody.hidden {
    display: grid;
  }

  .planAssumptionGrid,
  .planAdvancedBody {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .planAssumptionItem .modalLabel {
    margin-bottom: 7px;
    font-size: clamp(12px, 1.6vw, 14px);
    line-height: 1.25;
  }

  .planAssumptionItem .goalsRow {
    width: 100%;
    max-width: none;
    min-height: 42px;
  }

  .planAssumptionItem .goalsSlider {
    height: 36px;
  }

  .planAssumptionItem .goalsSlider::-webkit-slider-runnable-track {
    height: 10px;
  }

  .planAssumptionItem .goalsSlider::-moz-range-track {
    height: 10px;
  }

  .planAssumptionItem .goalsValue {
    width: 36px;
    height: 36px;
    min-width: 36px;
    top: 18px;
  }

  .planAssumptionHint {
    margin-top: 10px;
  }

  .portfolioMain .info-wrap:hover .info-tooltip {
    opacity: 0;
    pointer-events: none;
  }

  .portfolioMain .info-wrap.isOpen .info-tooltip {
    opacity: 1;
    pointer-events: auto;
  }

  .portfolioMain .planHintLabel:hover::after,
  .portfolioMain .planHintLabel:focus-visible::after {
    opacity: 0;
    transform: translate(-50%, 4px);
  }

  .portfolioMain .planHintLabel.isLongPressTooltip::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
