        /* Modern blog design inspired by Distill/Medium */
        * {
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #2c3e50;
            margin: 0;
            padding: 0;
            background: #ffffff;
        }

        .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

        /* Header */
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 0;
            text-align: center;
            margin-bottom: 40px;
        }

        .header h1 {
            font-size: 2.5em;
            font-weight: 700;
            margin: 0 0 20px 0;
            letter-spacing: -0.02em;
        }

        .header .subtitle {
            font-size: 1.2em;
            opacity: 0.9;
            font-weight: 300;
        }

        .header .meta {
            margin-top: 30px;
            font-size: 0.9em;
            opacity: 0.8;
        }

        /* Abstract box */
        .abstract-box {
            background: #f8f9fa;
            border-left: 4px solid #667eea;
            padding: 30px;
            margin: 40px 0;
            border-radius: 0 8px 8px 0;
            font-size: 16px;
            line-height: 1.4;
        }

        .abstract-box h3 {
            color: #667eea;
            margin: 0 0 15px 0;
            font-weight: 600;
            font-size: 1.2em;
        }

        /* Article content */
        .article {
            margin-bottom: 60px;
        }

        .article h2 {
            font-size: 1.8em;
            font-weight: 600;
            margin: 50px 0 20px 0;
            color: #1a1a1a;
            border-bottom: 2px solid #667eea;
            padding-bottom: 10px;
        }

        .article h3 {
            font-size: 1.4em;
            font-weight: 600;
            margin: 35px 0 15px 0;
            color: #333;
        }

        .article p {
            font-size: 1.1em;
            margin-bottom: 24px;
            text-align: justify;
        }

        /* Task example graphs */
        .task-example-graph {
            width: 100%;
            height: 120px;
            margin: 15px 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .task-example-graph svg {
            background: rgba(102, 126, 234, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        /* Task example graph styles - matching main visualizer */
        .task-example-graph .node circle {
            stroke: #667eea;
            stroke-width: 2;
        }

        .task-example-graph .node.leader circle {
            stroke: #f59e0b;
            stroke-width: 3;
            filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
        }

        .task-example-graph .node.coordinator circle {
            stroke: #10b981;
            stroke-width: 3;
            filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
        }

        .task-example-graph .node text {
            font-size: 12px;
            font-weight: 600;
            text-anchor: middle;
            dominant-baseline: central;
            fill: #ffffff;
            pointer-events: none;
            text-shadow: 0 0 3px rgba(0,0,0,0.8);
        }

        .task-example-graph .node .answer-label {
            font-size: 10px;
            font-weight: 500;
            fill: rgba(255,255,255,0.9);
            text-anchor: middle;
            dominant-baseline: central;
            text-shadow: 0 0 3px rgba(0,0,0,0.8);
        }

        .task-example-graph .link {
            stroke: #666666;
            stroke-width: 2;
            opacity: 0.7;
        }

        .task-example-graph .link.matching-edge {
            stroke: #10b981;
            stroke-width: 3;
            filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.6));
            opacity: 1;
        }

        .task-example-graph .link.cover-edge {
            stroke: #666666;
            stroke-width: 2;
            opacity: 0.7;
        }
        .tasks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .task-card {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 25px;
            border-left: 4px solid #667eea;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .task-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .task-card h4 {
            color: #667eea;
            font-weight: 600;
            margin: 0 0 10px 0;
            font-size: 1.1em;
        }

        .task-card p {
            font-size: 0.95em;
            margin: 0;
            text-align: left;
        }

        /* Visualization section - make it wider and more responsive */
        .viz-section {
            margin: 60px 0;
            background: #f8f9fa;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            /* Use fluid responsive width that grows gradually */
            width: 100%;
            max-width: min(1200px, calc(100vw - 40px));
            margin-left: auto;
            margin-right: auto;
        }

        /* Fluid extension using clamp for smooth transitions */
        @media (min-width: 900px) {
            .viz-section {
                /* Calculate the extension amount smoothly */
                --extension: clamp(0px, calc((100vw - 900px) * 0.25), 250px);
                /* Extend the width */
                width: calc(100% + var(--extension));
                position: relative;
                /* Move left by exactly half the extension to center it */
                left: calc(var(--extension) / -2);
                max-width: min(1300px, calc(100vw - 40px));
            }
        }

        .viz-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .viz-header h2 {
            margin: 0 0 10px 0;
            border: none;
            padding: 0;
            color: white;
        }

        .viz-header p {
            margin: 0;
            opacity: 0.9;
            font-size: 1em;
        }

        /* Embedded visualizer container - make it responsive */
        .viz-container {
            position: relative;
            height: 700px;
            background: #0a0a0a;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            color: #e0e0e0;
            width: 100%;
        }

        /* Original styles preserved */
        .container-viz {
            display: flex;
            height: 100%;
            position: relative;
        }

        /* Header */

        button {
            background: rgba(102, 126, 234, 0.2);
            border: 1px solid #667eea;
            color: #e0e0e0;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        button:hover {
            background: rgba(102, 126, 234, 0.3);
            box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
        }

        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Main content area */
        .main-content {
            flex: 1;
            display: flex;
            margin-top: 80px;
            margin-bottom: 60px;
        }

        /* Graph container */
        .graph-container {
            flex: 1;
            position: relative;
            background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
        }

        #graph {
            width: 100%;
            height: 100%;
        }

        /* Message flow arrows */

        @keyframes dash {
            to {
                stroke-dashoffset: -10;
            }
        }

        /* Panel container - adjust for wider screens */
        .panel-container {
            width: 400px;
            background: rgba(20, 20, 20, 0.8);
            backdrop-filter: blur(10px);
            border-left: 1px solid rgba(255,255,255,0.1);
            position: relative;
            transition: transform 0.3s ease;
            min-width: 400px;
        }

        /* Responsive adjustments for panel */
        @media (min-width: 1200px) {
            .panel-container {
                width: 600px;
            }
        }

        .panel-container.hidden {
            transform: translateX(100%);
        }

        /* Transcript panel */
        .transcript-panel {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
        }

        .transcript-panel.hidden {
            transform: translateX(100%);
        }

        .transcript-header {
            padding: 20px;
            background: rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.1);
            flex-shrink: 0;
        }

        .agent-name {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 5px;
            color: #667eea;
        }

        .agent-info {
            font-size: 14px;
            color: rgba(255,255,255,0.6);
        }

        .message-stats {
            font-size: 12px;
            background: rgba(102, 126, 234, 0.1);
            padding: 4px 8px;
            border-radius: 12px;
            border: 1px solid rgba(102, 126, 234, 0.3);
            margin-top: 5px;
            display: inline-block;
        }

        /* Neighbor selection UI */
        .neighbor-selector {
            margin-top: 15px;
            padding: 15px;
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .neighbor-selector-title {
            font-size: 14px;
            font-weight: 600;
            color: #10b981;
            margin-bottom: 10px;
        }

        .neighbor-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .neighbor-button {
            padding: 6px 12px;
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #10b981;
            border-radius: 15px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .neighbor-button:hover {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.5);
        }

        .neighbor-button.active {
            background: rgba(16, 185, 129, 0.3);
            border-color: #10b981;
            color: white;
        }

        .clear-filter-button {
            padding: 6px 12px;
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            color: #f59e0b;
            border-radius: 15px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .clear-filter-button:hover {
            background: rgba(245, 158, 11, 0.2);
            border-color: rgba(245, 158, 11, 0.5);
        }

        /* Transcript content */
        .transcript-content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px;
            min-height: 0;
        }

        .round-section {
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255,255,255,0.02);
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .round-header {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #667eea;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .round-number {
            background: rgba(102, 126, 234, 0.2);
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 14px;
        }

        .messages-group {
            margin-bottom: 20px;
        }

        .messages-label {
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .messages-label.received {
            color: #10b981;
        }

        .messages-label.sent {
            color: #f59e0b;
        }

        .message-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            display: inline-block;
        }

        .message-indicator.received {
            background: #10b981;
        }

        .message-indicator.sent {
            background: #f59e0b;
        }

        .message {
            margin-bottom: 15px;
            padding: 15px;
            border-radius: 10px;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.05);
            animation: fadeIn 0.3s ease;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .message:hover {
            background: rgba(255,255,255,0.06);
            transform: translateX(5px);
        }

        .message.received {
            border-left: 3px solid #10b981;
        }

        .message.sent {
            border-left: 3px solid #f59e0b;
        }

        .message.highlight-target {
            background: rgba(245, 158, 11, 0.1);
            border-color: rgba(245, 158, 11, 0.5);
            transform: translateX(5px);
        }

        .message.highlight-source {
            background: rgba(16, 185, 129, 0.1);
            border-color: rgba(16, 185, 129, 0.5);
            transform: translateX(5px);
        }

        .message.filtered-out {
            opacity: 0.3;
            transform: none;
        }

        .message.filtered-out:hover {
            transform: none;
        }

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

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

        .message-from {
            font-size: 13px;
            font-weight: 600;
            color: #10b981;
        }

        .message-to {
            font-size: 13px;
            font-weight: 600;
            color: #f59e0b;
        }

        .message-content {
            font-size: 14px;
            line-height: 1.6;
            color: rgba(255,255,255,0.8);
            white-space: pre-line;
            max-height: 200px;
            overflow-y: auto;
        }

        .system-message {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            margin-bottom: 20px;
            padding: 15px;
            border-radius: 10px;
        }

        .system-message .message-content {
            color: #f59e0b;
            font-size: 13px;
        }

        /* Graph styles */
        .node {
            cursor: pointer;
        }

        .node circle {
            stroke: #667eea;
            stroke-width: 2;
        }

        .node.selected circle {
            stroke: #f59e0b;
            stroke-width: 5;
            filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1.0));
            animation: selectedPulse 2s infinite;
        }

        .node.highlight-source circle {
            stroke: #10b981;
            stroke-width: 4;
            filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.8));
            animation: pulse 1s infinite;
        }

        .node.highlight-target circle {
            stroke: #f59e0b;
            stroke-width: 4;
            filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8));
            animation: pulse 1s infinite;
        }

        @keyframes pulse {
            0% {
                stroke-width: 4;
                opacity: 1;
            }
            50% {
                stroke-width: 6;
                opacity: 0.8;
            }
            100% {
                stroke-width: 4;
                opacity: 1;
            }
        }

        @keyframes selectedPulse {
            0% {
                stroke-width: 5;
                filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1.0));
            }
            50% {
                stroke-width: 6;
                filter: drop-shadow(0 0 25px rgba(245, 158, 11, 1.0));
            }
            100% {
                stroke-width: 5;
                filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1.0));
            }
        }

        @keyframes neighborSelectedPulse {
            0% {
                stroke-width: 5;
                filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1.0));
            }
            50% {
                stroke-width: 6;
                filter: drop-shadow(0 0 22px rgba(34, 197, 94, 1.0));
            }
            100% {
                stroke-width: 5;
                filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1.0));
            }
        }

        .node.active circle {
            stroke: #667eea;
            stroke-width: 2.5;
            filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
        }

        .node.neighbor circle {
            stroke: #10b981;
            stroke-width: 3;
            filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
        }

        .node.neighbor-clickable circle {
            stroke: #10b981;
            stroke-width: 4;
            filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8));
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .node.neighbor-clickable:hover circle {
            stroke-width: 5;
            filter: drop-shadow(0 0 15px rgba(16, 185, 129, 1.0));
        }

        .node.neighbor-selected circle {
            stroke: #22c55e;
            stroke-width: 5;
            filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1.0));
            animation: neighborSelectedPulse 2s infinite;
        }

        .node text {
            font-size: 14px;
            font-weight: 600;
            text-anchor: middle;
            dominant-baseline: central;
            fill: #e0e0e0;
            pointer-events: none;
            text-shadow: 0 0 3px rgba(0,0,0,0.8);
        }

        .node .answer-label {
            font-size: 12px;
            font-weight: 500;
            fill: rgba(255,255,255,0.9);
            text-anchor: middle;
            dominant-baseline: hanging;
            text-shadow: 0 0 3px rgba(0,0,0,0.8);
        }

        .link {
            stroke: rgba(255,255,255,0.2);
            stroke-width: 2;
            transition: all 0.2s ease;
        }

        .link:hover {
            stroke: rgba(102, 126, 234, 0.8);
            stroke-width: 4;
            filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4));
        }

        .link.active {
            stroke: #667eea;
            stroke-width: 3;
            filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.6));
        }

        .link.selected {
            stroke: #10b981;
            stroke-width: 4;
            filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
        }

        .link.selected-neighbor {
            stroke: #22c55e;
            stroke-width: 5;
            filter: drop-shadow(0 0 12px rgba(34, 197, 94, 1.0));
            animation: linkPulse 2s infinite;
        }

        .link.neighbor-edge {
            stroke: #10b981;
            stroke-width: 3;
            filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
            opacity: 0.8;
        }

        @keyframes linkPulse {
            0% {
                stroke-width: 5;
                opacity: 0.8;
            }
            50% {
                stroke-width: 6;
                opacity: 1.0;
            }
            100% {
                stroke-width: 5;
                opacity: 0.8;
            }
        }

        /* Status bar */
        .status-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: rgba(20,20,20,0.9);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 30px;
            z-index: 100;
        }

        .task-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .task-type {
            font-size: 14px;
            font-weight: 600;
            color: #667eea;
        }

        .task-status {
            font-size: 14px;
            padding: 5px 12px;
            border-radius: 15px;
            font-weight: 500;
        }

        .task-status.success {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            border: 1px solid #10b981;
        }

        .task-status.failure {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            border: 1px solid #ef4444;
        }

        /* Loading and file input */
        .file-input-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 200;
        }

        .file-input-container.hidden {
            display: none;
        }

        .file-selection-area {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            padding: 40px;
            background: rgba(20, 20, 20, 0.95);
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .upload-section {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .drop-zone {
            width: 400px;
            height: 200px;
            border: 2px dashed #667eea;
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(102, 126, 234, 0.05);
        }

        .drop-zone:hover,
        .drop-zone.dragover {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
            box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
        }

        .drop-zone p {
            font-size: 16px;
            margin-bottom: 10px;
            color: #e0e0e0;
        }

        .drop-zone small {
            color: rgba(255,255,255,0.6);
        }

        input[type="file"] {
            display: none;
        }

        .divider {
            position: relative;
            width: 400px;
            text-align: center;
            color: rgba(255,255,255,0.5);
            font-size: 14px;
            font-weight: 500;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(255,255,255,0.1);
            z-index: -1;
        }

        .divider span {
            background: rgba(20, 20, 20, 0.95);
            padding: 0 20px;
        }

        .server-files-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .server-files-section h3 {
            color: #667eea;
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }

        .server-file-dropdown {
            width: 400px;
            padding: 12px 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 10px;
            color: #e0e0e0;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .server-file-dropdown:hover {
            background: rgba(255,255,255,0.08);
            border-color: #667eea;
        }

        .server-file-dropdown:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
        }

        .server-file-dropdown option {
            background: #1a1a1a;
            color: #e0e0e0;
        }

        .load-button {
            padding: 12px 24px;
            background: rgba(102, 126, 234, 0.2);
            border: 1px solid #667eea;
            color: #e0e0e0;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .load-button:hover:not(:disabled) {
            background: rgba(102, 126, 234, 0.3);
            box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
        }

        .load-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Group color legend */
        .legend {
            position: absolute;
            top: 100px;
            left: 20px;
            background: rgba(20,20,20,0.9);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.1);
        }

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

        .legend-item {
            display: flex;
            align-items: center;
            margin-bottom: 5px;
            font-size: 13px;
        }

        .legend-color {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            margin-right: 8px;
            border: 2px solid rgba(255,255,255,0.3);
        }

        /* Reset button */
        .reset-button {
            background: rgba(102, 126, 234, 0.15);
            border: 1px solid rgba(102, 126, 234, 0.3);
            color: #667eea;
            padding: 6px 12px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .reset-button:hover {
            background: rgba(102, 126, 234, 0.25);
            border-color: rgba(102, 126, 234, 0.5);
        }

        .reset-button svg {
            width: 14px;
            height: 14px;
        }

        /* Show/hide answers button */
        .toggle-answers {
            position: absolute;
            top: 100px;
            right: 20px;
            z-index: 50;
        }

        .keyboard-hint {
            position: absolute;
            bottom: 70px;
            right: 20px;
            background: rgba(20,20,20,0.9);
            padding: 10px 15px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            font-size: 12px;
            color: rgba(255,255,255,0.7);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .keyboard-hint.show {
            opacity: 1;
        }

        .keyboard-hint kbd {
            background: rgba(255,255,255,0.1);
            padding: 2px 6px;
            border-radius: 4px;
            font-family: monospace;
            margin: 0 2px;
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.05);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.3);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.5);
        }

        /* Highlights and callouts */
        .highlight {
            background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 500;
        }

        .callout {
            background: #f8f9fa;
            border-left: 4px solid #667eea;
            padding: 20px;
            margin: 30px 0;
            border-radius: 0 8px 8px 0;
        }

        .callout h4 {
            color: #667eea;
            margin: 0 0 10px 0;
            font-weight: 600;
        }

        .callout p {
            margin: 0;
            font-size: 1em;
        }

        /* Results section */

        /* Figure containers and captions */
        .figure-container {
            margin: 40px 0;
            text-align: center;
        }

        .result-figure {
            width: 100%;
            max-width: 800px;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border: 1px solid #e9ecef;
        }

        .figure-caption {
            margin-top: 15px;
            font-size: 0.95em;
            color: #6c757d;
            text-align: left;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.5;
        }

        /* Performance analysis section */
        .performance-analysis {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 30px;
            margin: 40px 0;
        }

        .performance-analysis h4 {
            color: #1a1a1a;
            margin: 0 0 25px 0;
            font-size: 1.3em;
        }

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

        .insight-card {
            background: white;
            border-radius: 8px;
            padding: 20px;
            border-left: 4px solid #667eea;
        }

        .insight-card h5 {
            color: #333;
            margin: 0 0 10px 0;
            font-size: 1.1em;
            font-weight: 600;
        }

        .insight-card p {
            margin: 0;
            font-size: 0.95em;
            text-align: left;
        }

        /* Scaling results */

        /* Chart styling */
        .custom-chart {
            width: 100%;
            height: 460px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border: 1px solid #e9ecef;
        }

        /* Responsive design */
        @media (max-width: 899px) {
            .viz-section {
                width: 100%;
                left: 0 !important;
                position: static !important;
            }
        }

        @media (max-width: 768px) {
            .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}
            
            .header h1 {
                font-size: 2em;
            }
            
            .viz-container {
                height: 500px;
            }
            
            .panel-container {
                width: 280px;
                min-width: 280px;
            }
            
            .tasks-grid {
                grid-template-columns: 1fr;
            }
            
            .article p {
                font-size: 1.05em;
            }

            .viz-section {
                margin: 60px 0;
                max-width: calc(100vw - 30px);
            }
        }

        @media (max-width: 480px) {
            .panel-container {
                width: 250px;
                min-width: 250px;
            }

            .viz-section {
                max-width: calc(100vw - 20px);
            }
        }



/* === Refined Typography and Layout === */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.article p {
  margin: 1em 0;
  max-width: 80ch;
  text-align: left;
}

.article h2,
.article h3 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.article h2 {
  font-size: 1.75em;
}

.article h3 {
  font-size: 1.3em;
}

.article ul,
.article ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

/* Shrink cost-performance SVG */
img[src*="price_vs_performance.svg"] {
  max-width: 500px;
  width: 100%;
  display: block;
  margin: 2em auto;
}

/* IMPORTANT: Override ALL existing circle styles to hide them */
        .node circle,
        .node.selected circle,
        .node.highlight-source circle,
        .node.highlight-target circle,
        .node.active circle,
        .node.neighbor circle,
        .node.neighbor-clickable circle,
        .node.neighbor-selected circle {
            stroke: none !important;
            fill: transparent !important;
            stroke-width: 0 !important;
            filter: none !important;
            animation: none !important;
        }

        /* Bot icon styles and effects - ORDER MATTERS FOR SPECIFICITY */
        .node {
            cursor: pointer;
        }

        .node image {
            transition: filter 0.3s ease;
            filter: none; /* Default state */
        }

        /* Active agents (have activity) - lowest priority */
        .node.active image {
            filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4)) !important;
        }

        /* Clickable neighbors - medium priority */
        .node.neighbor-clickable image {
            filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8)) !important;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .node.neighbor-clickable:hover image {
            filter: drop-shadow(0 0 15px rgba(16, 185, 129, 1.0)) !important;
        }

        /* Selected neighbor - high priority */
        .node.neighbor-selected image {
            filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1.0)) !important;
            animation: neighborSelectedPulse 2s infinite;
        }

        /* Highlighted from transcript hovering - high priority */
        .node.highlight-source image {
            filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.8)) !important;
            animation: pulse 1s infinite;
        }

        .node.highlight-target image {
            filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8)) !important;
            animation: pulse 1s infinite;
        }

        /* Selected agent - HIGHEST priority, should override everything */
        .node.selected image {
            filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1.0)) !important;
            animation: selectedPulse 2s infinite !important;
        }

        /* Updated animations for bot icons */
        @keyframes pulse {
            0% {
                filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8)) !important;
            }
            50% {
                filter: drop-shadow(0 0 18px rgba(16, 185, 129, 1.0)) !important;
            }
            100% {
                filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8)) !important;
            }
        }

        @keyframes selectedPulse {
            0% {
                filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1.0)) !important;
            }
            50% {
                filter: drop-shadow(0 0 25px rgba(245, 158, 11, 1.0)) !important;
            }
            100% {
                filter: drop-shadow(0 0 20px rgba(245, 158, 11, 1.0)) !important;
            }
        }

        @keyframes neighborSelectedPulse {
            0% {
                filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1.0)) !important;
            }
            50% {
                filter: drop-shadow(0 0 22px rgba(34, 197, 94, 1.0)) !important;
            }
            100% {
                filter: drop-shadow(0 0 18px rgba(34, 197, 94, 1.0)) !important;
            }
        }
    
body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      text-align: justify;
      text-justify: inter-word;
      font-size: 17px;
      line-height: 1.65;
    }

    h2, h3, h4, h5 {
      letter-spacing: -0.01em;
      line-height: 1.2;
      text-align: left;}

    h1 {
      font-size: 2.8em;
    }

    h2 {
      font-size: 1.8em;
      margin-top: 1.6em;
    }

    h3 {
      font-size: 1.3em;
    }

    .article p,
    .article li,
    .article blockquote,
    .article .callout,
    .article .figure-caption {
      text-align: justify;
      text-justify: inter-word;
    }

    .header .subtitle {
      line-height: 1.3;
    }

    /* Task example graphs: dark background for consistency */
    .task-example-graph {
      background: #0a0a0a !important;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 8px;
    }

    /* Animated subtle gradient header styling */
    .header {
      background: linear-gradient(-45deg, #667eea, #764ba2, #0ea5e9, #10b981);
      background-size: 400% 400%;
      animation: gradientShift 12s ease infinite;
      padding: 80px 20px;
      text-align: center;
      color: #fff;
    }

    @keyframes gradientShift {
      0% {
        background-position: 0% 50%;
      }
      50% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0% 50%;
      }
    }

    .header h1 {
      font-size: 2.8em;
      font-weight: 700;
      margin-bottom: 10px;
      text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }

    .header .subtitle {
      font-size: 1.2em;
      opacity: 0.85;
      font-weight: 300;
    }

    .header .meta {
      margin-top: 30px;
      font-size: 0.95em;
      opacity: 0.9;
    }

    @media (max-width: 768px) {
      body {
        font-size: 15px;
        line-height: 1.5;
      }

      .header h1 {
        font-size: 2em;
      }

      .header .subtitle {
        font-size: 0.95em;
        line-height: 1.3;
      }

      .container-viz {
        flex-direction: column;
      }

      .main-content {
        flex-direction: column;
      }

      .graph-container {
        min-height: 400px;
        height: 400px;
      }

      .panel-container {
        width: 100% !important;
        min-width: unset;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: static;
        transform: none !important;
        display: block !important;
      }

      .transcript-panel {
        position: static;
        transform: none !important;
        display: flex !important;
      }

      .viz-container {
        height: auto;
      }

      .file-selection-area {
        width: 90vw !important;
        padding: 20px !important;
      }

      .drop-zone {
        width: 100% !important;
      }

      .server-file-dropdown {
        width: 100% !important;
        font-size: 16px;
      }
    }

    /* Shrink cost-performance SVG */
    img[src*="price_vs_performance.svg"] {
      max-width: 500px;
      width: 100%;
      display: block;
      margin: 2em auto;
    }

    body {
  font-size: 16px;
  line-height: 1.55;
}

h1 {
  font-size: 2.4em;
}

h2 {
  font-size: 1.6em;
}

h3 {
  font-size: 1.2em;
}
