/* V109 — keep the expanded XiaoWen model anchored to the viewport floor and clear of last-page content. */
@media (min-width: 621px) {
  html:not(.react-student-embedded) body
    #companionAvatarDock.companion-avatar-dock[data-launcher-mode="full"] {
    bottom: calc(-4px + env(safe-area-inset-bottom)) !important;
  }

  html:not(.react-student-embedded) body:has(
    #companionAvatarDock[data-launcher-mode="full"]
  ) .main.main {
    padding-bottom: max(148px, calc(104px + env(safe-area-inset-bottom))) !important;
  }
}

@media (max-width: 620px) {
  html:not(.react-student-embedded) body
    #companionAvatarDock.companion-avatar-dock.companion-avatar-panel-open[data-launcher-mode="full"] {
    bottom: calc(-2px + env(safe-area-inset-bottom)) !important;
  }

  html:not(.react-student-embedded) body:has(
    #companionAvatarDock[data-launcher-mode="full"]
  ) .main.main {
    padding-bottom: max(108px, calc(76px + env(safe-area-inset-bottom))) !important;
  }
}
