/* Shared touch targets and viewport fallbacks; real-device keyboard testing remains separate. */
.language-switcher a,.reference-header .language-switcher a{min-width:44px;min-height:44px;font-size:.875rem;box-sizing:border-box}
.language-status{font-size:.875rem}
@media(max-width:640px){
  .admin-top-actions .small-text{min-width:44px;min-height:44px;padding:8px 0;font-size:.875rem;display:inline-flex;align-items:center;box-sizing:border-box}
  .language-switcher a,.reference-header .language-switcher a{min-width:44px;min-height:44px;padding:8px;font-size:.875rem}
  dialog .dialog-close,dialog .dialog-close.inline{min-width:44px;min-height:44px;width:44px;height:44px;flex:0 0 44px;box-sizing:border-box}
  .security-dialog input,.security-dialog select,.security-dialog textarea,.security-challenge-dialog input,.security-challenge-dialog select,.security-challenge-dialog textarea,.registration-dialog input,.registration-dialog select,.registration-dialog textarea{font-size:1rem}
  .security-dialog,.security-challenge-dialog,.registration-dialog{max-width:calc(100vw - 24px);overflow-x:hidden}
  .security-dialog .form-grid,.security-challenge-dialog .form-grid{min-width:0}
  .security-dialog input,.security-dialog select,.security-dialog textarea,.security-challenge-dialog input,.security-challenge-dialog select,.security-challenge-dialog textarea{min-width:0;max-width:100%;box-sizing:border-box}
  .item-dialog input:not([type=checkbox],[type=radio],[type=file],[type=hidden]),.item-dialog select,.item-dialog textarea,.checklist-intake-dialog input:not([type=checkbox],[type=radio],[type=file],[type=hidden]),.checklist-intake-dialog select,.checklist-intake-dialog textarea,.manufacturer-browser-dialog input:not([type=checkbox],[type=radio],[type=file],[type=hidden]),.manufacturer-browser-dialog select,.manufacturer-browser-dialog textarea{font-size:1rem;min-height:44px;min-width:0;max-width:100%;box-sizing:border-box}
  .item-dialog input[type=file]{font-size:1rem;min-height:44px;min-width:0;max-width:100%;box-sizing:border-box}
  .item-dialog .checkbox-label{min-height:44px}
  .item-dialog,.checklist-dialog,.checklist-intake-dialog,.manufacturer-browser-dialog{max-width:calc(100vw - 24px);overflow-x:hidden}
  .item-dialog .form-grid{min-width:0}
  .manufacturer-browser-dialog .manufacturer-field,.manufacturer-browser-dialog .manufacturer-row-heading>.manufacturer-field,.manufacturer-browser-dialog .manufacturer-toggle,.manufacturer-browser-dialog .manufacturer-card-select strong,.manufacturer-browser-dialog .manufacturer-card-select small,.checklist-intake-form label,.checklist-intake-row-heading,.checklist-named-grid .checklist-player{font-size:.875rem;line-height:1.5}
  .manufacturer-preview-row strong,.manufacturer-preview-row small{font-size:.875rem;line-height:1.5}
  .manufacturer-toggle,.manufacturer-common summary,.checklist-missing summary,.checklist-exclusions summary{min-height:44px}
  .manufacturer-common summary,.checklist-missing summary,.checklist-exclusions summary{display:flex;align-items:center}
  @supports(height:100dvh){.item-dialog,.checklist-dialog,.checklist-intake-dialog,.manufacturer-browser-dialog{max-height:calc(100dvh - 24px)}}
  @supports(padding-bottom:env(safe-area-inset-bottom)){.item-dialog,.checklist-dialog,.checklist-intake-dialog,.manufacturer-browser-dialog{padding-bottom:max(24px,env(safe-area-inset-bottom))}}
}
@supports(height:100dvh){
  .offer-contact-dialog,.community-safety-dialog{max-height:88dvh}
  .security-dialog,.security-challenge-dialog,.registration-dialog,.collection-dialog{max-height:calc(100dvh - 24px)}
}
@supports(padding-bottom:env(safe-area-inset-bottom)){
  .offer-contact-dialog,.community-safety-dialog,.security-dialog,.security-challenge-dialog,.registration-dialog{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
