/* 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;
  }
}

