@media (max-width: 767px) {
  main,
  main > div,
  main section,
  main form,
  main .grid > *,
  main .flex > * {
    box-sizing: border-box;
    min-width: 0;
  }

  main input:not([type="checkbox"]):not([type="radio"]),
  main select,
  main textarea,
  .fixed.inset-0 input:not([type="checkbox"]):not([type="radio"]),
  .fixed.inset-0 select,
  .fixed.inset-0 textarea {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  main label:not([class*="flex"]) > input:not([type="checkbox"]):not([type="radio"]),
  main label:not([class*="flex"]) > select,
  main label:not([class*="flex"]) > textarea {
    display: block;
    width: 100%;
  }

  main .overflow-x-auto {
    max-width: 100%;
  }

  .fixed.inset-0 form {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .fixed.inset-0 form .grid > * {
    min-width: 0;
  }

  .fixed.inset-0 form label:not([class*="flex"]) {
    display: block;
    min-width: 0;
  }

  .fixed.inset-0 form label:not([class*="flex"]) > input:not([type="checkbox"]):not([type="radio"]),
  .fixed.inset-0 form label:not([class*="flex"]) > select,
  .fixed.inset-0 form label:not([class*="flex"]) > textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .fixed.inset-0 form input[type="file"] {
    min-width: 0;
    max-width: 100%;
  }

  .fixed.inset-0 form .flex > * {
    min-width: 0;
  }
}
