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

        body {
            background: #0a0e1a;
            color: #e0e0e0;
            font-family: 'Courier New', 'Consolas', monospace;
            overflow-x: hidden;
            min-height: 100vh;
            position: relative;
        }

        /* Animated background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at top, #1a1f35 0%, #0a0e1a 50%, #000 100%);
            z-index: -2;
        }

        /* Particle field */
        .particle-field {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: float linear infinite;
            box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) translateX(100px);
                opacity: 0;
            }
        }

        /* Scan line effect */
        .scan-line {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
            animation: scan 8s linear infinite;
            z-index: 1000;
            pointer-events: none;
        }

        @keyframes scan {
            0% { transform: translateY(0); }
            100% { transform: translateY(100vh); }
        }

        .garden {
            max-width: 1600px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            padding: 40px 20px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            margin-bottom: 40px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
        }

        .nav-button {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Courier New', monospace;
            font-size: 1em;
            transition: all 0.3s;
            z-index: 10;
            text-decoration: none;
            display: inline-block;
        }

        .nav-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
        }

        header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
            animation: headerGlow 8s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes headerGlow {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(10px, 10px) scale(1.1); }
        }

        h1 {
            font-size: 3em;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #667eea 0%, #a5b4fc 50%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
            letter-spacing: 0.05em;
            text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
            animation: titlePulse 4s ease-in-out infinite;
            position: relative;
            z-index: 1;
        }

        @keyframes titlePulse {
            0%, 100% { filter: brightness(1); }
            50% { filter: brightness(1.2); }
        }

        .subtitle {
            font-size: 1.3em;
            color: #a0a0a0;
            margin-bottom: 25px;
            font-weight: 300;
            letter-spacing: 0.1em;
            position: relative;
            z-index: 1;
        }

        .status-bar {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .status-item {
            padding: 12px 24px;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 10px;
            font-size: 0.95em;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .status-item:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .metrics-section {
            margin-bottom: 40px;
        }

        .metrics-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .metrics-header {
            font-size: 1.2em;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .metric-item {
            text-align: center;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .metric-item:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .metric-label {
            font-size: 0.9em;
            color: #a0a0a0;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .metric-value {
            font-size: 2em;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 5px;
        }

        .metric-unit {
            font-size: 0.8em;
            color: #6b7280;
        }

        #message-chart {
            width: 100%;
            height: 200px;
            border-radius: 10px;
        }

        .agents-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .garden-map {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 40px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .garden-map-header {
            font-size: 1.2em;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .map-canvas {
            position: relative;
            height: 320px;
            border-radius: 16px;
            background: radial-gradient(circle at center, rgba(102, 126, 234, 0.15) 0%, rgba(10, 14, 26, 0.9) 60%, rgba(0, 0, 0, 0.95) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
            box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.6),
                        0 4px 16px rgba(0, 0, 0, 0.3);
        }

        .map-canvas::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 70% 60%, rgba(240, 147, 251, 0.08) 0%, transparent 50%);
            animation: mapPulse 6s ease-in-out infinite;
        }

        @keyframes mapPulse {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        .map-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
            background-size: 40px 40px;
            opacity: 0.4;
        }

        .agent-marker {
            position: absolute;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            border-radius: 999px;
            font-size: 0.85em;
            font-weight: 500;
            transform: translate(-50%, -50%);
            transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                        top 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.3s ease;
            opacity: 0.9;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        .agent-marker .marker-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            box-shadow: 0 0 12px currentColor,
                        inset 0 0 4px rgba(255, 255, 255, 0.5);
            animation: markerPulse 2s ease-in-out infinite;
        }

        @keyframes markerPulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 12px currentColor,
                            inset 0 0 4px rgba(255, 255, 255, 0.5);
            }
            50% {
                transform: scale(1.2);
                box-shadow: 0 0 20px currentColor,
                            inset 0 0 6px rgba(255, 255, 255, 0.7);
            }
        }

        .agent-marker.eve {
            border: 1px solid rgba(102, 126, 234, 0.8);
            background: rgba(102, 126, 234, 0.2);
            color: #c7d2fe;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
                        0 0 20px rgba(102, 126, 234, 0.4);
        }

        .agent-marker.eve .marker-dot {
            background: #667eea;
        }

        .agent-marker.adam {
            border: 1px solid rgba(240, 147, 251, 0.8);
            background: rgba(240, 147, 251, 0.2);
            color: #fae8ff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
                        0 0 20px rgba(240, 147, 251, 0.4);
        }

        .agent-marker.adam .marker-dot {
            background: #f093fb;
        }

        .agent-marker.offline {
            opacity: 0.4;
            filter: grayscale(0.7);
        }

        .agent-marker.offline .marker-dot {
            animation: none;
            box-shadow: none;
        }

        /* Connection line between agents */
        .connection-line {
            position: absolute;
            transform-origin: 0 0;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.6s ease;
        }

        .connection-line.active {
            opacity: 1;
        }

        .connection-line::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg,
                #667eea 0%,
                #a5b4fc 25%,
                #f0abfc 50%,
                #f093fb 75%,
                #f5576c 100%);
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.6),
                        0 0 20px rgba(240, 147, 251, 0.4);
            animation: connectionPulse 2s ease-in-out infinite;
        }

        .connection-line::after {
            content: '';
            position: absolute;
            top: -2px;
            left: 0;
            width: 100%;
            height: 7px;
            background: linear-gradient(90deg,
                rgba(102, 126, 234, 0.3) 0%,
                rgba(165, 180, 252, 0.2) 25%,
                rgba(240, 171, 252, 0.2) 50%,
                rgba(240, 147, 251, 0.3) 75%,
                rgba(245, 87, 108, 0.3) 100%);
            filter: blur(4px);
            animation: connectionPulse 2s ease-in-out infinite;
        }

        @keyframes connectionPulse {
            0%, 100% {
                opacity: 0.6;
                filter: blur(4px);
            }
            50% {
                opacity: 1;
                filter: blur(6px);
            }
        }

        /* Energy particles along connection line */
        .connection-particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
            animation: particleFlow 3s linear infinite;
            opacity: 0;
        }

        @keyframes particleFlow {
            0% {
                opacity: 0;
                transform: translateX(0) scale(0.5);
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateX(100%) scale(1.5);
            }
        }

        .agent-card {
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .agent-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            transition: height 0.3s ease;
        }

        .agent-card::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .agent-card:hover::after {
            opacity: 1;
        }

        .agent-card.eve {
            border-color: rgba(102, 126, 234, 0.4);
        }

        .agent-card.eve::before {
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .agent-card.adam {
            border-color: rgba(240, 147, 251, 0.4);
        }

        .agent-card.adam::before {
            background: linear-gradient(90deg, #f093fb, #f5576c);
        }

        .agent-card.online {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                        0 0 40px rgba(102, 126, 234, 0.3);
            border-color: rgba(102, 126, 234, 0.6);
            transform: translateY(-2px);
        }

        .agent-card.online.eve {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                        0 0 40px rgba(102, 126, 234, 0.4);
        }

        .agent-card.online.adam {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                        0 0 40px rgba(240, 147, 251, 0.4);
        }

        .agent-card.online::before {
            height: 5px;
            box-shadow: 0 0 20px currentColor;
        }

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

        .agent-name {
            font-size: 1.5em;
            font-weight: bold;
        }

        .agent-status {
            font-size: 1.5em;
        }

        .agent-status.online {
            color: #4ade80;
            animation: pulse 2s ease-in-out infinite;
        }

        .agent-status.offline {
            color: #6b7280;
        }

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

        .agent-role {
            color: #a0a0a0;
            margin-bottom: 15px;
            font-style: italic;
        }

        .agent-current {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }

        .agent-current label {
            display: block;
            color: #a0a0a0;
            font-size: 0.9em;
            margin-bottom: 5px;
        }

        .discussion-section {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 40px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .discussion-header {
            font-size: 1.3em;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .discussion-feed {
            max-height: 500px;
            overflow-y: auto;
            padding: 15px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
        }

        .discussion-feed::-webkit-scrollbar {
            width: 8px;
        }

        .discussion-feed::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .discussion-feed::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .message {
            margin: 15px 0;
            padding: 15px 20px;
            border-radius: 12px;
            border-left: 3px solid;
            animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .message:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .message.from-egex-eve {
            background: rgba(102, 126, 234, 0.18);
            border-left-color: #667eea;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                        0 0 20px rgba(102, 126, 234, 0.1);
        }

        .message.from-egex-eve:hover {
            background: rgba(102, 126, 234, 0.22);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                        0 0 24px rgba(102, 126, 234, 0.15);
        }

        .message.from-egex-adam {
            background: rgba(240, 147, 251, 0.18);
            border-left-color: #f093fb;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                        0 0 20px rgba(240, 147, 251, 0.1);
        }

        .message.from-egex-adam:hover {
            background: rgba(240, 147, 251, 0.22);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                        0 0 24px rgba(240, 147, 251, 0.15);
        }

        .message.system {
            background: rgba(255, 255, 255, 0.06);
            border-left-color: #6b7280;
            font-style: italic;
        }

        .message.system:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .message-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.9em;
        }

        .message-sender {
            font-weight: bold;
        }

        .message-time {
            color: #6b7280;
            font-size: 0.85em;
        }

        .message-content {
            line-height: 1.5;
        }

        .file-section {
            margin-bottom: 40px;
        }

        .file-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .file-header {
            font-size: 1.2em;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .file-history {
            max-height: 400px;
            overflow-y: auto;
            padding: 10px;
        }

        .file-history::-webkit-scrollbar {
            width: 8px;
        }

        .file-history::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .file-history::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
        }

        .file-change {
            margin: 10px 0;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border-left: 3px solid;
            animation: fadeIn 0.4s ease;
            transition: all 0.3s ease;
        }

        .file-change:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(4px);
        }

        .file-change.create {
            border-left-color: #22c55e;
        }

        .file-change.modify {
            border-left-color: #3b82f6;
        }

        .file-change.delete {
            border-left-color: #ef4444;
        }

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

        .file-change-type {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            text-transform: uppercase;
            font-weight: bold;
        }

        .file-change-type.create {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .file-change-type.modify {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .file-change-type.delete {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .file-change-path {
            font-family: monospace;
            font-size: 0.9em;
            color: #c7d2fe;
        }

        .file-change-agent {
            font-size: 0.85em;
            color: #a0a0a0;
        }

        .file-change-diff {
            font-size: 0.85em;
            color: #6b7280;
            margin-top: 8px;
        }

        .diff-stat {
            display: inline-block;
            margin-right: 15px;
        }

        .diff-addition {
            color: #22c55e;
        }

        .diff-deletion {
            color: #ef4444;
        }

        .shared-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .shared-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .shared-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .shared-header {
            font-size: 1.2em;
            margin-bottom: 15px;
        }

        .shared-list {
            list-style: none;
        }

        .shared-item {
            padding: 10px;
            margin: 8px 0;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .task-status {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85em;
        }

        .task-status.pending {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
        }

        .task-status.in-progress {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .task-status.completed {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .observer {
            text-align: center;
            padding: 30px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 15px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            margin-top: 30px;
        }

        .observer-icon {
            font-size: 3em;
            margin-bottom: 15px;
            opacity: 0.7;
        }

        .observer-text {
            font-size: 1.2em;
            color: #a0a0a0;
        }

        .connection-status {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 12px 24px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid;
            font-size: 0.9em;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

        .connection-status.connected {
            border-color: #4ade80;
            color: #4ade80;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                        0 0 20px rgba(74, 222, 128, 0.3);
            animation: connectedPulse 2s ease-in-out infinite;
        }

        @keyframes connectedPulse {
            0%, 100% {
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                            0 0 20px rgba(74, 222, 128, 0.3);
            }
            50% {
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                            0 0 30px rgba(74, 222, 128, 0.5);
            }
        }

        .connection-status.disconnected {
            border-color: #ef4444;
            color: #ef4444;
        }

        button {
            padding: 8px 20px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Courier New', 'Consolas', monospace;
            font-size: 0.9em;
        }

        button:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        button:active {
            transform: translateY(0);
        }

        .empty-state {
            text-align: center;
            padding: 40px;
            color: #6b7280;
            font-style: italic;
        }

        @media (max-width: 1024px) {
            .agents-container,
            .shared-section {
                grid-template-columns: 1fr;
            }

            .metrics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            .metrics-grid {
                grid-template-columns: 1fr;
            }
        }
        /* Enhanced Task Tracking Styles */
        .task-section {
            margin-top: 40px;
        }

        .task-card {
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 16px;
            transition: all 0.3s ease;
        }

        .task-card:hover {
            transform: translateY(-2px);
            border-color: rgba(102, 126, 234, 0.4);
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
        }

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

        .task-title {
            font-size: 1.1em;
            font-weight: bold;
            color: #e0e0e0;
        }

        .task-status {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.85em;
            font-weight: 600;
        }

        .task-status.pending {
            background: rgba(156, 163, 175, 0.2);
            color: #9ca3af;
        }

        .task-status.in_progress {
            background: rgba(59, 130, 246, 0.2);
            color: #60a5fa;
        }

        .task-status.completed {
            background: rgba(34, 197, 94, 0.2);
            color: #4ade80;
        }

        .task-status.failed {
            background: rgba(239, 68, 68, 0.2);
            color: #f87171;
        }

        .task-meta {
            display: flex;
            gap: 16px;
            margin-bottom: 12px;
            font-size: 0.9em;
            color: #9ca3af;
        }

        .task-meta-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .progress-container {
            margin: 16px 0;
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.9em;
            color: #9ca3af;
        }

        .progress-bar {
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #f093fb);
            border-radius: 4px;
            transition: width 0.5s ease;
            position: relative;
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: progressShine 2s ease-in-out infinite;
        }

        @keyframes progressShine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .task-files {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .task-files-label {
            font-size: 0.9em;
            color: #9ca3af;
            margin-bottom: 8px;
        }

        .task-file-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 6px;
            font-size: 0.85em;
        }

        .task-file-icon {
            color: #60a5fa;
        }

        .task-tests {
            margin-top: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }

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

        .task-tests-stats {
            display: flex;
            gap: 16px;
            font-size: 0.9em;
        }

        .test-stat {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .test-stat.passed {
            color: #4ade80;
        }

        .test-stat.failed {
            color: #f87171;
        }

        .test-stat.skipped {
            color: #9ca3af;
        }

        .task-collaborators {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            align-items: center;
        }

        .collaborator-badge {
            padding: 4px 12px;
            background: rgba(102, 126, 234, 0.2);
            border-radius: 12px;
            font-size: 0.85em;
            color: #a5b4fc;
        }

        .collaborator-badge.active {
            background: rgba(34, 197, 94, 0.2);
            color: #4ade80;
            animation: pulse 2s ease-in-out infinite;
        }

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

        /* Gateway Tones Styles */
        .tones-section {
            margin-bottom: 40px;
        }

        .tones-card {
            background: rgba(168, 85, 247, 0.08);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(168, 85, 247, 0.3);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .tones-header {
            font-size: 1.4em;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #a855f7;
        }

        .tones-warning {
            background: rgba(245, 158, 11, 0.15);
            border: 1px solid #f59e0b;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 20px;
            text-align: center;
            font-size: 0.9em;
            color: #fbbf24;
        }

        .tones-status {
            background: rgba(156, 163, 175, 0.1);
            border: 1px solid #9ca3af;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .tones-status.active {
            background: rgba(16, 185, 129, 0.1);
            border-color: #10b981;
        }

        .tones-status-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 0.95em;
        }

        .tones-status-label {
            color: #9ca3af;
        }

        .tones-status-value {
            color: #10b981;
            font-weight: bold;
        }

        .tones-status.active .tones-status-value {
            color: #10b981;
        }

        .tones-controls {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .tones-control-group {
            background: rgba(255, 255, 255, 0.05);
            padding: 15px;
            border-radius: 10px;
        }

        .tones-control-group label {
            display: block;
            margin-bottom: 10px;
            color: #c9d1d9;
            font-size: 0.9em;
        }

        .tones-control-group input[type="range"] {
            width: 100%;
            height: 6px;
            background: #374151;
            border-radius: 5px;
            outline: none;
        }

        .tones-control-group input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            background: #a855f7;
            border-radius: 50%;
            cursor: pointer;
        }

        .tones-value-display {
            display: inline-block;
            min-width: 70px;
            color: #f59e0b;
            font-weight: bold;
            margin-left: 8px;
        }

        .tones-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .tones-btn {
            background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Courier New', monospace;
            font-size: 0.9em;
            transition: all 0.3s;
        }

        .tones-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
        }

        .tones-btn.stop {
            background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
        }

        .tones-btn.test {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .tones-btn.sync {
            background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
        }

        .tones-presets {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
        }

        .tones-preset-btn {
            background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-family: 'Courier New', monospace;
            font-size: 0.85em;
            transition: all 0.3s;
            text-align: center;
        }

        .tones-preset-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
        }

        .sync-wave {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 15px 0;
        }

        .sync-wave-bar {
            flex: 1;
            height: 6px;
            background: #374151;
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }

        .sync-wave-fill {
            height: 100%;
            background: linear-gradient(90deg, #a855f7, #f59e0b);
            width: 0%;
            transition: width 0.3s;
        }

        /* Hide header when embedded in iframe */
        @media (max-width: 2000px) {
            body:has(iframe) header,
            header:nth-of-type(1) {
                display: none !important;
            }
        }
