/* ── Phone & touch polish shared by every tool page ──
   Loaded after each tool's own styles. Anything specific to one tool's
   layout lives in that tool's own stylesheet. */
@media (max-width: 768px), (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  a, button, label, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* iOS zooms the whole page when focusing a field under 16px. */
  input:not([type=range], [type=color], [type=checkbox], [type=radio], [type=file], [type=hidden]),
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
  }

  /* Finger-sized controls. */
  button:not(.sw),
  [role=button],
  .back,
  .back-home-btn,
  .btn-icon,
  .studio-link,
  .qr-back {
    min-height: 44px;
  }
  .back, .back-home-btn, .btn-icon, .studio-link, .qr-back {
    display: inline-flex;
    align-items: center;
  }
  button:not(.sw) { min-width: 44px; }
  .af-back, body > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .credit-line a, .credit-cell a, .af-card-footer a { position: relative; }
  .credit-line a::after, .credit-cell a::after, .af-card-footer a::after {
    content: '';
    position: absolute;
    inset: -15px -8px;
  }
  button.sw { min-width: 36px; min-height: 36px; }
  input[type=range] { min-height: 44px; }
  input[type=checkbox], input[type=radio] { min-width: 20px; min-height: 20px; }
  input[type=color] { min-width: 44px; min-height: 44px; }
}
