/* My Plan reference layout: Black appearance on phones only. */
@layer mobile-black-plan {
 @media (max-width: 760px) {
  html[data-appearance="black"] #profile-section .profile-page { padding: 12px 10px 24px !important; gap: 12px !important; background: transparent !important; }
  html[data-appearance="black"] #profile-section .my-plan-main,
  html[data-appearance="black"] #profile-section .my-plan-middle-grid,
  html[data-appearance="black"] #profile-section .my-plan-projection-scenarios { min-width: 0 !important; gap: 12px !important; background: transparent !important; }
  html[data-appearance="black"] #profile-section .my-plan-overview,
  html[data-appearance="black"] #profile-section .my-plan-projections:not([hidden]),
  html[data-appearance="black"] #profile-section .my-plan-projection-scenario:not([hidden]) { gap: 12px !important; }
  /* Keep the three tabs directly on the Black page, without a Midnight wrapper. */
  html[data-appearance="black"] #profile-section .my-plan-sidebar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  html[data-appearance="black"] #profile-section .my-plan-nav { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 6px !important; padding: 0 !important; margin: 0 4px 12px !important; background: transparent !important; border: 0 !important; }
  html[data-appearance="black"] #profile-section .my-plan-nav-item { min-width: 0 !important; min-height: 48px !important; padding: 8px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; font-size: 12px !important; line-height: 1.25 !important; font-weight: 500 !important; color: #e2e6ec !important; background: linear-gradient(120deg,#101519,#0c1013) !important; border: 1px solid #253039 !important; border-radius: 7px !important; box-shadow: none !important; }
  html[data-appearance="black"] #profile-section .my-plan-nav-item.is-active { color: #00d2e5 !important; background: linear-gradient(120deg,#00333a,#00262c) !important; border-color: #00c8dc !important; font-weight: 700 !important; }
  html[data-appearance="black"] #profile-section .my-plan-nav-item::after { display: none !important; }
  html[data-appearance="black"] #profile-section .my-plan-nav-icon,
  html[data-appearance="black"] #profile-section .my-plan-nav-icon svg { width: 20px !important; height: 20px !important; flex-shrink: 0 !important; color: inherit !important; }
  html[data-appearance="black"] #profile-section .my-plan-panel,
  html[data-appearance="black"] #profile-section .my-plan-kpis,
  html[data-appearance="black"] #profile-section .my-plan-projection-tabs { background: linear-gradient(120deg,#101519,#0c1013) !important; border: 1px solid #253039 !important; border-radius: 10px !important; box-shadow: none !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-panel { padding: 14px !important; min-width: 0 !important; }
  html[data-appearance="black"] #profile-section .my-plan-panel h3 { font-size: 17px !important; line-height: 1.25 !important; text-align: left !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-kpis { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; padding: 4px !important; gap: 5px !important; }
  html[data-appearance="black"] #profile-section .my-plan-kpi-card { display: flex !important; align-items: center !important; min-height: 70px !important; padding: 12px !important; border: 1px solid #182127 !important; border-radius: 9px !important; background: linear-gradient(120deg,#101519,#0c1013) !important; }
  html[data-appearance="black"] #profile-section .my-plan-kpi-icon,
  html[data-appearance="black"] #profile-section .my-plan-kpi-card::after { display: none !important; }
  html[data-appearance="black"] #profile-section .my-plan-kpi-label { font-size: 12px !important; line-height: 1.35 !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .my-plan-kpi-value { font-size: clamp(21px,6.1vw,27px) !important; line-height: 1.25 !important; margin-top: 5px !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section #profile-current-balance { color: #00cddd !important; }
  html[data-appearance="black"] #profile-section #profile-annual-dividends { color: #16dfaa !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-progress h3 { font-size: 0 !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-progress h3::after { font-size: 17px !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-inline-link::after { font-size: 12px !important; color: #00d2e5 !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-value { font-size: 43px !important; line-height: 1.1 !important; margin-top: 20px !important; color: #00cddd !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-sub { font-size: 13px !important; line-height: 1.4 !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-track { height: 13px !important; margin: 16px 0 12px !important; background: #2d343b !important; border-radius: 4px !important; }
  html[data-appearance="black"] #profile-section #my-plan-fi-fill { background: #10bdd0 !important; border-radius: 4px !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-metrics > div + div { border-left: 1px solid #2b333a !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-metrics strong { font-size: 21px !important; line-height: 1.3 !important; color: #00cddd !important; }
  html[data-appearance="black"] #profile-section .my-plan-fi-metrics > div::after { font-size: 12px !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .my-plan-note { font-size: 11px !important; line-height: 1.4 !important; margin-top: 14px !important; color: #b8c1cd !important; }
  html[data-appearance="black"] #profile-section .my-plan-retirement-row { min-height: 37px !important; font-size: 12px !important; border-color: #2b333a !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .my-plan-retirement-row strong { font-size: 16px !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-row-icon { color: #e2e6ec !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-tabs { height: 40px !important; min-height: 40px !important; padding: 0 12px !important; grid-template-columns: minmax(0,1fr) repeat(3,25px) !important; border-radius: 7px !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-tabs::before { font-size: 14px !important; color: #00d2e5 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-assumptions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 6px !important; padding: 12px !important; border-radius: 7px !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-assumptions::before { font-size: 16px !important; line-height: 1.3 !important; padding-bottom: 2px !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-assumption { justify-content: flex-start !important; text-align: left !important; min-height: 54px !important; padding: 9px 12px !important; border: 1px solid #253039 !important; border-radius: 8px !important; background: linear-gradient(120deg,#101519,#0c1013) !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-assumption span { font-size: 11px !important; line-height: 1.4 !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-assumption strong { font-size: 19px !important; line-height: 1.3 !important; color: #00cddd !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-edit { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; padding: 10px 0 0 !important; font-size: 12px !important; color: #00d2e5 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-edit::after { content: "›" !important; margin-left: auto !important; color: #f5f6f7 !important; font-size: 26px !important; line-height: 1 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-results { background: linear-gradient(120deg,#101519,#0c1013) !important; border: 1px solid #253039 !important; border-radius: 7px !important; padding: 12px !important; gap: 0 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-results::before { font-size: 16px !important; line-height: 1.4 !important; padding-bottom: 6px !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-result { background: transparent !important; border: 0 !important; border-top: 1px solid #253039 !important; border-radius: 0 !important; padding: 10px 4px !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-result > div > span { font-size: 11px !important; line-height: 1.4 !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-result strong { font-size: 18px !important; line-height: 1.3 !important; color: #00cddd !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-result:nth-child(2) strong { color: #16dfaa !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-result:nth-child(3) strong { color: #ffcf00 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-chart-panel { border-radius: 8px !important; padding: 12px !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-chart-head h2::before { font-size: 16px !important; line-height: 1.4 !important; color: #f5f6f7 !important; }
  html[data-appearance="black"] #profile-section .my-plan-projection-chart-head h2::after { font-size: 12px !important; line-height: 1.5 !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .profile-chart-legend { margin: 10px 0 14px !important; gap: 4px !important; }
  html[data-appearance="black"] #profile-section .profile-legend-item,
  html[data-appearance="black"] #profile-section .profile-legend-label { font-size: 10px !important; line-height: 1.35 !important; color: #c9d0da !important; }
  html[data-appearance="black"] #profile-section .profile-chart-graph { height: 170px !important; background: transparent !important; border-color: #293239 !important; border-radius: 0 !important; }
  html[data-appearance="black"] #profile-section .profile-chart-axis { font-size: 10px !important; color: #c9d0da !important; }
 }
}
