/* Shared account chrome: FxTheme + ProfileSettingsViews grouped surfaces.
 * Account features and their authorization continue to live in main.js. */
@media (max-width: 767.98px) {
  .fxm-ios-route-user-profile .fxm-ios-header { grid-template-columns: minmax(0,1fr) 44px 44px; gap: 4px; }
  .fxm-ios-route-user-profile .fxm-ios-header__leading { display: none; }
  .fxm-ios-route-user-profile .fxm-ios-header__title { text-align: left; }
  .fxm-ios-header__settings { display: grid; place-items: center; width: 44px; height: 44px; color: var(--fxm-ios-ink); }
  body.fxm-ios-account-secondary { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fxm-ios-account-secondary .fxm-tabbar { display: none; }
  body > main.fxm-account-page {
    --account-purple: var(--fxm-ios-brand);
    --account-ink: var(--fxm-ios-ink);
    --account-muted: var(--fxm-ios-secondary);
    --account-line: var(--fxm-ios-border);
    padding: calc(var(--fxm-m-header) + 16px) 0 24px;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--fxm-ios-page);
  }
  .fxm-account-page .fxm-account-wrap { padding-inline: 16px; }
  .fxm-account-page .fxm-account-layout { display: block; }
  .fxm-account-page .fxm-account-sidebar,
  .fxm-account-page .fxm-account-breadcrumb { display: none; }
  .fxm-account-page .fxm-account-heading { display: contents; min-height: 0; margin-bottom: 0; }
  .fxm-account-page .fxm-account-heading > div { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fxm-account-page .fxm-account-content { display: flex; flex-direction: column; gap: 16px; }
  .fxm-account-page .fxm-account-card { padding: 16px; margin: 0; border: 0; border-radius: 20px; background: var(--fxm-ios-card); box-shadow: none; }
  .fxm-account-page .fxm-account-card-heading { margin-bottom: 14px; gap: 12px; }
  .fxm-account-page .fxm-account-card-heading h2 { font: 600 16px/1.45 var(--fxm-ios-font); }
  .fxm-account-page .fxm-account-card-heading h2 > svg { width: 20px; height: 20px; }
  .fxm-account-page :is(.fxm-account-button,.fxm-account-link) { min-height: 44px; font-size: 14px; }
  .fxm-account-page .fxm-account-button { border-radius: 12px; box-shadow: none; white-space: normal; }
  .fxm-account-page .fxm-account-button-primary { background: var(--fxm-ios-brand); }
  .fxm-account-page .fxm-account-button-secondary { background: var(--fxm-ios-field); border-color: transparent; color: var(--fxm-ios-brand); }
  .fxm-account-page :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select) { min-height: 48px; padding: 12px; border-radius: 12px; border: 1px solid transparent; background: var(--fxm-ios-field); color: var(--fxm-ios-ink); font: 400 16px/1.5 var(--fxm-ios-font); }
  .fxm-account-page :is(input,textarea,select):focus { border-color: var(--fxm-ios-brand); }
  .fxm-account-page :is(input,textarea,select):disabled { opacity: .65; }
  .fxm-account-page .fxm-account-empty { padding: 32px 16px; border: 0; background: transparent; }
  .fxm-account-page .fxm-account-empty-icon { width: 64px; height: 64px; margin-inline: auto; background: #6040c00d; color: var(--fxm-ios-secondary); border-radius: 50%; }
  .fxm-account-page .fxm-account-empty p { font: 400 14px/1.6 var(--fxm-ios-font); }
  .fxm-account-page .fxm-account-loading { min-height: 120px; font-size: 14px; color: var(--fxm-ios-secondary); }
  .fxm-account-page [aria-busy=true] { cursor: progress; }
  .fxm-account-page .fxm-account-inline-error { font-size: 14px; border-radius: 12px; overflow-wrap: anywhere; }
  .fxm-account-page :is(.fxm-account-card,.fxm-account-content) { min-width: 0; }
  .fxm-account-page :is(.fxm-account-fields dd,.fxm-account-device,.fxm-account-identity) { overflow-wrap: anywhere; }
  .fxm-account-page :is(button,a):active { transition-duration: .12s; }
  .fxm-account-page .fxm-ios-account-logout { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 16px; background: #fff; color: #d14351; font-size: 16px; }
  @media (prefers-reduced-motion: no-preference) {
    .fxm-account-page [data-fxm-ios-counts-ready] { animation: fxm-ios-account-reveal .2s ease-out both; }
    @keyframes fxm-ios-account-reveal { from { opacity: .6; } to { opacity: 1; } }
  }
}
