/* 🦉 O2 Dashboard · phone rules for EVERY app page (linked by the server with the
   app tags). Zero-specificity :where() so a page's own rules can still refine them. */

@media (max-width: 900px), (pointer: coarse) {
  /* iOS Safari zooms into any field under 16px. !important on purpose: inline and
     component field styles can't be out-ranked one by one. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
  select, textarea { font-size: 16px !important; min-width: 0; }
}

@media (max-width: 820px) {
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), select) { min-height: 44px; }
  :where(button, a.btn, .btn, [role="tab"], [role="button"]):not(.switch):not([role="switch"]):not(.cell) { min-height: 44px; }
  :where(input[type="checkbox"], input[type="radio"]) { width: 22px; height: 22px; }
  /* Toggle switches keep their look but get a fingertip-sized hit area. */
  :where(.switch, [role="switch"]) { position: relative; }
  :where(.switch, [role="switch"])::before { content: ''; position: absolute; inset: -9px -4px; }
  html { -webkit-text-size-adjust: 100%; }
}
