/* Polacy Preston / mobile & fold UX polish, 25 Oct 2026.
   Compact edge dock keeps controls OUT of the centre's buttons and advertising banners. */
@media (max-width: 1199px) and (pointer: coarse), (max-width: 900px) {
  body:not(.pp-chat-standalone) #pp-assist-root {
    position:fixed!important;right:0!important;left:auto!important;
    top:calc(42dvh + 54px)!important; bottom:auto!important;
    width:46px!important;height:46px!important;z-index:99998!important;
    margin:0!important; pointer-events:none!important;
  }
  body:not(.pp-chat-standalone) #pp-assist-root #pp-assist-fab {
    width:46px!important; min-width:46px!important; max-width:46px!important;
    height:46px!important; min-height:46px!important;
    padding:0!important;border:1px solid rgba(255,255,255,.45)!important;
    border-right:0!important;border-radius:15px 0 0 15px!important;
    background:linear-gradient(140deg,#123957,#0c5987)!important;
    box-shadow:-3px 3px 13px rgba(4,18,37,.20)!important;
    font-size:18px!important;pointer-events:auto!important;
  }
  body:not(.pp-chat-standalone) #pp-assist-root .pp-assist-label {display:none!important}
  body:not(.pp-chat-standalone) #pp-assist-root #pp-assist-panel:not([hidden]) {
    position:fixed!important;inset:auto 12px calc(15px + env(safe-area-inset-bottom,0px)) 12px!important;
    width:auto!important; max-width:620px!important;height:min(70dvh,600px)!important;
    margin:0 auto!important; max-height:calc(100dvh - 40px)!important;
    border-radius:20px!important;
  }
}
@media(max-width:620px){
  body:not(.pp-chat-standalone) #pp-assist-root #pp-assist-panel:not([hidden]){
    bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
    height:min(64dvh,570px)!important;max-height:calc(100dvh - 120px)!important;
  }
}
@media(max-height:570px){body:not(.pp-chat-standalone) #pp-assist-root #pp-assist-panel:not([hidden]){
    height:calc(100dvh - 95px)!important;max-height:none!important;
  }
}
/* Keep a breathing space for any bottom tabs; touch targets remain >=44px. */
@media (max-width:620px){.pp-social-footer{padding-bottom:max(116px,calc(95px + env(safe-area-inset-bottom,0px)))!important}}
