/* AuthenticationView / RegistrationView: phone presentation only. Desktop
 * utilities, input IDs and the existing auth controllers remain authoritative. */
@media (max-width: 767.98px) {
  .fxm-auth-shell[data-fxm-ios-auth] {
    --fxm-auth-accent: #6040c0;
    --fxm-auth-ink: #1c1c21;
    --fxm-auth-secondary: #85858b;
    --fxm-auth-fill: #f3f2f8;
    --fxm-auth-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100svh;
    background: #fff;
    color: var(--fxm-auth-ink);
    font-family: var(--fxm-auth-font);
  }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-main {
    min-height: 100svh;
    padding: 0 !important;
    overflow-x: clip;
  }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-canvas {
    flex: 1 0 auto;
    align-items: flex-start;
    width: 100%;
    padding: 0;
  }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-panel {
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .fxm-auth-shell[data-fxm-ios-auth] [data-testid="auth-page-background-base"] { background: #fff; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-testid="auth-page-background-effect"] {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: none;
  }
  .fxm-auth-shell[data-fxm-ios-auth] [data-testid="auth-page-background-effect"]::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgb(96 64 192 / 12%);
    filter: blur(72px);
  }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-testid="register-auth-background-effect"], .fxm-auth-main > .pointer-events-none) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: visible;
    background: transparent;
  }

  /* Header is independent of scroll content; controls retain 44px touch areas. */
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-back {
    display: flex !important;
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 12px;
    z-index: 30;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fxm-auth-ink);
    box-shadow: none;
  }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-back::before { content: none; }
  .fxm-auth-shell[data-fxm-ios-auth="login"] .fxm-auth-back { top: calc(12px + env(safe-area-inset-top, 0px)); }
  .fxm-auth-shell[data-fxm-ios-auth="login"] .fxm-auth-back > svg { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth="login"] .fxm-ios-auth-dismiss-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f2f5;
    color: #85858b;
  }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-open] {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 18px;
    z-index: 30;
    display: inline-flex !important;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    max-width: calc(100% - 92px);
    min-height: 44px;
    padding: 8px 11px;
    border: 0;
    border-radius: 999px;
    background: rgb(118 118 128 / 9%);
    color: var(--fxm-auth-secondary);
    font: 500 12px/1.35 var(--fxm-auth-font);
    overflow-wrap: anywhere;
  }
  .fxm-auth-shell[data-fxm-ios-auth="login"] [data-fxm-ios-auth-language-open] { top: calc(12px + env(safe-area-inset-top, 0px)); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-open] svg { flex: 0 0 15px; width: 15px; height: 15px; }

  /* Original desktop brand panels collapse to the native-sized logo. */
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-brand] {
    flex: none;
    overflow: visible;
    padding: calc(56px + env(safe-area-inset-top, 0px)) 24px 0 !important;
    border: 0;
    background: transparent;
  }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-brand] > .pointer-events-none,
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-brand] > .relative > :is(span, h2, p, .flex) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-brand] > .relative > div:has(picture) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-brand] picture { position: relative; display: block; width: 148px; max-width: 100%; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-brand] img { display: block; width: 148px; height: 38px; max-width: 100%; object-fit: contain; }
  .fxm-auth-shell[data-fxm-ios-auth="register"] [data-fxm-ios-auth-brand] > .relative > div:has(picture)::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -12px;
    width: 112px;
    height: 72px;
    background: radial-gradient(ellipse, rgb(96 64 192 / 16%), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
  }
  .fxm-auth-shell[data-fxm-ios-auth="register"] [data-fxm-ios-auth-brand] picture { animation: fxm-auth-logo-float 2.25s ease-in-out infinite alternate; }
  .fxm-auth-shell[data-fxm-ios-auth="login"] [data-fxm-ios-auth-brand] { padding-top: calc(58px + env(safe-area-inset-top, 0px)) !important; }
  .fxm-auth-shell[data-fxm-ios-auth="login"] [data-fxm-ios-auth-brand] > .relative > div:has(picture) { height: 86px; justify-content: center; }
  .fxm-auth-shell[data-fxm-ios-auth="login"] [data-fxm-ios-auth-brand] :is(picture, img) { width: min(290px, 100%); height: 86px; }
  .fxm-auth-shell[data-fxm-ios-auth="login"] [data-fxm-auth-home] { width: 100%; justify-content: center; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-form-panel] {
    min-width: 0;
    padding: 16px 24px calc(36px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .fxm-auth-shell[data-fxm-ios-auth="login"] [data-fxm-ios-auth-form-panel] { padding-top: 24px !important; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-intro] { display: block; margin: 0; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-intro] > :is(a, button) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-intro] h1 {
    margin: 0;
    color: var(--fxm-auth-ink);
    font: 700 28px/1.25 var(--fxm-auth-font);
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-intro] p {
    margin: 7px 0 0;
    color: var(--fxm-auth-secondary);
    font: 400 14px/1.5 var(--fxm-auth-font);
    overflow-wrap: anywhere;
  }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-web-auth-title { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-ios-auth-title { display: inline !important; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-desktop-title] { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-mobile-title] { display: block !important; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-ios-auth-subtitle { display: block !important; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-m-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 24px 0 0; padding: 4px; border: 0; border-radius: 14px; background: var(--fxm-auth-fill); }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-m-tabs > button { min-width: 0; min-height: 44px; padding: 10px 8px; border: 0; border-radius: 11px; background: transparent; color: var(--fxm-auth-secondary); font: 400 16px/1.4 var(--fxm-auth-font); white-space: normal; overflow-wrap: anywhere; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-m-tabs > button[aria-selected="true"] { background: #fff; color: var(--fxm-auth-accent); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / 5%); }

  /* Labels and controls follow the fixed native type scale; browser zoom remains usable. */
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-form], [data-fxm-register-form], [data-fxm-forgot-form]) { display: flex; flex-direction: column; gap: 15px; margin-top: 24px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-login-form] { margin-top: 15px; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-form], [data-fxm-register-form], [data-fxm-forgot-form]) > * { margin-top: 0; margin-bottom: 0; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-testid="register-secondary-fields"]:not(:has(*)) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-auth-field, .fxm-phone-field) { display: grid; min-width: 0; gap: 7px; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-auth-field__label, .fxm-phone-field__label-row > label) { color: var(--fxm-auth-ink); font: 600 16px/1.4 var(--fxm-auth-font); text-transform: none; letter-spacing: 0; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__control {
    display: flex;
    gap: 0;
    min-width: 0;
    min-height: 54px;
    height: 54px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--fxm-auth-fill);
    box-shadow: none;
    transform: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__icon { flex: 0 0 20px; width: 20px; height: 20px; margin: 0 11px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #8e8e93; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__icon:has(.fxm-ios-auth-field-icon) > svg { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-ios-auth-field-icon { display: inline-flex !important; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-auth-field__input, .fxm-phone-field__input) { width: 0; min-width: 0; height: 52px; padding: 0; border: 0; border-radius: 0; outline: none; background: transparent; color: var(--fxm-auth-ink); font: 400 16px/1.4 var(--fxm-auth-font); box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-auth-field__input, .fxm-phone-field__input)::placeholder { color: #b1b1b7; opacity: 1; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__trailing { margin-left: 4px; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__trailing:empty,
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__trailing[hidden] { display: none !important; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-action$="toggle-password"] { display: flex; width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin-right: -8px; padding: 0; color: #85858b; background: transparent; border: 0; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-action$="toggle-password"] svg { width: 20px; height: 20px; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-auth-field__control:focus-within,
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__input-shell:focus-within { border-color: var(--fxm-auth-accent); background: #fff; box-shadow: 0 0 0 .5px var(--fxm-auth-accent), 0 0 8px rgb(96 64 192 / 14%); transform: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-invalid] :is(.fxm-auth-field__control, .fxm-phone-field__input-shell) { border-color: #e15353; box-shadow: 0 0 0 .5px #e15353; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-auth-field__desc, .fxm-auth-field__error, [data-fxm-ios-auth-error], [data-fxm-phone-unavailable]) { margin: 0; font: 400 12px/1.5 var(--fxm-auth-font); color: var(--fxm-auth-secondary); overflow-wrap: anywhere; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-auth-field__error, [data-fxm-ios-auth-error]) { color: #d94848; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-auth-field="login-code"] .fxm-auth-field__desc { display: block; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-auth-field="register-email"] .fxm-auth-field__desc { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-error]:empty { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-code-row] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; min-width: 0; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-code-row] > [data-action$="send-code"] { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; height: auto; min-height: 54px; margin: 0; padding: 10px; border: 1px solid rgb(96 64 192 / 32%); border-radius: 14px; background: #fff; color: var(--fxm-auth-accent); font: 600 16px/1.35 var(--fxm-auth-font); white-space: normal; overflow-wrap: anywhere; transform: none; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-code-row] > [data-action$="send-code"]:disabled { border-color: transparent; background: #f8f7fa; color: #b6b6bc; opacity: 1; }

  /* Native country selector and number are separate controls; the existing
   * real dictionary, search and option handlers remain in place. */
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__frame { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__frame:focus-within { border: 0; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__control { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: stretch; gap: 10px; height: auto; min-height: 54px; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-phone-field__trigger, .fxm-phone-field__input-shell) { width: 100%; min-width: 0; min-height: 54px; height: 54px; padding: 0 14px; border: 1px solid transparent; border-radius: 14px; background: var(--fxm-auth-fill); box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__trigger { justify-content: center; gap: 6px; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__dial { color: var(--fxm-auth-ink); font: 600 16px/1.4 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__flag { width: 20px; height: 20px; font-size: 18px; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__chevron { color: #8e8e93; width: 12px; height: 12px; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(.fxm-phone-field__separator, .fxm-phone-field__name, .fxm-phone-field__input-icon) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__popover { z-index: 60; padding-top: 8px; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__panel { height: min(360px, 55svh); min-height: 0; border: 1px solid #e9e7ef; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgb(28 28 33 / 12%); }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__search-row { padding: 12px; background: #fff; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__search-shell { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--fxm-auth-fill); }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__search { min-width: 0; height: 44px; font: 400 16px/1.4 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__option { min-height: 48px; padding: 10px 14px; gap: 10px; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__option-name { font: 400 16px/1.4 var(--fxm-auth-font); white-space: normal; overflow-wrap: anywhere; }
  .fxm-auth-shell[data-fxm-ios-auth] .fxm-phone-field__option-dial { font: 400 14px/1.4 var(--fxm-auth-font); }

  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-options] { justify-content: flex-end; min-height: 44px; margin: 0; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-options] > label { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-options] > a { min-height: 44px; padding: 0; color: var(--fxm-auth-accent); font: 600 14px/1.4 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-agreement] { display: grid; grid-template-columns: 20px minmax(0, 1fr); min-height: 44px; align-items: center; gap: 7px 12px; margin: 0; padding: 0; color: var(--fxm-auth-secondary); font: 400 14px/1.6 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-agreement] > [data-fxm-ios-auth-error] { grid-column: 2; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-agreement] input { width: 20px; height: 20px; margin: 0; accent-color: var(--fxm-auth-accent); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-agreement] a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fxm-auth-accent); font-weight: 600; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-submit], [data-fxm-register-submit], [data-fxm-forgot-submit]) { min-height: 54px; height: auto; padding: 12px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #7052cf 0%, #6040c0 65%, #5334ad 100%); color: #fff; font: 600 18px/1.4 var(--fxm-auth-font); letter-spacing: 0; box-shadow: 0 8px 14px rgb(96 64 192 / 35%); transform: none; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-submit], [data-fxm-register-submit], [data-fxm-forgot-submit]):disabled { opacity: .55; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-submit-label], [data-fxm-register-submit-label], .fxm-web-auth-copy) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-ios-auth-submit-label], .fxm-ios-auth-copy) { display: inline !important; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-busy] > button[type="submit"] { gap: 8px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-busy] > button[type="submit"]::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / 35%); border-top-color: #fff; border-radius: 50%; animation: fxm-auth-busy-spin 750ms linear infinite; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-status], [data-fxm-register-status], [data-fxm-forgot-status]) { min-height: 0; font: 400 14px/1.5 var(--fxm-auth-font); overflow-wrap: anywhere; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-login-status], [data-fxm-register-status], [data-fxm-forgot-status]):empty { display: none; }

  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-oauth-divider] { display: flex; gap: 12px; margin: 24px 0; color: var(--fxm-auth-secondary); font: 400 12px/1.4 var(--fxm-auth-font); letter-spacing: 0; text-transform: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-oauth-divider] > .h-px { height: .5px; background: rgb(60 60 67 / 12%); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-oauth] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-oauth] > [data-fxm-apple-signin-host] { order: -1; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-google-signin-fallback], [data-fxm-apple-signin]) { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; height: auto; gap: 8px; padding: 12px; border: 1px solid rgb(60 60 67 / 12%); border-radius: 14px; background: #fff; color: var(--fxm-auth-ink); font: 600 16px/1.4 var(--fxm-auth-font); box-shadow: none; transform: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-google-signin-fallback] > svg { width: 22px; height: 22px; flex: 0 0 22px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-apple-signin] svg { width: 20px; height: 20px; }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-ios-auth-return], [data-fxm-ios-auth-register-prompt]) { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 24px 0 0; color: var(--fxm-auth-secondary); font: 400 14px/1.5 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] :is([data-fxm-ios-auth-return], [data-fxm-ios-auth-register-prompt]) > a { display: inline-flex; align-items: center; width: auto; height: auto; min-height: 44px; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--fxm-auth-accent); font: 600 16px/1.4 var(--fxm-auth-font); letter-spacing: 0; box-shadow: none; transform: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-return] > a svg { display: none; }

  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; color: var(--fxm-auth-secondary); font: 400 12px/1.4 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength][hidden] { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength] > span { grid-column: 1 / 3; grid-row: 2; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength] > strong { grid-row: 2; justify-self: end; color: var(--fxm-auth-strength-color, #d94848); font-weight: 600; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength] > i { grid-row: 1; height: 4px; border-radius: 2px; background: #e9e8ed; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength][data-level="1"] { --fxm-auth-strength-color: #d94848; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength][data-level="2"] { --fxm-auth-strength-color: #c48627; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength][data-level="3"] { --fxm-auth-strength-color: #2c9f72; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength] > i:nth-of-type(1),
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength]:is([data-level="2"], [data-level="3"]) > i:nth-of-type(2),
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-strength][data-level="3"] > i:nth-of-type(3) { background: var(--fxm-auth-strength-color); }

  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] { position: fixed; inset: auto 0 0; width: 100%; max-width: 520px; max-height: min(640px, calc(100svh - 32px)); margin: auto auto 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 24px 24px 0 0; background: #f8f8fb; color: var(--fxm-auth-ink); box-shadow: 0 -12px 48px rgb(0 0 0 / 12%); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog]::backdrop { background: rgb(0 0 0 / 28%); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog][open] { animation: fxm-auth-language-in 220ms cubic-bezier(.2,.75,.25,1) both; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 16px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] > header h2 { margin: 0; color: var(--fxm-auth-ink); font: 600 18px/1.4 var(--fxm-auth-font); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] > header h2:focus { outline: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] > header button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: radial-gradient(circle, #ebebf0 16px, transparent 16px); color: var(--fxm-auth-secondary); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] .fxm-auth-lang-dock { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; overflow: hidden; border-radius: 14px; background: #fff; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] :is(.fxm-auth-lang-caption, .fxm-auth-lang-code, .fxm-auth-lang-flag) { display: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] .fxm-auth-lang-tag { display: flex; justify-content: space-between; min-height: 56px; margin: 0; padding: 12px 16px; border: 0; border-radius: 0; background: #fff; color: var(--fxm-auth-ink); font: 400 16px/1.4 var(--fxm-auth-font); box-shadow: none; transform: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] .fxm-auth-lang-tag + .fxm-auth-lang-tag { border-top: .5px solid #e9e8ee; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] .fxm-auth-lang-tag[aria-current="true"] { color: var(--fxm-auth-accent); font-weight: 600; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-language-dialog] .fxm-auth-lang-tag[aria-current="true"]::after { content: ""; width: 8px; height: 13px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  /* Country selection reuses the same real dictionary/search nodes in a
   * full-height phone sheet; its controller returns them to the PC popover. */
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); overflow: hidden; border: 0; border-radius: 0; background: #f3f2f8; color: var(--fxm-auth-ink); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog][open] { display: flex; flex-direction: column; animation: fxm-auth-language-in 220ms cubic-bezier(.2,.75,.25,1) both; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog]::backdrop { background: rgb(0 0 0 / 28%); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] > header { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; flex: 0 0 auto; min-height: 56px; margin-bottom: 12px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] > header h2 { grid-column: 2; margin: 0; text-align: center; color: var(--fxm-auth-ink); font: 600 18px/1.4 var(--fxm-auth-font); overflow-wrap: anywhere; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] > header h2:focus { outline: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] > header button { grid-column: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 75%); color: var(--fxm-auth-ink); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] [data-fxm-phone-popover] { position: static !important; inset: auto !important; z-index: auto; flex: 1 1 auto; width: 100% !important; min-height: 0; height: auto; max-height: none; margin: 0; padding: 0; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] [data-fxm-phone-popover]:not([hidden]) { display: flex; flex-direction: column; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__panel { display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; min-height: 0; height: auto; max-height: none; overflow: hidden; border: 0; border-radius: 20px; background: #fff; box-shadow: none; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__search-row { flex: 0 0 auto; padding: 12px; border-bottom: .5px solid #e9e8ee; background: #fff; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__search-shell { min-height: 44px; border-radius: 12px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__search { min-height: 44px; font-size: 16px; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__list { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 16px; overflow-y: auto; overscroll-behavior: contain; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__list > li + li { border-top: .5px solid #e9e8ee; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__option { min-height: 64px; padding: 12px 0; gap: 12px; background: transparent; }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__option[aria-selected="true"] { color: var(--fxm-auth-accent); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__option-name { font-weight: 400; color: var(--fxm-auth-ink); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__option-dial { font-size: 12px; color: var(--fxm-auth-secondary); }
  .fxm-auth-shell[data-fxm-ios-auth] [data-fxm-ios-auth-country-dialog] .fxm-phone-field__check svg { width: 18px; height: 18px; color: var(--fxm-auth-accent); }
  .fxm-auth-shell[data-fxm-ios-auth] :is(button, a):focus-visible { outline: 2px solid var(--fxm-auth-accent); outline-offset: 3px; }
  .fxm-auth-shell[data-fxm-ios-auth] :is(button, a):active { -webkit-tap-highlight-color: transparent; }
  @keyframes fxm-auth-logo-float { from { transform: translateY(0); } to { transform: translateY(-3px); } }
  @keyframes fxm-auth-language-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fxm-auth-busy-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) {
    .fxm-auth-shell[data-fxm-ios-auth] *, .fxm-auth-shell[data-fxm-ios-auth] *::before, .fxm-auth-shell[data-fxm-ios-auth] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }
}
