/* Mobile keyboard fix for chat (app_chatkb.js, Yannis t87u) */
@media (max-width: 900px) {
  body.chat-page #main { padding-bottom: 0; }
  body.chat-page { overscroll-behavior-y: none; }
  body.chat-page .chat { min-height: 0; }              /* height comes from app_chatkb.js (visual viewport) */
  .chcomp textarea, .chtools select { font-size: 16px; }   /* <16px makes iOS Safari zoom in on focus */
  .chcomp { padding-bottom: max(8px, env(safe-area-inset-bottom)); background: var(--card); }
  body.kb-open .chcomp { padding-bottom: 8px; }
  body.kb-open #chatFab, body.kb-open .asst-sug { display: none !important; }
  body.kb-open .chhead .muted.small { display: none; }  /* more room for messages while typing */
}
