/* SN7 CORE — ajustes fluidos e seguros para Android/TWA/PWA. */
html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: max(12px, env(safe-area-inset-top));
  scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom));
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}
.layout {
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
}
main, section, article, .panel, .card {
  min-width: 0;
}
img, video, canvas, svg {
  max-width: 100%;
}
button, [role="button"], a {
  touch-action: manipulation;
}
input, textarea, select {
  max-width: 100%;
  font-size: max(16px, 1em);
}
@media (max-width: 700px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .layout, main {
    width: 100%;
    max-width: 100%;
  }
  .sn7-boot-loader {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .sn7-config-modal,
  .sn7-store-modal,
  .sn7-command-modal {
    max-height: 100vh;
    max-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
