/* V102 Phase A post-lock UI hotfix 2 — persistent, viewport-safe Nova Overlay. */
html body.nova-overlay-enabled #novaPresence.nova-presence{
  position:fixed!important;
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(18px,env(safe-area-inset-bottom))!important;
  left:auto!important;
  top:auto!important;
  width:auto!important;
  max-width:calc(100vw - 24px)!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column-reverse!important;
  align-items:flex-end!important;
  gap:10px!important;
  overflow:visible!important;
  z-index:2147483646!important;
  pointer-events:none!important;
}
html body.nova-overlay-enabled #novaPresence.nova-presence #novaPeek.nova-peek:not([hidden]){
  position:relative!important;
  inset:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:min(300px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
  margin:0!important;
  transform:none!important;
  pointer-events:auto!important;
}
html body.nova-overlay-enabled #novaAssistOverlay.nova-assist-overlay:not([hidden]){
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  pointer-events:none!important;
  z-index:2147483647!important;
}
html body.nova-overlay-enabled #novaAssistOverlay .nova-assist-card{
  position:fixed!important;
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(18px,env(safe-area-inset-bottom))!important;
  top:auto!important;
  left:auto!important;
  width:min(410px,calc(100vw - 36px))!important;
  height:min(720px,calc(100dvh - 36px))!important;
  max-width:calc(100vw - 36px)!important;
  max-height:calc(100dvh - 36px)!important;
  pointer-events:auto!important;
}
@media(max-width:700px){
  html body.nova-overlay-enabled #novaPresence.nova-presence{
    right:max(12px,env(safe-area-inset-right))!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
  }
  html body.nova-overlay-enabled #novaPresence.nova-presence #novaPeek.nova-peek:not([hidden]){
    width:min(280px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
  }
  html body.nova-overlay-enabled #novaAssistOverlay .nova-assist-card{
    right:max(10px,env(safe-area-inset-right))!important;
    left:max(10px,env(safe-area-inset-left))!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    top:max(10px,env(safe-area-inset-top))!important;
    width:auto!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    border-radius:22px!important;
  }
}


/* Hotfix 9 — OFF means no web-overlay surfaces remain visible. */
html body:not(.nova-overlay-enabled) #novaPresence.nova-presence,
html body:not(.nova-overlay-enabled) #novaPresence.nova-presence #novaOrb.nova-orb,
html body:not(.nova-overlay-enabled) #novaPresence.nova-presence #novaPeek.nova-peek,
html body:not(.nova-overlay-enabled) #novaAssistOverlay.nova-assist-overlay {
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
