/* WINDETECT v2.2.93 — iPhone standalone chat bottom only.
   The measured WebKit viewport is 844px; physical screen is 912px.
   Compensate only for the iOS bottom safe-area, never physical screen.height.
   Do not change the chat swipe, top fade, vehicle routing or general ERP pages. */
@media (display-mode: standalone) {
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"]:not([hidden]){
  top:0!important;
  bottom:auto!important;
  /* WebKit layout height + one safe-area, instead of historical 24/64/132px guesses. */
  height:calc(var(--wd-pwa-chat-height,100dvh) + env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
 }
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] .wd-sc-shell,
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] #wdScDrawer {
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  height:100%!important;
  min-height:0!important;
 }
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] #wdScCommandHome{
  top:0!important;bottom:0!important;height:100%!important;
 }
 /* The composer remains inside the *measured* usable viewport.  Its blank
    gradient may continue into the safe-area but the form itself must not. */
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] .wd-command-dock{
  bottom:env(safe-area-inset-bottom,0px)!important;
  padding-bottom:12px!important;
 }
 /* The drawer footer is above the system gesture indicator, not clipped. */
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] #wdScDrawer .wd-sc-drawer-footer{
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
 }
}
