/* WINDETECT v2.2.88: iPhone standalone PWA canvas from actual screen geometry,
   and deterministic menu reveal. Existing gestures and scroll logic are unchanged. */
html:root body #wdSmartCamera.wd-command-mode:not([hidden]){
 top:0!important;bottom:auto!important;
 height:var(--wd-pwa-chat-height,100dvh)!important;
 min-height:0!important;max-height:none!important;
}
html:root body #wdSmartCamera.wd-command-mode .wd-sc-shell,
html:root body #wdSmartCamera.wd-command-mode #wdScCommandHome{
 top:0!important;bottom:0!important;height:100%!important;min-height:0!important;
}
/* The dock follows the screen and remains clear of the home indicator. */
html:root body #wdSmartCamera.wd-command-mode .wd-command-dock{
 bottom:0!important;
 padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
}
/* Do not blur a raster logo. Scale it to the same visual weight as other items. */
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer .wd-sc-drawer-header{
 opacity:1!important;filter:none!important;transform:none!important;transition:none!important;
}
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer .wd-sc-drawer-header img{
 display:block;width:min(178px,52vw)!important;max-width:100%;height:auto!important;
 mix-blend-mode:multiply;
}
/* Blur on the whole menu makes the logo and text look pasted and produces
   inconsistent rasterization during swipe; use opacity + gentle upward motion. */
html:root body #wdSmartCamera.wd-command-mode #wdScDrawer[aria-hidden="false"] :is(.wd-sc-drawer-scroll,.wd-sc-drawer-footer){
 opacity:var(--wd-drawer-reveal-opacity,1)!important;
 filter:none!important;
 transform:translate3d(0,var(--wd-drawer-reveal-rise,0px),0)!important;
 transition:opacity .22s linear,transform .26s cubic-bezier(.22,.72,.25,1)!important;
}
html:root body #wdSmartCamera.wd-command-mode.wd-sc-drawer-preview #wdScDrawer[aria-hidden="false"] :is(.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-scroll,.wd-sc-drawer-footer){
  opacity:1!important;transform:none!important;transition:none!important;
 }
}
