/* iOS PWA safe areas (notch, Dynamic Island, home indicator) */
.safe-area-insets {
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

/* Native-like mobile app behavior */
html {
  height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
#root {
  height: 100%;
  overscroll-behavior: none;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}

img,
a {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Keep text selection inside editable fields */
input,
textarea,
select,
[contenteditable='true'] {
  user-select: text;
  -webkit-user-select: text;
  touch-action: manipulation;
}
