/* Payam Mehr - touch-target & UX fixes (from automated mobile audit) v1 */
@media (pointer:coarse){
  /* composer: Telegram-size buttons */
  #textSendBtn,#emojiBtn,#voiceBtn{min-width:44px!important;min-height:44px!important}
  body #sendForm #textSendBtn,body.premium-ui #sendForm #textSendBtn{width:44px!important;height:44px!important;max-width:none!important;max-height:none!important;flex:0 0 44px!important}
  /* header/sidebar small controls: enlarge hit area */
  #logout,#themeToggle,#notificationBtn{min-height:44px!important;min-width:44px!important}
  /* chat title (opens info) */
  .chat-title-stack{min-height:44px;display:flex!important;flex-direction:column;justify-content:center}
  /* sender avatar: invisible larger hit area */
  button.message-sender-avatar{position:relative}
  button.message-sender-avatar::after{content:"";position:absolute;inset:-10px}
  /* "download file" link inside media cards */
  .message-media-preview figcaption a,.msg figcaption a{display:inline-block;padding:12px 10px;margin:-12px -10px;position:relative}
  /* file attachments: whole card is the target */
  .msg a.filebox{display:block;min-height:44px;box-sizing:border-box}
}
