/* v2.2.94 - ONLY the moving chat page lower-left corner and the
   left drawer's new-chat button. This overrides the excess safe-area
   height from v2.2.93; no swipe, scroll, or routing changes. */

/* The actual PWA viewport is already the visible viewport (844px in the
   reported diagnostic). The previous v2.2.93 rule adds a second safe-area,
   placing the rounded lower edge and drawer footer off-screen. */
@media (display-mode: standalone) {
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"]:not([hidden]) {
  height:var(--wd-pwa-chat-height,100dvh)!important;
  min-height:0!important;
  max-height:none!important;
 }
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] .wd-sc-shell {
  top:0!important;
  bottom:auto!important;
  height:calc(100% - env(safe-area-inset-bottom,0px) - 4px)!important;
  min-height:0!important;
 }
 html:root body #wdSmartCamera.wd-command-mode[data-wd-pwa-standalone="1"] #wdScDrawer {
  top:0!important;
  bottom:auto!important;
  height:calc(100% - env(safe-area-inset-bottom,0px) - 4px)!important;
  min-height:0!important;
 }
}
/* Consistent roundness at BOTH left-side corners when the page is moved.
   The radius belongs to the moving shell, not its scroll contents. */
html:root body #wdSmartCamera.wd-command-mode.wd-sc-drawer-open .wd-sc-shell,
html:root body #wdSmartCamera.wd-command-mode .wd-sc-shell.wd-finger-dragging {
 border-radius:56px 0 0 56px!important;
 overflow:hidden!important;
}
/* Place the new-chat icon wholly ABOVE the bottom edge without allowing
   the menu scroll area to cover it. Keep its shape and existing handlers. */
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer {
 display:flex!important;
 flex-direction:column!important;
}
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer .wd-sc-drawer-scroll {
 flex:1 1 auto!important;
 min-height:0!important;
 overflow-y:auto!important;
}
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer .wd-sc-drawer-footer {
 flex:0 0 auto!important;
 min-height:72px!important;
 margin-bottom:8px!important;
 padding:10px 0 10px!important;
 box-sizing:border-box!important;
}
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer #wdScDrawerNewChat {
 min-width:44px!important;
 min-height:44px!important;
 visibility:visible!important;
}
