/* BCC Cloud App Production — iOS/PWA touch behaviour refinement (2026-11-14).
   Scope: touch-capable devices. Preserve desktop text selection and all input editing.
   Do not add touchstart/touchend preventDefault; POS-style click and scrolling must work. */
@media (hover: none), (any-pointer: coarse) {
  body,
  body :where(*) {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  /* Text fields and explicitly copyable content remain selectable/editable. */
  body :where(input, textarea, select, option,
              [contenteditable], [contenteditable] *,
              [data-bcc-selectable], [data-bcc-selectable] *) {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
  }

  /* Suppress image-hold menu / image dragging without disabling clicks. */
  body :where(img, picture, svg, canvas, video) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
  }
}
