        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
        
        *, *::before, *::after { box-sizing: border-box; }
        
        .dc-chat-wrapper {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 850px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            height: min(600px, calc(100vh - 40px));
            max-height: calc(100vh - 40px);
            position: relative;
        }
        
        .dc-header {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dc-header-left { display: flex; align-items: center; gap: 12px; }
        
        .dc-avatar {
            width: 38px; height: 38px;
            background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .dc-avatar.dc-custom-logo {
            width: 150px;
            height: 75px;
            border-radius: 8px;
            padding: 6px;
            background: #fff;
            overflow: hidden;
        }
        
        .dc-avatar.dc-custom-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 4px;
        }
        
        .dc-logo-link {
            text-decoration: none;
            transition: transform 0.2s ease;
        }
        
        .dc-logo-link:hover {
            transform: scale(1.05);
        }
        
        .dc-title-block { display: flex; flex-direction: column; }
        .dc-title { font-size: 15px; font-weight: 600; color: #fff; margin: 0; text-align: left; }
        .dc-tagline { font-size: 12px; color: rgba(255, 255, 255, 0.8); margin: 2px 0 0 0; }
        
        .dc-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.9); }
        .dc-status-dot {
            width: 8px; height: 8px; background: #4ade80; border-radius: 50%;
            animation: pulse 2s infinite;
        }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        
        /* Language Selector - Header Button */
        .dc-lang-selector {
            position: relative;
            display: flex;
            align-items: center;
        }
        /* v11.2.4: language button redesigned to match the polished pill
           style - solid white background, coloured label text, proper padding.
           Works cleanly on any header colour. */
        .dc-lang-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 999px;
            padding: 6px 12px 6px 10px;
            cursor: pointer;
            color: #1e293b;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            transition: all 0.15s ease;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
            min-height: 34px;
            line-height: 1;
        }
        .dc-lang-btn:hover {
            background: #f8fafc;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            transform: translateY(-1px);
        }
        .dc-lang-btn:active {
            transform: translateY(0);
        }
        .dc-lang-btn .dc-lang-flag {
            font-size: 18px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
        }
        .dc-lang-btn .dc-lang-label {
            font-weight: 600;
            font-size: 14px;
            color: #1e293b;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .dc-lang-btn .dc-lang-chevron {
            font-size: 9px;
            color: #64748b;
            margin-left: 2px;
            transition: transform 0.2s ease;
        }
        .dc-lang-btn:hover .dc-lang-chevron {
            transform: translateY(1px);
        }
        
        /* Language Panel - Full Overlay */
        .dc-lang-panel-overlay {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .dc-lang-panel-overlay.dc-lang-show {
            display: flex;
            animation: dcLangFadeIn 0.2s ease-out;
        }
        @keyframes dcLangFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .dc-lang-panel {
            background: #1a1a2e;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            width: 100%;
            max-width: 480px;
            max-height: 80%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: dcLangSlideUp 0.25s ease-out;
        }
        @keyframes dcLangSlideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .dc-lang-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .dc-lang-panel-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
        }
        .dc-lang-panel-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 8px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.7);
            font-size: 16px;
            transition: all 0.15s ease;
        }
        .dc-lang-panel-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
        }
        .dc-lang-search-wrap {
            padding: 12px 20px;
        }
        .dc-lang-search {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            font-size: 13px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s;
        }
        .dc-lang-search::placeholder {
            color: rgba(255, 255, 255, 0.35);
        }
        .dc-lang-search:focus {
            border-color: rgba(102, 126, 234, 0.6);
            background: rgba(255, 255, 255, 0.08);
        }
        
        /* Language Grid */
        .dc-lang-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 4px 20px 20px;
            overflow-y: auto;
            max-height: 400px;
        }
        .dc-lang-grid::-webkit-scrollbar {
            width: 4px;
        }
        .dc-lang-grid::-webkit-scrollbar-track {
            background: transparent;
        }
        .dc-lang-grid::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }
        .dc-lang-tile {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 12px 6px;
            border-radius: 12px;
            border: 2px solid transparent;
            background: rgba(255, 255, 255, 0.04);
            cursor: pointer;
            transition: all 0.15s ease;
            text-align: center;
        }
        .dc-lang-tile:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.15);
        }
        .dc-lang-tile.dc-lang-active {
            background: rgba(102, 126, 234, 0.2);
            border-color: rgba(102, 126, 234, 0.6);
        }
        .dc-lang-tile .dc-tile-flag {
            font-size: 28px;
            line-height: 1;
        }
        .dc-lang-tile .dc-tile-name {
            font-size: 11px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.2;
        }
        .dc-lang-tile .dc-tile-native {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.4);
            line-height: 1.1;
        }
        .dc-lang-tile .dc-tile-check {
            display: none;
            position: absolute;
            top: 4px;
            right: 4px;
            font-size: 12px;
            color: #667eea;
        }
        .dc-lang-tile.dc-lang-active .dc-tile-check {
            display: block;
        }
        .dc-lang-tile {
            position: relative;
        }
        .dc-lang-auto-badge {
            font-size: 8px;
            background: rgba(102, 126, 234, 0.5);
            color: #fff;
            padding: 1px 5px;
            border-radius: 3px;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        .dc-header-right { display: flex; align-items: center; gap: 8px; }
        
        .dc-header-btn {
            width: 36px; height: 36px; border-radius: 50%; border: none;
            background: rgba(255, 255, 255, 0.2); color: #fff; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; transition: all 0.2s ease;
        }
        .dc-header-btn:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.05); }
        
        .dc-chat-container {
            flex: 1; display: flex; flex-direction: column;
            background: #f8fafc; position: relative; overflow: hidden;
        }
        
        .dc-conversation-view {
            flex: 1; overflow-y: auto; padding: 14px 16px; scroll-behavior: smooth;
        }
        .dc-conversation-view::-webkit-scrollbar { width: 6px; }
        .dc-conversation-view::-webkit-scrollbar-track { background: transparent; }
        .dc-conversation-view::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
        
        .dc-message { margin-bottom: 12px; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        .dc-message-cluster { display: flex; gap: 8px; align-items: flex-start; }
        .dc-user-message .dc-message-cluster { flex-direction: row-reverse; }
        
        .dc-message-avatar {
            width: 30px; height: 30px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; flex-shrink: 0;
        }
        .dc-assistant-message .dc-message-avatar { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
        .dc-user-message .dc-message-avatar { background: #e2e8f0; color: #64748b; }
        
        .dc-message-bundle { max-width: 90%; }
        .dc-message-bubble { 
            padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5;
            position: relative;
        }
        .dc-assistant-message .dc-message-bubble {
            background: #fff; color: #1e293b; border-bottom-left-radius: 4px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }
        .dc-user-message .dc-message-bubble {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff; border-bottom-right-radius: 4px;
        }
        
        /* Copy Response Button - Always visible */
        .dc-copy-response-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 10px;
        }
        .dc-copy-response-btn:hover {
            background: #667eea;
            border-color: #667eea;
            color: #fff;
        }
        .dc-copy-response-btn.copied {
            background: #10b981;
            border-color: #10b981;
            color: #fff;
        }
        .dc-copy-response-btn svg {
            width: 12px;
            height: 12px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }
        
        /* Listen Back Button - Hear messages read aloud */
        .dc-listen-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 6px 12px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 10px;
            margin-right: 6px;
        }
        .dc-listen-btn:hover {
            background: #667eea;
            border-color: #667eea;
            color: #fff;
        }
        .dc-listen-btn.playing {
            background: #ef4444;
            border-color: #ef4444;
            color: #fff;
            animation: listenPulse 1s infinite;
        }
        @keyframes listenPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }
        .dc-listen-btn svg {
            width: 12px;
            height: 12px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }
        
        /* Response header - "You asked" + Listen button on same line */
        .dc-response-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e8f0;
        }
        .dc-response-header .dc-you-asked {
            margin: 0;
            flex: 1;
            min-width: 0;
        }
        .dc-response-header .dc-listen-btn {
            margin: 0;
            flex-shrink: 0;
        }
        
        /* Message action buttons wrapper */
        .dc-message-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0;
            margin-top: 8px;
        }
        
        .dc-user-message .dc-listen-btn {
            margin-top: 8px;
        }
        
        .dc-message-metadata { font-size: 10px; color: #94a3b8; margin-top: 3px; padding: 0 4px; }
        .dc-user-message .dc-message-metadata { text-align: right; }
        
        /* Response content and streaming */
        .dc-response-content {
            margin-top: 8px;
        }
        .dc-response-content.dc-streaming {
            transition: opacity 0.3s ease;
        }
        
        /* Web Search Badge */
        .dc-web-search-badge {
            display: inline-flex; align-items: center; gap: 4px;
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
            color: #fff; padding: 4px 10px; border-radius: 12px;
            font-size: 11px; font-weight: 600; margin-bottom: 8px;
        }
        .dc-web-search-badge-icon { font-size: 12px; }
        
        /* Sources Section */
        .dc-sources-section {
            margin-top: 12px; padding-top: 12px;
            border-top: 1px solid #e2e8f0;
        }
        .dc-sources-title {
            font-size: 12px; font-weight: 600; color: #64748b;
            margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
        }
        .dc-source-link {
            display: block; padding: 6px 10px; margin-bottom: 4px;
            background: #f1f5f9; border-radius: 6px;
            font-size: 12px; color: #0ea5e9; text-decoration: none;
            transition: all 0.2s ease; overflow: hidden; text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dc-source-link:hover { background: #e2e8f0; color: #0284c7; }
        
        .dc-document-attachment {
            display: flex; align-items: center; gap: 10px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: 12px;
        }
        .dc-document-icon {
            width: 32px; height: 32px; border-radius: 6px;
            display: flex; align-items: center; justify-content: center; font-size: 16px;
        }
        .dc-document-icon.pdf { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; }
        .dc-document-icon.word { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; }
        .dc-document-info { flex: 1; min-width: 0; }
        .dc-document-name { font-weight: 500; color: rgba(255, 255, 255, 0.95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dc-document-size { font-size: 11px; color: rgba(255, 255, 255, 0.7); }
        
        .dc-thinking { background: #fff !important; position: relative; overflow: hidden; }
        .dc-thinking-text { color: #64748b; font-style: italic; }
        .dc-rainbow-bar {
            position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2, #ec4899, #f59e0b, #10b981, #667eea);
            background-size: 200% 100%; animation: rainbow 2s linear infinite;
        }
        @keyframes rainbow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
        
        /* Web Search Thinking */
        .dc-web-search-thinking .dc-thinking-text::before {
            content: '🌐 ';
        }
        .dc-web-search-thinking .dc-rainbow-bar {
            background: linear-gradient(90deg, #0ea5e9, #06b6d4, #0284c7, #0ea5e9);
            background-size: 200% 100%;
        }
        
        .dc-demo-watermark {
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%, -50%) rotate(-30deg);
            font-size: 48px; font-weight: 700; color: rgba(0, 0, 0, 0.03);
            pointer-events: none; white-space: nowrap; z-index: 1;
        }
        
        .dc-composer { padding: 10px 14px; background: #fff; border-top: 1px solid #e2e8f0; position: relative; z-index: 10; }
        
        /* Unified Toolbar - All 6 buttons in one row */
        .dc-unified-toolbar {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        
        .dc-tools-group, .dc-actions-group {
            display: flex;
            gap: 4px;
        }
        
        .dc-toolbar-divider {
            width: 1px;
            height: 20px;
            background: #e2e8f0;
            margin: 0 3px;
        }
        
        .dc-tool-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 10px;
            border-radius: 14px;
            border: none;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            white-space: nowrap;
        }
        
        .dc-tool-btn.web-search { background: #e0f2fe; color: #0284c7; }
        .dc-tool-btn.web-search:hover { background: #bae6fd; }
        .dc-tool-btn.web-search.active { background: #0ea5e9; color: #fff; }
        .dc-tool-btn.web-search.active .dc-tool-icon { background: rgba(255,255,255,0.3); }
        
        .dc-tool-btn.upload { background: #d1fae5; color: #059669; }
        .dc-tool-btn.upload:hover { background: #a7f3d0; }
        .dc-tool-btn.upload.has-document { background: #fef3c7; color: #d97706; }
        
        .dc-tool-btn.image-upload { background: #fce7f3; color: #db2777; }
        .dc-tool-btn.image-upload:hover { background: #fbcfe8; }
        .dc-tool-btn.image-upload.has-image { background: #c4b5fd; color: #7c3aed; }
        
        .dc-tool-btn.action { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
        .dc-tool-btn.action:hover { background: #fff; border-color: #667eea; color: #667eea; }
        
        .dc-tool-icon {
            width: 18px;
            height: 18px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
        }
        
        .dc-tool-icon.blue { background: #0ea5e9; color: #fff; border-radius: 4px; }
        .dc-tool-icon.green { background: #10b981; color: #fff; border-radius: 4px; }
        .dc-tool-icon.pink { background: #ec4899; color: #fff; border-radius: 4px; }
        .dc-tool-icon.gray { background: transparent; }
        
        .dc-tool-btn .dc-file-input,
        .dc-tool-btn .dc-image-input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }
        
        .dc-document-preview-bar {
            display: none; padding: 8px 12px;
            background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
            border-radius: 10px; margin-bottom: 10px;
            align-items: center; gap: 10px; animation: slideDown 0.3s ease;
        }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .dc-document-preview-bar.active { display: flex; }
        
        .dc-doc-preview-icon {
            width: 40px; height: 40px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex-shrink: 0;
        }
        .dc-doc-preview-icon.pdf { background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%); color: #dc2626; }
        .dc-doc-preview-icon.word { background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%); color: #2563eb; }
        
        .dc-doc-preview-info { flex: 1; min-width: 0; }
        .dc-doc-preview-name { font-weight: 600; font-size: 13px; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dc-doc-preview-status { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 4px; }
        .dc-doc-preview-status.processing { color: #f59e0b; }
        .dc-doc-preview-status.ready { color: #10b981; }
        .dc-doc-preview-status.error { color: #ef4444; }
        
        .dc-doc-remove-btn {
            width: 28px; height: 28px; border-radius: 50%; border: none;
            background: #fee2e2; color: #ef4444; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; transition: all 0.2s ease; flex-shrink: 0;
        }
        .dc-doc-remove-btn:hover { background: #fecaca; transform: scale(1.1); }
        
        /* Image Preview Bar */
        .dc-image-preview-bar {
            display: none; padding: 8px 12px;
            background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
            border-radius: 10px; margin-bottom: 10px;
            align-items: center; gap: 10px; animation: slideDown 0.3s ease;
        }
        .dc-image-preview-bar.active { display: flex; }
        
        .dc-image-preview-thumb {
            width: 44px; height: 44px; border-radius: 8px;
            background-size: cover; background-position: center;
            background-color: #f1f5f9; flex-shrink: 0;
            border: 2px solid #fff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .dc-image-preview-info { flex: 1; min-width: 0; }
        .dc-image-preview-name { font-weight: 600; font-size: 13px; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dc-image-preview-status { font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 4px; }
        .dc-image-preview-status.ready { color: #ec4899; }
        
        .dc-image-remove-btn {
            width: 28px; height: 28px; border-radius: 50%; border: none;
            background: #fee2e2; color: #ef4444; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; transition: all 0.2s ease; flex-shrink: 0;
        }
        .dc-image-remove-btn:hover { background: #fecaca; transform: scale(1.1); }
        
        /* Image Attachment in User Message */
        .dc-image-attachment {
            margin-bottom: 8px;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        .dc-image-attachment img {
            max-width: 200px;
            max-height: 150px;
            display: block;
            border-radius: 6px 6px 0 0;
        }
        .dc-image-attachment .dc-image-name {
            padding: 6px 10px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .dc-input-wrapper {
            display: flex; align-items: flex-end; gap: 8px;
            background: #f1f5f9; border-radius: 20px; padding: 7px 14px;
            border: 2px solid transparent; transition: all 0.2s ease;
        }
        .dc-input-wrapper:focus-within { border-color: #667eea; background: #fff; }
        
        .dc-input {
            flex: 1; border: none; background: transparent;
            font-size: 13px; font-family: inherit; resize: none;
            min-height: 22px; max-height: 120px; line-height: 1.5;
            padding: 0; outline: none; color: #1e293b;
        }
        .dc-input::placeholder { color: #94a3b8; }
        
        /* Feature Cards for Tools */
        .dc-action-cards {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .dc-action-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 14px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
            position: relative;
            overflow: hidden;
            flex: 1;
        }
        
        .dc-action-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        }
        
        .dc-action-card.web-search {
            background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
        }
        
        .dc-action-card.web-search:hover {
            background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
        }
        
        .dc-action-card.web-search.active {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        }
        
        .dc-action-card.web-search.active .dc-action-title,
        .dc-action-card.web-search.active .dc-action-desc {
            color: #fff;
        }
        
        .dc-action-card.web-search.active .dc-action-icon-wrap {
            background: rgba(255,255,255,0.25);
        }
        
        .dc-action-card.web-search.active .dc-action-icon-wrap svg {
            stroke: #fff;
        }
        
        .dc-action-card.upload {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        }
        
        .dc-action-card.upload:hover {
            background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
        }
        
        .dc-action-card.upload.has-document {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        }
        
        .dc-action-card .dc-action-icon-wrap {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        .dc-action-card.web-search .dc-action-icon-wrap {
            background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        }
        
        .dc-action-card.upload .dc-action-icon-wrap {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        
        .dc-action-card.upload.has-document .dc-action-icon-wrap {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }
        
        /* Image Upload Card - Smaller */
        .dc-action-card.image-upload {
            background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
            flex: 0 0 auto;
            padding: 10px 14px;
        }
        
        .dc-action-card.image-upload:hover {
            background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%);
        }
        
        .dc-action-card.image-upload.has-image {
            background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
        }
        
        .dc-action-card.image-upload .dc-action-icon-wrap {
            background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
            width: 32px;
            height: 32px;
            border-radius: 8px;
        }
        
        .dc-action-card.image-upload.has-image .dc-action-icon-wrap {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        }
        
        .dc-action-card.image-upload .dc-action-icon-wrap svg {
            width: 18px;
            height: 18px;
        }
        
        .dc-action-card.image-upload .dc-action-title {
            font-size: 12px;
        }
        
        .dc-action-card.image-upload .dc-action-desc {
            display: none;
        }
        
        .dc-action-card.image-upload.has-image .dc-action-title {
            color: #fff;
        }
        
        .dc-image-input {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            cursor: pointer;
        }
        
        .dc-action-card .dc-action-icon-wrap svg {
            width: 24px;
            height: 24px;
            stroke: #fff;
            stroke-width: 2;
            fill: none;
        }
        
        .dc-action-card .dc-action-text-wrap {
            flex: 1;
            min-width: 0;
        }
        
        .dc-action-card .dc-action-title {
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            margin: 0;
        }
        
        .dc-action-card .dc-action-desc {
            font-size: 12px;
            color: #64748b;
            margin: 2px 0 0 0;
        }
        
        .dc-action-card .dc-file-input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }
        
        /* Input Row */
        .dc-input-row {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }
        
        .dc-input-wrapper {
            flex: 1;
        }
        
        .dc-mic-button {
            width: 38px; height: 38px; border-radius: 10px; border: none;
            background: #e2e8f0; color: #64748b; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s ease; flex-shrink: 0;
        }
        .dc-mic-button svg {
            width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none;
        }
        .dc-mic-button:hover { background: #cbd5e1; }
        .dc-mic-button.recording { background: #ef4444; color: #fff; animation: recordPulse 1s infinite; }
        .dc-mic-button.warning { background: #f59e0b; color: #fff; animation: warningPulse 0.5s infinite; }
        @keyframes warningPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.95); } }
        @keyframes recordPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
        
        .dc-send-button {
            height: 38px; padding: 0 20px; border-radius: 10px; border: none;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
            transition: all 0.2s ease; flex-shrink: 0;
        }
        .dc-send-button:hover:not(:disabled) { transform: scale(1.02); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }
        .dc-send-button:disabled { opacity: 0.5; cursor: not-allowed; }
        
        .dc-prompt-buttons-container { padding: 0; margin-bottom: 8px; background: transparent; }
        .dc-prompt-header {
            display: flex; align-items: center; justify-content: space-between;
            padding: 5px 10px; background: #f8fafc; border-radius: 8px;
            cursor: pointer; transition: all 0.2s ease;
        }
        .dc-prompt-header:hover { background: #f1f5f9; }
        .dc-prompt-heading { font-size: 11px; font-weight: 500; color: #64748b; }
        .dc-prompt-chevron { font-size: 10px; color: #94a3b8; transition: transform 0.3s ease; }
        .dc-prompt-chevron.expanded { transform: rotate(180deg); }
        
        .dc-prompt-buttons-wrapper {
            display: flex; flex-wrap: wrap; gap: 5px; padding-top: 6px;
            max-height: 150px; overflow: hidden; transition: all 0.3s ease;
        }
        .dc-prompt-buttons-wrapper.dc-collapsed { max-height: 0; padding-top: 0; opacity: 0; }
        
        .dc-prompt-button {
            display: flex; align-items: center; gap: 4px;
            padding: 4px 10px; border-radius: 14px; border: 1px solid #e2e8f0;
            background: #fff; font-size: 10px; color: #64748b;
            cursor: pointer; transition: all 0.2s ease;
        }
        .dc-prompt-button:hover { border-color: #667eea; color: #667eea; background: #f8fafc; }
        .dc-prompt-icon { font-size: 12px; }
        
        .action-buttons-container { display: flex; gap: 8px; padding: 0 16px 12px; background: #fff; }
        .action-btn {
            flex: 1; padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0;
            background: #fff; font-size: 12px; font-weight: 500; color: #64748b;
            cursor: pointer; transition: all 0.2s ease;
        }
        .action-btn:hover { border-color: #667eea; color: #667eea; }
        
        .dc-minimal-nav {
            display: flex; align-items: center; justify-content: space-between;
            padding: 7px 14px; background: #f8fafc; border-top: 1px solid #e2e8f0; font-size: 10px;
            gap: 16px;
        }
        .dc-minimal-nav-link { 
            color: #667eea; text-decoration: none; transition: color 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .dc-minimal-nav-link:hover { color: #764ba2; }
        .dc-powered-by { 
            color: #94a3b8; 
            text-align: center;
            flex: 1;
        }
        .dc-powered-by strong { color: #64748b; }
        
        .dc-email-modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center;
            z-index: 10000; opacity: 0; visibility: hidden; pointer-events: none;
            transition: all 0.3s ease;
        }
        .dc-email-modal.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .dc-email-modal-content {
            background: #fff; border-radius: 16px; padding: 24px;
            width: 90%; max-width: 400px; transform: translateY(20px); transition: transform 0.3s ease;
        }
        .dc-email-modal.show .dc-email-modal-content { transform: translateY(0); }
        .dc-email-modal h3 { margin: 0 0 16px; font-size: 18px; color: #1e293b; }
        .dc-email-modal input {
            width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px;
            font-size: 14px; margin-bottom: 16px; outline: none; transition: border-color 0.2s ease;
        }
        .dc-email-modal input:focus { border-color: #667eea; }
        .dc-email-modal-buttons { display: flex; gap: 8px; }
        .dc-email-modal button {
            flex: 1; padding: 12px; border-radius: 8px; border: none;
            font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
        }
        .dc-email-cancel { background: #e2e8f0; color: #64748b; }
        .dc-email-send { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
        
        .dc-processing-overlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            z-index: 100; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s ease;
        }
        .dc-processing-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
        .dc-processing-spinner {
            width: 48px; height: 48px; border: 4px solid #e2e8f0;
            border-top-color: #667eea; border-radius: 50%; animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .dc-processing-text { margin-top: 16px; font-size: 14px; color: #64748b; text-align: center; }
        
        /* ============================================
           EMBEDDED DESKTOP MODE - Compact Layout
           (Default view, not fullscreen)
           ============================================ */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-header {
            padding: 10px 14px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-avatar {
            width: 32px;
            height: 32px;
            font-size: 16px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-avatar.dc-custom-logo {
            width: 100px;
            height: 50px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-title {
            font-size: 15px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-subtitle {
            font-size: 11px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-header-btn {
            width: 30px;
            height: 30px;
            font-size: 13px;
        }
        
        /* Compact language selector (embedded mode) - slightly smaller but
           keeps the pill shape and full label. */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-lang-btn {
            padding: 5px 10px 5px 8px;
            font-size: 12px;
            min-height: 28px;
            gap: 6px;
        }
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-lang-btn .dc-lang-flag {
            font-size: 15px;
        }
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-lang-btn .dc-lang-label {
            font-size: 12px;
            max-width: 90px;
        }
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-lang-btn .dc-lang-chevron {
            font-size: 8px;
        }
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-lang-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-lang-panel {
            max-width: 360px;
        }
        
        /* Compact composer */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-composer {
            padding: 8px 12px;
        }
        
        /* Compact feature cards - pill style */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-cards {
            gap: 6px;
            margin-bottom: 8px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card {
            padding: 6px 10px;
            border-radius: 18px;
            gap: 6px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card .dc-action-icon-wrap {
            width: 24px;
            height: 24px;
            border-radius: 6px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card .dc-action-icon-wrap svg {
            width: 14px;
            height: 14px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card .dc-action-title {
            font-size: 11px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card .dc-action-desc {
            display: none;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card.image-upload {
            padding: 6px 10px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-action-card.image-upload .dc-action-icon-wrap {
            width: 22px;
            height: 22px;
        }
        
        /* Compact input row */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-input-wrapper {
            padding: 6px 12px;
            border-radius: 20px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-input {
            font-size: 13px;
            min-height: 20px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-input-row {
            gap: 6px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-mic-button {
            width: 36px;
            height: 36px;
            border-radius: 10px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-send-button {
            height: 36px;
            padding: 0 16px;
            font-size: 13px;
            border-radius: 10px;
        }
        
        /* Compact preview bars */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-document-preview-bar,
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-image-preview-bar {
            padding: 6px 10px;
            margin-bottom: 6px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-doc-preview-icon,
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-image-preview-thumb {
            width: 32px;
            height: 32px;
        }
        
        /* Compact quick questions */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-prompt-buttons-container {
            padding: 0 12px 8px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-prompt-header {
            padding: 6px 10px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-prompt-heading {
            font-size: 11px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-prompt-buttons-wrapper {
            gap: 6px;
            padding-top: 8px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-prompt-button {
            padding: 5px 10px;
            font-size: 11px;
            border-radius: 14px;
        }
        
        /* Compact unified toolbar */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-unified-toolbar {
            margin-top: 8px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-tool-btn {
            padding: 5px 10px;
            font-size: 11px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-tool-icon {
            width: 16px;
            height: 16px;
            font-size: 10px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-toolbar-divider {
            height: 20px;
        }
        
        /* Compact footer nav */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-minimal-nav {
            padding: 6px 12px;
            font-size: 10px;
        }
        
        /* Messages - slightly more compact */
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-message {
            margin-bottom: 12px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-message-avatar {
            width: 32px;
            height: 32px;
            font-size: 16px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-message-bubble {
            padding: 10px 12px;
            font-size: 13px;
        }
        
        .dc-chat-wrapper:not(.dc-fullscreen-mode) .dc-conversation-view {
            padding: 12px;
        }
        
        @media screen and (max-width: 768px) {
            .dc-chat-wrapper {
                position: fixed; top: 0; left: 0; right: 0; bottom: 0;
                width: 100%; height: 100dvh; max-width: none; border-radius: 0; z-index: 9999;
            }
            .dc-chat-wrapper.minimized { display: none; }
            .dc-reopen-button {
                display: block; position: fixed; bottom: 20px; right: 20px;
                width: 60px; height: 60px; border-radius: 50%;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                border: none; color: #fff; font-size: 24px; cursor: pointer;
                box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); z-index: 9998;
            }
            .dc-header-btn.dc-close-btn { display: flex; }
            .dc-message-bundle { max-width: 95%; }
            
            /* Mobile: Suggested Questions inside composer */
            .dc-prompt-buttons-container {
                margin-bottom: 8px;
                padding: 0;
            }
            
            .dc-prompt-header {
                padding: 6px 10px;
            }
            
            .dc-prompt-heading {
                font-size: 11px;
            }
            
            /* Mobile: Unified Toolbar Layout - Two rows */
            .dc-unified-toolbar {
                flex-direction: column;
                gap: 6px;
            }
            
            .dc-tools-group {
                display: flex;
                gap: 4px;
                width: 100%;
            }
            
            .dc-tools-group .dc-tool-btn {
                flex: 1;
                justify-content: center;
                padding: 7px 6px;
                font-size: 10px;
            }
            
            .dc-tools-group .dc-tool-label {
                font-size: 9px;
            }
            
            .dc-toolbar-divider {
                display: none;
            }
            
            .dc-actions-group {
                display: flex;
                justify-content: center;
                gap: 4px;
                width: 100%;
            }
            
            /* Mobile: Show text labels on action buttons (not emoji-only) */
            .dc-actions-group .dc-tool-btn {
                flex: 1;
                justify-content: center;
                padding: 6px 8px;
                font-size: 10px;
            }
            
            .dc-actions-group .dc-tool-label {
                display: inline;
                font-size: 9px;
            }
            
            .dc-actions-group .dc-tool-icon {
                width: 14px;
                height: 14px;
                font-size: 10px;
            }
            
            /* Mobile input adjustments */
            .dc-input-row {
                gap: 6px;
            }
            
            .dc-input-wrapper {
                padding: 6px 12px;
            }
            
            .dc-mic-button {
                width: 40px;
                height: 40px;
                border-radius: 50%;
            }
            
            .dc-send-button {
                height: 40px;
                padding: 0 16px;
                border-radius: 20px;
                font-size: 13px;
            }
            
            .dc-composer {
                padding: 10px 12px;
            }
        }
        @media screen and (min-width: 769px) {
            .dc-header-btn.dc-close-btn { display: none; }
            .dc-reopen-button { display: none !important; }
        }
        
        /* Hide other floating assistant buttons on pages with this chatbot */
        body.dc-chat-active .ai-assistant-button,
        body.dc-chat-active .floating-chat-button,
        body.dc-chat-active .chat-widget-button,
        body.dc-chat-active [class*="floating-assistant"],
        body.dc-chat-active [class*="floating-chat"],
        body.dc-chat-active [class*="chat-bubble"],
        body.dc-chat-active [class*="chat-launcher"],
        body.dc-chat-active [class*="chatbot-button"],
        body.dc-chat-active [class*="assistant-button"],
        body.dc-chat-active [id*="chat-widget"],
        body.dc-chat-active [id*="chatbot-widget"],
        body.dc-chat-active [id*="assistant-widget"],
        body.dc-chat-active button[class*="chat"]:not(.dc-chat-wrapper button):not(.dc-chat-wrapper *),
        body.dc-chat-active div[class*="launcher"]:not(.dc-chat-wrapper *),
        body.dc-chat-active .wp-chatbot-button,
        body.dc-chat-active .tidio-chat,
        body.dc-chat-active .intercom-launcher,
        body.dc-chat-active .drift-widget,
        body.dc-chat-active .crisp-client,
        body.dc-chat-active [data-chat-widget],
        body.dc-chat-active [data-chatbot] {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
            z-index: -1 !important;
        }
        
        .dc-chat-wrapper.text-small .dc-message-bubble { font-size: 13px; }
        .dc-chat-wrapper.text-medium .dc-message-bubble { font-size: 15px; }
        .dc-chat-wrapper.text-large .dc-message-bubble { font-size: 17px; }
        
        /* Text size in fullscreen mode - override the default fullscreen font size */
        .dc-chat-wrapper.dc-fullscreen-mode.text-small .dc-message-bubble { font-size: 13px !important; }
        .dc-chat-wrapper.dc-fullscreen-mode.text-medium .dc-message-bubble { font-size: 15px !important; }
        .dc-chat-wrapper.dc-fullscreen-mode.text-large .dc-message-bubble { font-size: 18px !important; }
        
        .chat-h1 { font-size: 1.4em; font-weight: 700; margin: 16px 0 8px; }
        .chat-h2 { font-size: 1.3em; font-weight: 600; margin: 14px 0 6px; }
        .chat-h3 { font-size: 1.2em; font-weight: 600; margin: 12px 0 4px; }
        .chat-h4 { font-size: 1.1em; font-weight: 500; margin: 10px 0 4px; }
        .chat-bullet-item { padding-left: 20px; position: relative; margin: 4px 0; }
        .chat-bullet-item::before { content: "•"; position: absolute; left: 8px; color: #667eea; }
        .chat-ordered-item { padding-left: 20px; margin: 4px 0; }
        
        /* Code/Plaintext blocks with copy button */
        .chat-code-wrapper {
            position: relative;
            margin: 12px 0;
        }
        .chat-code-block {
            background: #1e293b;
            color: #e2e8f0;
            padding: 16px;
            padding-top: 40px;
            border-radius: 10px;
            font-family: 'Fira Code', Consolas, monospace;
            font-size: 13px;
            line-height: 1.6;
            white-space: pre-wrap;
            word-wrap: break-word;
            overflow-wrap: break-word;
            margin: 0;
        }
        .chat-code-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: #334155;
            border-radius: 10px 10px 0 0;
            font-size: 11px;
            color: #94a3b8;
        }
        .chat-code-label {
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .chat-copy-btn {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            background: #475569;
            border: none;
            border-radius: 5px;
            color: #e2e8f0;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .chat-copy-btn:hover {
            background: #667eea;
        }
        .chat-copy-btn.copied {
            background: #10b981;
        }
        .chat-copy-btn svg {
            width: 14px;
            height: 14px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
        }
        
        .chat-inline-code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 0.9em; }
        .chat-link { color: #667eea; text-decoration: none; }
        .chat-link:hover { text-decoration: underline; }
        .chat-hr { border: none; border-top: 1px solid #e2e8f0; margin: 16px 0; }
        
        /* View Mode Selector Modal (Desktop Only) */
        .dc-viewmode-modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
            display: flex; justify-content: center; align-items: center;
            z-index: 10001; opacity: 0; visibility: hidden; pointer-events: none;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }
        .dc-viewmode-modal.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .dc-viewmode-content {
            background: #fff; width: 90%; max-width: 500px; border-radius: 20px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3); overflow: hidden;
            transform: translateY(20px) scale(0.95); transition: transform 0.35s ease;
        }
        .dc-viewmode-modal.show .dc-viewmode-content { transform: translateY(0) scale(1); }
        .dc-viewmode-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 24px 28px; text-align: center;
        }
        .dc-viewmode-header h3 {
            color: #fff; font-size: 20px; font-weight: 600; margin: 0 0 6px 0;
        }
        .dc-viewmode-header p {
            color: rgba(255,255,255,0.85); font-size: 14px; margin: 0;
        }
        .dc-viewmode-options {
            display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
            padding: 28px;
        }
        .dc-viewmode-option {
            display: flex; flex-direction: column; align-items: center;
            padding: 24px 16px; border-radius: 16px; border: 2px solid #e2e8f0;
            background: #fff; cursor: pointer; transition: all 0.25s ease;
            text-align: center;
        }
        .dc-viewmode-option:hover {
            border-color: #667eea; transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
        }
        .dc-viewmode-icon {
            width: 64px; height: 64px; border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 14px; font-size: 28px;
        }
        .dc-viewmode-option.fullscreen .dc-viewmode-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .dc-viewmode-option.embedded .dc-viewmode-icon {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }
        .dc-viewmode-option h4 {
            font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 6px 0;
        }
        .dc-viewmode-option p {
            font-size: 12px; color: #64748b; margin: 0; line-height: 1.4;
        }
        .dc-viewmode-footer {
            padding: 0 28px 20px; text-align: center;
        }
        .dc-viewmode-remember {
            display: flex; align-items: center; justify-content: center; gap: 8px;
            font-size: 13px; color: #64748b; cursor: pointer;
        }
        .dc-viewmode-remember input {
            width: 16px; height: 16px; cursor: pointer;
        }
        
        /* Fullscreen Mode Styles - Professional Layout */
        .dc-chat-wrapper.dc-fullscreen-mode {
            position: fixed !important;
            top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
            width: 100vw !important; height: 100vh !important; height: 100dvh !important;
            max-width: none !important; max-height: none !important; border-radius: 0 !important;
            z-index: 999999 !important;
            display: flex !important;
            flex-direction: column !important;
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
            margin: 0 !important;
            overflow: hidden !important;
        }
        
        /* Ensure body doesn't scroll when fullscreen is active */
        body.dc-chat-fullscreen-active {
            overflow: hidden !important;
        }
        
        /* Fullscreen Header - Compact */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-header {
            border-radius: 0 !important;
            padding: 10px 20px !important;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
            flex-shrink: 0 !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-header-btn.dc-close-btn {
            display: flex !important;
            width: 34px !important;
            height: 34px !important;
            font-size: 16px !important;
        }
        
        /* Ensure text size button is visible and clickable in fullscreen */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-header-btn.dc-text-size-btn {
            display: flex !important;
            pointer-events: auto !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-avatar {
            width: 36px !important;
            height: 36px !important;
            font-size: 18px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-avatar.dc-custom-logo {
            width: 120px !important;
            height: 60px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-title {
            font-size: 16px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-tagline {
            font-size: 11px !important;
        }
        
        /* Fullscreen Chat Container - Centered with max width */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-chat-container {
            flex: 1 !important;
            max-width: 100% !important;
            margin: 0 !important;
            background: transparent !important;
            display: flex !important;
            flex-direction: column !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-conversation-view {
            flex: 1 !important;
            max-width: 900px !important;
            width: 100% !important;
            margin: 0 auto !important;
            padding: 16px 20px !important;
            background: transparent !important;
        }
        
        /* Fullscreen Message Styling - Compact */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-message {
            max-width: 100% !important;
            margin-bottom: 12px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-message-cluster {
            max-width: 100% !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-message-bundle {
            max-width: 80% !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-message-bubble {
            font-size: 14px !important;
            line-height: 1.6 !important;
            padding: 12px 16px !important;
            box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-message-avatar {
            width: 34px !important;
            height: 34px !important;
            font-size: 17px !important;
        }
        
        /* Fullscreen Composer - Compact sticky bottom */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-composer {
            background: #fff !important;
            border-top: 1px solid #e2e8f0 !important;
            padding: 8px 16px !important;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.04) !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-composer > * {
            max-width: 900px !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }
        
        /* Fullscreen: Compact inline tool buttons */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-action-cards {
            display: flex !important;
            flex-direction: row !important;
            gap: 6px !important;
            margin-bottom: 6px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-action-card {
            flex: 0 0 auto !important;
            padding: 5px 10px !important;
            border-radius: 16px !important;
            gap: 6px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-action-card .dc-action-icon-wrap {
            width: 20px !important;
            height: 20px !important;
            border-radius: 5px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-action-card .dc-action-icon-wrap svg {
            width: 12px !important;
            height: 12px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-action-card .dc-action-title {
            font-size: 11px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-action-card .dc-action-desc {
            display: none !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-input-wrapper {
            padding: 6px 12px !important;
            border-radius: 20px !important;
            background: #f8fafc !important;
            border: 2px solid #e2e8f0 !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-input-wrapper:focus-within {
            border-color: #667eea !important;
            background: #fff !important;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-input {
            font-size: 14px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-input-row {
            gap: 8px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-send-button {
            height: 38px !important;
            padding: 0 18px !important;
            border-radius: 12px !important;
            font-size: 13px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-mic-button {
            width: 38px !important;
            height: 38px !important;
            border-radius: 12px !important;
        }
        
        /* Fullscreen Suggested Questions - Compact styling */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-prompt-buttons-container {
            margin-bottom: 8px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-prompt-header {
            padding: 6px 10px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-prompt-heading {
            font-size: 11px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-prompt-button {
            padding: 5px 10px !important;
            font-size: 11px !important;
        }
        
        /* Fullscreen Unified Toolbar - Compact */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-unified-toolbar {
            margin-top: 8px !important;
            justify-content: center !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-tool-btn {
            padding: 5px 10px !important;
            font-size: 11px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-tool-icon {
            width: 16px !important;
            height: 16px !important;
            font-size: 10px !important;
        }
        
        .dc-chat-wrapper.dc-fullscreen-mode .dc-toolbar-divider {
            height: 18px !important;
        }
        
        /* Fullscreen Footer Nav - Very compact */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-minimal-nav {
            max-width: 900px !important;
            margin: 0 auto !important;
            padding: 4px 16px !important;
            background: transparent !important;
            border-top: none !important;
        }
        
        /* Hide demo watermark in fullscreen for cleaner look */
        .dc-chat-wrapper.dc-fullscreen-mode .dc-demo-watermark {
            opacity: 0.3 !important;
            font-size: 60px !important;
        }
        
        /* Hide view mode modal on mobile */
        @media screen and (max-width: 768px) {
            .dc-viewmode-modal { display: none !important; }
        }
        
        /* Disclaimer Modal Styles */
        .dc-disclaimer-modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0, 0, 0, 0.65); backdrop-filter: blur(5px);
            display: flex; justify-content: center; align-items: center;
            z-index: 9999; opacity: 0; visibility: hidden; pointer-events: none;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }
        .dc-disclaimer-modal.show { opacity: 1; visibility: visible; pointer-events: auto; }
        .dc-disclaimer-content {
            background-color: white; width: 92%; max-width: 700px; border-radius: 8px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); overflow: hidden;
            transform: translateY(20px) scale(0.98); transition: transform 0.35s ease;
        }
        .dc-disclaimer-modal.show .dc-disclaimer-content { transform: translateY(0) scale(1); }
        .dc-disclaimer-header {
            background-color: #3498db; padding: 20px 30px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05); position: relative;
        }
        .dc-disclaimer-header::after {
            content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 5px;
            background: linear-gradient(90deg, #3498db, #27ae60);
        }
        .dc-disclaimer-title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 600; color: white; margin: 0; }
        .dc-disclaimer-body { padding: 30px; max-height: 60vh; overflow-y: auto; }
        .dc-disclaimer-text { font-size: 15px; color: #34495e; }
        .dc-disclaimer-text p { margin-bottom: 20px; }
        .dc-disclaimer-text strong { color: #2c3e50; font-weight: 500; }
        .dc-disclaimer-section { margin-bottom: 22px; padding-bottom: 10px; }
        .dc-disclaimer-section-title {
            font-weight: 600; color: #3498db; font-size: 16px; margin-bottom: 8px;
            display: flex; align-items: center;
        }
        .dc-disclaimer-section-title::before {
            content: ''; display: inline-block; width: 4px; height: 18px;
            background-color: #3498db; margin-right: 10px; border-radius: 2px;
        }
        .dc-demo-notice {
            font-style: italic; color: #7f8c8d; font-size: 13px; text-align: center;
            margin-top: 20px; background-color: #ecf0f1; padding: 10px 15px; border-radius: 4px;
        }
        .dc-disclaimer-footer { padding: 20px 30px; background-color: #f8f9fa; border-top: 1px solid #ecf0f1; text-align: right; }
        .dc-disclaimer-button {
            background: linear-gradient(to right, #3498db, #2980b9); color: white; border: none;
            padding: 12px 24px; font-size: 14px; font-weight: 500; border-radius: 4px;
            cursor: pointer; transition: all 0.2s ease; text-transform: uppercase;
        }
        .dc-disclaimer-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(41, 128, 185, 0.4); }
        .company-logo { width: 24px; height: 24px; margin-right: 10px; display: inline-block; vertical-align: middle; background-color: white; border-radius: 4px; }

        /* v11.0: styles for classes toggled by JS that weren't in the v10.2 CSS */
        .dc-chat-wrapper.dc-hidden { display: none !important; }
        .dc-message.dc-error-message .dc-message-bubble {
            background: #fef2f2 !important; border: 1px solid #fecaca; color: #991b1b;
        }
        .dc-mic-button.listening {
            background: #ef4444 !important; color: #fff !important;
            animation: dcPulse 1.2s ease-in-out infinite;
        }
        .dc-mic-button.listening svg { fill: #fff; stroke: #fff; }
        @keyframes dcPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
            50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
        }
        /* v11.0: Response actions row styling (Listen + Copy live together here) */
        .dc-response-actions {
            display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
        }
        .dc-response-actions .dc-listen-btn,
        .dc-response-actions .dc-copy-response-btn {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 5px 10px; font-size: 12px; font-weight: 500;
            background: rgba(103, 126, 234, 0.08); color: #667eea;
            border: 1px solid rgba(103, 126, 234, 0.2); border-radius: 6px;
            cursor: pointer; transition: all 0.15s ease;
        }
        .dc-response-actions .dc-listen-btn:hover,
        .dc-response-actions .dc-copy-response-btn:hover {
            background: rgba(103, 126, 234, 0.15); border-color: rgba(103, 126, 234, 0.4);
        }
        .dc-response-actions .dc-listen-btn svg,
        .dc-response-actions .dc-copy-response-btn svg {
            width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
        }
        .dc-response-actions .dc-listen-btn.playing {
            background: #667eea; color: #fff; border-color: #667eea;
        }

        /* v11.1.0: GDPR inactivity warning popup */
        .dc-gdpr-warning-overlay {
            position: absolute; inset: 0;
            background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
            z-index: 9999; display: flex; align-items: center; justify-content: center;
            padding: 20px;
            animation: dcGdprFadeIn 0.2s ease-out;
        }
        .dc-gdpr-warning-overlay.dc-gdpr-hidden { display: none; }
        @keyframes dcGdprFadeIn { from { opacity: 0; } to { opacity: 1; } }
        .dc-gdpr-warning-box {
            background: #fff; border-radius: 14px; padding: 28px 24px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); max-width: 440px; width: 100%;
            text-align: center;
        }
        .dc-gdpr-warning-box h3 {
            margin: 0 0 12px; font-size: 20px; color: #1e293b; font-weight: 700;
        }
        .dc-gdpr-warning-box p {
            margin: 0 0 20px; color: #475569; font-size: 15px; line-height: 1.5;
        }
        .dc-gdpr-warning-box .dc-gdpr-countdown {
            font-weight: 700; color: #dc2626; font-variant-numeric: tabular-nums;
        }
        .dc-gdpr-warning-actions {
            display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
        }
        .dc-gdpr-warning-actions button {
            padding: 10px 18px; font-size: 14px; font-weight: 600;
            border-radius: 8px; cursor: pointer; border: 1px solid transparent;
            transition: all 0.15s ease;
        }
        .dc-gdpr-continue {
            background: #667eea; color: #fff;
        }
        .dc-gdpr-continue:hover { background: #5568d3; }
        .dc-gdpr-end {
            background: #fff; color: #475569; border-color: #cbd5e1;
        }
        .dc-gdpr-end:hover { background: #f1f5f9; color: #1e293b; }

        /* v11.1.0: Privacy transparency notice in composer */
        .dc-gdpr-notice {
            font-size: 11px; color: rgba(148, 163, 184, 0.9); text-align: center;
            padding: 4px 8px 2px; margin: 0; line-height: 1.4;
        }
        .dc-gdpr-notice strong { font-weight: 600; color: rgba(148, 163, 184, 1); }

        /* v11.1.1: When actions appear above the response content, flip the spacing
           so the separator sits below the buttons, not above. */
        .dc-response-actions-top {
            margin-top: 0 !important;
            margin-bottom: 12px !important;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(103, 126, 234, 0.15);
        }

        /* v11.1.2: Voice input toast (replaces alert() for error feedback) */
        .dc-voice-toast {
            position: absolute; left: 50%; bottom: 100px; transform: translate(-50%, 10px);
            background: #1e293b; color: #f1f5f9; padding: 12px 18px; border-radius: 10px;
            font-size: 14px; line-height: 1.4; max-width: 85%; text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            opacity: 0; pointer-events: none; z-index: 1000;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }
        .dc-voice-toast-visible {
            opacity: 1; transform: translate(-50%, 0);
        }
        .dc-voice-toast-error {
            background: #7f1d1d; color: #fef2f2;
        }
        .dc-voice-toast-info {
            background: #1e40af; color: #eff6ff;
        }

        /* v11.2.0: Subtle loading indicator while suggested questions translate */
        .dc-prompt-loading {
            display: inline-block; opacity: 0.6;
            animation: dcDots 1.4s ease-in-out infinite;
        }
        @keyframes dcDots {
            0%, 100% { opacity: 0.3; }
            50%      { opacity: 0.9; }
        }

        /* v11.2.3: Polish for the language selection grid.
           Fixes the check mark positioning (parent needs position: relative),
           and adds the empty-state styling for when the search matches nothing. */
        .dc-lang-tile {
            position: relative;
        }
        .dc-lang-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 30px 10px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 14px;
        }
