@layer x5-regular-type, x5-refined-finance, x5-refined-ui, x5-reference-dialog, x5-dialog-reference, x5-ledger-typography, x5-site-polish;
@import url("/supplement/finance-refinement.css");
@import url("/ui-refinement.css?v=20261120-order-dots1");
@import url("/ui-rollout.css");

/*
 * The user-selected bottom-navigation weight is the standard for all app text.
 * Important declarations in this named layer outrank legacy unlayered
 * !important rules, including selected states and late-loaded dialog styles.
 * Scope React rules to app-owned surfaces, leaving the mobile runtime alone.
 * Standalone supplement documents opt in with data-x5-supplement="true".
 */
@layer x5-regular-type {
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  ),
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  ) *,
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  )::before,
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  )::after,
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  ) *::before,
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  ) *::after,
  :where(
    .lavender-app,
    .auth-page,
    .centered-dialog,
    .bottom-nav,
    .page-directory,
    .app-toast,
    .brand-splash,
    html[data-x5-supplement="true"] body
  ) ::placeholder {
    font-weight: 400 !important;
    font-synthesis-weight: none !important;
  }
}

/* Normal tracking is a shared text contract. Approved authentication and its
   intentionally spaced CAPTCHA stay on their existing type scale. */
@layer x5-regular-type {
  :where(.lavender-app:not(:has(.auth-page)),.centered-dialog,.bottom-nav,
    html[data-x5-supplement]:not(:has(main[data-phase3-page="auth"])) body),
  :where(.lavender-app:not(:has(.auth-page)),.centered-dialog,.bottom-nav,
    html[data-x5-supplement]:not(:has(main[data-phase3-page="auth"])) body)
    :not([class*="captcha"],[class*="captcha"] *,.phone b) {
    letter-spacing: normal !important;
  }
  :root[data-lavender-theme="dark"][data-x5-palette] main[data-phase3-page="account"] .phone b {
    letter-spacing: 0 !important;
  }
  :where(.lavender-app,html[data-x5-supplement])
    :is(.balance,.amount,.cash-summary strong,.a-business-value,.bill-row,.r-cell,.f-amount,.f-totals,.data-table) {
    font-variant-numeric: tabular-nums !important;
  }
}
