/* Native AIAnswerView / AIChatStyle presentation. No desktop or drawer rules.
 * Message data, ordering, disclosures, links and actions remain renderer-owned. */
@media (max-width:767.98px) {
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] {
    --ai-ink:#1c1c21; --ai-muted:#6b7380; --ai-subtle:#8c94a1;
    --ai-accent:#6040c0; --ai-border:#e6e8ed;
    --ai-data-line:#e6e8ed; --ai-data-soft:#f6f7f9; --ai-data-muted:#6b7380;
    --ai-card-line:#6040c01f; --ai-tile-line:#e6e8ed;
    --ai-card-shadow:0 3px 10px #0000000a; --ai-tile-shadow:none;
    --color-primary:#6040c0; --color-on-surface:#1c1c21; --color-surface:#fff;
    --font-body:var(--fxm-ios-font,system-ui,sans-serif); --font-headline:var(--fxm-ios-font,system-ui,sans-serif);
    color:var(--ai-ink); font-family:var(--fxm-ios-font,system-ui,sans-serif);
  }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-chat-row,.fxm-ai-assistant-message,.fxm-ai-assistant-body,.fxm-ai-section) { min-width:0; max-width:100%; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-chat-row { padding-block:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages]>:not([hidden])~:not([hidden]) { margin-block-start:24px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-assistant-message { width:100%; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
  /* Native conversation has neither a repeated AI badge nor a user avatar. */
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-message-meta--assistant,.fxm-ai-user-avatar) { display:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-message { width:auto; max-width:calc(100% - 48px); margin-inline-start:auto; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-line { display:flex; justify-content:flex-end; gap:0; min-width:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble {
    min-width:0; max-width:100%; padding:11px 14px; border:0; border-radius:16px 16px 6px 16px;
    background:#6040c0; color:#fff; font:400 16px/1.55 var(--fxm-ios-font,system-ui,sans-serif);
    box-shadow:none; overflow-wrap:anywhere; word-break:normal;
  }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble>p { margin:0; color:inherit; font-size:16px!important; font-weight:400!important; line-height:1.55; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble.fxm-ai-user-bubble--attachments { width:100%; padding:0; border:0; border-radius:0; background:none; color:var(--ai-ink); gap:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments>p { max-width:100%; padding:11px 14px; border:0; border-radius:16px 16px 6px 16px; background:#6040c0; color:#fff; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-assistant-body>:not([hidden])~:not([hidden]),
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-assistant-body>.fxm-ai-section~.fxm-ai-section { margin-top:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-section>div+div { margin-top:12px; }

  /* AI prose uses the native 16pt label ladder, independently of article CSS. */
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown { color:#1c1c21db; font:400 16px/1.65 var(--fxm-ios-font,system-ui,sans-serif); letter-spacing:0; overflow-wrap:anywhere; word-break:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown p { margin:0 0 10px; font-size:16px; line-height:1.65; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown :is(h1,h2,h3) { display:block; position:relative; margin:16px 0 10px; padding-inline-start:11px; color:var(--ai-ink); font:600 16px/1.5 var(--fxm-ios-font,system-ui,sans-serif); font-weight:600!important; letter-spacing:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown :is(h1,h2,h3)::before { content:''; position:absolute; inset-inline-start:0; top:.3em; width:3px; height:15px; border-radius:1.5px; background:linear-gradient(#6040c0,#6040c073); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown :is(h4,h5,h6) { margin:11px 0 10px; color:var(--ai-ink); font:600 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); font-weight:600!important; letter-spacing:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown :is(strong,b) { color:var(--ai-ink); font-weight:600; background:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown>:first-child { margin-top:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown>:last-child { margin-bottom:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown :is(ul,ol) { margin:10px 0; padding:0 0 0 2px; list-style:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown li { margin:8px 0; padding-inline-start:15px; font-size:16px; line-height:1.6; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown ul>li::before { top:.62em; left:0; width:5px; height:5px; border-radius:50%; background:#6040c0bf; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown ol>li { padding-inline-start:26px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown ol>li::before { top:.25em; width:18px; min-width:18px; height:18px; border-radius:50%; background:#6040c017; color:#6040c0; font:600 12px/18px var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown blockquote { margin:10px 0; padding:8px 10px; border:0; border-inline-start:3px solid #6040c073; border-radius:8px; background:#f6f7f9; color:var(--ai-muted); font-size:14px; line-height:1.6; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown blockquote p { font-size:14px; line-height:1.6; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown blockquote p:last-child { margin-bottom:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown a { color:#6040c0; text-decoration-color:#6040c066; text-underline-offset:3px; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown hr { margin:16px 0; border:0; border-top:.5px solid #e6e8ed; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown pre { max-width:100%; padding:12px; overflow:auto; border-radius:10px; font-size:13px; background:#f6f7f9; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown :is(img,video) { max-width:100%; height:auto; border-radius:12px; }

  /* Tool/evidence/chart cards retain every field, tone, disclosure and action. */
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-card,.fxm-ai-data-card,.fxm-ai-chart-card,.fxm-ai-kpi) { min-width:0; max-width:100%; border:1px solid #e6e8edcc; border-radius:14px; background:#fff; box-shadow:0 3px 10px #0000000a; font-family:var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-head,.fxm-ai-data-head,.fxm-ai-chart-heading) { flex-wrap:wrap; gap:8px; padding:14px 14px 0; border:0; background:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-icon,.fxm-ai-data-icon,.fxm-ai-chart-icon) { width:18px; height:20px; flex:0 0 18px; border-radius:0; background:none; color:#6040c0; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-icon,.fxm-ai-data-icon,.fxm-ai-chart-icon)>svg { width:18px; height:18px; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-title,.fxm-ai-data-title,.fxm-ai-chart-heading h4,.fxm-ai-kpi-title,.fxm-ai-insights-title,.fxm-ai-choices-title,.fxm-ai-entities-title) { margin:0; color:var(--ai-ink); font:600 16px/1.5 var(--fxm-ios-font,system-ui,sans-serif); font-weight:600!important; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-body { gap:12px; padding:12px 14px 14px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-verdict { padding:10px; border-radius:10px; gap:10px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-verdict-title { color:var(--ai-ink); font:600 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-verdict-text { margin-top:2px!important; color:var(--ai-muted); font-size:14px; line-height:1.55; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-hero { gap:4px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-hero-value { font:700 24px/1.25 var(--fxm-ios-number-font,'FxBarlow',sans-serif); letter-spacing:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-hero--status .fxm-ai-tool-hero-value { font:600 16px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-field { min-width:0; padding:10px; border-radius:10px; background:#f6f7f9; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-field-value { font:600 14px/1.5 var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-section-title { font:600 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-hero-label,.fxm-ai-tool-hero-hint,.fxm-ai-tool-hero-unit,.fxm-ai-tool-field-hint,.fxm-ai-tool-meter-hint,.fxm-ai-tool-subject-label,.fxm-ai-chart-notes,.fxm-ai-chart-data summary,.fxm-ai-data-notes p,.fxm-ai-tool-notes,.fxm-ai-tool-asof) { font-size:12px; line-height:1.5; color:var(--ai-muted); }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-entity,.fxm-ai-tool-action) { min-height:44px; height:auto; font-size:14px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-entity-name { white-space:normal; overflow:visible; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-actions { flex-direction:row; flex-wrap:wrap; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-action { width:auto; flex:1 1 130px; border-radius:10px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-action--primary { background:#6040c0; border-color:#6040c0; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-more>summary,.fxm-ai-check>details>summary) { min-height:44px; font-size:14px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-chart-canvas { max-width:calc(100% - 20px); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-chart-notes { padding:0 14px 14px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-chart-data summary { min-height:44px; padding:10px 14px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-data-notes { padding:12px 14px; border-color:#e6e8ed; background:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-chart-card:hover,.fxm-ai-tool-card:hover) { box-shadow:0 3px 10px #0000000a; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi { padding:14px; container:fxm-ios-ai-kpi / inline-size; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-card { min-width:0; padding:12px; border-radius:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-card:last-child:nth-child(odd) { grid-column:1/-1; }
  /* The legacy SCORE ring occupies its own row below 640px. Pair the
   * remaining cards by their own count rather than the ring's DOM index. */
  @media (max-width:639px) {
    main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-grid:has(>.fxm-ai-kpi-card--ring)>.fxm-ai-kpi-card:not(.fxm-ai-kpi-card--ring) { grid-column:auto; }
    main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-grid:has(>.fxm-ai-kpi-card--ring)>.fxm-ai-kpi-card:nth-last-child(1 of :not(.fxm-ai-kpi-card--ring)):nth-child(odd of :not(.fxm-ai-kpi-card--ring)) { grid-column:1/-1; }
  }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-label { margin-bottom:6px; color:var(--ai-muted); font-size:12px; line-height:1.5; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-value { font:500 18px/1.4 var(--fxm-ios-number-font,'FxBarlow',sans-serif); overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-ring-label { font:500 13px/1 var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-kpi-unit,.fxm-ai-kpi-context,.fxm-ai-kpi-hint,.fxm-ai-kpi-notes p) { font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-info { min-width:44px; min-height:44px; align-items:center; justify-content:center; margin:-14px -12px -14px 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-info-pop { padding:10px 12px; font-size:12px; line-height:1.6; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-subject-kpi .fxm-ai-kpi { padding:0; border:0; background:none; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-subject-kpi .fxm-ai-kpi-grid { margin-top:0; }

  @container fxm-ios-ai-kpi (max-width:271.98px) {
    main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-grid { grid-template-columns:minmax(0,1fr); }
  }

  /* Native tables scroll horizontally; reading down stays with the chat. */
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-table-scroll,.fxm-ai-markdown-table-wrap,.fxm-ai-chart-data-scroll) { min-width:0; max-width:100%; max-height:none; overflow-x:auto; overscroll-behavior-x:contain; overscroll-behavior-y:auto; -webkit-overflow-scrolling:touch; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-data-card>.fxm-ai-table-scroll { margin-top:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-markdown-table-wrap { margin:10px 0; border:1px solid #e6e8ed; border-radius:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-data-table,.fxm-ai-markdown table) { margin:0; font:400 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); color:#1c1c21db; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-data-table,.fxm-ai-markdown table) td { padding:11px 12px; border-color:#e6e8ed; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-data-table,.fxm-ai-markdown table) th { padding:9px 12px; color:var(--ai-muted); background:#f6f7f9; font-size:12px; font-weight:400; white-space:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-data-table th[data-fxm-ai-sort] { padding:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-table-sort { padding:9px 12px; min-height:44px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-cell-number { font-family:var(--fxm-ios-number-font,'FxBarlow',sans-serif); font-weight:500; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-table-help,.fxm-ai-table-empty) { font-size:12px; line-height:1.5; }

  /* Subject identity: the original native dotted world map, no added data. */
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entity-card--full) { position:relative; isolation:isolate; padding:16px; border:1px solid #6040c01f; border-radius:16px; background:radial-gradient(ellipse at top right,#6040c01f,transparent 72%),linear-gradient(225deg,#6040c014,#6040c006 48%,#fff 78%),#fff; box-shadow:0 6px 16px #6040c012; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entity-card--full)::before { content:''; position:absolute; z-index:-1; pointer-events:none; top:-14px; right:-18%; width:112%; min-width:340px; height:170px; background:linear-gradient(100deg,#6040c047,#6040c040 70%,#0d948f21); -webkit-mask:var(--fxm-img-home-dot-world-map, url('../images/ios/home-dot-world-map.png')) right top/100% auto no-repeat; mask:var(--fxm-img-home-dot-world-map, url('../images/ios/home-dot-world-map.png')) right top/100% auto no-repeat; opacity:.7; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entities--subject .fxm-ai-entity-card--full)::after { content:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-head { display:grid; grid-template-columns:73px minmax(0,1fr) 16px; align-items:start; gap:6px 12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-logo { grid-column:1; grid-row:1/span 2; flex:none; width:73px; height:56px; min-width:0; border:1px solid #e6e8ed; border-radius:11px; background:#fff; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-logo:not(.fxm-ai-hero-logo--image) { width:73px; height:56px; background:#6040c014; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-logo>img { padding:6px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-logo .fxm-ai-hero-initial { color:#6040c0; font:600 22px/1 var(--fxm-ios-brand-font,'FxOutfit',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-text { grid-column:2; grid-row:1; min-width:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-name { margin:0; overflow:visible; white-space:normal; color:var(--ai-ink); font:600 18px/1.4 var(--fxm-ios-brand-font,'FxOutfit',sans-serif); font-weight:600!important; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-subtitle { margin:4px 0 0; color:var(--ai-muted); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-kind { font-size:11px; line-height:1.4; color:var(--ai-muted); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-badge { grid-column:2; grid-row:2; justify-self:start; max-width:100%; padding:3px 8px; border-radius:6px; font-size:12px; font-weight:500!important; line-height:1.4; white-space:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-head>.fxm-ai-entity-arrow { grid-column:3; grid-row:1/span 2; align-self:center; width:16px; height:24px; border:0; background:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-subject-row,
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-hero-head+.fxm-ai-subject-row { margin-top:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-card { min-width:0; border-radius:14px; padding:14px; gap:12px; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-card--full { gap:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-media--logo { width:52px; height:40px; flex:0 0 52px; border-radius:8px; background:#fff; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--full .fxm-ai-entity-media--logo { width:57px; height:44px; flex-basis:57px; border-radius:9px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-media>img { padding:4px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-name { color:var(--ai-ink); font:600 16px/1.45 var(--fxm-ios-brand-font,'FxOutfit',sans-serif); white-space:normal; overflow:visible; text-overflow:clip; -webkit-line-clamp:unset; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-card--full .fxm-ai-entity-name { font-size:17px; white-space:normal; overflow:visible; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-card[data-entity-type='NEWS'] .fxm-ai-entity-name { display:block; font:600 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); -webkit-line-clamp:unset; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-entity-subtitle,.fxm-ai-entity-meta,.fxm-ai-entity-refs) { color:var(--ai-muted); font-size:12px; line-height:1.5; white-space:normal; overflow:visible; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-summary { display:block; color:var(--ai-muted); font-size:14px; line-height:1.55; -webkit-line-clamp:unset; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-badge { min-height:22px; height:auto; padding:3px 8px; border-radius:6px; font-size:12px; line-height:1.4; white-space:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-metric-value { font:700 20px/1.3 var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-subject-card .fxm-ai-entity-metric { padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-subject-card .fxm-ai-entity-metric-value { font:700 20px/1.3 var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-subject-card .fxm-ai-entity-meter { height:4px; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entity-card--full) .fxm-ai-entity-facts { display:grid; grid-template-columns:minmax(0,1fr); grid-auto-flow:row; gap:0; padding:0 12px; border:0; border-radius:10px; background:#f6f7f9; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entity-card--full) .fxm-ai-entity-fact { flex-direction:row; align-items:baseline; gap:12px; padding:8px 0; border:0; background:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entity-card--full) .fxm-ai-entity-fact+.fxm-ai-entity-fact { border-top:.5px solid #e6e8ed; border-left:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-fact dt { flex:0 1 45%; font-size:12px; white-space:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-subject-card,.fxm-ai-entity-card--full) .fxm-ai-entity-fact dd { font:600 13px/1.5 var(--fxm-ios-number-font,'FxBarlow',sans-serif); white-space:normal; overflow:visible; overflow-wrap:anywhere; text-align:right; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-link { min-height:44px; height:auto; max-width:100%; padding:6px 9px; border-radius:8px; font-size:12px; line-height:1.45; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entity-grid { gap:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-grid:has(>li:nth-child(3)) { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:176px; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; padding-bottom:4px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-card { padding:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-head { flex-wrap:wrap; gap:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-content { flex-basis:100%; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-name { font-size:15px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--compare .fxm-ai-entity-metric { flex-wrap:wrap; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities--mentioned>.fxm-ai-entities-title { margin-bottom:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-entities-expand>summary { position:static; width:fit-content; max-width:100%; min-height:44px; margin:0 0 8px auto; font-size:12px; white-space:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-ad-badge { min-height:18px; font-size:11px; line-height:1.5; }

  /* Sources remain complete and actionable; no evidence is removed. */
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-sources-fold>summary { min-height:44px; height:auto; gap:8px; padding:4px 12px 4px 6px; border:1px solid #e6e8edcc; border-radius:999px; background:#f6f7f9; color:var(--ai-ink); font:500 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-sources-icon { display:flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:#6040c01a; color:#6040c0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-sources-count { min-width:20px; height:18px; padding:0 6px; background:#6040c014; color:#6040c0; font:600 12px/18px var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-list { margin-top:8px; padding:4px 10px; border:1px solid #e6e8edcc; border-radius:12px; background:#fff; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-row { min-height:44px; align-items:center; gap:10px; padding:7px 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-row+.fxm-ai-source-row { border-top:.5px solid #e6e8ed; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-number { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 3px; border-radius:6px; background:#6040c014; color:#6040c0; font:600 10px/1 var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-title { color:var(--ai-ink); font:500 12px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] a.fxm-ai-source-title { display:flex; align-items:center; min-height:44px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-meta { width:100%; color:var(--ai-subtle); font-size:11px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-source-excerpt { display:block; font-size:12px; -webkit-line-clamp:unset; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-details,.fxm-ai-evidence-details) { border:1px solid #e6e8ed; border-radius:12px; background:#fff; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-details,.fxm-ai-evidence-details)>summary { min-height:44px; padding:10px 12px; font-size:14px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-details-label { font:600 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-details-body { gap:12px; padding:8px 12px 12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-from-file,.fxm-ai-cites-title,.fxm-ai-cite,.fxm-ai-cites-hint) { font-size:12px; line-height:1.5; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-cite>span:first-of-type { white-space:normal; overflow:visible; overflow-wrap:anywhere; }

  /* Choices are individual native cards, not a second framed answer. */
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-choices { padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-choices-title { margin-bottom:10px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-choice-card { padding:12px; border:1px solid #6040c029; border-radius:14px; background:#fff; box-shadow:none; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-choice] { min-width:0; max-width:100%; min-height:44px; font-size:14px; line-height:1.55; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-choice-label { color:var(--ai-ink); font-size:14px; font-weight:600!important; line-height:1.5; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-choice-desc { color:var(--ai-muted); font-size:12px; line-height:1.5; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-choice-media { flex-basis:52px; width:52px; height:40px; border-radius:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-choice-input] { min-height:44px; padding:10px 12px; border:0; border-radius:10px; background:#f6f7f9; font-size:16px; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-choice-submit] { width:44px; min-width:44px; height:44px; border-radius:12px; background:#6040c0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-followups { flex-direction:column; align-items:stretch; gap:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] .fxm-ai-assistant-message :is([data-fxm-ai-followup],button.group[data-fxm-ai-select]) { min-height:44px; padding:10px 12px; border:1px solid #6040c024; border-radius:12px; background:#fff; color:#6040c0; font:400 14px/1.55 var(--fxm-ios-font,system-ui,sans-serif); white-space:normal; overflow-wrap:anywhere; }

  /* Count image siblings rather than all attachments; documents retain their
   * own full row. Four images use the native two-by-two layout. */
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid { --fxm-att-tile:120px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; max-width:100%; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-item { min-width:0; max-width:100%; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-open { width:260px; max-width:100%; min-height:60px; padding:10px; border:1px solid #e6e8ed; border-radius:14px; box-shadow:none; color:var(--ai-ink); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image):not(:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image)) { --fxm-att-tile:168px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image) { --fxm-att-tile:96px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-open:has(>.fxm-ai-att-thumb) { width:var(--fxm-att-tile); padding:0; border-radius:14px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-open>.fxm-ai-att-thumb { width:100%; height:var(--fxm-att-tile); border-radius:0; object-fit:cover; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-name { font-size:14px; font-weight:500; line-height:1.45; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments :is(.fxm-ai-att-desc,.fxm-ai-att-note) { display:block; color:var(--ai-muted); font-size:12px; line-height:1.5; -webkit-line-clamp:unset; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-item--document { flex:0 1 100%; display:flex; justify-content:flex-end; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image):not(:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image))>.fxm-ai-att-item--image { flex:0 1 calc((100% - 12px)/3); max-width:96px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image)>.fxm-ai-att-item--image { flex:0 1 calc((100% - 6px)/2); max-width:calc((100% - 6px)/2); display:flex; justify-content:flex-end; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image)>.fxm-ai-att-item--image:nth-child(2n of .fxm-ai-att-item--image) { justify-content:flex-start; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image) .fxm-ai-att-open:has(>.fxm-ai-att-thumb) { width:96px; max-width:100%; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-user-bubble--attachments .fxm-ai-att-grid:has(>.fxm-ai-att-item--image~.fxm-ai-att-item--image~.fxm-ai-att-item--image) .fxm-ai-att-thumb { height:auto; aspect-ratio:1; }

  /* Process, stop and failure rows retain their original state and hooks. */
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-process,.fxm-ai-reasoning) { margin:0; padding:2px 12px; border:0; border-radius:12px; background:#f6f7f9; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-process-head,.fxm-ai-reasoning-summary) { min-height:44px; gap:8px; padding:8px 0; color:var(--ai-muted); font:400 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-process-steps { gap:8px; padding-bottom:10px; font-size:14px; line-height:1.5; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-process-summary,.fxm-ai-process-items,.fxm-ai-reasoning-body) { font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-inline-error,.fxm-ai-inline-error--stopped,.fxm-ai-stopped) { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; width:100%; padding:12px; border:0; border-radius:12px; background:#f6f7f9; color:var(--ai-muted); font:400 14px/1.55 var(--fxm-ios-font,system-ui,sans-serif); overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-inline-error>span { flex:1 1 100%; min-width:0; align-items:flex-start; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-retry-button,.fxm-ai-login-link) { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:8px 14px; border:0; border-radius:999px; background:#6040c01a; color:#6040c0; font:600 14px/1.5 var(--fxm-ios-font,system-ui,sans-serif); white-space:normal; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-message-controls { flex-wrap:wrap; gap:4px; margin-top:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-message-controls>:is([data-fxm-ai-copy],[data-fxm-ai-feedback]) { width:44px; height:44px; min-width:44px; min-height:44px; padding:10px; border-radius:10px; color:var(--ai-muted); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-message-controls>:is([data-fxm-ai-copy],[data-fxm-ai-feedback])>svg { width:16px; height:16px; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-feedback][aria-pressed='true'] { color:#6040c0; background:#6040c00f; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-message-controls>.fxm-ai-quota { flex:1 1 100%; margin:0; font-size:12px; line-height:1.5; white-space:normal; overflow:visible; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-message-controls>span:last-child { font:400 12px/1.5 var(--fxm-ios-number-font,'FxBarlow',sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-feedback-error { flex:1 1 100%; color:#b45309; font-size:12px; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] :is(button,a,summary,input):focus-visible { outline:2px solid #6040c0; outline-offset:3px; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] :is(button,a) { -webkit-tap-highlight-color:transparent; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] :is(button,a):active { opacity:.72; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] button:disabled { opacity:.6; }

  /* Compatibility blocks and long values keep their full text on phones. */
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-content] p { overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-content]>div>p.whitespace-pre-wrap,
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-content]>p.whitespace-pre-wrap { font-size:16px; line-height:1.65; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] button.group[data-fxm-ai-select] { min-width:0; max-width:100%; }
  main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] button.group[data-fxm-ai-select]>span { min-width:0; max-width:100%; white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-row-head { flex-wrap:wrap; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-tool-row-head>strong { min-width:0; max-width:100%; flex:0 1 auto; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-tool-field-hint,.fxm-ai-tool-tag,.fxm-ai-tool-dist-legend li,.fxm-ai-tool-trend-axis>span) { min-width:0; max-width:100%; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-label { display:flex; align-items:flex-start; gap:4px; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-info { flex:0 0 44px; cursor:pointer; border-radius:50%; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-info[role='button']:focus-visible { outline:2px solid #6040c0; outline-offset:2px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-info[role='button']:active { background:#6040c014; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ai-kpi-info[role='button'] .fxm-ai-kpi-info-pop { display:none!important; }

  main.fxm-ai-page[data-fxm-ai-service-page] :is(.fxm-ai-choice-desc,.fxm-ai-hero-subtitle) { white-space:pre-line; }

  /* LICENSE entities retain official verification and related entity links. */
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license { min-width:0; max-width:100%; padding:14px; border:1px solid #e6e8ed; border-radius:14px; background:#fff; color:var(--ai-ink); font:400 14px/1.55 var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license:not(:first-child) { margin-top:12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license>p { margin:8px 0 0; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; min-width:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__logo { display:flex; flex:0 0 40px; width:40px; height:40px; align-items:center; justify-content:center; overflow:hidden; border:1px solid #e6e8ed; border-radius:8px; background:#fff; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__logo img { width:100%; height:100%; padding:3px; object-fit:contain; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__head>div { flex:1 1 120px; min-width:0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__head small { color:var(--ai-muted); font-size:12px; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__subtitle { margin:3px 0 0; color:var(--ai-muted); font-size:14px; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__links { display:flex; flex-wrap:wrap; gap:0 12px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__title { flex:1 1 120px; min-width:0; margin:0; font-size:16px; font-weight:600; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__status { max-width:100%; padding:3px 8px; border-radius:6px; background:#6040c00f; color:#6040c0; font-size:12px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:12px 0 0; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__facts>div { min-width:0; padding:10px; border-radius:10px; background:#f6f7f9; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__facts dt { margin:0 0 4px; color:var(--ai-muted); font-size:12px; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__facts dd { margin:0; font-size:14px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-license__link { display:inline-flex; align-items:center; gap:6px; min-height:44px; max-width:100%; margin-top:8px; color:#6040c0; font-size:14px; white-space:normal; overflow-wrap:anywhere; }

  /* Explanation sheets are text-only and use the native dialog focus trap. */
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog { position:fixed; inset:auto 0 0; width:100%; max-width:none; min-height:min(32dvh,calc(var(--fxm-ios-visible-height,100dvh) - 24px)); max-height:min(70dvh,calc(var(--fxm-ios-visible-height,100dvh) - 24px)); margin:0; padding:0; overflow:hidden; border:0; border-radius:24px 24px 0 0; background:#fff; color:#1c1c21; box-shadow:0 -8px 32px #1c1c211a; font-family:var(--fxm-ios-font,system-ui,sans-serif); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog[open] { display:flex; flex-direction:column; animation:fxm-ios-ai-kpi-in 180ms cubic-bezier(.2,.8,.2,1); }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog::backdrop { background:#1c1c2159; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog__handle { flex:0 0 5px; width:36px; height:5px; margin:8px auto 0; border-radius:3px; background:#d5d7dd; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog__head { display:flex; flex:0 0 auto; align-items:center; gap:8px; padding:8px 12px 6px 20px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog__title { flex:1; min-width:0; margin:0; font:600 18px/1.45 var(--fxm-ios-font,system-ui,sans-serif); overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog__close { display:flex; flex:0 0 44px; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:#f2f3f5; color:#6b7380; cursor:pointer; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog__close svg { width:18px; height:18px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog__body { min-height:0; margin:0; padding:0 20px max(24px,env(safe-area-inset-bottom,0px)); overflow:auto; overscroll-behavior:contain; font:400 16px/1.65 var(--fxm-ios-font,system-ui,sans-serif); white-space:pre-wrap; overflow-wrap:anywhere; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog :is(button,a):focus-visible { outline:2px solid #6040c0; outline-offset:-3px; }
  main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog button:active { opacity:.7; }
  @keyframes fxm-ios-ai-kpi-in { from { transform:translateY(24px); opacity:0; } to { transform:translateY(0); opacity:1; } }

  /* Tailwind defines font-ui-bold!important in components. Match that layer
   * so the native fixed weight wins without inline styles or desktop changes. */
  @layer components {
    main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] :is(.fxm-ai-hero-name,.fxm-ai-kpi-title,.fxm-ai-choices-title,.fxm-ai-choice-label,.fxm-ai-details-label) { font-weight:600!important; }
    main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] :is(.fxm-ai-kpi-value,.fxm-ai-hero-badge) { font-weight:500!important; }
  }

  @media (prefers-reduced-motion:reduce) {
    main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] *,
    main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] *::before,
    main.fxm-ai-page[data-fxm-ai-service-page] [data-fxm-ai-messages] *::after,
    main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-kpi-dialog { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  }
}
