        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(to bottom, #1E1E1E 0%, #272727 100%);
            color: #ffffff;
            height: 100vh;
            overflow: hidden;
        }

        /* Floating Navigation Only */

        /* Remove conflicting .logo-brand styling - replaced by spinning logo styles */

        /* =====  Interactive Spinning Logo  ===== */
        .logo-perspective {
            perspective: 1000px;
            text-align: center;
            padding: 0.5rem;
        }

        .logo-spin-box {
            position: relative;
            display: inline-block;
            cursor: pointer;
        }

        .logo-spin-box::before {
            content: "";
            position: absolute;
            top: -0.2rem;
            right: -0.5rem;
            bottom: -0.4rem;
            left: -0.5rem;
            border: 0.12rem solid #FF7A00;
            border-radius: 0.6rem;
            /* 3D spin */
            transform-origin: center;
            transform-style: preserve-3d;
            /* Subtle 3-D illusion when idle */
            transform: rotateX(18deg);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55), 0 -2px 4px rgba(255, 255, 255, 0.15);
            transition: box-shadow 0.3s ease;
        }

        /* =====  Animation utility classes ===== */
        .logo-spin-init::before {
            /* 3 lightning spins (0.25 s each ⇒ 0.75 s total) */
            animation: logo-flip 0.25s linear 3 forwards;
        }

        /* =====  Sheen effect on Spin text ===== */
        .logo-brand .spin-text.shine {
            animation: logo-sheen 0.5s ease;
        }

        .logo-spin-box:hover .spin-text {
            text-shadow: 0 0 4px rgba(255, 122, 0, 0.6);
        }

        .logo-spin-box:hover::before {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55), 0 -2px 4px rgba(255, 255, 255, 0.15), 0 0 8px rgba(255, 122, 0, 0.7);
        }

        @keyframes logo-sheen {
            0% {
                color: #FF7A00;
                text-shadow: none;
            }

            50% {
                color: #FFC066;
                text-shadow: 0 0 6px rgba(255, 192, 102, 0.7);
            }

            100% {
                color: #FF7A00;
                text-shadow: none;
            }
        }

        @keyframes logo-flip {
            from {
                transform: rotateX(18deg);
            }

            to {
                transform: rotateX(378deg);
            }
        }

        /* =====  Brand mark styling ===== */
        .logo-brand {
            font-size: 1.8rem;
            font-family: 'Playfair Display', serif;
            font-weight: 800;
            letter-spacing: 0;
            line-height: 1.1;
            color: #EAE6E1;
            margin: 0;
        }

        .logo-brand .spin-text {
            color: #FF7A00;
            transition: text-shadow 0.3s ease;
        }

        .logo-brand .ops-text {
            color: #EAE6E1;
        }

        /* Pause animation if user prefers reduced motion */
        @media (prefers-reduced-motion: reduce) {
            .logo-spin-box::before {
                animation: none;
            }
        }

        /* =====  Tagline ===== */
        .logo-tagline {
            margin-top: 0.35rem;
            font-size: 0.5rem;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 400;
            color: #D0D0D0;
            letter-spacing: 0.02em;
            margin-bottom: 0;
        }

        .floating-nav {
            position: fixed;
            top: 1.25rem;
            left: 50%;
            transform: translateX(-50%);
            display: inline-flex;
            gap: 2.5rem;
            background: rgba(26, 26, 26, 0.4);
            border-radius: 1.5rem;
            padding: 0.25rem;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 100;
        }

        .floating-tab {
            padding: 0.375rem 0.875rem;
            border-radius: 1rem;
            background: transparent;
            color: #fff;
            border: 1px solid transparent;
            cursor: pointer;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1rem;
            font-weight: 400;
            transition: all 0.3s ease;
            text-align: center;
            white-space: nowrap;
            position: relative;
        }
        
        /* Tooltip styling */
        .floating-tab::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: -35px;
            left: 50%;
            transform: translateX(-50%) scale(0);
            background: linear-gradient(135deg, #FF8C00, #FF6B00);
            color: #FAF8F6;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            pointer-events: none;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 10000;
        }
        
        .floating-tab:hover::after {
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }

        .floating-tab.active {
            background: rgba(255, 255, 255, 0.15);
            color: #ff7a00;
            font-weight: 600;
            box-shadow: 0 0.25rem 1rem rgba(255, 122, 0, 0.2);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 122, 0, 0.3);
        }

        .floating-tab:not(.active):hover {
            background: rgba(255, 122, 0, 0.1);
            color: #ff7a00;
            border: 1px solid rgba(255, 122, 0, 0.2);
        }

        .floating-settings {
            position: fixed;
            top: 1.25rem;
            right: 1.5rem;
            background: rgba(26, 26, 26, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 1rem;
            cursor: pointer;
            padding: 0.625rem;
            border-radius: 1.5rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
            z-index: 100;
            height: 2.5rem;
            width: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Material Symbols Outlined';
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
        }

        .floating-settings:hover {
            background: rgba(255, 122, 0, 0.1);
            color: #ff7a00;
            border: 1px solid rgba(255, 122, 0, 0.2);
            box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
        }

        .floating-settings:active {
            background: rgba(255, 122, 0, 0.15);
            color: #ff7a00;
            transform: rotate(135deg);
            border: 1px solid rgba(255, 122, 0, 0.3);
        }

        /* Settings Overlay */
        .settings-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1000;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .settings-overlay.show {
            display: flex;
            opacity: 1;
        }

        .settings-panel {
            position: absolute;
            top: 1.25rem;
            right: 1.5rem;
            width: 300px;
            max-height: 80vh;
            background: rgba(26, 26, 26, 0.4);
            border-radius: 1.5rem;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
            padding: 2rem;
            overflow-y: auto;
            transform: scale(0.3) translateX(20px) translateY(-20px);
            transform-origin: top right;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .settings-overlay.show .settings-panel {
            transform: scale(1) translateX(0) translateY(0);
        }

        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .settings-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 600;
            color: #eae6e1;
        }

        .settings-close {
            background: none;
            border: none;
            color: #888;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: all 0.3s ease;
            font-family: 'Material Symbols Outlined';
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
        }

        .settings-close:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #eae6e1;
        }

        .settings-section {
            margin-bottom: 2rem;
        }

        .settings-section-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1rem;
            font-weight: 600;
            color: #eae6e1;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .settings-option {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .settings-option:last-child {
            border-bottom: none;
        }

        .settings-label {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.875rem;
            color: #ccc;
        }

        .settings-control {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .settings-toggle {
            position: relative;
            width: 48px;
            height: 24px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .settings-toggle.active {
            background: rgba(102, 126, 234, 0.3);
            border: 1px solid #667eea;
        }

        .settings-toggle::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 18px;
            height: 18px;
            background: #fff;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .settings-toggle.active::after {
            transform: translateX(24px);
            background: #667eea;
        }

        .settings-select {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            padding: 0.5rem 0.75rem;
            color: #eae6e1;
            font-size: 0.875rem;
            min-width: 120px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .settings-select:focus {
            outline: none;
            border-color: #667eea;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: 12.5rem;
            height: 100vh;
            background: #1a1a1a;
            border-right: 1px solid #333;
            padding: 1.25rem 0;
        }

        .sidebar-logo {
            padding: 0 0rem 0.5rem 0rem;
            margin-top: -0.75rem;
            border-bottom: 1px solid #333;
            margin-bottom: 1.25rem;
        }

        /* Sidebar Navigation */
        .sidebar-nav {
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            display: none;
        }

        .sidebar-nav.active {
            opacity: 1;
            transform: translateY(0);
            display: block;
        }

        .sidebar-item {
            padding: 0.75rem 1.5rem;
            color: #ccc;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 0.1875rem solid transparent;
        }

        .sidebar-item:hover {
            background: rgba(60, 60, 60, 0.3);
            color: #fff;
        }

        .sidebar-item.active {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border-left-color: #28a745;
        }

        .sidebar-footer {
            position: absolute;
            bottom: 1.25rem;
            left: 1.5rem;
            font-size: 0.6875rem;
            color: #555;
        }

        /* Main Content */
        .main-content {
            margin-left: 12.5rem;
            padding: 1.25rem;
            height: 100vh;
            overflow-y: auto;
            padding-top: 5rem;
            background: rgba(30, 30, 30, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            position: relative;
            overflow-x: hidden;
        }

        .tab-viewport {
            width: 100%;
            height: calc(100vh - 5rem);
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            /* overflow-y: auto; */
            /* vertical scroll, shows scrollbar only if needed */
            /* optional quality-of-life tweaks */
            /* scrollbar-gutter: stable both-edges; */
            /* keep layout from shifting */
            overscroll-behavior-y: contain;
            /* stop iOS bounce from propagating */
        }


        /* Tab Wrapper Carousel */
        .tab-wrapper {
            display: flex;
            width: 100%;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .tab-content {
            flex: 0 0 calc(100% - 3rem);
            height: fit-content;
            width: calc(100% - 3rem);
            position: relative;
            margin-left: 1.5rem;
            margin-right: 1.5rem;
            padding-bottom: 2rem;
        }

        .tab-content.active {
            opacity: 1;
            transform: translateX(0);
            display: block;
        }
        

        .tab-content.slide-out-left {
            opacity: 0.3;
            transform: translateX(-100%);
            visibility: hidden;
            pointer-events: none;
        }

        .tab-content.slide-out-right {
            opacity: 0.3;
            transform: translateX(100%);
            visibility: hidden;
            pointer-events: none;
        }

        /* Coming Soon Panels */
        .coming-soon-panel {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            border: 1px solid #333;
            border-radius: 1rem;
            padding: 3rem 2rem;
            text-align: center;
            margin: 2rem 0;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .coming-soon-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
        }

        .coming-soon-panel h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 1rem;
        }

        .coming-soon-panel p {
            font-size: 1.1rem;
            color: #ccc;
            margin-bottom: 2rem;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .feature-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 0.75rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .feature-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            color: #eae6e1;
            font-size: 0.95rem;
            text-align: left;
        }

        /* Control Panel */
        .control-panel {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            border-radius: 0.625rem;
            padding: 0.9375rem 1.25rem;
            margin-bottom: 1.25rem;
            border: 1px solid #333;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 1.25rem;
        }

        .applicant-select {
            background: #0a0a0a;
            border: 1px solid #444;
            border-radius: 0.375rem;
            padding: 0.5rem 0.75rem;
            color: #fff;
            font-size: 0.875rem;
        }

        .run-test-btn {
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            color: #fff;
            border: none;
            padding: 0.625rem 1.25rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .run-test-btn:hover {
            transform: translateY(-0.0625rem);
            box-shadow: 0 0.25rem 0.75rem rgba(30, 58, 138, 0.4);
            background: linear-gradient(135deg, #1e40af, #2563eb);
        }

        .run-test-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Agent Group Header */
        .agent-group-header {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            padding: 0.9375rem 1.25rem;
            border-radius: 0.625rem;
            margin-bottom: 1.25rem;
            border: 1px solid #333;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .agent-group-title {
            font-family: 'IBM Plex Sans', monospace;
            font-size: 0.875rem;
            color: #888;
            margin-bottom: 0.3125rem;
        }

        .agent-group-name {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.125rem;
            font-weight: 600;
            color: #fff;
        }

        /* Main Layout */
        .comparison-layout {
            display: flex;
            gap: 20px;
            height: calc(100vh - 250px);
        }

        .agents-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
            flex: 1.5;
            height: 100%;
        }

        .agent-panel {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            border: 1px solid #333;
            border-radius: 0.75rem;
            padding: 1.25rem;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .agent-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #333;
        }

        .agent-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .agent-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }

        .sonnet-icon {
            background: linear-gradient(135deg, #ff7a00, #ffc066);
            color: #1c1c1c;
        }

        .opus-icon {
            background: linear-gradient(135deg, #ffc066, #eae6e1);
            color: #1c1c1c;
        }

        .agent-details h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 2px;
        }

        .agent-details p {
            font-family: 'IBM Plex Sans', monospace;
            font-size: 12px;
            color: #888;
        }

        .agent-status {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .status-waiting {
            background: #333;
            color: #888;
        }

        .status-running {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
        }

        .status-complete {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
        }

        .status-error {
            background: rgba(233, 69, 96, 0.2);
            color: #e94560;
        }

        /* Reasoning Display */
        .agent-content {
            font-size: 13px;
            line-height: 1.5;
        }

        .reasoning-step {
            margin-bottom: 15px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 6px;
            border-left: 3px solid #667eea;
        }

        .reasoning-title {
            font-weight: 600;
            color: #667eea;
            margin-bottom: 6px;
            font-size: 12px;
        }

        .reasoning-content {
            color: #ccc;
            margin-bottom: 8px;
        }

        .reasoning-result {
            background: rgba(0, 0, 0, 0.3);
            padding: 8px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            font-size: 11px;
        }

        .hallucination-warning {
            background: rgba(233, 69, 96, 0.1);
            border-left-color: #e94560;
        }

        .correction-highlight {
            background: rgba(0, 184, 148, 0.1);
            border-left-color: #00b894;
        }

        /* Observability Panel */
        .observability-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
            height: 100%;
        }

        .trace-panel {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 20px;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .analysis-panel {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 24px;
            flex: 1.5;
            min-height: 0;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .panel-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Trace Hierarchy */
        .trace-tree {
            font-family: 'Courier New', monospace;
            font-size: 12px;
        }

        .material-icon {
            font-family: 'Material Symbols Outlined';
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
            font-size: inherit;
        }

        .trace-tree .trace-node {
            margin: 2px 0;
            padding: 4px 0;
            cursor: pointer;
            transition: background 0.2s ease;
            display: block;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trace-tree .trace-node:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .trace-tree .trace-node.selected {
            background: rgba(102, 126, 234, 0.2);
        }

        .trace-indent {
            display: inline-block;
            width: 20px;
            color: #555;
        }

        .trace-span-type {
            color: #667eea;
            font-weight: 600;
        }

        .trace-span-name {
            color: #ccc;
            margin-left: 8px;
        }

        .trace-duration {
            color: #888;
            margin-left: 8px;
            font-size: 10px;
        }

        .trace-status-icon {
            margin-right: 4px;
        }

        /* Loading States */
        .loading-state {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100px;
            color: #888;
            font-size: 14px;
        }

        .loading-spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #333;
            border-top: 2px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Analysis Content */
        .analysis-metric {
            display: block;
            padding: 16px 0;
            border-bottom: 1px solid #333;
            margin-bottom: 8px;
        }

        .metric-label {
            font-size: 14px;
            color: #bbb;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .metric-value {
            font-size: 16px;
            font-weight: 600;
            line-height: 1.4;
            display: block;
            margin-bottom: 4px;
            color: white;
        }

        .metric-difference {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 4px;
            margin-top: 4px;
            display: inline-block;
            font-weight: 500;
        }

        .difference-major {
            background: rgba(233, 69, 96, 0.2);
            color: #e94560;
        }

        .difference-minor {
            background: rgba(253, 203, 110, 0.2);
            color: #fdcb6e;
        }

        /* Real-time System Log */
        .realtime-log-section {
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            border: 1px solid #333;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            height: 200px;
            overflow-y: auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }

        .realtime-log {
            font-family: 'Courier New', monospace;
            font-size: 12px;
            line-height: 1.6;
            color: #00ff00;
            background: #0a0a0a;
            padding: 15px;
            border-radius: 8px;
            height: 100%;
            overflow-y: auto;
        }

        .log-entry {
            margin: 2px 0;
            display: flex;
            align-items: flex-start;
        }

        .log-timestamp {
            color: #666;
            margin-right: 8px;
            font-size: 10px;
        }

        .log-level {
            margin-right: 8px;
            font-weight: bold;
        }

        .log-info {
            color: #00ff00;
        }

        .log-warning {
            color: #ffaa00;
        }

        .log-error {
            color: #ff4444;
        }

        .log-success {
            color: #00ff88;
        }

        .log-message {
            flex: 1;
        }

        /* LangFuse/Braintrust-inspired Execution Details */
        .execution-tabs {
            display: flex;
            border-bottom: 1px solid #333;
            margin-bottom: 15px;
        }

        .execution-tab {
            padding: 8px 16px;
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            font-size: 12px;
            border-bottom: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .execution-tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .execution-content {
            display: none;
        }

        .execution-content.active {
            display: block;
        }

        /* Agent Comparison Cards */
        .comparison-cards {
            display: flex;
            gap: 15px;
            margin: 15px 0;
        }

        .comparison-card {
            flex: 1;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid #333;
            border-radius: 8px;
            padding: 15px;
        }

        .comparison-card.modified {
            background: rgba(255, 193, 7, 0.1);
            border-color: #ffc107;
        }

        .card-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            color: white;
        }

        .card-metric {
            margin: 5px 0;
            font-size: 12px;
        }

        .metric-label {
            color: #888;
        }

        .metric-value {
            color: white;
            font-weight: 600;
        }

        .metric-change {
            color: #ffc107;
            font-size: 10px;
        }

        /* Root Cause Analysis */
        .root-cause-section {
            background: rgba(102, 126, 234, 0.05);
            border: 1px solid #667eea;
            border-radius: 8px;
            padding: 15px;
            margin: 15px 0;
        }

        .root-cause-title {
            font-size: 14px;
            font-weight: 600;
            color: #667eea;
            margin-bottom: 10px;
        }

        .confidence-badge {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 600;
        }

        .impact-section {
            margin: 10px 0;
            padding: 10px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 6px;
        }

        .impact-title {
            font-size: 12px;
            font-weight: 600;
            color: #ffc107;
            margin-bottom: 5px;
        }

        .reasoning-chain {
            margin: 10px 0;
        }

        .reasoning-chain ol {
            margin: 5px 0;
            padding-left: 20px;
        }

        .reasoning-chain li {
            margin: 3px 0;
            font-size: 11px;
            color: #ccc;
        }

        /* System Recommendations */
        .recommendations-section {
            margin-top: 20px;
        }

        .recommendation-card {
            margin: 10px 0;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            background: rgba(255, 255, 255, 0.03);
        }

        .recommendation-card.high-priority {
            border-left-color: #e94560;
            background: rgba(233, 69, 96, 0.05);
        }

        .recommendation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .recommendation-title {
            font-size: 12px;
            font-weight: 600;
            color: #e94560;
        }

        .recommendation-actions {
            display: flex;
            gap: 8px;
            margin-top: 10px;
        }

        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .accept-btn {
            background: #00b894;
            color: white;
        }

        .reject-btn {
            background: #6c757d;
            color: white;
        }

        .action-btn:hover {
            opacity: 0.8;
        }

        /* Responsive */
        @media (max-width: 1400px) {
            .comparison-layout {
                flex-direction: column;
            }

            .agents-section {
                flex-direction: row;
                height: 50%;
            }

            .agent-panel {
                height: 100%;
            }

            .observability-section {
                flex-direction: row;
                height: 50%;
            }

            .comparison-cards {
                flex-direction: column;
            }
        }

        /* Agent Comparison View Styles */
        .agent-comparison-view {
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            border: 1px solid #444;
            border-radius: 16px;
            padding: 25px;
            margin: 25px 0;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .agent-comparison-container {
            display: flex;
            gap: 25px;
            margin-top: 20px;
        }

        .agent-comparison-panel {
            flex: 1;
            padding: 25px;
            border-radius: 12px;
            background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        .agent-1-comparison {
            border: 2px solid #e74c3c;
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
        }

        .agent-1-comparison::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #e74c3c, #c0392b);
        }

        .agent-2-comparison {
            border: 2px solid #27ae60;
            box-shadow: 0 6px 20px rgba(39, 174, 96, 0.2);
        }

        .agent-2-comparison::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #27ae60, #229954);
        }

        .agent-comparison-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #444;
            position: relative;
            z-index: 1;
        }

        .agent-comparison-badge {
            background: linear-gradient(135deg, #6c757d, #495057);
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: bold;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .agent-1-comparison .agent-comparison-badge {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }

        .agent-2-comparison .agent-comparison-badge {
            background: linear-gradient(135deg, #27ae60, #229954);
        }

        .agent-comparison-status {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: bold;
            background: rgba(108, 117, 125, 0.2);
            color: #adb5bd;
            border: 1px solid #495057;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .agent-io-section {
            margin: 20px 0;
        }

        .agent-io-section-title {
            font-weight: 600;
            margin-bottom: 12px;
            color: #f8f9fa;
            display: flex;
            align-items: center;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 6px;
        }

        .agent-io-section-icon {
            margin-right: 10px;
            font-size: 18px;
            opacity: 0.8;
        }

        .agent-input-content,
        .agent-output-content {
            padding: 16px;
            border-radius: 8px;
            font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
            font-size: 13px;
            line-height: 1.5;
            border: 1px solid #555;
            min-height: 80px;
            color: #ffffff;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .agent-input-content {
            background: linear-gradient(135deg, #1e3a5f, #2c5282);
            border-color: #3182ce;
            color: #e2e8f0;
        }

        .agent-output-content {
            background: linear-gradient(135deg, #2d3748, #4a5568);
            border-color: #718096;
            color: #f7fafc;
        }

        .arrow-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            position: relative;
        }

        .comparison-arrow {
            font-size: 28px;
            font-weight: bold;
            color: #64748b;
            background: rgba(100, 116, 139, 0.1);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(100, 116, 139, 0.3);
            animation: pulse-arrow 2s infinite ease-in-out;
        }

        @keyframes pulse-arrow {

            0%,
            100% {
                transform: scale(1);
                opacity: 0.7;
            }

            50% {
                transform: scale(1.1);
                opacity: 1;
            }
        }

        .accept-button-container {
            margin-top: 25px;
            text-align: center;
        }

        .accept-button {
            padding: 14px 32px;
            border: none;
            border-radius: 30px;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            position: relative;
            overflow: hidden;
        }

        .accept-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .accept-button:hover::before {
            left: 100%;
        }

        .accept-button-red {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
        }

        .accept-button-red:hover {
            background: linear-gradient(135deg, #c0392b, #a93226);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        }

        .accept-button-green {
            background: linear-gradient(135deg, #27ae60, #229954);
            color: white;
        }

        .accept-button-green:hover {
            background: linear-gradient(135deg, #229954, #1e8449);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
        }

        /* ===== SPOT OBSERVABILITY STYLES ===== */

        .spot-metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .metric-card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }

        .metric-title {
            color: #888;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .metric-value {
            color: #ffffff;
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .metric-change {
            font-size: 11px;
        }

        .metric-change.positive {
            color: #00b894;
        }

        .metric-change.negative {
            color: #e17055;
        }

        .spot-main-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            grid-template-areas:
                "agents performance"
                "alerts traces"
                "resources resources";
            overflow-y: auto;
            padding-bottom: 20px;
        }

        .agent-status-section {
            grid-area: agents;
        }

        .performance-charts-section {
            grid-area: performance;
        }

        .alerts-section {
            grid-area: alerts;
        }

        .trace-flow-section {
            grid-area: traces;
        }

        .resource-section {
            grid-area: resources;
        }

        .spot-section {
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .spot-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .spot-section-header h3 {
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
        }

        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00b894;
            animation: pulse 2s infinite;
        }

        .status-indicator.live {
            background: #00b894;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.6; }
            100% { opacity: 1; }
        }

        .agent-status-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .agent-status-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .agent-status-icon {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 12px;
            color: #ffffff;
        }

        .agent-status-icon.conductor-agent {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        .agent-status-icon.spot-agent {
            background: linear-gradient(135deg, #fd79a8, #e84393);
        }

        .agent-status-icon.judy-agent {
            background: linear-gradient(135deg, #74b9ff, #0984e3);
        }

        .agent-status-info {
            flex: 1;
        }

        .agent-status-name {
            color: #ffffff;
            font-size: 14px;
            font-weight: 500;
        }

        .agent-status-count {
            color: #888;
            font-size: 12px;
        }

        .agent-status-health {
            font-size: 13px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 4px;
        }

        .agent-status-health.healthy {
            color: #00b894;
            background: rgba(0, 184, 148, 0.1);
        }

        .agent-status-health.warning {
            color: #fdcb6e;
            background: rgba(253, 203, 110, 0.1);
        }

        .chart-controls {
            display: flex;
            gap: 8px;
        }

        .chart-timeframe {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #888;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .chart-timeframe.active,
        .chart-timeframe:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.2);
        }

        .performance-chart-container {
            height: 200px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888;
            font-size: 14px;
        }

        .alert-count-badge {
            background: #e17055;
            color: #ffffff;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: 12px;
            min-width: 20px;
            text-align: center;
        }

        .alerts-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 300px;
            overflow-y: auto;
        }

        .alert-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 8px;
            border-left: 3px solid;
        }

        .alert-item.critical {
            border-left-color: #e17055;
        }

        .alert-item.warning {
            border-left-color: #fdcb6e;
        }

        .alert-item.info {
            border-left-color: #74b9ff;
        }

        .alert-icon {
            font-size: 16px;
            margin-top: 2px;
        }

        .alert-content {
            flex: 1;
        }

        .alert-title {
            color: #ffffff;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .alert-details {
            color: #aaa;
            font-size: 12px;
            margin-bottom: 6px;
        }

        .alert-time {
            color: #666;
            font-size: 11px;
        }

        .alert-action-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .alert-action-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .trace-flow-controls {
            display: flex;
            gap: 8px;
        }

        .trace-flow-toggle {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .trace-flow-toggle.active {
            background: #e17055;
            border-color: #e17055;
        }

        .trace-flow-container {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 250px;
            overflow-y: auto;
        }

        .trace-flow-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 6px;
            font-size: 12px;
        }

        .trace-flow-item.error {
            background: rgba(225, 112, 85, 0.1);
            border: 1px solid rgba(225, 112, 85, 0.2);
        }

        .trace-flow-container .trace-node {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 4px;
            font-weight: 600;
            font-size: 10px;
            color: #ffffff;
        }

        .trace-flow-container .trace-node.data-retrieval {
            background: #667eea;
        }

        .trace-flow-container .trace-node.financial-analysis {
            background: #fd79a8;
        }

        .trace-flow-container .trace-node.risk-scoring {
            background: #74b9ff;
        }

        .trace-flow-container .trace-node.conductor {
            background: #00b894;
        }

        .trace-flow-container .trace-node.evaluation {
            background: #fdcb6e;
        }

        .trace-flow-container .trace-node.error {
            background: #e17055;
        }

        .trace-tool-call {
            padding: 4px 8px;
            background: rgba(134, 239, 172, 0.1);
            border: 1px solid rgba(134, 239, 172, 0.3);
            border-radius: 4px;
            font-size: 10px;
            color: #86efac;
            font-family: 'Courier New', monospace;
            white-space: nowrap;
        }

        .trace-tool-call.error {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }

        /* Specific agent styling */
        .trace-flow-container .trace-node.loan-agent {
            background: #3b82f6;
        }

        .trace-flow-container .trace-node.risk-agent {
            background: #ef4444;
        }

        .trace-flow-container .trace-node.identity-agent {
            background: #a855f7;
        }

        .trace-flow-container .trace-node.credit-agent {
            background: #22c55e;
        }

        .trace-flow-container .trace-node.approval-agent {
            background: #fbbf24;
        }

        .trace-arrow {
            color: #888;
            font-size: 12px;
        }

        .trace-arrow.error {
            color: #e17055;
        }

        .trace-timing {
            margin-left: auto;
            color: #00b894;
            font-size: 11px;
            font-weight: 600;
        }

        .trace-timing.error {
            color: #e17055;
        }

        .resource-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .resource-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .resource-label {
            color: #aaa;
            font-size: 12px;
            min-width: 80px;
        }

        .resource-bar {
            flex: 1;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
        }

        .resource-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .resource-fill.cpu {
            background: linear-gradient(90deg, #74b9ff, #0984e3);
        }

        .resource-fill.memory {
            background: linear-gradient(90deg, #fd79a8, #e84393);
        }

        .resource-fill.tokens {
            background: linear-gradient(90deg, #fdcb6e, #e17055);
        }

        .resource-fill.queue {
            background: linear-gradient(90deg, #00b894, #00a085);
        }

        .resource-value {
            color: #ffffff;
            font-size: 12px;
            font-weight: 600;
            min-width: 40px;
            text-align: right;
        }

        /* ===== CONDUCTOR ORCHESTRATION STYLES ===== */

        .conductor-control-panel {
            margin-bottom: 30px;
        }

        .conductor-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
        }

        .conductor-title h2 {
            color: #ffffff;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .conductor-subtitle {
            color: #888;
            font-size: 14px;
        }

        .conductor-actions {
            display: flex;
            gap: 12px;
        }

        .conductor-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 16px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .conductor-btn.primary {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #ffffff;
        }

        .conductor-btn.primary:hover {
            background: linear-gradient(135deg, #5a6fd8, #6a4190);
            transform: translateY(-1px);
        }

        .conductor-btn.secondary {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
        }

        .conductor-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        /* Special styling for Deploy button */
        #deployWorkflowBtn {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
            border: 1px solid #FFB000;
            color: #1a1a1a;
            font-weight: 600;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
            transition: all 0.3s ease;
        }

        #deployWorkflowBtn:hover {
            background: linear-gradient(135deg, #FFE55C 0%, #FFB347 50%, #FF9500 100%);
            box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
            transform: translateY(-1px);
        }

        /* Gleam animation */
        #deployWorkflowBtn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s ease;
        }

        #deployWorkflowBtn:hover::before {
            left: 100%;
        }

        /* Deploy button icon styling */
        #deployWorkflowBtn .material-symbols-outlined {
            color: #1a1a1a;
        }

        /* Critical Alert Styling */
        .critical-alert {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
            color: white;
            padding: 20px 20px 80px 20px;
            border-radius: 12px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            min-width: 350px;
            max-width: 450px;
            min-height: 180px;
            box-shadow: 0 8px 32px rgba(255, 140, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            z-index: 9999;
            transform: translateX(450px);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            pointer-events: auto;
            cursor: pointer;
        }

        .critical-alert:hover {
            background: linear-gradient(135deg, #FF9500 0%, #FF7A00 100%);
            transform: translateX(-2px);
            box-shadow: 0 10px 40px rgba(255, 140, 0, 0.6);
        }

        .critical-alert.show {
            transform: translateX(0);
            opacity: 1;
        }

        .critical-alert .alert-icon {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .critical-alert .alert-icon .material-symbols-outlined {
            font-size: 20px;
            color: white;
        }

        .critical-alert .alert-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .critical-alert .alert-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .critical-alert .alert-details {
            font-size: 12px;
            opacity: 0.9;
            line-height: 1.3;
            margin-bottom: 30px;
        }

        .critical-alert .alert-close {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .critical-alert .alert-close:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        .critical-alert .alert-close .material-symbols-outlined {
            font-size: 18px;
        }

        .critical-alert .alert-warning-footer {
            margin-top: 16px;
            text-align: center;
            animation: pulse 2s ease-in-out infinite;
            display: block !important;
            width: 100%;
        }

        .critical-alert .alert-warning-footer .material-symbols-outlined {
            font-size: 36px !important;
            color: white !important;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
            display: inline-block !important;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.8; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.1); }
        }

        .conductor-main-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            grid-template-areas:
                "workflow palette"
                "orchestration orchestration"
                "agent-pools agent-pools"
                "integration integration";
        }

        .workflow-designer-section {
            grid-area: workflow;
        }

        .agent-palette-section {
            grid-area: palette;
        }

        .orchestration-section {
            grid-area: orchestration;
        }

        .agent-pools-section {
            grid-area: agent-pools;
        }

        .integration-hub-section {
            grid-area: integration;
            display: flex;
            flex-direction: column;
        }

        .conductor-section {
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .conductor-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .conductor-section-header h3 {
            color: #ffffff;
            font-size: 16px;
            font-weight: 600;
        }

        .workflow-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .workflow-control-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .workflow-control-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .workflow-template-select {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
        }

        .workflow-canvas {
            position: relative;
            height: 400px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            overflow: hidden;
        }

        .workflow-connections {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .workflow-node {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            cursor: move;
            user-select: none;
            min-width: 80px;
        }

        .workflow-node:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .node-icon {
            font-size: 20px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
        }

        .node-icon.start {
            background: linear-gradient(135deg, #00b894, #00a085);
        }

        .node-icon.agent {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        .node-icon.decision {
            background: linear-gradient(135deg, #fdcb6e, #e17055);
        }

        .node-icon.end {
            background: linear-gradient(135deg, #e17055, #d63031);
        }

        .node-label {
            color: #ffffff;
            font-size: 11px;
            font-weight: 500;
            text-align: center;
        }

        .node-connector {
            position: absolute;
            width: 8px;
            height: 8px;
            background: #667eea;
            border: 2px solid #ffffff;
            border-radius: 50%;
        }

        .node-connector.in {
            left: -4px;
            top: 50%;
            transform: translateY(-50%);
        }

        .node-connector.out {
            right: -4px;
            top: 50%;
            transform: translateY(-50%);
        }

        .agent-palette {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .palette-category {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 12px;
        }

        .palette-category:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .palette-category-title {
            color: #888;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .palette-agent {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 6px;
            margin-bottom: 6px;
            cursor: grab;
            transition: all 0.2s ease;
        }

        .palette-agent:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .palette-agent:active {
            cursor: grabbing;
        }

        .palette-agent-icon {
            font-size: 16px;
            width: 24px;
            text-align: center;
        }

        .palette-agent-name {
            color: #ffffff;
            font-size: 12px;
            font-weight: 500;
        }

        .orchestration-status {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #00b894;
            font-size: 12px;
            font-weight: 500;
        }

        .orchestration-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }

        .orchestration-stat {
            text-align: center;
        }

        .stat-label {
            color: #888;
            font-size: 11px;
            margin-bottom: 4px;
        }

        .stat-value {
            color: #ffffff;
            font-size: 20px;
            font-weight: 600;
        }

        .active-workflows {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .workflow-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 6px;
        }

        .workflow-name {
            color: #ffffff;
            font-size: 13px;
            font-weight: 500;
        }

        .workflow-status {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }

        .workflow-status.running {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
        }

        .workflow-status.paused {
            background: rgba(253, 203, 110, 0.2);
            color: #fdcb6e;
        }

        .workflow-agents {
            color: #888;
            font-size: 11px;
        }

        .add-pool-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .add-pool-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .agent-pools {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .agent-pool {
            padding: 12px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .pool-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .pool-name {
            color: #ffffff;
            font-size: 14px;
            font-weight: 500;
        }

        .pool-health {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }

        .pool-health.healthy {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
        }

        .pool-health.warning {
            background: rgba(253, 203, 110, 0.2);
            color: #fdcb6e;
        }

        .pool-stats {
            display: flex;
            gap: 16px;
            color: #888;
            font-size: 12px;
        }

        .browse-integrations-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .browse-integrations-btn:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .integration-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            height: calc(400px + 240px);
            overflow-y: auto;
            padding: 12px;
        }

        .integration-grid::-webkit-scrollbar {
            width: 8px;
        }

        .integration-grid::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 4px;
        }

        .integration-grid::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .integration-grid::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        .integration-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 28px 16px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            text-align: center;
            transition: all 0.3s ease;
            min-height: 140px;
        }
        
        .integration-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.12);
            transform: translateY(-2px);
        }

        .integration-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            color: #ffffff;
        }
        
        .integration-icon img {
            width: 32px !important;
            height: 32px !important;
            object-fit: contain !important;
        }

        .integration-icon.langchain {
            background: linear-gradient(135deg, #2ecc71, #27ae60);
        }

        .integration-icon.llamaindex {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }

        .integration-icon.opentelemetry {
            background: linear-gradient(135deg, #f39c12, #e67e22);
        }

        .integration-icon.slack {
            background: linear-gradient(135deg, #9b59b6, #8e44ad);
        }

        .integration-name {
            color: #ffffff;
            font-size: 13px;
            font-weight: 500;
        }

        .integration-status {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
        }

        .integration-status.connected {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
        }

        .integration-status.available {
            background: rgba(116, 185, 255, 0.2);
            color: #74b9ff;
        }

        /* ===== Workflow Source Panel Styles ===== */
        .workflow-controls {
            display: flex;
            gap: 16px;
            align-items: center;
        }

        .workflow-source-controls {
            display: flex;
            gap: 8px;
        }

        .workflow-action-controls {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .workflow-source-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .workflow-source-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .workflow-source-btn.active {
            background: rgba(102, 126, 234, 0.3);
            border-color: rgba(102, 126, 234, 0.5);
            color: #667eea;
        }

        .workflow-source-panel {
            margin-top: 16px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .source-panel {
            display: none;
        }

        .source-panel.active {
            display: block;
        }

        /* JSON Upload Panel */
        .upload-area {
            border: 2px dashed rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .upload-area:hover {
            border-color: rgba(102, 126, 234, 0.5);
            background: rgba(102, 126, 234, 0.05);
        }

        .upload-area.dragover {
            border-color: #667eea;
            background: rgba(102, 126, 234, 0.1);
        }

        .upload-icon {
            font-size: 48px;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 16px;
        }

        .upload-text h4 {
            font-size: 16px;
            margin-bottom: 8px;
            color: #ffffff;
        }

        .upload-text p {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }

        .upload-progress {
            text-align: center;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            margin-bottom: 12px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
        }

        /* Git Repo Panel */
        .repo-form {
            display: grid;
            gap: 16px;
        }

        .repo-input-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .repo-input-group label {
            font-size: 12px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.8);
        }

        .repo-input {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 13px;
            transition: all 0.2s ease;
        }

        .repo-input:focus {
            outline: none;
            border-color: #667eea;
            background: rgba(255, 255, 255, 0.08);
        }

        .repo-analyze-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            color: #ffffff;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .repo-analyze-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .repo-analysis {
            margin-top: 20px;
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .analysis-progress {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .analysis-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            opacity: 0.4;
        }

        .analysis-step.active {
            background: rgba(102, 126, 234, 0.1);
            opacity: 1;
        }

        .analysis-step.complete {
            background: rgba(0, 184, 148, 0.1);
            opacity: 1;
        }

        .step-icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .step-text {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.9);
        }

        .detected-stack {
            margin-top: 16px;
            padding: 16px;
            background: rgba(0, 184, 148, 0.1);
            border-radius: 8px;
            border-left: 4px solid #00b894;
        }

        .detected-stack h4 {
            font-size: 14px;
            margin-bottom: 12px;
            color: #00b894;
        }

        .stack-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .stack-badge {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
        }


        /* ===== Enhanced Performance Charts ===== */
        .performance-chart-container {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 16px;
        }

        .chart-legends {
            display: flex;
            gap: 20px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .chart-legend {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
        }

        .legend-color {
            width: 12px;
            height: 12px;
            border-radius: 2px;
        }

        .time-series-chart {
            position: relative;
            height: 300px;
        }

        .chart-svg {
            width: 100%;
            height: 100%;
        }

        .chart-tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 8px 12px;
            font-size: 11px;
            color: #ffffff;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease;
            z-index: 10;
        }

        .chart-tooltip.show {
            opacity: 1;
        }

        /* Chart grid and axes */
        .chart-grid line {
            stroke: rgba(255, 255, 255, 0.1);
            stroke-width: 1;
        }

        .chart-axes text {
            fill: rgba(255, 255, 255, 0.6);
            font-size: 10px;
        }

        .chart-axes line {
            stroke: rgba(255, 255, 255, 0.3);
            stroke-width: 1;
        }

        /* Chart data lines */
        .chart-line {
            fill: none;
            stroke-width: 2;
        }

        .chart-area {
            opacity: 0.6;
        }

        /* Spot metric cards enhancement */
        .spot-metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }

        /* ===== Launch Button Styles ===== */
        .orchestration-controls {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .launch-btn {
            background: linear-gradient(135deg, #ff7a00, #ff9a00);
            border: none;
            color: #ffffff;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .launch-btn::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transform: rotate(45deg);
            transition: all 0.6s ease;
            opacity: 0;
        }

        .launch-btn:hover::before {
            opacity: 1;
            animation: shine 0.6s ease-out;
        }

        .launch-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 122, 0, 0.4);
            background: linear-gradient(135deg, #ff8a10, #ffaa10);
        }

        @keyframes shine {
            0% {
                left: -100%;
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            100% {
                left: 100%;
                opacity: 0;
            }
        }

        /* ===== Consolidated Table Styles ===== */
        .orchestration-table-container {
            margin-top: 20px;
            border-radius: 8px;
            overflow: hidden;
            background: rgba(0, 0, 0, 0.2);
            width: 100%;
        }

        .orchestration-table {
            width: 100%;
        }

        .table-row {
            display: grid;
            grid-template-columns: 3fr 1.2fr 1.2fr 1fr 1fr 1.2fr;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: background 0.2s ease;
        }

        .table-row:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .header-row {
            background: rgba(255, 255, 255, 0.05);
            font-weight: 600;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.8);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .table-cell {
            padding: 16px 12px;
            display: flex;
            align-items: center;
        }

        .header-row .table-cell {
            padding: 12px;
        }

        .item-name {
            font-size: 13px;
            font-weight: 500;
            color: #ffffff;
        }

        .item-type {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 500;
            text-transform: uppercase;
        }

        .item-type.workflow {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
        }

        .item-type.pool {
            background: rgba(253, 121, 168, 0.2);
            color: #fd79a8;
        }

        .item-status {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
        }

        .item-status.running {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
        }

        .item-status.healthy {
            background: rgba(0, 184, 148, 0.2);
            color: #00b894;
        }

        .item-status.warning {
            background: rgba(253, 203, 110, 0.2);
            color: #fdcb6e;
        }

        .agent-count {
            font-size: 14px;
            font-weight: 600;
            color: #ffffff;
        }

        .health-indicator {
            font-size: 12px;
            font-weight: 600;
        }

        .health-indicator.healthy {
            color: #00b894;
        }

        .health-indicator.warning {
            color: #fdcb6e;
        }

        .action-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s ease;
        }

        .action-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }

        /* ===== Test Controls Styles ===== */
        .test-controls {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .applicant-select {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #ffffff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            min-width: 200px;
        }

        .applicant-select option {
            background: #2a2a2a;
            color: #ffffff;
        }