/* "Add post" in a panel: the post form fills the space beside the menu and scrolls by itself, so its pop-ups
   (payment, add balance) stay in view. */
body[data-frame] .pn-main{padding:0;min-width:0}
body[data-frame] .pn-wrap{max-width:none}
body[data-frame] .pn-foot{display:none}
body[data-frame] .note{margin:16px}
#postframe{display:block;width:100%;border:0;height:calc(100vh - 56px);height:calc(100dvh - 56px)}
body[data-frame].ml-inside #postframe{height:calc(100vh - 56px - var(--ml-inside-h));height:calc(100dvh - 56px - var(--ml-inside-h))}
/* user panel on a phone: the form fills the screen between the header and the bottom bar */
@media(max-width:699.98px){
  body.has-tabbar[data-frame="user"]{padding-bottom:calc(61px + env(safe-area-inset-bottom,0px))}
  body.has-tabbar[data-frame="user"] #postframe{height:calc(100vh - 117px);height:calc(100dvh - 117px - env(safe-area-inset-bottom,0px))}
  body.has-tabbar[data-frame="user"].ml-inside #postframe{height:calc(100vh - 117px - var(--ml-inside-h));height:calc(100dvh - 117px - var(--ml-inside-h) - env(safe-area-inset-bottom,0px))}
  body.has-tabbar[data-frame="user"].typing{padding-bottom:0}
  body.has-tabbar[data-frame="user"].typing .pn-tabbar{display:none}
  body.has-tabbar[data-frame="user"].typing #postframe{height:calc(100vh - 56px);height:calc(100dvh - 56px)}
  body.has-tabbar[data-frame="user"].typing.ml-inside #postframe{height:calc(100vh - 56px - var(--ml-inside-h));height:calc(100dvh - 56px - var(--ml-inside-h))}
}
