/* PULS mobile ergonomics: iOS Safari and Android Chrome. Desktop untouched. */
@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body, #app { max-width: 100%; }
  body { overflow-x: clip; overscroll-behavior-x: none; }
  #app, .wrap, main, section, article { min-width: 0; }
  img, video, canvas, svg { max-width: 100%; }
  img, video { height: auto; }
  :is(.modal,.dd,.user-dd,.m-pop,.emo-panel) { max-width: calc(100vw - 24px); }
  :is(.modal,.dd,.user-dd,.m-pop,.emo-panel) { max-width: calc(100dvw - 24px); }
  :is(.m-text,.fp-text,.cp-text,.cc-t,.cmt-text,.pf-bio-h) { overflow-wrap: anywhere; }
  :is(input,textarea,select) { font-size: 16px; }
  :is(input,textarea) { min-width: 0; }
  :is(button,[role="button"],a,input,textarea,select) { touch-action: manipulation; }
  .wrap { padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
  .pf, .pf .pf-grid, .pf .pf-main, .pf .pf-side { min-width: 0; max-width: 100%; }
  .pf .pf-head { min-width: 0; }
  .pf .pf-name { overflow-wrap: anywhere; }
  .pf .pf-actions { max-width: 100%; }
  :is(.fpost,.side-card,.pf-card) { max-width: 100%; min-width: 0; }
  :is(.m-text,.fp-text,.cp-text,.cc-t,.cmt-text) img { max-width: 100%; height: auto; }
  :is(.m-text,.fp-text,.cp-text,.cc-t,.cmt-text) pre { max-width: 100%; overflow-x: auto; }
  :is(.m-text,.fp-text,.cp-text,.cc-t,.cmt-text) a { overflow-wrap: anywhere; }
  .tabbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 380px) {
  .pf .pf-head { gap: 10px; }
  .pf .pf-name { font-size: clamp(20px, 6vw, 26px); }
}
@media (hover: none) and (pointer: coarse) {
  :is(button,[role="button"],a) { -webkit-tap-highlight-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
