/* V1.1.213: one edit confirmation symbol and iOS visual-viewport cleanup. */
#member-app #send-form.tg-is-editing #send-button::before,
#member-app #send-form.tg-is-editing #send-button::after{content:none!important;display:none!important}
#member-app #send-form.tg-is-editing #send-button{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:0!important;font-size:0!important;line-height:1!important;
  background:#287fe1!important;color:#fff!important;
  padding:0!important;box-shadow:none!important;overflow:hidden!important;
}
#member-app #send-form.tg-is-editing #send-button svg{
  display:block!important;flex:none!important;width:27px!important;height:27px!important;
  fill:none!important;stroke:currentColor!important;stroke-width:2.5!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
}
@media(max-width:760px){
  /* The visual viewport controller, not the separate non-chat height controller,
     owns the keyboard-sized in-chat root. Never apply both root heights. */
  body.in-chat #member-app.app:not(.hidden){
    height:var(--chat-vv-height,100dvh)!important;
    max-height:var(--chat-vv-height,100dvh)!important;
    min-height:0!important;
  }
  body.in-chat #member-app .compose.tg-editing-active{
    isolation:isolate!important;box-sizing:border-box!important;
    background:#f7f6fd!important;backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;transform:translateZ(0);
  }
  /* When the OS keyboard occupies the bottom safe area, do not reserve the
     bottom inset twice; the compose background terminates at visible bottom. */
  body.in-chat.keyboard-open #member-app .compose.tg-editing-active{
    padding-bottom:6px!important;
  }
  body.in-chat.tg-editing-in-progress .tg-message-layer{display:none!important}
}
