/* Touch screens: every control gets at least a 44px hit area. Mouse layouts keep their compact sizes. */
@media (pointer: coarse) {
  .icon-btn.el-button, .tool-icon.el-button, .row-actions .el-button { width: 44px; height: 44px; }
  .text-btn.el-button, .header .text-btn.el-button { height: 44px; }
  .user-chip { height: 44px; }
  /* Card-head icons stay 32px so they fit the header; the invisible pad brings the hit area to 44px. */
  .dd-card-head .head-icon.el-button { width: 32px; height: 32px; margin: -4px 0; position: relative; }
  .dd-card-head .head-icon.el-button::after { content: ""; position: absolute; inset: -6px; }
  .mt-head-tools { gap: 12px; }

  /* Pills and inline text links keep their visual size; an invisible pad extends the hit area. */
  .live-pill, .mode-pill, .el-button.is-link { position: relative; }
  .live-pill::after, .el-button.is-link::after { content: ""; position: absolute; inset: -8px -4px; }
  .mode-pill::after { content: ""; position: absolute; inset: -6px; }

  /* iOS Safari zooms into any focused field under 16px and keeps the page zoomed afterwards. */
  :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]) { font-size: 16px; }
}
