/* Public forms and document previews share the same mobile affordances. */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 0; }
img { max-width: 100%; height: auto; }
input, select, textarea { min-width: 0; max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
@media screen and (max-width: 991.98px) {
    body { min-height: 100svh; }
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea,
    .field input { font-size: 16px; }
    button, .submit, .send, .btn { min-height: 44px; }
    .form-side { min-height: 100svh; padding-top: max(28px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
    .form-wrap, .box, .card { min-width: 0; overflow-wrap: anywhere; }
    .box { margin-block: 1rem; }
    .help-link, .back, .register a { min-height: 44px; display: inline-flex; align-items: center; }
    .back { justify-content: center; display: flex; }
    .remember { min-height: 44px; }
    .remember input { min-width: 20px; min-height: 20px; }
    .form-options { flex-wrap: wrap; gap: .5rem; }
    .logo-box { min-width: 0; max-width: 100%; }
    .sheet, .toolbar { box-sizing: border-box; max-width: 100%; overflow-wrap: anywhere; }
    .toolbar { display: flex; flex-wrap: wrap; gap: .5rem; padding-inline: max(.75rem, env(safe-area-inset-left)); }
    .sheet { margin: .75rem; padding: 1rem; }
    .sheet table { table-layout: fixed; }
    .sheet :is(th,td) { width: auto !important; padding: .4rem; overflow-wrap: anywhere; }
    .signatures { flex-wrap: wrap; gap: 1rem; }
    .signatures > div { flex: 1 1 120px; min-width: 0; }
}
@media screen and (max-width: 359.98px) {
    .box { padding: 24px 18px; }
    .form-side { padding-inline: max(16px, env(safe-area-inset-left)); }
    .form-heading h2 { font-size: 26px; }
}
