/*
 * iOS Safari zooms the viewport when a focused editable control renders below
 * 16px. Keep native pinch zoom available; only raise the control text floor.
 */
input,
textarea,
select,
[contenteditable="true"] {
  /* Protect the floor from component-level typography rules. */
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Keep every mobile surface inside the physical viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.app-shell,
.workspace,
.app-view,
.instance-hub,
.hero,
.new-instance-card,
.saved-instances,
.question-card,
.content-card,
.capture-card,
.map-card,
.technical-card,
.hub-heading,
.hub-heading > *,
.heading-row,
.heading-row > *,
.journey-head,
.journey-head > *,
.capture-tools,
.capture-tools > *,
.dialog-head,
.dialog-head > * {
  min-width: 0;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
label,
span,
strong,
small,
button {
  overflow-wrap: anywhere;
}

@media (max-width: 619px) {
  .hub-heading,
  .heading-row {
    flex-wrap: wrap;
  }

  .hub-heading .quiet,
  .heading-row .quiet {
    white-space: normal;
  }
}
