/* Mobile counterparts to FxMoody's native Authentication, Profile, Tools and
 * AI components. Kept after fxm-mobile.css; all desktop presentation is intact. */
@media (max-width: 767.98px) {
  .fxm-web-service-text { display: none; }
  .fxm-ios-service-text { display: inline !important; }
  /* AuthenticationBackground / AuthenticationFieldChrome: a white canvas,
   * one soft halo, 54pt fields and 14pt continuous corners. */
  html body .fxm-auth-shell { background: #fff; }
  .fxm-auth-shell [data-testid="auth-page-background-base"] { background: #fff; }
  .fxm-auth-shell [data-testid="auth-page-background-effect"] { background: radial-gradient(ellipse 280px 220px at 100% 0, rgb(96 64 192 / 12%), transparent 80%); }
  .fxm-auth-shell .fxm-auth-main > .pointer-events-none { display: none; }
  .fxm-auth-shell .fxm-auth-back { width: 44px; height: 44px; border: 0; box-shadow: none; background: #f2f3f5; color: var(--fxm-ios-ink); }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) > section:first-of-type {
    padding: calc(68px + env(safe-area-inset-top, 0px)) 24px 0;
    background: transparent;
  }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) > section:first-of-type > .pointer-events-none { display: none; }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) > section:first-of-type .rounded-\[24px\] {
    justify-content: center; height: 72px; margin: 0; padding: 0; background: none;
  }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) > section:first-of-type img {
    width: min(260px, 100%); height: 72px; object-fit: contain;
  }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) > section:first-of-type :is(h2, p) { display: none; }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) > section:last-of-type {
    padding: 24px; border-radius: 0; background: transparent; box-shadow: none;
  }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) h1 {
    font: 700 28px/1.3 var(--fxm-ios-font); letter-spacing: -.025em; color: var(--fxm-ios-ink);
  }
  .fxm-auth-shell .fxm-web-auth-title { display: none; }
  .fxm-auth-shell .fxm-ios-auth-title { display: inline !important; }
  .fxm-auth-shell [data-fxm-login-page] > section:first-of-type picture { width: min(260px,100%); }
  .fxm-auth-shell [data-fxm-login-desc] { display: none; }
  .fxm-auth-shell .fxm-ios-auth-subtitle { display: block !important; margin-top: 7px; font-size: 14px; line-height: 1.5; color: var(--fxm-ios-secondary); }
  .fxm-auth-shell :is([data-fxm-login-page], [data-fxm-register-page], [data-fxm-forgot-page]) h1 + p {
    margin-top: 7px; font-size: 14px; line-height: 1.5; color: var(--fxm-ios-secondary);
  }
  .fxm-auth-shell .fxm-auth-m-tabs { padding: 3px; margin-top: 24px; border: 0; border-radius: 14px; background: #f2f3f5; }
  .fxm-auth-shell .fxm-auth-m-tabs > button { min-height: 44px; border-radius: 11px; font-size: 16px; font-weight: 400; color: var(--fxm-ios-secondary); }
  .fxm-auth-shell .fxm-auth-m-tabs > button[aria-selected="true"] { background: #fff; color: var(--fxm-ios-ink); font-weight: 600; box-shadow: 0 1px 4px rgb(0 0 0 / 8%); }
  .fxm-auth-shell :is([data-fxm-login-form], [data-fxm-register-form], [data-fxm-forgot-form]) { gap: 15px; margin-top: 18px; }
  .fxm-auth-shell .fxm-auth-field__control { min-height: 54px; border: 1px solid #e6e7ec; border-radius: 14px; background: #f2f3f5; box-shadow: none; }
  .fxm-auth-shell .fxm-auth-field__control:focus-within { border-color: var(--fxm-ios-brand); background: #fff; box-shadow: 0 0 0 3px rgb(96 64 192 / 9%); }
  .fxm-auth-shell :is(.fxm-auth-field__input, .fxm-phone-field__input) { font: 400 16px/1.5 var(--fxm-ios-font); }
  .fxm-auth-shell .fxm-auth-field__label { font-size: 14px; font-weight: 500; color: var(--fxm-ios-ink); }
  .fxm-auth-shell :is([data-action$="toggle-password"], [data-action$="send-code"]) { min-width: 44px; min-height: 44px; }
  .fxm-auth-shell [data-action$="send-code"] { color: var(--fxm-ios-brand); border: 0; background: transparent; font-size: 14px; }
  .fxm-auth-shell :is([data-fxm-login-submit], [data-fxm-register-submit], [data-fxm-forgot-submit]) {
    min-height: 52px; border-radius: 14px; background: linear-gradient(135deg,#6f4fd6,#6040c0,#4e2fa6); box-shadow: none; font-size: 16px; font-weight: 600;
  }
  .fxm-auth-shell :is([data-fxm-google-signin-fallback], [data-fxm-apple-signin]) { min-height: 52px; border-radius: 14px; border-color: #e6e7ec; font-size: 16px; }
  .fxm-auth-shell :is([data-fxm-login-form], [data-fxm-register-form]) + div + div { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .fxm-auth-shell :is([data-fxm-login-form], [data-fxm-register-form]) + div + div > div:has([data-fxm-apple-signin]) { order: -1; }
  .fxm-auth-shell .fxm-phone-field__frame { border-radius: 14px; background: #f2f3f5; }
  .fxm-auth-shell .fxm-phone-field__control { min-height: 52px; }

  /* ProfileView: grouped white surfaces, sober identity and the app's dark AI card. */
  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); background: var(--fxm-ios-page); font-family: var(--fxm-ios-font); }
  .fxm-account-page .fxm-account-wrap { padding-inline: 16px; }
  .fxm-account-page .fxm-account-breadcrumb { font-size: 12px; margin-bottom: 16px; }
  .fxm-account-page .fxm-account-heading { margin-bottom: 16px; }
  .fxm-account-page .fxm-account-heading h1 { font: 600 20px/1.4 var(--fxm-ios-font); }
  .fxm-account-page .fxm-account-heading p { font-size: 14px; }
  .fxm-account-page .fxm-account-content { gap: 20px; }
  .fxm-account-page .fxm-account-card { padding: 16px; border: 0; border-radius: 20px; background: var(--fxm-ios-card); box-shadow: none; }
  .fxm-account-page .fxm-account-card-heading h2 { font: 600 16px/1.45 var(--fxm-ios-font); }
  .fxm-account-page .fxm-account-welcome { gap: 14px; background: #fff; }
  .fxm-account-page .fxm-account-avatar { width: 64px; height: 64px; flex-basis: 64px; border: 1.5px solid rgb(96 64 192 / 18%); border-radius: 50%; background: #f0eafb; color: var(--fxm-ios-brand); box-shadow: none; font: 500 26px/1 var(--fxm-ios-brand-font); }
  .fxm-account-page .fxm-account-welcome h2 { font: 600 20px/1.4 var(--fxm-ios-font); }
  .fxm-account-page .fxm-account-welcome p { font-size: 12px; color: var(--fxm-ios-secondary); }
  .fxm-account-page .fxm-account-button { min-height: 44px; border-radius: 12px; font-size: 14px; }
  .fxm-account-page .fxm-account-button-primary { background: var(--fxm-ios-brand); box-shadow: none; }
  .fxm-account-page :is(.fxm-account-fields > div, .fxm-account-security-row) { min-height: 52px; border-color: var(--fxm-ios-border); }
  .fxm-account-page :is(.fxm-account-fields dt, .fxm-account-fields dd) { font-size: 14px; }
  .fxm-account-page .fxm-account-security-row > svg:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #f0eafb; color: var(--fxm-ios-brand); }
  .fxm-account-page :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) { border-color: #e6e7ec; border-radius: 12px; background: var(--fxm-ios-field); font-size: 16px; }
  .fxm-account-page .fxm-account-sidebar { border: 0; border-radius: 20px; background: #fff; box-shadow: none; }
  .fxm-account-page .fxm-account-nav-item { min-height: 48px; border-radius: 12px; font-size: 14px; }
  .fxm-account-page .fxm-account-nav-item[aria-current="page"] { color: var(--fxm-ios-brand); background: #f0eafb; box-shadow: none; }
  .fxm-account-page .fxm-ios-profile-ai { display: grid !important; grid-template-columns: minmax(0,1fr) 64px; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: radial-gradient(ellipse at 100% 10%,rgb(122 90 205 / 35%),transparent 68%),linear-gradient(135deg,#17162b,#292342); color: #fff; box-shadow: 0 8px 20px rgb(24 20 48 / 16%); text-decoration: none; }
  .fxm-ios-profile-ai-badge { display: inline-flex; padding: 3px 8px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 20px; font: 600 11px/1.3 var(--fxm-ios-brand-font); }
  .fxm-account-page .fxm-ios-profile-ai h2 { margin-top: 6px; font: 600 20px/1.4 var(--fxm-ios-font); color: #fff; }
  .fxm-account-page .fxm-ios-profile-ai p { margin-top: 4px; font-size: 12px; line-height: 1.6; color: rgb(255 255 255 / 75%); }
  .fxm-ios-profile-ai > img { width: 64px; height: 64px; object-fit: contain; }
  .fxm-ios-profile-ai-search { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 7px 12px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 30px; background: rgb(255 255 255 / 14%); font-size: 14px; }
  .fxm-account-page[data-fxm-ios-guest] { padding-top: 72px; background: linear-gradient(150deg,#f4f0ff 0,#edf9fa 320px,#f8f9fb 600px); }
  .fxm-account-page[data-fxm-ios-guest] > .fxm-account-wrap { display: none; }
  .fxm-ios-profile-guest:not([hidden]) { display: grid; gap: 20px; padding-inline: 16px; }
  :is(.fxm-ios-profile-identity,.fxm-ios-profile-services,.fxm-ios-profile-support) { padding: 16px; border: 1px solid rgb(255 255 255 / 80%); border-radius: 22px; background: rgb(255 255 255 / 94%); box-shadow: 0 4px 14px rgb(52 35 86 / 3%); }
  .fxm-ios-profile-guest-head { display: flex; align-items: center; gap: 14px; }
  .fxm-ios-profile-guest-head > div { min-width: 0; }
  .fxm-ios-profile-guest-avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; border: 1.5px solid rgb(96 64 192 / 18%); border-radius: 50%; background: rgb(96 64 192 / 10%); color: var(--fxm-ios-brand); }
  .fxm-account-page .fxm-ios-profile-guest h1 { margin: 0; font: 600 20px/1.4 var(--fxm-ios-font); color: var(--fxm-ios-ink); }
  .fxm-ios-profile-guest-head p { margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--fxm-ios-secondary); }
  .fxm-ios-profile-benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 16px 0; padding: 10px 4px; border-radius: 14px; background: var(--fxm-ios-page); }
  .fxm-ios-profile-benefits > span { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--fxm-ios-brand); }
  .fxm-ios-profile-benefits > span > span { color: var(--fxm-ios-secondary); font-size: 12px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
  .fxm-ios-profile-signin { display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg,#6f4fd6,#6040c0,#4e2fa6); color: #fff; font: 600 16px/1.5 var(--fxm-ios-font); text-align: center; }
  .fxm-ios-profile-services > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  .fxm-account-page :is(.fxm-ios-profile-services,.fxm-ios-profile-support) h2 { font: 600 16px/1.45 var(--fxm-ios-font); }
  .fxm-ios-profile-services > header > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--fxm-ios-secondary); font-size: 12px; }
  .fxm-ios-profile-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px 8px; }
  .fxm-ios-profile-service-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 72px; padding-block: 4px; text-align: center; color: var(--fxm-ios-ink); font-size: 12px; line-height: 1.5; }
  .fxm-ios-profile-service-grid a > span:first-child { display: grid; place-items: center; height: 32px; color: var(--fxm-ios-brand); }
  .fxm-ios-profile-service-grid a > span:last-child { overflow-wrap: anywhere; }
  .fxm-ios-profile-support > h2 { margin-bottom: 8px; }
  .fxm-ios-profile-support > a { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--fxm-ios-ink); font-size: 16px; }
  .fxm-ios-profile-support > a + a { border-top: 1px solid var(--fxm-ios-border); }
  .fxm-ios-profile-support-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #f0eafb; color: var(--fxm-ios-brand); }
  .fxm-ios-profile-support-chevron { flex: none; margin-left: auto; color: #9ca3af; transform: rotate(180deg); }

  /* ToolsListView: six calculator tiles then a divided assistance list. */
  main.fxm-tools-page { padding-top: 56px; background: var(--fxm-ios-page); color: var(--fxm-ios-ink); }
  .fxm-tools-page .fxm-tools-shell { padding-inline: 20px; }
  .fxm-tools-page .fxm-tools-hero { display: block; padding: 20px 0 0; min-height: 0; margin-bottom: 24px; border: 0; background: none; box-shadow: none; }
  .fxm-tools-page .fxm-tools-hero :is(h1) { font: 600 24px/1.35 var(--fxm-ios-font); }
  .fxm-tools-page .fxm-tools-hero p { margin-top: 8px; font: 400 14px/1.6 var(--fxm-ios-font); color: var(--fxm-ios-secondary); }
  .fxm-tools-page :is(.fxm-tools-eyebrow,.fxm-tools-hero-meta), .fxm-tools-page .fxm-tools-hero::before, .fxm-tools-page .fxm-tools-hero::after { display: none; }
  .fxm-tools-page[data-fxm-ios-tools] .fxm-tools-layout { display: flex; flex-direction: column; gap: 0; }
  .fxm-tools-page[data-fxm-ios-tools] .fxm-tools-mobile-nav { display: none; }
  .fxm-tools-page[data-fxm-ios-tools] .fxm-ios-tools-directory { display: grid !important; width: 100%; gap: 24px; }
  .fxm-ios-tools-group > h2 { margin: 0 0 12px; font: 600 16px/1.4 var(--fxm-ios-font); color: var(--fxm-ios-ink); }
  .fxm-ios-tools-calculators { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 8px; border-radius: 20px; background: var(--fxm-ios-card); }
  .fxm-ios-tools-directory button { min-width: 0; appearance: none; border: 0; border-radius: 14px; color: var(--fxm-ios-ink); background: transparent; text-align: center; cursor: pointer; transition: transform .16s ease-out, background-color .16s ease-out; }
  .fxm-ios-tools-directory button:active { transform: scale(.97); background: rgb(96 64 192 / 7%); }
  .fxm-ios-tools-directory button:focus-visible { outline: 2px solid var(--fxm-ios-brand); outline-offset: 2px; }
  .fxm-ios-tools-calculators button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 2px; }
  .fxm-ios-tool-icon { display: block; width: 54px; height: 54px; flex: none; object-fit: contain; }
  .fxm-ios-tool-icon > img { width: 100%; height: 100%; object-fit: contain; }
  .fxm-ios-tool-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
  .fxm-ios-tool-copy strong { font: 600 14px/1.45 var(--fxm-ios-font); overflow-wrap: anywhere; }
  .fxm-ios-tool-copy > span { font: 400 12px/1.45 var(--fxm-ios-font); color: var(--fxm-ios-secondary); overflow-wrap: anywhere; }
  .fxm-ios-tools-assistance { padding: 0 14px; border-radius: 20px; background: var(--fxm-ios-card); }
  .fxm-ios-tools-assistance button { display: flex; width: 100%; min-height: 68px; align-items: center; gap: 12px; padding: 12px 0; border-radius: 0; text-align: left; }
  .fxm-ios-tools-assistance button + button { border-top: 1px solid var(--fxm-ios-border); }
  .fxm-ios-tools-assistance .fxm-ios-tool-icon { width: 44px; height: 44px; }
  .fxm-ios-tools-assistance strong { font-size: 16px; }
  .fxm-ios-tool-chevron { flex: none; margin-left: auto; color: #9ca3af; }
  .fxm-tools-page .fxm-market-notice { border: 0; background: transparent; font-size: 12px; line-height: 1.5; padding-inline: 0; }
  .fxm-tools-page[data-fxm-ios-tools] .fxm-tools-layout > .fxm-market-notice { margin-top: 24px; padding: 16px; border-radius: 18px; background: #fff; }
  .fxm-ios-tool-dialog { position: fixed; inset: auto 0 0; width: 100%; max-width: 100%; height: min(92dvh,980px); max-height: calc(100dvh - env(safe-area-inset-top,0px)); margin: 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; color: var(--fxm-ios-ink); background: var(--fxm-ios-page); overflow-y: auto; overscroll-behavior: contain; }
  .fxm-ios-tool-dialog[open] { animation: fxm-ios-service-sheet .28s cubic-bezier(.22,.8,.28,1); }
  .fxm-ios-tool-dialog::backdrop { background: rgb(16 17 22 / 32%); backdrop-filter: blur(3px); }
  .fxm-ios-tool-dialog .fxm-ios-tool-workspace { padding: 0 16px max(24px,env(safe-area-inset-bottom,0px)); }
  .fxm-ios-tool-dialog .fxm-ios-tool-sheet-controls { position: sticky; top: 0; z-index: 4; display: grid !important; grid-template-columns: 1fr 44px; align-items: center; gap: 0 12px; min-height: 70px; margin: 0 -16px 16px; padding: 10px 16px 0; background: var(--fxm-ios-page); }
  .fxm-ios-sheet-grabber { grid-column: 1/-1; justify-self: center; width: 36px; height: 5px; margin-bottom: 4px; border-radius: 10px; background: #d4d5dc; }
  .fxm-ios-tool-sheet-controls h2 { font: 600 18px/1.4 var(--fxm-ios-font); }
  .fxm-ios-tool-sheet-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--fxm-ios-field); color: var(--fxm-ios-secondary); }
  .fxm-ios-tool-dialog [data-fxm-tool-panel] > .mb-4 > h2 { display: none; }
  .fxm-ios-tool-dialog [data-fxm-tool-panel] > .mb-4 > p { font-size: 14px; color: var(--fxm-ios-secondary); }
  .fxm-tools-page :is(.fxm-tool-calculator,.fxm-tool-chart-card,.fxm-tool-guide) { border: 1px solid var(--fxm-ios-border); border-radius: 14px; background: var(--fxm-ios-card); box-shadow: none; }
  .fxm-ios-tool-dialog :is(input:not([type="checkbox"]):not([type="radio"]),select) { min-height: 48px; border: 1px solid var(--fxm-ios-border); border-radius: 12px; background: var(--fxm-ios-field); font-size: 16px; }
  .fxm-ios-tool-dialog [data-fxm-result-value] { font-family: var(--fxm-ios-number-font); font-size: 24px; font-weight: 700; }

  /* AIWelcomeView + bottomComposer: one mounted input, at the bottom on both
   * welcome and conversation states; prompt rows remain genuine controls. */
  main.fxm-ai-page[data-fxm-ai-service-page] { --fxm-ai-page-header-height: 52px; --fxm-ai-page-gutter: 24px; height: calc(100dvh - 82px - env(safe-area-inset-bottom,0px) - var(--fxm-ai-admin-offset,0px)); background: #fff; color: var(--fxm-ios-ink); font-family: var(--fxm-ios-font); }
  .fxm-ios-keyboard main.fxm-ai-page[data-fxm-ai-service-page] { height: calc(var(--fxm-ios-visible-height,100dvh) - var(--fxm-ai-admin-offset,0px)); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-header { grid-template-columns: 52px minmax(0,1fr) 52px; border: 0; padding-inline: 8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-brand { padding: 0; justify-content: center; border: 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-brand > a { display: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-sidebar-toggle] { display: inline-flex; width: 44px; height: 44px; color: var(--fxm-ios-ink); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-session-meta { display: flex; justify-content: center; padding: 0; gap: 8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-session-meta > svg { color: var(--fxm-ios-brand); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-session-meta [data-fxm-ai-title] { font-size: 18px; font-weight: 600; color: var(--fxm-ios-ink); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-home { width: 44px; min-height: 44px; margin: 0; color: var(--fxm-ios-ink); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-workspace { padding: 0 24px; }
  main.fxm-ai-page[data-fxm-ai-service-page][data-fxm-ai-view="welcome"] .fxm-ai-page-intro { order: 0; margin: 0; padding-top: clamp(20px,11vh,100px); }
  .fxm-ios-keyboard main.fxm-ai-page[data-fxm-ai-service-page][data-fxm-ai-view="welcome"] .fxm-ai-page-intro { padding-top: 20px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-hero { display: block !important; width: 56px; height: 56px; margin: 0 auto 16px; object-fit: contain; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-eyebrow { display: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-intro h1 { font: 600 24px/1.4 var(--fxm-ios-font); letter-spacing: -.015em; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-intro > p { display: none; }
  main.fxm-ai-page[data-fxm-ai-service-page][data-fxm-ai-view="welcome"] .fxm-ai-page-prompts { order: 1; margin: 32px 0 24px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-prompts > h2 { color: var(--fxm-ios-secondary); font-size: 14px; font-weight: 600; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-quick-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-quick { min-height: 44px; padding: 10px 0; border: 0; border-radius: 8px; background: none; box-shadow: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-page-quick-icon,.fxm-ai-page-quick-arrow,.fxm-ai-page-quick-copy > strong) { display: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-quick-copy > span { font: 400 14px/1.55 var(--fxm-ios-font); color: var(--fxm-ios-secondary); }
  main.fxm-ai-page[data-fxm-ai-service-page][data-fxm-ai-view="welcome"] .fxm-ai-composer-dock { order: 2; position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 12px 0 0; background: #fff; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-composer { min-height: 0; padding: 10px 12px; border: 1px solid #e6e7ec; border-radius: 24px; background: #f7f7f9; box-shadow: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-input-line { min-height: 44px; align-items: center; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-input-bot { display: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-input] { min-height: 44px; padding-block: 10px; font-size: 16px; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-send] { position: static; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--fxm-ios-brand); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-composer-toolbar { min-height: 0; margin: 8px 0 0; padding: 0; border: 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-composer-toolbar:not(:has(button:not([hidden]))) { display: none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-att-button { min-height: 44px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-disclaimer { order: 3; margin: 0; padding: 6px 0 8px; font-size: 11px; line-height: 1.5; }
  main.fxm-ai-page[data-fxm-ai-service-page][data-fxm-ai-view="conversation"] .fxm-ai-composer { min-height: 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-page-sidebar { border-radius: 0 20px 20px 0; background: var(--fxm-ios-page); }

  /* Shared secondary modules use the same grouped cards and field grammar. */
  :is(.fxm-help-page,.fxm-connect-page,.fxm-legal-page,[data-fxm-mediation-list-page]) {
    --help-ink: var(--fxm-ios-ink); --help-accent: var(--fxm-ios-brand); --help-copy: var(--fxm-ios-secondary);
    --legal-ink: var(--fxm-ios-ink); --legal-accent: var(--fxm-ios-brand); --legal-muted: var(--fxm-ios-secondary);
    --ml-primary: var(--fxm-ios-brand); --ml-ink: var(--fxm-ios-ink); --ml-ground: var(--fxm-ios-page); --ml-numeric: var(--fxm-ios-number-font);
    --connect-ink: var(--fxm-ios-ink); --connect-muted: var(--fxm-ios-secondary); --connect-accent: var(--fxm-ios-brand); --connect-line: var(--fxm-ios-border);
    font-family: var(--fxm-ios-font); background: var(--fxm-ios-page); color: var(--fxm-ios-ink);
  }
  :is(.fxm-help-shell,.fxm-connect-shell,.fxm-medlist-shell) { padding-inline: 16px; }
  :is(.fxm-help-hero,.fxm-connect-hero,.fxm-medlist-hero) { border: 0; background: none; box-shadow: none; }
  .fxm-help-hero { padding-block: 16px 24px; }
  .fxm-help-home-page.fxm-help-page .fxm-help-crumbs { display: none; }
  .fxm-help-home-page.fxm-help-page .fxm-help-hero-main { grid-template-columns: minmax(0,1fr) minmax(120px,42%); gap: 16px 8px; margin-top: 0; }
  .fxm-help-home-page.fxm-help-page .fxm-ios-help-logo { display: block !important; width: 115px; height: auto; margin-bottom: 14px; }
  .fxm-help-home-page.fxm-help-page .fxm-ios-help-art { display: block !important; width: 100%; max-height: 170px; object-fit: contain; }
  .fxm-help-home-page.fxm-help-page .fxm-help-hero-title { font: 700 28px/1.35 var(--fxm-ios-font); }
  .fxm-help-home-page.fxm-help-page .fxm-help-hero-desc { font-size: 12px; line-height: 1.6; }
  .fxm-help-home-page.fxm-help-page .fxm-help-search { grid-column: 1/-1; min-height: 52px; border-radius: 999px; background: #fff; box-shadow: 0 5px 18px rgb(96 64 192 / 6%); }
  .fxm-help-home-page.fxm-help-page .fxm-help-cats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 8px; }
  .fxm-help-home-page.fxm-help-page .fxm-help-cat { flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; background: transparent; text-align: center; }
  .fxm-help-home-page.fxm-help-page .fxm-help-cat-copy { gap: 4px; }
  .fxm-help-home-page.fxm-help-page .fxm-help-cat-name { font-size: 14px; font-weight: 400; }
  .fxm-help-home-page.fxm-help-page :is(.fxm-help-cat-desc,.fxm-help-cat-arrow) { display: none; }
  .fxm-help-home-page.fxm-help-page .fxm-help-cat-count { margin: 0; font-size: 11px; }
  .fxm-help-home-page.fxm-help-page .fxm-help-body { padding-top: 12px; }
  .fxm-help-hero::before,.fxm-medlist-hero::before { display: none; }
  :is(.fxm-help-hero-title,.fxm-connect-hero h1,.fxm-medlist-hero h1) { font: 600 24px/1.4 var(--fxm-ios-font); letter-spacing: -.02em; }
  :is(.fxm-help-hero-desc,.fxm-connect-intro) { font-size: 14px; line-height: 1.6; color: var(--fxm-ios-secondary); }
  .fxm-help-page .fxm-help-cats { gap: 12px; }
  .fxm-help-page .fxm-help-cat { padding: 16px; gap: 12px; border: 0; border-radius: 16px; background: var(--fxm-ios-card); }
  .fxm-help-page .fxm-help-cat-icon { width: 40px; height: 40px; border-radius: 12px; background: #f0eafb; color: var(--fxm-ios-brand); }
  .fxm-help-page .fxm-help-cat-name { font-size: 16px; font-weight: 600; }
  .fxm-help-page :is(.fxm-help-cat-desc,.fxm-help-cat-count) { font-size: 12px; }
  .fxm-help-page .fxm-help-section-head h2 { font: 600 16px/1.4 var(--fxm-ios-font); }
  .fxm-help-page .fxm-help-qlist { overflow: hidden; border: 0; border-radius: 16px; background: #fff; }
  .fxm-help-page .fxm-help-search { min-height: 48px; border: 0; border-radius: 12px; background: var(--fxm-ios-field); }
  .fxm-help-page .fxm-help-search input { font-size: 16px; }
  .fxm-help-page :is(.fxm-help-ask,.fxm-help-article,.fxm-help-state) { border-radius: 20px; box-shadow: none; }
  .fxm-connect-page :is(.fxm-connect-channel,.fxm-connect-form,.fxm-connect-other,.fxm-connect-business-note) { border: 0; border-radius: 20px; background: #fff; box-shadow: none; }
  .fxm-connect-page :is(.fxm-connect-breadcrumb,.fxm-connect-eyebrow) { display: none; }
  .fxm-connect-page .fxm-connect-topbar { padding-bottom: 0; border: 0; }
  .fxm-connect-page .fxm-connect-hero { margin-bottom: 20px; padding-top: 24px; }
  .fxm-connect-page :is(.fxm-connect-form-heading h2,.fxm-connect-section-heading h2) { font: 600 18px/1.4 var(--fxm-ios-font); }
  .fxm-connect-page :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) { min-height: 48px; border-radius: 12px; border-color: var(--fxm-ios-border); background: var(--fxm-ios-field); font-size: 16px; }
  .fxm-connect-page :is(.fxm-connect-submit,.fxm-connect-primary-link) { min-height: 48px; border-radius: 14px; background: var(--fxm-ios-brand); font-size: 16px; }
  .fxm-legal-page .fxm-legal-shell { padding-inline: 20px; }
  .fxm-legal-page :is(.fxm-legal-breadcrumb,.fxm-legal-eyebrow,.fxm-legal-emblem) { display: none; }
  .fxm-legal-page .fxm-legal-hero { margin: 0 0 20px; padding: 8px 0 0; border: 0; border-radius: 0; background: none; }
  .fxm-legal-page .fxm-legal-hero h1 { font: 600 20px/1.4 var(--fxm-ios-font); letter-spacing: 0; }
  .fxm-legal-page .fxm-legal-intro { max-width: none; font-size: 12px; line-height: 1.7; }
  .fxm-legal-page .fxm-legal-document { padding-inline: 16px; border: 0; border-radius: 20px; box-shadow: none; }
  .fxm-legal-page .fxm-legal-html { font: 400 14px/1.8 var(--fxm-ios-font); color: var(--fxm-ios-ink); }
  .fxm-legal-page .fxm-legal-html h2 { font: 600 18px/1.45 var(--fxm-ios-font); }
  .fxm-legal-page :is(.fxm-legal-article,.fxm-legal-help,.fxm-legal-empty) { border-radius: 20px; background: #fff; box-shadow: none; }
  :is([data-fxm-exposure-submit-page],[data-fxm-mediation-apply-page]) { background: var(--fxm-ios-page); }
  :is([data-fxm-exposure-submit-page],[data-fxm-mediation-apply-page]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select) { min-height: 48px; border-radius: 12px; border-color: var(--fxm-ios-border); background: var(--fxm-ios-field); font-size: 16px; }
  :is([data-fxm-exposure-submit-page],[data-fxm-mediation-apply-page]) :is(h1,h2) { font-family: var(--fxm-ios-font); font-size: 20px; font-weight: 600; line-height: 1.45; }
  :is(.fxm-medlist-summary,.fxm-medlist-stats,.fxm-mcase-card,.fxm-mcase-state) { border-color: var(--fxm-ios-border); border-radius: 20px; box-shadow: none; }
  .fxm-medlist-hero { padding-top: 0; }
  .fxm-medlist-crumbs { display: none; }
  .fxm-medlist-hero__grid { margin-top: 0; gap: 24px; }
  .fxm-medlist-hero__actions { margin-top: 16px; }
  .fxm-mcase-page { --mc-ink: var(--fxm-ios-ink); --mc-text: var(--fxm-ios-ink); --mc-muted: var(--fxm-ios-secondary); --mc-primary: var(--fxm-ios-brand); --mc-line: var(--fxm-ios-border); --mc-soft: var(--fxm-ios-page); --mc-mono: var(--fxm-ios-number-font); font-family: var(--fxm-ios-font); }
  .fxm-mcase-page__inner { padding-inline: 16px; }
  .fxm-mcase-hero { border-color: var(--fxm-ios-border); box-shadow: none; }
  .fxm-mcase-hero__accent { display: none; }
  [data-fxm-exposure-detail-page] { background: var(--fxm-ios-page); font-family: var(--fxm-ios-font); }
  [data-fxm-exposure-detail-page] h1 { font: 600 20px/1.45 var(--fxm-ios-font); }
  [data-fxm-exposure-detail-page] :is(.fxm-exp-evidence,.fxm-exp-replies,.fxm-exp-timeline) { border-color: var(--fxm-ios-border); border-radius: 20px; box-shadow: none; }

  @keyframes fxm-ios-service-sheet { from { transform: translateY(30%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
}
@media (max-width: 359px) {
  .fxm-ios-tools-calculators { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .fxm-ios-tool-dialog[open] { animation: none; }
  .fxm-ios-tools-directory button { transition: none; }
  .fxm-ios-tools-directory button:active { transform: none; }
}
