/* WINDETECT v2.2.87: PWA lower canvas correction and drawer swipe-progress reveal.
   Keep the working top fade, rounded border and gesture translation unchanged. */

/* iOS installed standalone PWA can report a dynamic viewport stopping above
   its home-indicator safe area. Extend the CHAT root downward, not the body. */
html:root body #wdSmartCamera.wd-command-mode:not([hidden]){
  top:0!important;
  bottom:auto!important;
  height:calc(100dvh + env(safe-area-inset-bottom,0px) + 24px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
html:root body #wdSmartCamera.wd-command-mode .wd-sc-shell{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
html:root body #wdSmartCamera.wd-command-mode #wdScCommandHome{
  inset:0!important;
  height:100%!important;
  min-height:0!important;
}
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer{
  top:0!important;
  bottom:0!important;
  height:100%!important;
}
/* Keep the input above the iPhone home indicator, not clipped by the extra canvas. */
html:root body #wdSmartCamera.wd-command-mode .wd-command-dock{
  bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;
}
/* Every menu part shares one finger-driven reveal. The drawer panel remains
   stationary behind the moving conversation. */
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer[aria-hidden="false"] :is(
 .wd-sc-drawer-header,.wd-sc-drawer-scroll,.wd-sc-drawer-footer){
  opacity:var(--wd-drawer-reveal-opacity,1)!important;
  filter:brightness(var(--wd-drawer-reveal-brightness,1))
         blur(var(--wd-drawer-reveal-blur,0px))!important;
  transform:translate3d(0,var(--wd-drawer-reveal-rise,0px),0)!important;
  transition:opacity .27s ease,filter .27s ease,transform .3s ease!important;
}
html:root body #wdSmartCamera.wd-command-mode.wd-sc-drawer-preview #wdScDrawer[aria-hidden="false"] :is(
 .wd-sc-drawer-header,.wd-sc-drawer-scroll,.wd-sc-drawer-footer){
  transition:none!important;
}
@media(prefers-reduced-motion:reduce){
 html:root body #wdSmartCamera.wd-command-mode #wdScDrawer[aria-hidden="false"] :is(
  .wd-sc-drawer-header,.wd-sc-drawer-scroll,.wd-sc-drawer-footer){
  opacity:1!important;filter:none!important;transform:none!important;transition:none!important;
 }
}
