    #chatbot-fab {
      position: fixed; bottom: 24px; right: 24px; z-index: 9990;
      width: 56px; height: 56px; border-radius: 50%;
      background: var(--accent); border: none; cursor: pointer;
      box-shadow: var(--shadow-lg), var(--glow-accent);
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    }
    #chatbot-fab:hover { transform: scale(1.08); box-shadow: var(--shadow-lg), 0 0 30px rgba(47, 92, 168,0.3); }
    #chatbot-fab svg { width: 26px; height: 26px; color: #fff; }
    #chatbot-fab .chatbot-badge {
      position: absolute; top: -2px; right: -2px; width: 14px; height: 14px;
      border-radius: 50%; background: var(--danger); border: 2px solid var(--bg-primary);
      display: none;
    }

    #chatbot-panel {
      position: fixed; bottom: 92px; right: 24px; z-index: 9991;
      width: 380px; height: 520px; max-height: calc(100vh - 120px);
      background: var(--bg-secondary); border: 1px solid var(--border);
      border-radius: 16px; box-shadow: var(--shadow-lg);
      display: none; flex-direction: column; overflow: hidden;
      animation: chatbot-slide-up 0.25s var(--ease);
    }
    #chatbot-panel.open { display: flex; }
    @keyframes chatbot-slide-up {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .chatbot-header {
      padding: 14px 16px; display: flex; align-items: center; gap: 10px;
      border-bottom: 1px solid var(--border); flex-shrink: 0;
    }
    .chatbot-header-icon {
      width: 32px; height: 32px; border-radius: 50%; background: var(--accent-subtle);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .chatbot-header-icon svg { width: 18px; height: 18px; color: var(--accent); }
    .chatbot-header-info { flex: 1; }
    .chatbot-header-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
    .chatbot-header-subtitle { font-size: 11px; color: var(--text-secondary); }
    .chatbot-close {
      width: 28px; height: 28px; border-radius: 6px; border: none;
      background: transparent; cursor: pointer; color: var(--text-secondary);
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .chatbot-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

    .chatbot-messages {
      flex: 1; overflow-y: auto; padding: 16px;
      display: flex; flex-direction: column; gap: 12px;
      scrollbar-width: thin; scrollbar-color: var(--border) transparent;
    }
    .chatbot-messages::-webkit-scrollbar { width: 4px; }
    .chatbot-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    /* Shared bubble spec — matches .vault-chat-bubble + .rt-bubble (radius
       16px w/ one 5px tail, padding 10px 14px, 13.5px/1.5) so every chat
       surface reads as one consistent, professional component. */
    .chatbot-msg {
      max-width: 85%; padding: 10px 14px; border-radius: 16px;
      font-size: 13.5px; line-height: 1.5; word-wrap: break-word;
    }
    .chatbot-msg.user {
      align-self: flex-end;
      background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
      color: #fff; box-shadow: 0 2px 8px rgba(47, 92, 168, 0.22);
      border-bottom-right-radius: 5px;
    }
    .chatbot-msg.bot {
      align-self: flex-start; background: var(--bg-elevated); color: var(--text-primary);
      border: 1px solid var(--border); border-bottom-left-radius: 5px;
    }
    .chatbot-msg.bot strong { color: var(--accent); }

    .chatbot-typing {
      align-self: flex-start; padding: 10px 14px; margin: 0 16px 8px;
      background: var(--bg-elevated); border: 1px solid var(--border);
      border-radius: 12px; border-bottom-left-radius: 4px;
      display: none; gap: 4px; align-items: center;
    }
    .chatbot-typing.visible { display: flex; }
    .chatbot-typing span {
      width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
      animation: chatbot-dot 1.2s infinite;
    }
    .chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
    .chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes chatbot-dot {
      0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
      30% { opacity: 1; transform: scale(1); }
    }

    .chatbot-input-area {
      padding: 12px; border-top: 1px solid var(--border);
      display: flex; gap: 8px; flex-shrink: 0;
    }
    .chatbot-input {
      flex: 1; padding: 10px 14px; border-radius: 10px;
      border: 1px solid var(--border); background: var(--bg-input);
      color: var(--text-primary); font-size: 13px; font-family: inherit;
      outline: none; resize: none; max-height: 80px;
      transition: border-color 0.15s;
    }
    .chatbot-input::placeholder { color: var(--text-muted); }
    .chatbot-input:focus { border-color: var(--accent); }
    .chatbot-send {
      width: 38px; height: 38px; border-radius: 10px; border: none;
      background: var(--accent); color: #fff; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, transform 0.1s; flex-shrink: 0;
    }
    .chatbot-send:hover { background: var(--accent-hover); }
    .chatbot-send:active { transform: scale(0.95); }
    .chatbot-send:disabled { opacity: 0.5; cursor: not-allowed; }
    .chatbot-send svg { width: 18px; height: 18px; }

    @media (max-width: 480px) {
      #chatbot-panel { width: calc(100vw - 16px); right: 8px; bottom: 80px; height: calc(100vh - 100px); }
      #chatbot-fab { bottom: 16px; right: 16px; }
    }
    /* Hide chatbot FAB on mobile — bottom nav handles navigation */
    @media (max-width: 768px) {
      #chatbot-fab { display: none !important; }
      #chatbot-panel { display: none !important; }
    }
