/* ADOS4LIFE responsive safety layer.
   Keep this file small: it patches mobile/tablet behavior without touching backend or deployment. */

html {
  -webkit-text-size-adjust: 100%;
}

html,
body,
#root {
  min-width: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  .a4l-mobile-fullscreen-modal {
    border-radius: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}
