/* V122: mobile navigation scroll isolation and almost-full-screen assistant. */
@media (max-width: 1100px) {
  html:has(body.mobile-menu-open-v122) { overscroll-behavior: none; }
  body.mobile-menu-open-v122 { overscroll-behavior: none; }
  body.mobile-menu-open-v122 .main-nav.active {
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 700px) {
  .tech-assistant.is-open-v122 {
    position: fixed;
    inset: 0;
    z-index: 2800;
    pointer-events: auto;
  }
  .tech-assistant.is-open-v122::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(1, 11, 14, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: chatBackdropEnterV122 .3s ease both;
  }
  .tech-assistant.is-open-v122 .tech-chat-panel {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    right: 8px;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 20px;
    z-index: 1;
    animation: chatPanelEnterV122 .34s cubic-bezier(.2,.82,.25,1) both;
    box-shadow: 0 28px 76px rgba(0,0,0,.55), 0 0 26px rgba(138,223,172,.10);
  }
  .tech-assistant.is-open-v122 .tech-chat-head {
    padding-top: 18px;
    padding-bottom: 17px;
  }
  .tech-assistant.is-open-v122 .tech-chat-content {
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .tech-assistant.is-open-v122 .tech-chat-bottom {
    flex-shrink: 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
  .tech-assistant.is-open-v122 .tech-chat-quick { flex-shrink: 0; }
}
@keyframes chatPanelEnterV122 {
  from { opacity: 0; transform: translateY(24px) scale(.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chatBackdropEnterV122 {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-assistant.is-open-v122::before,
  .tech-assistant.is-open-v122 .tech-chat-panel { animation: none !important; }
}
