        

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* --- NAVBAR --- */
        .navbar {
            height: 48px;
            background: var(--bg-panel);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .brand {
            font-size: 1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-decoration: none;
        }

        .brand svg {
            width: 24px;
            height: 24px;
            stroke: var(--accent-1);
        }

        .nav-links {
            display: flex;
            gap: 15px;
        }

        .nav-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .nav-btn:hover {
            border-color: var(--accent-1);
            color: var(--text-main);
        }

        /* --- MAIN LAYOUT --- */
        .container {
            display: flex;
            flex: 1;
            padding: 14px;
            gap: 14px;
            max-width: 1600px;
            margin: 0 auto;
            width: 100%;
            overflow: hidden;
        }

        /* --- LEFT SIDE: INPUT & STAGES --- */
        .left-panel {
            flex: 0 0 280px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px;
            backdrop-filter: blur(10px);
        }

        .card-header {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-main);
        }

        .card-header i {
            color: var(--accent-1);
        }

        .input-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
        }

        .input-group label {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 10px 12px;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.95rem;
            resize: vertical;
            min-height: 40px;
            transition: border-color 0.2s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent-1);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .btn-primary:hover {
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
        }

        .btn-primary:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Process Steps Tracker */
        .process-tracker {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }

        .step-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: var(--text-muted);
            transition: color 0.3s;
        }

        .step-item.active {
            color: var(--text-main);
        }

        .step-item.completed {
            color: var(--accent-3);
        }

        .step-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            flex-shrink: 0;
            transition: all 0.3s;
        }

        .step-item.active .step-icon {
            border-color: var(--accent-1);
            background: rgba(59, 130, 246, 0.1);
            color: var(--accent-1);
        }

        .step-item.completed .step-icon {
            border-color: var(--accent-3);
            background: var(--accent-3);
            color: white;
        }

        .step-content {
            flex: 1;
        }

        .step-title {
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 2px;
        }

        .step-desc {
            font-size: 0.8rem;
            opacity: 0.8;
            line-height: 1.4;
        }

        /* --- MIDDLE: AGENT DASHBOARD --- */
        .center-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
            overflow: hidden;
        }

        .agent-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .agent-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            height: 280px;
        }

        .agent-header {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(0, 0, 0, 0.2);
        }

        .agent-avatar {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .avatar-finance {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

        .avatar-social {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }

        .avatar-trade {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .avatar-exec {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        }

        .agent-info {
            flex: 1;
            min-width: 0;
        }

        .agent-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .agent-role {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .agent-status {
            font-size: 0.75rem;
            padding: 4px 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
        }

        .status-idle {
            color: var(--text-muted);
        }

        .status-working {
            color: var(--accent-1);
            background: rgba(59, 130, 246, 0.1);
            animation: pulse 2s infinite;
        }

        .status-done {
            color: var(--accent-3);
            background: rgba(16, 185, 129, 0.1);
        }

        @keyframes pulse {
            0% {
                opacity: 0.6;
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0.6;
            }
        }

        .agent-body {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            font-size: 0.85rem;
            line-height: 1.5;
            color: #cbd5e1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        

        .log-action {
            color: var(--accent-1);
            font-weight: 500;
            margin-bottom: 4px;
            font-size: 0.8rem;
        }

        .log-result {
            white-space: pre-wrap;
        }

        /* --- LOG TERMINAL --- */
        .system-logs {
            background: #0f172a;
            /* Darker background */
            border: 1px solid var(--border);
            border-radius: 12px;
            height: 200px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        

        

        .log-line {
            margin-bottom: 4px;
        }

        

        .log-info {
            color: var(--accent-1);
        }

        .log-success {
            color: var(--accent-3);
        }

        .log-warn {
            color: var(--warning);
        }

        .log-error {
            color: var(--danger);
        }

        /* --- RIGHT SIDE: EXECUTIVE REPORT --- */
        .right-panel {
            flex: 0 0 380px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
        }

        .report-card {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }

        .btn-pdf {
            background: transparent;
            border: 1px solid var(--accent-2);
            color: var(--accent-2);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-pdf:hover {
            background: var(--accent-2);
            color: white;
        }

        .btn-pdf:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }

        .report-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: var(--bg-card);
            /* Dark background for document preview */
            color: #cbd5e1;
            font-family: 'Outfit', sans-serif;
            /* Modern sans-serif for dashboard uniformity */
            line-height: 1.6;
        }

        /* Markdown Styles for Report */
        .report-content h1,
        .report-content h2,
        .report-content h3 {
            font-family: 'Outfit', sans-serif;
            color: var(--text-main);
            margin-top: 1.5em;
            margin-bottom: 0.5em;
            font-weight: 700;
        }

        .report-content h1 {
            font-size: 2rem;
            border-bottom: 2px solid var(--border);
            padding-bottom: 10px;
        }

        .report-content h2 {
            font-size: 1.5rem;
            color: var(--accent-1);
        }

        .report-content p {
            margin-bottom: 1em;
        }

        .report-content ul,
        .report-content ol {
            padding-left: 20px;
            margin-bottom: 1em;
        }

        .report-content li {
            margin-bottom: 0.5em;
        }

        .report-content strong {
            color: var(--text-main);
        }

        .report-content blockquote {
            border-left: 4px solid var(--accent-1);
            padding-left: 15px;
            color: var(--text-muted);
            font-style: italic;
            margin: 1.5em 0;
            background: rgba(0, 0, 0, 0.2);
            padding: 10px 15px;
        }

        .report-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #94a3b8;
            font-family: 'Inter', sans-serif;
            text-align: center;
        }

        .report-placeholder i {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        /* --- SPINNER --- */
        

        /* --- RESPONSIVE: Stack panels below 1100px --- */
        @media (max-width: 1100px) {
            .container {
                flex-direction: column;
                overflow-y: auto;
            }

            .left-panel {
                flex: none;
                width: 100%;
            }

            .center-panel {
                flex: none;
                width: 100%;
            }

            .right-panel {
                flex: none;
                width: 100%;
            }

            .agent-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            }

            .agent-card {
                height: 250px;
            }
        }

