
        #ir-chat-bubble {
            position: fixed; bottom: 28px; right: 28px; z-index: 9000;
            width: 56px; height: 56px; border-radius: 50%;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            box-shadow: 0 4px 20px rgba(37,99,235,0.45);
            border: none; cursor: pointer; color: #fff;
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        #ir-chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,99,235,0.55); }
        #ir-chat-bubble .ir-chat-dot {
            position: absolute; top: 4px; right: 4px; width: 10px; height: 10px;
            background: #22c55e; border-radius: 50%; border: 2px solid #fff;
            animation: ir-pulse 2s infinite;
        }
        @keyframes ir-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.7;transform:scale(1.2)} }

        #ir-chat-panel {
            position: fixed; bottom: 96px; right: 28px; z-index: 9000;
            width: 340px; max-height: 540px;
            background: #fff; border-radius: 18px;
            box-shadow: 0 16px 60px rgba(0,0,0,0.18);
            display: none; flex-direction: column; overflow: hidden;
            border: 1px solid #e2e8f0;
        }
        #ir-chat-panel.open { display: flex; }

        .ir-chat-header {
            background: linear-gradient(135deg, #1e3a8a, #2563eb);
            padding: 14px 16px; display: flex; align-items: center; gap: 10px;
        }
        .ir-chat-header-avatar {
            width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.2);
            display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
        }
        .ir-chat-header-name { color: #fff; font-weight: 700; font-size: 0.88rem; }
        .ir-chat-header-status { color: rgba(255,255,255,0.75); font-size: 0.72rem; margin-top: 1px; }
        .ir-chat-close {
            margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.7);
            cursor: pointer; font-size: 1.1rem; padding: 0 4px; line-height: 1;
        }
        .ir-chat-close:hover { color: #fff; }

        #ir-chat-messages {
            flex: 1; overflow-y: auto; padding: 14px 14px 6px;
            display: flex; flex-direction: column; gap: 10px;
            scroll-behavior: smooth;
        }
        .ir-msg { max-width: 84%; font-size: 0.85rem; line-height: 1.5; word-wrap: break-word; }
        .ir-msg.bot {
            align-self: flex-start; background: #f1f5f9; color: #0f172a;
            padding: 9px 12px; border-radius: 4px 14px 14px 14px;
        }
        .ir-msg.bot a { color: #2563eb; text-decoration: underline; }
        .ir-msg.bot strong { font-weight: 700; }
        .ir-msg.bot ul { margin: 4px 0 4px 16px; padding: 0; }
        .ir-msg.bot li { margin-bottom: 2px; }
        .ir-msg.user { align-self: flex-end; background: #2563eb; color: #fff; padding: 9px 12px; border-radius: 14px 14px 4px 14px; }
        .ir-msg.typing { background: #f1f5f9; padding: 9px 14px; border-radius: 4px 14px 14px 14px; align-self: flex-start; }
        .ir-typing-dots { display: inline-flex; gap: 4px; }
        .ir-typing-dots span {
            width: 6px; height: 6px; background: #94a3b8; border-radius: 50%;
            animation: ir-dot-bounce 1.2s infinite;
        }
        .ir-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
        .ir-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes ir-dot-bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }

        /* Quick-start suggestion chips */
        #ir-chat-chips {
            padding: 0 12px 10px; display: flex; flex-wrap: wrap; gap: 6px;
        }
        .ir-chip {
            background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8;
            border-radius: 16px; padding: 5px 11px; font-size: 0.76rem;
            cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s;
            font-family: inherit;
        }
        .ir-chip:hover { background: #dbeafe; border-color: #93c5fd; }

        .ir-chat-footer {
            padding: 10px 12px; border-top: 1px solid #f1f5f9;
            display: flex; gap: 8px; align-items: center;
        }
        #ir-chat-input {
            flex: 1; border: 1px solid #e2e8f0; border-radius: 22px;
            padding: 8px 14px; font-size: 0.84rem; outline: none; font-family: inherit;
            transition: border-color 0.15s;
        }
        #ir-chat-input:focus { border-color: #2563eb; }
        #ir-chat-send {
            width: 36px; height: 36px; border-radius: 50%; background: #2563eb;
            border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; transition: background 0.15s;
        }
        #ir-chat-send:hover { background: #1d4ed8; }
        #ir-chat-send:disabled { background: #94a3b8; cursor: not-allowed; }
        .ir-chat-powered { text-align: center; font-size: 0.64rem; color: #cbd5e1; padding: 4px 0 8px; }
    