        #iastudio-chat-toggle {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--iastudio-primary, #ffffff);
            color: var(--iastudio-text-on-primary, #000000);
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 24px rgba(0,0,0,0.25);
            z-index: 999998;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        #iastudio-chat-toggle:hover {
            transform: scale(1.08);
            box-shadow: 0 6px 32px rgba(0,0,0,0.35);
        }
        #iastudio-chat-toggle svg { width: 28px; height: 28px; }

        #iastudio-chat-window {
            position: fixed;
            bottom: 96px;
            right: 24px;
            width: 400px;
            max-width: calc(100vw - 32px);
            height: 560px;
            max-height: calc(100vh - 120px);
            background: #0d0d0d;
            border-radius: 16px;
            box-shadow: 0 12px 48px rgba(0,0,0,0.5);
            z-index: 999999;
            display: none;
            flex-direction: column;
            overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            border: 1px solid rgba(255,255,255,0.08);
        }
        #iastudio-chat-window.open { display: flex; }

        #iastudio-chat-header {
            padding: 16px 20px;
            background: #141414;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        #iastudio-chat-header-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--iastudio-primary, #ffffff);
            color: var(--iastudio-text-on-primary, #000000);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            flex-shrink: 0;
        }
        #iastudio-chat-header-info h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 600;
            color: #f0f0f0;
        }
        #iastudio-chat-header-info span {
            font-size: 12px;
            color: #888;
        }
        #iastudio-chat-close {
            margin-left: auto;
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            display: flex;
            align-items: center;
        }
        #iastudio-chat-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

        #iastudio-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        #iastudio-chat-messages::-webkit-scrollbar { width: 4px; }
        #iastudio-chat-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

        .iastudio-msg {
            max-width: 85%;
            padding: 10px 14px;
            border-radius: 14px;
            font-size: 14px;
            line-height: 1.5;
            word-wrap: break-word;
        }
        .iastudio-msg a {
            color: var(--iastudio-primary, #ffffff);
            text-decoration: underline;
        }
        .iastudio-msg-user {
            align-self: flex-end;
            background: var(--iastudio-primary, #ffffff);
            color: var(--iastudio-text-on-primary, #000000);
            border-bottom-right-radius: 4px;
        }
        .iastudio-msg-ai {
            align-self: flex-start;
            background: #1a1a1a;
            color: #e0e0e0;
            border-bottom-left-radius: 4px;
        }
        .iastudio-msg-ai strong { color: #fff; }
        .iastudio-msg-ai code {
            background: #2a2a2a;
            padding: 1px 5px;
            border-radius: 4px;
            font-size: 13px;
            font-family: 'Courier New', monospace;
        }
        .iastudio-msg-ai ul, .iastudio-msg-ai ol {
            padding-left: 18px;
            margin: 6px 0;
        }
        .iastudio-msg-ai li { margin-bottom: 4px; }

        .iastudio-typing {
            align-self: flex-start;
            display: flex;
            gap: 5px;
            padding: 12px 18px;
            background: #1a1a1a;
            border-radius: 14px;
            border-bottom-left-radius: 4px;
        }
        .iastudio-typing span {
            width: 7px;
            height: 7px;
            background: #555;
            border-radius: 50%;
            animation: iastudio-bounce 1.4s infinite both;
        }
        .iastudio-typing span:nth-child(2) { animation-delay: 0.16s; }
        .iastudio-typing span:nth-child(3) { animation-delay: 0.32s; }
        @keyframes iastudio-bounce {
            0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
            40% { transform: scale(1); opacity: 1; }
        }

        #iastudio-chat-form {
            padding: 12px 16px;
            border-top: 1px solid rgba(255,255,255,0.08);
            display: flex;
            gap: 8px;
            background: #0d0d0d;
            flex-shrink: 0;
        }
        #iastudio-chat-input {
            flex: 1;
            padding: 10px 14px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.12);
            background: #141414;
            color: #f0f0f0;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            resize: none;
            min-height: 42px;
            max-height: 100px;
        }
        #iastudio-chat-input::placeholder { color: #666; }
        #iastudio-chat-input:focus { border-color: var(--iastudio-primary, #ffffff); }
        #iastudio-chat-send {
            width: 52px !important;
            height: 52px !important;
            min-width: 52px !important;
            min-height: 52px !important;
            border-radius: 14px !important;
            background: #ffffff !important;
            color: #000000 !important;
            border: 1px solid rgba(0,0,0,0.14) !important;
            cursor: pointer;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0;
            transition: opacity 0.2s;
            padding: 0 !important;
            line-height: 1 !important;
            box-shadow: none !important;
            font-size: 24px !important;
        }
        #iastudio-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }
        #iastudio-chat-send:hover:not(:disabled) { opacity: 0.85; }
        #iastudio-chat-send svg {
            width: 26px !important;
            height: 26px !important;
            color: #000000 !important;
            stroke: #000000 !important;
            fill: none !important;
            display: block !important;
        }
        #iastudio-chat-send svg path {
            stroke: #000000 !important;
            fill: none !important;
        }

        .iastudio-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }
        .iastudio-suggestion-btn {
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.12);
            background: #141414;
            color: #ccc;
            font-size: 12px;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.15s;
        }
        .iastudio-suggestion-btn:hover {
            border-color: var(--iastudio-primary, #ffffff);
            color: var(--iastudio-primary, #ffffff);
            background: rgba(16,185,129,0.08);
        }

        @media (max-width: 480px) {
            #iastudio-chat-window {
                bottom: 0;
                right: 0;
                width: 100vw;
                height: 80vh;
                max-height: 100vh;
                border-radius: 0;
            }
        }
