/* Chat Habib v72 — keep user-to-user conversation and composer visible in the PWA viewport. */
body.peer-chat-active{overflow:hidden!important}
body.peer-chat-active .shell{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
body.peer-chat-active #content.peer-user-page{flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 64px!important;padding:0!important;overflow:hidden!important;display:flex!important}
body.peer-chat-active #content.peer-user-page .peer-pane{flex:1 1 auto!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.peer-chat-active #content.peer-user-page .peer-chat{flex:1 1 auto!important;height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.peer-chat-active #content.peer-user-page .peer-chat-head{flex:0 0 auto!important;position:relative!important;z-index:6}
body.peer-chat-active #content.peer-user-page .peer-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body.peer-chat-active #content.peer-user-page .peer-compose-wrap{display:block!important;visibility:visible!important;opacity:1!important;flex:0 0 auto!important;position:relative!important;inset:auto!important;bottom:auto!important;z-index:12!important;width:100%!important;background:#fff!important;border-top:1px solid #dce6e3!important;padding:8px 10px max(9px,env(safe-area-inset-bottom))!important;box-shadow:0 -5px 18px rgba(15,35,29,.08)}
body.peer-chat-active #content.peer-user-page .peer-compose{display:flex!important;align-items:flex-end!important;gap:8px!important;width:100%!important}
body.peer-chat-active #content.peer-user-page #peerMsg{display:block!important;visibility:visible!important;opacity:1!important;min-width:0!important;flex:1 1 auto!important;min-height:46px!important;font-size:18px!important;line-height:1.35!important;background:#fff!important}
body.peer-chat-active #content.peer-user-page #peerAttach,body.peer-chat-active #content.peer-user-page #peerSend{display:flex!important;visibility:visible!important;opacity:1!important;flex:0 0 48px!important;width:48px!important;height:48px!important;align-items:center!important;justify-content:center!important}
body.peer-chat-active #content.peer-user-page #peerSend{background:#147a73!important;color:#fff!important}
body.peer-chat-active #content.peer-user-page #peerSendStatus:empty{display:none!important}
@media(max-width:520px){
  body.peer-chat-active #content.peer-user-page{margin-bottom:64px!important}
  body.peer-chat-active #content.peer-user-page .peer-chat-head{min-height:60px!important}
  body.peer-chat-active #content.peer-user-page .peer-compose-wrap{padding-left:8px!important;padding-right:8px!important}
  body.peer-chat-active #content.peer-user-page #peerMsg{font-size:18px!important}
}
@supports(height:100svh){
  @media(max-width:720px){body.peer-chat-active .shell{height:100svh!important;min-height:100svh!important}}
}
