/* Apexion One v6.19.48 - global mobile typography/readability layer.
   App-only. Preserves layouts/branding while enforcing readable minimum type sizes. */
@media (max-width: 767px) {
  body.ald-apexion-one-body .ald-shell--app {
    --ald-mobile-page-title: 34px;
    --ald-mobile-section-title: 21px;
    --ald-mobile-body: 16px;
    --ald-mobile-button: 16px;
    --ald-mobile-support: 14px;
    --ald-mobile-label: 13px;
    --ald-mobile-metric: 20px;
  }

  /* Page hierarchy */
  body.ald-apexion-one-body .ald-shell--app h1 {
    font-size: var(--ald-mobile-page-title) !important;
    line-height: 1.12 !important;
  }
  body.ald-apexion-one-body .ald-shell--app h2 {
    font-size: var(--ald-mobile-section-title) !important;
    line-height: 1.22 !important;
  }
  body.ald-apexion-one-body .ald-shell--app h3,
  body.ald-apexion-one-body .ald-shell--app h4 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }

  /* Readable body copy across all app/detail screens */
  body.ald-apexion-one-body .ald-shell--app p,
  body.ald-apexion-one-body .ald-shell--app li,
  body.ald-apexion-one-body .ald-shell--app dd,
  body.ald-apexion-one-body .ald-shell--app dt,
  body.ald-apexion-one-body .ald-shell--app label,
  body.ald-apexion-one-body .ald-shell--app input,
  body.ald-apexion-one-body .ald-shell--app textarea,
  body.ald-apexion-one-body .ald-shell--app select {
    font-size: var(--ald-mobile-body) !important;
    line-height: 1.55 !important;
  }

  /* Supporting/status text must remain readable, never micro-copy. */
  body.ald-apexion-one-body .ald-shell--app small,
  body.ald-apexion-one-body .ald-shell--app .ald-muted,
  body.ald-apexion-one-body .ald-shell--app [class*="__meta"],
  body.ald-apexion-one-body .ald-shell--app [class*="__source"],
  body.ald-apexion-one-body .ald-shell--app [class*="__note"],
  body.ald-apexion-one-body .ald-shell--app [class*="__description"] {
    font-size: var(--ald-mobile-support) !important;
    line-height: 1.48 !important;
  }

  /* Eyebrows / category labels */
  body.ald-apexion-one-body .ald-shell--app .ald-eyebrow,
  body.ald-apexion-one-body .ald-shell--app .ald-section-heading > span,
  body.ald-apexion-one-body .ald-shell--app [class*="eyebrow"],
  body.ald-apexion-one-body .ald-shell--app [class*="__label"],
  body.ald-apexion-one-body .ald-shell--app [class*="section-label"] {
    font-size: var(--ald-mobile-label) !important;
    line-height: 1.3 !important;
  }

  /* Buttons and tap actions */
  body.ald-apexion-one-body .ald-shell--app .ald-button,
  body.ald-apexion-one-body .ald-shell--app button,
  body.ald-apexion-one-body .ald-shell--app [role="button"],
  body.ald-apexion-one-body .ald-shell--app input[type="submit"],
  body.ald-apexion-one-body .ald-shell--app input[type="button"] {
    font-size: var(--ald-mobile-button) !important;
    line-height: 1.25 !important;
  }

  /* Mobile navigation stays compact but readable. */
  body.ald-apexion-one-body .ald-mobile-nav > a > small,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a > small {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav > a,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a {
    min-height: 62px !important;
  }

  /* Important values / metrics */
  body.ald-apexion-one-body .ald-shell--app [class*="metric"] strong,
  body.ald-apexion-one-body .ald-shell--app [class*="score"] strong,
  body.ald-apexion-one-body .ald-shell--app [class*="value"] strong,
  body.ald-apexion-one-body .ald-shell--app [class*="snapshot"] strong,
  body.ald-apexion-one-body .ald-shell--app [class*="stat"] strong {
    font-size: var(--ald-mobile-metric) !important;
    line-height: 1.15 !important;
  }

  /* Known components that previously used 6–12px type. */
  body.ald-apexion-one-body .ald-health-reference .ald-health-ref-snapshot__item strong,
  body.ald-apexion-one-body .ald-health-reference .ald-health-ref-snapshot__item b.is-status,
  body.ald-apexion-one-body .ald-health-reference .ald-health-ref-snapshot__item small,
  body.ald-apexion-one-body .ald-health-reference .ald-health-ref-link,
  body.ald-apexion-one-body .ald-ref-milestones article strong,
  body.ald-apexion-one-body .ald-ref-milestones article small,
  body.ald-apexion-one-body .ald-progress-next-actions-ref strong,
  body.ald-apexion-one-body .ald-progress-next-actions-ref small,
  body.ald-apexion-one-body .ald-progress-next-actions-ref > div > a > b,
  body.ald-apexion-one-body .ald-progress-next-actions-ref__all,
  body.ald-apexion-one-body .ald-first-login__welcome > span,
  body.ald-apexion-one-body .ald-tutorial-screen__heading > span,
  body.ald-apexion-one-body .ald-get-started__heading > span,
  body.ald-apexion-one-body .ald-first-login__welcome > small,
  body.ald-apexion-one-body .ald-tutorial-placeholder small,
  body.ald-apexion-one-body .ald-tutorial-screen__note strong,
  body.ald-apexion-one-body .ald-tutorial-screen__note p,
  body.ald-apexion-one-body .ald-get-started__number,
  body.ald-apexion-one-body .ald-get-started__item strong,
  body.ald-apexion-one-body .ald-get-started__item small,
  body.ald-apexion-one-body .ald-get-started__item em,
  body.ald-apexion-one-body .ald-get-started__item > b,
  body.ald-apexion-one-body .ald-get-started__finish small,
  body.ald-apexion-one-body .ald-library-metrics--compact article span,
  body.ald-apexion-one-body .ald-library-search__filters select,
  body.ald-apexion-one-body .ald-library-results-heading span,
  body.ald-apexion-one-body .ald-library-results-heading > strong,
  body.ald-apexion-one-body .ald-library-evidence-card__meta,
  body.ald-apexion-one-body .ald-library-evidence-card > p,
  body.ald-apexion-one-body .ald-library-evidence-card__facts span,
  body.ald-apexion-one-body .ald-library-evidence-card__source,
  body.ald-apexion-one-body .ald-library-evidence-card__actions a,
  body.ald-apexion-one-body .ald-library-evidence-card__actions button,
  body.ald-apexion-one-body .ald-research-card__source,
  body.ald-apexion-one-body .ald-human-study-card__eyebrow,
  body.ald-apexion-one-body .ald-human-study-card > p,
  body.ald-apexion-one-body .ald-human-study-card__facts,
  body.ald-apexion-one-body .ald-human-studies__filters span,
  body.ald-apexion-one-body .ald-human-studies__filters select,
  body.ald-apexion-one-body .ald-human-studies__count,
  body.ald-apexion-one-body .ald-human-studies__quality p,
  body.ald-apexion-one-body .ald-study-detail > span,
  body.ald-apexion-one-body .ald-study-detail__meta b,
  body.ald-apexion-one-body .ald-study-detail__grid span,
  body.ald-apexion-one-body .ald-study-detail__source > span,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-answer-quick > span,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-answer-quick p,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-quick-summary > span,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-quick-fact strong,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-quick-fact small,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-answer-section > span,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-answer-section > p,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-related-disclosure > summary {
    font-size: var(--ald-mobile-support) !important;
    line-height: 1.45 !important;
  }

  body.ald-apexion-one-body .ald-library-evidence-card h3,
  body.ald-apexion-one-body .ald-human-study-card h2,
  body.ald-apexion-one-body .ald-ask-answer-card .ald-ask-answer-quick h2,
  body.ald-apexion-one-body .ald-settings-row__copy strong,
  body.ald-apexion-one-body .ald-orders-product-card > div strong {
    font-size: 20px !important;
    line-height: 1.28 !important;
  }

  body.ald-apexion-one-body .ald-library-metrics--compact article strong {
    font-size: 22px !important;
  }

  /* Let content grow instead of shrinking text to fit fixed cards. */
  body.ald-apexion-one-body .ald-shell--app article,
  body.ald-apexion-one-body .ald-shell--app [class*="card"],
  body.ald-apexion-one-body .ald-shell--app [class*="row"],
  body.ald-apexion-one-body .ald-shell--app [class*="item"] {
    min-height: 0;
  }
  body.ald-apexion-one-body .ald-shell--app p,
  body.ald-apexion-one-body .ald-shell--app span,
  body.ald-apexion-one-body .ald-shell--app small,
  body.ald-apexion-one-body .ald-shell--app strong,
  body.ald-apexion-one-body .ald-shell--app b,
  body.ald-apexion-one-body .ald-shell--app a,
  body.ald-apexion-one-body .ald-shell--app button {
    overflow-wrap: anywhere;
  }

  /* Give dense grids enough space when larger text wraps. */
  body.ald-apexion-one-body .ald-library-metrics--compact,
  body.ald-apexion-one-body .ald-health-ref-snapshot,
  body.ald-apexion-one-body .ald-ref-milestones__row {
    align-items: stretch;
  }
  body.ald-apexion-one-body .ald-library-metrics--compact article {
    min-height: 92px !important;
    padding: 13px 7px !important;
  }
}

/* Apexion One v6.19.51 - setup status Continue CTA readability.
   The compact setup banner previously retained a legacy 9px CTA rule. Keep the
   approved full-width outlined button, but make the action comfortably readable
   at normal phone distance. */
@media (max-width: 767px) {
  body.ald-apexion-one-body .ald-shell--app .ald-ux-resume.is-setup-status > a,
  body.ald-apexion-one-body .ald-one-app .ald-ux-resume.is-setup-status > a {
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    min-height: 52px !important;
    padding: 14px 18px !important;
  }
}

/* Apexion One v6.19.53 - mobile typography layout follow-up.
   Keep the larger readable type. Adapt compact layouts instead of shrinking copy. */
@media (max-width: 767px) {
  /* Progress: STARTING / CURRENT / TARGET are labels, never break inside words. */
  body.ald-apexion-one-body .ald-ref-goal-progress-card__top {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dl > div {
    min-width: 0 !important;
    padding: 12px 10px !important;
    border-radius: 12px !important;
    background: rgba(246,249,252,.72) !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dt {
    display: block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: .04em !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dd {
    font-size: 20px !important;
    line-height: 1.15 !important;
    margin-top: 6px !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dl small {
    display: block !important;
    margin-top: 5px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-ring {
    justify-self: start !important;
  }

  /* Focus Today: sentence-length content stacks vertically on phones. */
  body.ald-apexion-one-body .ald-apexion-today {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__intro > p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__intro > button {
    align-self: stretch !important;
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 14px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    text-align: center !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions {
    width: 100% !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions > a {
    grid-template-columns: 36px minmax(0,1fr) 18px !important;
    gap: 12px !important;
    padding: 15px 0 !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions > a > b {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions span {
    font-size: 13px !important;
    line-height: 1.25 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions strong {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions small {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  /* Bottom navigation: preserve readable labels without collisions. */
  body.ald-apexion-one-body .ald-mobile-nav,
  body.ald-apexion-one-body .ald-mobile-nav--reference {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav > a,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a {
    min-width: 0 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav > a > small,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a > small {
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    letter-spacing: -.01em !important;
  }
}

@media (max-width: 430px) {
  /* On narrow iPhones, two readable measurement columns beat three cramped ones. */
  body.ald-apexion-one-body .ald-ref-goal-progress-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dl > div:nth-child(3) {
    grid-column: 1 / -1 !important;
  }
}

/* v6.19.55 - real-phone mobile layout QA.
   Preserve readable typography and let the component adapt around it. */
@media (max-width: 767px) {
  body.ald-apexion-one-body .ald-apexion-today {
    display: block !important;
    padding: 20px !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__intro,
  body.ald-apexion-one-body .ald-apexion-today__actions {
    width: 100% !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions {
    margin-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
  }
  body.ald-apexion-one-body .ald-apexion-today__actions > a {
    min-height: 0 !important;
  }

  /* Home progress card: labels must remain whole. */
  body.ald-apexion-one-body .ald-home-progress-card dt,
  body.ald-apexion-one-body .ald-home-progress-card [class*="starting"],
  body.ald-apexion-one-body .ald-home-progress-card [class*="current"],
  body.ald-apexion-one-body .ald-ref-goal-progress-card dt {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  /* Never clip enlarged text in cards. */
  body.ald-apexion-one-body .ald-retention-home section,
  body.ald-apexion-one-body .ald-retention-home article,
  body.ald-apexion-one-body .ald-retention-home [class*="card"] {
    height: auto !important;
  }

  /* Five navigation destinations must retain their own lane. */
  body.ald-apexion-one-body .ald-mobile-nav--reference > a,
  body.ald-apexion-one-body .ald-mobile-nav > a {
    overflow: visible !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav--reference > a > small,
  body.ald-apexion-one-body .ald-mobile-nav > a > small {
    font-size: 13px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 430px) {
  body.ald-apexion-one-body .ald-ref-goal-progress-card dl {
    grid-template-columns: repeat(2, minmax(118px, 1fr)) !important;
  }
  body.ald-apexion-one-body .ald-ref-goal-progress-card dt {
    font-size: 13px !important;
    letter-spacing: .02em !important;
  }
}

/* v6.19.56 - Momentum mobile metric alignment.
   Keep the larger readable type, but align every component label, score and
   progress bar to the same internal grid so values do not float or drift. */
@media (max-width: 767px) {
  body.ald-apexion-one-body .ald-momentum-card__components {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 22px !important;
    align-items: start !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__components > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    align-items: end !important;
    min-width: 0 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__components > div > span {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    min-width: 0 !important;
    min-height: 38px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__components > div > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    justify-self: end !important;
    float: none !important;
    margin: 0 !important;
    min-width: 22px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    text-align: right !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__components > div > i {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 390px) {
  body.ald-apexion-one-body .ald-momentum-card__components {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__components > div > span {
    min-height: 0 !important;
  }
}

/* v6.19.58 - Home mobile layout lock after readable-type rollout.
   Keep the larger typography. Reflow Progress and Momentum instead of
   compressing copy back into narrow columns. */
@media (max-width: 767px) {
  /* Momentum: score/explanation use the full card width, then the summary,
     then the four components. This removes the tall narrow-column effect. */
  body.ald-apexion-one-body .ald-momentum-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    padding: 20px !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__score,
  body.ald-apexion-one-body .ald-momentum-card__summary,
  body.ald-apexion-one-body .ald-momentum-card__components,
  body.ald-apexion-one-body .ald-momentum-card__note {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__score > span {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__score > strong {
    display: block !important;
    margin: 8px 0 8px !important;
    font-size: 38px !important;
    line-height: 1 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__score > strong small {
    font-size: 18px !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__score p {
    max-width: none !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__summary {
    display: grid !important;
    gap: 10px !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__status {
    justify-self: start !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__next {
    margin: 0 !important;
    gap: 6px !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__next > small,
  body.ald-apexion-one-body .ald-momentum-card__next > a {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__components {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 22px !important;
  }
  body.ald-apexion-one-body .ald-momentum-card__note {
    margin: 0 !important;
    padding-top: 16px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  /* Your Progress: graph first, then a clean Starting → Current comparison.
     Labels never wrap and the Target, when present, drops to its own row. */
  body.ald-apexion-one-body .ald-pm-home-progress-main {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  body.ald-apexion-one-body .ald-pm-home-progress-center {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-width: 0 !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__chart {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__facts {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: end !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__facts > .ald-ux-home-progress__fact {
    border-left: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__facts dt {
    display: block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: .02em !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__facts dd {
    margin-top: 6px !important;
    white-space: nowrap !important;
    font-size: 22px !important;
    line-height: 1.15 !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__facts-arrow {
    display: block !important;
    align-self: end !important;
    padding-bottom: 2px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: var(--ald-teal, #0e8c91) !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__fact--target {
    grid-column: 1 / -1 !important;
    margin-top: 4px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(120, 136, 156, .22) !important;
  }
}

@media (max-width: 390px) {
  body.ald-apexion-one-body .ald-momentum-card__components {
    grid-template-columns: 1fr !important;
  }
  body.ald-apexion-one-body .ald-ux-home-progress__facts dd {
    font-size: 20px !important;
  }
}

/* v6.19.59 - Progress sign-off + Health mobile refinement.
   Preserve the readable mobile type scale and reflow components around it. */
@media (max-width: 767px) {
  /* Progress hero: never truncate the contextual Ask Apexion action. */
  body.ald-apexion-one-body .ald-ref-progress-hero__copy button {
    width: 100% !important;
    max-width: none !important;
    min-height: 52px !important;
    justify-content: center !important;
    padding: 12px 16px !important;
  }
  body.ald-apexion-one-body .ald-ref-progress-hero__copy button b {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  /* Same-day measurements remain factual but visually separate from trend. */
  body.ald-apexion-one-body .ald-ref-goal-progress-card.is-same-day-record {
    border-color: rgba(34, 146, 154, .28) !important;
  }
  body.ald-apexion-one-body .ald-ref-same-day-note {
    margin: 12px 0 0 !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    background: rgba(22, 151, 160, .07) !important;
    color: #617086 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  body.ald-apexion-one-body .ald-ref-same-day-note strong {
    color: #17366f !important;
  }

  /* Milestones: swipeable cards, roughly 1.4 cards visible at once. */
  body.ald-apexion-one-body .ald-ref-milestones {
    overflow: hidden !important;
    padding: 18px 0 16px !important;
  }
  body.ald-apexion-one-body .ald-ref-milestones__heading {
    padding: 0 16px !important;
  }
  body.ald-apexion-one-body .ald-ref-milestones__row {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: none !important;
    padding: 14px 16px 4px !important;
    margin-top: 0 !important;
  }
  body.ald-apexion-one-body .ald-ref-milestones__row::-webkit-scrollbar { display: none !important; }
  body.ald-apexion-one-body .ald-ref-milestones__row:before { display: none !important; }
  body.ald-apexion-one-body .ald-ref-milestones__row article {
    flex: 0 0 min(68vw, 230px) !important;
    min-width: min(68vw, 230px) !important;
    min-height: 150px !important;
    align-content: start !important;
    justify-items: start !important;
    text-align: left !important;
    scroll-snap-align: start !important;
    background: #fff !important;
    border: 1px solid #e0e7ed !important;
    border-radius: 15px !important;
    padding: 16px !important;
    gap: 9px !important;
  }
  body.ald-apexion-one-body .ald-ref-milestones__row article i {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 2px !important;
  }
  body.ald-apexion-one-body .ald-ref-milestones__row article strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }
  body.ald-apexion-one-body .ald-ref-milestones__row article small {
    font-size: 14px !important;
    line-height: 1.35 !important;
    text-align: left !important;
  }

  /* Health Snapshot remains a quick dashboard, not a tall list. */
  body.ald-apexion-one-body .ald-health-ref-snapshot {
    padding: 12px !important;
  }
  body.ald-apexion-one-body .ald-health-ref-snapshot__grid {
    gap: 0 !important;
  }
  body.ald-apexion-one-body .ald-health-ref-snapshot__item {
    min-height: 0 !important;
    padding: 11px 10px !important;
    gap: 6px !important;
  }
  body.ald-apexion-one-body .ald-health-ref-snapshot__item strong,
  body.ald-apexion-one-body .ald-health-ref-snapshot__item b,
  body.ald-apexion-one-body .ald-health-ref-snapshot__item b.is-status {
    line-height: 1.25 !important;
  }

  /* Health priorities: readable but deliberately scannable. */
  body.ald-apexion-one-body .ald-health-ref-priority-list {
    gap: 9px !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list article {
    grid-template-columns: 40px minmax(0,1fr) auto !important;
    align-items: center !important;
    padding: 12px !important;
    gap: 10px !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    margin: 4px 0 6px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list article > div > small {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list article > a {
    font-size: 14px !important;
  }

  /* Personalised Guidance: premium summary card with compact action rows. */
  body.ald-apexion-one-body .ald-health-personalised-guidance {
    border-radius: 17px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px rgba(18, 49, 100, .08) !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan {
    padding: 16px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-head {
    margin-bottom: 10px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-head h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-list {
    gap: 8px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-list > a {
    min-height: 0 !important;
    padding: 11px 10px !important;
    gap: 9px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-copy strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-copy small {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    margin-top: 3px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__why {
    margin-top: 10px !important;
    padding: 10px 12px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__why p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__research {
    padding: 13px 16px !important;
    gap: 10px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__research strong {
    font-size: 16px !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__research p {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.ald-apexion-one-body .ald-health-personalised-guidance__research a,
  body.ald-apexion-one-body .ald-health-personalised-guidance__lock {
    font-size: 14px !important;
  }

  /* Five bottom destinations remain distinct at narrow iPhone widths. */
  body.ald-apexion-one-body .ald-one-bottom-nav a {
    min-width: 0 !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  body.ald-apexion-one-body .ald-one-bottom-nav a span,
  body.ald-apexion-one-body .ald-one-bottom-nav a small {
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  body.ald-apexion-one-body .ald-ref-milestones__row article {
    flex-basis: 72vw !important;
    min-width: 72vw !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list article {
    grid-template-columns: 38px minmax(0,1fr) !important;
  }
  body.ald-apexion-one-body .ald-health-ref-priority-list article > a {
    grid-column: 2 !important;
    justify-self: start !important;
  }
}

html.ald-dark-mode body.ald-apexion-one-body .ald-ref-milestones__row article {
  background: #101d2d !important;
  border-color: #2a3b50 !important;
}
html.ald-dark-mode body.ald-apexion-one-body .ald-ref-same-day-note {
  background: rgba(66, 198, 205, .09) !important;
  color: #b9c7d8 !important;
}
html.ald-dark-mode body.ald-apexion-one-body .ald-ref-same-day-note strong {
  color: #eef5fb !important;
}

/* 6.19.60 Health mobile refinement: compact, readable, premium guidance. */
@media (max-width: 767px) {
  body.ald-apexion-one-body .ald-health-ref-snapshot__item { padding: 8px 8px !important; }
  body.ald-apexion-one-body .ald-health-ref-snapshot__item small { line-height: 1.3 !important; margin-top: 1px !important; }

  body.ald-apexion-one-body .ald-health-ref-priority-list article { padding: 10px 11px !important; }
  body.ald-apexion-one-body .ald-health-ref-priority-list p { -webkit-line-clamp: 1 !important; margin: 2px 0 0 !important; }
  body.ald-apexion-one-body .ald-health-ref-priority-list .ald-health-priority-why,
  body.ald-apexion-one-body .ald-health-ref-priority-list article > div > small:last-child { display:none !important; }

  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-head { display:flex !important; align-items:flex-start !important; justify-content:space-between !important; gap:10px !important; }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-head h3 { max-width: 26ch !important; }
  body.ald-apexion-one-body .ald-health-personalised-guidance__plan-list > a { padding: 10px !important; }
  body.ald-apexion-one-body .ald-health-personalised-guidance__why { padding: 9px 11px !important; }
  body.ald-apexion-one-body .ald-health-personalised-guidance__why p { display:none !important; }
  body.ald-apexion-one-body .ald-health-personalised-guidance__why strong::after { content:'  →'; color:#168e96; }
  body.ald-apexion-one-body .ald-health-personalised-guidance__research p { -webkit-line-clamp: 1 !important; }
}

/* ======================================================================
   Apexion One 6.19.63 - Ask Apexion mobile hierarchy refinement
   Keep the approved hero and design language. Reflow dense secondary
   sections for larger mobile typography instead of shrinking text.
   ====================================================================== */
@media (max-width: 700px) {
  /* Connected Record: horizontal status rail instead of six squeezed columns. */
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows {
    overflow: hidden;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__heading {
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 8px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__heading > span {
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__heading > small {
    display: none !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid {
    display: flex !important;
    gap: 9px !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 14px 14px !important;
    scroll-padding-inline: 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > a,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > article {
    border: 1px solid #e6ebf0 !important;
    border-radius: 14px !important;
    flex: 0 0 132px !important;
    min-height: 136px !important;
    padding: 12px 10px 11px !important;
    scroll-snap-align: start;
    justify-content: flex-start;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > a:first-child,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > article:first-child {
    border-left: 1px solid #e6ebf0 !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__icon {
    height: 40px !important;
    width: 40px !important;
    margin-bottom: 8px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__icon svg {
    height: 21px !important;
    width: 21px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid strong,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > a strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid small,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > a small {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-top: 5px !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* Today's Brief: full-width actionable rows. */
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief {
    padding: 14px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__heading {
    gap: 10px;
    margin-bottom: 10px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__heading span {
    font-size: 13px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__heading h2 {
    font-size: 18px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__heading > a {
    font-size: 14px !important;
    white-space: nowrap;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__grid > button,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__grid > a {
    align-items: center !important;
    background: rgba(255,255,255,.82) !important;
    border: 1px solid rgba(23,51,111,.09) !important;
    border-radius: 13px !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 32px minmax(0,1fr) 14px !important;
    min-height: 82px !important;
    padding: 11px 12px !important;
    width: 100% !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__number {
    height: 30px !important;
    width: 30px !important;
    font-size: 13px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__grid strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__grid small {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin-top: 3px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-brief__grid b {
    font-size: 21px !important;
  }

  /* Suggested for You stays a single clear action row, but matches the new readability standard. */
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-today-prompts > button,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-today-prompts > a {
    grid-template-columns: 42px minmax(0,1fr) 14px !important;
    min-height: 76px !important;
    padding: 10px 11px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-today-prompts strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-today-prompts small {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  /* Explore: retain every destination without turning the page into a tall menu. */
  body.ald-apexion-one-body .ald-ask-reference-page #ald-ask-explore {
    padding-bottom: 13px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid {
    display: flex !important;
    gap: 8px !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 5px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid > button,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid > a,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid > button:nth-child(n+5) {
    align-items: center !important;
    display: grid !important;
    flex: 0 0 168px !important;
    gap: 9px !important;
    grid-column: auto !important;
    grid-template-columns: 36px minmax(0,1fr) !important;
    min-height: 74px !important;
    padding: 9px 10px !important;
    scroll-snap-align: start;
    text-align: left !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-icon {
    grid-row: 1 / span 2;
    height: 36px !important;
    margin: 0 !important;
    width: 36px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid strong {
    align-self: end;
    font-size: 14px !important;
    line-height: 1.18 !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid small {
    align-self: start;
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-top: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Platform-wide five-tab containment at narrow iPhone widths. */
  body.ald-apexion-one-body .ald-mobile-nav,
  body.ald-apexion-one-body .ald-mobile-nav--reference {
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    padding-left: max(4px,env(safe-area-inset-left)) !important;
    padding-right: max(4px,env(safe-area-inset-right)) !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav > a,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a {
    min-width: 0 !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav > a > small,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a > small {
    font-size: 13px !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > a,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-knows__grid > article {
    flex-basis: 124px !important;
  }
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid > button,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid > a,
  body.ald-apexion-one-body .ald-ask-reference-page .ald-ask-explore-grid > button:nth-child(n+5) {
    flex-basis: 158px !important;
  }
  body.ald-apexion-one-body .ald-mobile-nav > a > small,
  body.ald-apexion-one-body .ald-mobile-nav--reference > a > small {
    font-size: 12px !important;
  }
}

/* Apexion One v6.19.67 - Progress final state logic.
   Same-day measurements are records, not a starting/current progress trend.
   Recovery metrics offer both manual entry and Connected Health routes. */
@media (max-width: 767px) {
  body.ald-apexion-one-body .ald-ref-goal-progress-card.is-same-day-record dt {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  body.ald-apexion-one-body .ald-ref-recovery-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin-top: 9px !important;
  }
  body.ald-apexion-one-body .ald-ref-recovery-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 8px 9px !important;
    border: 1px solid rgba(24,151,160,.26) !important;
    border-radius: 10px !important;
    background: rgba(24,151,160,.06) !important;
    color: #168d96 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  html.ald-dark-mode body.ald-apexion-one-body .ald-ref-recovery-actions a {
    background: rgba(73,207,215,.08) !important;
    border-color: rgba(96,218,225,.28) !important;
    color: #78d9df !important;
  }
}
