/* Native attachment chooser; the desktop controller and controls are unchanged. */
.fxm-ios-ai-attachment-panel { display: none; }
@media (max-width: 767.98px) {
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-panel {
    display: grid;
    grid-template-columns: repeat(var(--fxm-ios-ai-attachment-columns, 3), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 10px 0 0;
    padding: 0;
    box-sizing: border-box;
  }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-panel[hidden],
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile[hidden] { display: none !important; }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 96px;
    margin: 0;
    padding: 16px 8px;
    border: 1px solid rgb(96 64 192 / 6%);
    border-radius: 16px;
    background: rgb(96 64 192 / 8%);
    color: var(--fxm-ios-ink, #1c1c21);
    font-family: var(--fxm-ios-font, -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
    cursor: pointer;
    transition: transform 120ms ease, opacity 120ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile__icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    color: var(--fxm-ios-brand, #6040c0);
  }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile__icon svg { display: block; width: 22px; height: 22px; }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile:active { transform: scale(.96); opacity: .8; }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile:focus-visible { outline: 2px solid var(--fxm-ios-brand, #6040c0); outline-offset: 2px; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile { transition: none; }
  body.fxm-ios-ai main.fxm-ai-page[data-fxm-ai-service-page] .fxm-ios-ai-attachment-tile:active { transform: none; }
}
