/* Taxie stays reachable without covering page controls. */
#ai-bubble {
  left: 0 !important;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  width: 42px !important;
  height: 44px !important;
  border-radius: 0 14px 14px 0 !important;
  box-shadow: 0 3px 15px rgba(37,99,235,.28) !important;
  opacity: .78;
  transition: opacity .2s, width .2s, box-shadow .2s !important;
}
#ai-bubble:hover, #ai-bubble:focus-visible {
  opacity: 1;
  width: 52px !important;
  transform: none !important;
}
#ai-bubble svg { width: 22px !important; height: 22px !important; }
#ai-chat {
  left: 8px !important;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  width: min(360px, calc(100vw - 16px)) !important;
  max-height: min(520px, calc(100dvh - 96px)) !important;
}
body:has(#ai-chat.open) #ai-bubble { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #ai-bubble, #ai-chat { animation: none !important; transition: none !important; } }
