/* Unified BlueQbit robot controls on every page.
   These important declarations override legacy page-specific positions and inline styles. */
:root { --blueai-top: calc(env(safe-area-inset-top, 0px) + 12px); }
#chat-toggle,
#toggle-robot-button {
  position: fixed !important;
  top: var(--blueai-top) !important;
  bottom: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: 48px !important;
  max-width: calc(50vw - 18px) !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(96, 197, 255, .55) !important;
  border-radius: 9px !important;
  background: #075592 !important;
  color: #b7ff70 !important;
  box-shadow: 0 4px 18px rgba(0, 65, 200, .32);
  font: 600 14px/1.2 Arial, sans-serif !important;
  text-align: center !important;
  white-space: normal !important;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 2001 !important;
}
#chat-toggle {
  left: calc(env(safe-area-inset-left, 0px) + 12px) !important;
  right: auto !important;
}
#toggle-robot-button {
  right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
  left: auto !important;
}
#robot-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  z-index: 1000 !important;
  background: transparent !important;
}
#robot-container canvas { display: block; max-width: none; }
@media (max-width: 420px) {
  :root { --blueai-top: calc(env(safe-area-inset-top, 0px) + 9px); }
  #chat-toggle, #toggle-robot-button {
    height: 46px !important;
    font-size: 13px !important;
    max-width: calc(50vw - 16px) !important;
    padding: 8px 9px !important;
  }
  #chat-toggle { left: calc(env(safe-area-inset-left, 0px) + 9px) !important; }
  #toggle-robot-button { right: calc(env(safe-area-inset-right, 0px) + 9px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #chat-toggle, #toggle-robot-button { animation: none !important; transition: none !important; }
}
