/* Shared mobile usability and interaction safeguards */
:root { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-padding-top: 5rem; }
body { min-width: 320px; }
textarea, input:not([type="checkbox"]):not([type="radio"]), select, button { max-width: 100%; }
textarea, pre, code, [contenteditable="true"] { overflow-wrap: anywhere; }
textarea { resize: vertical; min-height: 8rem; line-height: 1.5; tab-size: 2; }
pre { max-width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
input, textarea, select, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent, #4568f5); outline-offset: 2px; }
@media (max-width: 640px) {
  textarea[data-json-input], textarea[data-code-input], textarea[data-minifier-input], .code-editor textarea {
    width: 100%; min-height: 45vh; max-height: 65vh; font-size: 16px; line-height: 1.55;
    padding: .875rem; overflow: auto; white-space: pre; overflow-wrap: normal; overscroll-behavior: contain;
  }
  .grid { min-width: 0; }
  .vc-card, main, section { min-width: 0; }
  button, [role="button"], input[type="file"] + label { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
