        #ai-advisor-wrapper .ai-result table {
            width: 100%; 
            border-collapse: separate; 
            border-spacing: 0;
            margin-top: 1.25rem;
            margin-bottom: 1.5rem;
            border: 1px solid #e2e8f0;
            border-radius: 0.5rem;
            overflow: hidden;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        }
        #ai-advisor-wrapper .ai-result th {
            background-color: #f8fafc; 
            padding: 0.875rem 1rem; 
            text-align: left; 
            font-weight: 700; 
            color: #334155;
            border-bottom: 2px solid #cbd5e1;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.05em;
        }
        #ai-advisor-wrapper .ai-result td {
            padding: 0.875rem 1rem; 
            border-bottom: 1px solid #f1f5f9;
            color: #475569;
        }
        #ai-advisor-wrapper .ai-result tr:last-child td {
            border-bottom: none;
        }
        #ai-advisor-wrapper .ai-result tr:nth-child(even) {
            background-color: #fafaf9;
        }
        #ai-advisor-wrapper .ai-result h3 {
            font-size: 1.25rem; 
            font-weight: 800; 
            color: #0f172a; 
            margin-top: 1.5rem; 
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
        }
        #ai-advisor-wrapper .ai-result h3::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 1.2em;
            background-color: #10B981; /* emerald-500 */
            margin-right: 0.5rem;
            border-radius: 2px;
        }
        #ai-advisor-wrapper .ai-result ul {
            list-style-type: disc; 
            padding-left: 1.5rem; 
            margin-bottom: 1.25rem;
            color: #475569;
        }
        #ai-advisor-wrapper .ai-result li {
            margin-bottom: 0.375rem;
        }
        #ai-advisor-wrapper .ai-result p {
            margin-bottom: 1rem;
            color: #334155;
            line-height: 1.6;
        }
        #ai-advisor-wrapper .ai-result strong {
            color: #065f46; /* emerald-900 */
            font-weight: 700;
        }
        /* Custom scrollbar for textarea */
        #ai-question-input::-webkit-scrollbar {
            width: 8px;
        }
        #ai-question-input::-webkit-scrollbar-track {
            background: #f1f5f9; 
            border-radius: 4px;
        }
        #ai-question-input::-webkit-scrollbar-thumb {
            background: #cbd5e1; 
            border-radius: 4px;
        }
        #ai-question-input::-webkit-scrollbar-thumb:hover {
            background: #94a3b8; 
        }
        /* Typing indicator animation */
        .ai-typing-dot {
            animation: ai-typing 1.4s infinite ease-in-out both;
        }
        .ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
        .ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }
        @keyframes ai-typing {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }