/* AquaFlow V34.2.41 — Chat bottom edge + iPhone safe-area fix.
   The outer chat shell must reach the physical viewport edge. Safe-area space
   belongs inside the composer, so its white surface extends behind the Home
   Indicator instead of leaving a grey/white strip below the input bar. */
#internal-chat .af-chat-shell,
#internal-chat[data-keyboard-open] .af-chat-shell{
  padding-bottom:0!important;
}
@media(display-mode:standalone){
  #internal-chat .af-chat-shell{padding-bottom:0!important}
}
#internal-chat #chat-form{
  margin-bottom:0!important;
  border-radius:0!important;
}
#internal-chat[data-composer-ui="v303"] #chat-form{
  padding-bottom:max(5px,env(safe-area-inset-bottom,0px))!important;
}
/* The native keyboard already occupies the bottom safe area while visible.
   Keep only the compact composer breathing room so no extra strip appears. */
#internal-chat[data-composer-ui="v303"][data-keyboard-open] #chat-form{
  padding-bottom:4px!important;
}
/* Emoji mode is app-owned, so keep its safe area inside the white composer. */
#internal-chat[data-composer-ui="v303"][data-emoji-open]:not([data-keyboard-open]) #chat-form{
  padding-bottom:max(5px,env(safe-area-inset-bottom,0px))!important;
}
