/* ═══════════════════════════════════════════════════════════════
   THEME VARIABLES - Edit these to change the entire color scheme
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-elevated: #f0f0f0;
  --text: #171717;
  --text-secondary: #404040;
  --text-muted: #737373;
  --border: #e5e5e5;
  --border-subtle: #f0f0f0;
  --btn-bg: #f5f5f5;
  --btn-bg-hover: #e5e5e5;
  --btn-border: #d4d4d4;
  /* Accent colors - more saturated for light backgrounds */
  --accent-link: #2563eb;
  --accent-link-hover: #1d4ed8;
  --accent-success: #059669;
  --accent-success-bg: rgba(5, 150, 105, 0.15);
  --accent-error: #dc2626;
  --accent-error-bg: rgba(220, 38, 38, 0.15);
  --progress-bar-bg: #d4d4d4;
}
.dark {
  --bg: #09090b;
  --bg-secondary: #18181b;
  --bg-elevated: #27272a;
  --text: #fafafa;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --border-subtle: #3f3f46;
  --btn-bg: #27272a;
  --btn-bg-hover: #3f3f46;
  --btn-border: #3f3f46;
  /* Accent colors - lighter for dark backgrounds */
  --accent-link: #60a5fa;
  --accent-link-hover: #93c5fd;
  --accent-success: #34d399;
  --accent-success-bg: rgba(52, 211, 153, 0.15);
  --accent-error: #f87171;
  --accent-error-bg: rgba(248, 113, 113, 0.15);
  --progress-bar-bg: #27272a;
}

/* Utility class for theme-aware progress bar background */
.bg-theme-progress-bar { background: var(--progress-bar-bg); }

/* Panels */
.filters-panel, .columns-panel { display: none; }
.filters-panel.active, .columns-panel.active { display: block; }
.filter-badge { display: none; }
.filter-badge.active { display: flex; }

/* Table sorting indicators */
#results-table thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: 8px; color: #3b82f6; }
#results-table thead th[aria-sort="descending"]::after { content: " ▼"; font-size: 8px; color: #3b82f6; }

/* Column resizer */
.col-resizer { position: absolute; right: 0; top: 0; width: 4px; height: 100%; cursor: col-resize; }
.col-resizer:hover, .col-resizer:active { background: rgba(59, 130, 246, 0.4); }
body.ezvals-col-resize { cursor: col-resize !important; user-select: none; }

/* Checkbox styling */
.row-checkbox, #select-all-checkbox {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #52525b;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.row-checkbox:hover, #select-all-checkbox:hover { border-color: #3b82f6; }
.row-checkbox:checked, #select-all-checkbox:checked { background: #3b82f6; border-color: #3b82f6; }
.row-checkbox:checked::after, #select-all-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.row-checkbox:indeterminate, #select-all-checkbox:indeterminate { background: #3b82f6; border-color: #3b82f6; }
.row-checkbox:indeterminate::after, #select-all-checkbox:indeterminate::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 8px;
  height: 1.5px;
  background: white;
}

/* Expanded rows */
tr[data-row="main"].expanded { background: rgba(59, 130, 246, 0.03); }
tr[data-row="main"].expanded td { vertical-align: top; }
tr[data-row="main"].expanded .line-clamp-4 { -webkit-line-clamp: unset; white-space: pre-wrap; }
tr[data-row="main"].expanded .expand-chevron { transform: rotate(90deg); }
.expand-chevron { transition: transform 0.1s; }
tr[data-row="main"].expanded td[data-col="scores"] > div { flex-wrap: wrap; overflow: visible; }
tr[data-row="main"].expanded .score-badge { max-width: unset; }
#results-table td { overflow: hidden; text-overflow: ellipsis; max-width: 0; }

/* Row transition animations */
tr[data-row="main"] {
  transition: opacity 0.3s ease-out, background-color 0.2s ease-out;
}
.status-pill {
  transition: all 0.3s ease-out;
}
.status-pill.fade-out {
  opacity: 0;
  transform: scale(0.8);
}
.score-badge {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.score-badge.entering {
  opacity: 0;
  transform: translateY(4px);
}
/* Cell content transitions */
.cell-content {
  transition: opacity 0.25s ease-out;
}
.cell-content.updating {
  opacity: 0;
}
/* Latency value pop-in */
.latency-value {
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.latency-value.entering {
  opacity: 0;
  transform: scale(0.8);
}

#results { min-height: 200px; border-bottom: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════
   EXPANDED STATS PANEL - Two-column layout
   ═══════════════════════════════════════════════════════════════ */
.stats-expanded {
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.stats-expanded.hidden { display: none; }

.stats-layout {
  display: flex;
  min-height: 200px;
  position: relative;
}

.stats-collapse-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
}
.stats-collapse-btn:hover { color: var(--text); }

/* Left panel: details + Y-axis labels */
.stats-left {
  width: 25%;
  display: flex;
  border-right: 1px solid var(--border-subtle); /* This IS the Y-axis */
}
.stats-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1rem 1rem 1.5rem;
}
.stats-left-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.stats-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stats-info-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #52525b;
  min-width: 50px;
}
/* Y-axis labels - right edge of left panel */
.stats-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 8px;
  height: 120px;
  align-self: flex-start;
  margin-top: 1rem;
}
.stats-axis-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #71717a;
  text-align: right;
  line-height: 1;
}

/* Metric blocks */
.stats-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.stats-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.stats-metric-sm .stats-metric-value {
  font-size: 32px;
}
.stats-metric-unit {
  font-size: 20px;
  color: #71717a;
}
.stats-metric-label {
  font-size: 14px;
  font-weight: 500;
  color: #52525b;
  text-transform: lowercase;
}
.stats-metric-row {
  display: flex;
  gap: 1rem;
  margin-top: -0.25rem;
}
.stats-metric-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #71717a;
}

/* Session/run info */
.stats-session {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text);
}
.stats-run {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #3b82f6;
}

/* Run dropdown button (custom dropdown trigger) */
.stats-run-dropdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-link);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  max-width: 200px;
  text-align: left;
}
.stats-run-dropdown:hover { border-color: var(--accent-link); }
.stats-run-dropdown .dropdown-arrow {
  color: var(--text-muted);
  font-size: 9px;
  margin-left: 4px;
}
.stats-run-dropdown-compact {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-link);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
  cursor: pointer;
  max-width: 180px;
  text-align: left;
}
.stats-run-dropdown-compact:hover { border-color: var(--accent-link); }
.stats-run-dropdown-compact .dropdown-arrow {
  color: var(--text-muted);
  font-size: 9px;
  margin-left: 4px;
}

/* Progress bar for expanded stats - inline with tests */
.stats-metric-row-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}
.stats-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 180px;
  padding-top: 6px;
}
.stats-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--progress-bar-bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.stats-progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.stats-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5), 0 0 4px rgba(59, 130, 246, 0.3);
}
.stats-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.stats-progress-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
  white-space: nowrap;
}

.stats-toggle-btn {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--btn-border);
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.stats-toggle-btn:hover { background: var(--btn-bg-hover); color: var(--text); }

/* Right panel - chart + X-axis */
.stats-right {
  width: 75%;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1rem 0;
}
/* Chart area - gridlines extend from Y-axis */
.stats-chart-area {
  height: 120px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle); /* X-axis line */
  margin-left: 0; /* Flush with Y-axis */
}
/* Gridlines */
.stats-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}
/* Bars container */
.stats-chart-bars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  padding: 0 1.5rem;
  gap: 1.5rem;
}
/* Each bar column */
.stats-bar-col {
  flex: 1;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.stats-bar-col.entering {
  opacity: 0;
  transform: translateY(20px);
}
.stats-bar-col.exiting {
  opacity: 0;
  transform: translateY(-10px);
}
.stats-chart-fill {
  width: 100%;
  transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s ease-out;
}
/* X-axis area - juts out from Y-axis */
.stats-xaxis {
  margin-left: 0; /* Aligned with chart */
  padding-left: 1.5rem;
  padding-top: 8px;
}
/* Labels row */
.stats-chart-labels {
  display: flex;
  gap: 1.5rem;
}
.stats-chart-label {
  flex: 1;
  max-width: 80px;
  font-size: 10px;
  font-weight: 500;
  color: #a1a1aa;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}
.stats-chart-label.entering { opacity: 0; }
/* Values row */
.stats-chart-values {
  display: flex;
  gap: 1.5rem;
  margin-top: 2px;
}
.stats-chart-value {
  flex: 1;
  max-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  opacity: 1;
  transition: opacity 0.15s ease-out;
}
.stats-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.stats-ratio {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-secondary);
}
.stats-chart-value.updating {
  opacity: 0.5;
}

/* Bar colors */
.vbar-green { background: #10b981; }
.vbar-amber { background: #f59e0b; }
.vbar-red { background: #ef4444; }

/* Dynamic stats transitions */
.stats-metric-value {
  transition: opacity 0.15s ease-out;
}
.stats-metric-value.updating {
  opacity: 0.3;
}
.stats-metric-divisor {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}
.stats-metric-sm .stats-metric-value.updating {
  opacity: 0.3;
}
.stats-chart-label.exiting,
.stats-chart-value.exiting {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Progress bar animation during run */
.progress-active {
  animation: progress-glow 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
  background-size: 200% 100%;
}
@keyframes progress-glow {
  0%, 100% { background-position: 0% 0; filter: brightness(1); }
  50% { background-position: 100% 0; filter: brightness(1.3); }
}

/* Success checkmark animation */
@keyframes success-flash {
  0% { opacity: 0; transform: scale(0.8); }
  20% { opacity: 1; transform: scale(1.1); }
  40% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.animate-success-flash { animation: success-flash 2s ease-out forwards; }

/* ═══════════════════════════════════════════════════════════════
   COMPARISON MODE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Comparison chips in left panel */
.comparison-chips {
  margin-top: 8px;
}

.comparison-chip {
  transition: all 0.2s ease-out;
}

.comparison-chip:hover {
  filter: brightness(1.1);
}

.comparison-chip .remove-comparison {
  opacity: 0.6;
  transition: opacity 0.15s;
}

.comparison-chip:hover .remove-comparison {
  opacity: 1;
}

/* Grouped bar chart for comparison mode */
.stats-bar-group {
  flex: 1;
  max-width: 100px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.comparison-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
  min-width: 16px;
}

.comparison-bar-label {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 2px;
}

.comparison-bar {
  width: 100%;
  transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 2px 2px 0 0;
  min-width: 12px;
  height: 0%; /* Start at 0 for animation */
}

/* Comparison mode: match label/value widths to bar groups */
.stats-expanded.comparison-mode .stats-chart-label,
.stats-expanded.comparison-mode .stats-chart-value {
  max-width: 100px;
}

.stats-expanded.comparison-mode .stats-chart-value.comparison-value {
  flex-direction: row;
  gap: 0.25rem;
  font-size: 10px;
}

/* Comparison mode table */
.comparison-table .comparison-output-cell {
  vertical-align: top;
  height: 100%;
}

.comparison-output-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 80px;
}

.comparison-table .comparison-output-header {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* + Compare button styling - matches run dropdown width */
.add-compare-btn {
  width: 200px;
  max-width: 200px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.add-compare-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Compare dropdown */
.compare-dropdown {
  position: fixed;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}

.compare-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  font-size: 12px;
}

.compare-option:hover {
  background: var(--bg-elevated);
}

.compare-option:first-child {
  border-radius: 5px 5px 0 0;
}

.compare-option:last-child {
  border-radius: 0 0 5px 5px;
}

.compare-option.current-run {
  background: var(--bg-elevated);
  color: var(--accent-link);
}
.compare-option.current-run::before {
  content: '✓ ';
  color: var(--accent-link);
}

/* Adjust stats-right width in comparison mode for more horizontal space */
.stats-expanded.comparison-mode .stats-right {
  width: 80%;
}

.stats-expanded.comparison-mode .stats-left {
  width: 20%;
}

/* Expand chart elements in comparison mode */
.stats-expanded.comparison-mode .stats-chart-bars {
  gap: 3rem;
}

.stats-expanded.comparison-mode .stats-bar-group {
  max-width: 160px;
  gap: 4px;
}

.stats-expanded.comparison-mode .stats-chart-labels {
  gap: 3rem;
}

.stats-expanded.comparison-mode .stats-chart-values {
  gap: 3rem;
}

.stats-expanded.comparison-mode .stats-chart-label {
  max-width: 160px;
}

.stats-expanded.comparison-mode .stats-chart-value {
  max-width: 160px;
}
.data-viewer { min-height: auto; }
.data-surface { padding: 0; background: transparent; border: none; border-radius: 0; }
.data-pre {
  background: transparent !important;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.markdown-body { color: inherit; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { font-weight: 600; margin: 0.25rem 0; line-height: 1.3; }
.markdown-body p { margin: 0 0 0.35rem; }
.markdown-body ul, .markdown-body ol { margin: 0 0 0.35rem 1rem; padding: 0; }
.markdown-body ul { list-style: disc; }
.markdown-body ol { list-style: decimal; }
.markdown-body li { margin: 0.15rem 0; }
.data-viewer code.hljs { background: transparent !important; }
.data-viewer .hljs-attr { color: #60a5fa; }
.data-viewer .hljs-string { color: #34d399; }
.data-viewer .hljs-number, .data-viewer .hljs-literal { color: #f472b6; }

.collapsible-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.15s ease-out; }
.collapsible-content.open { grid-template-rows: 1fr; }
.collapsible-content > div { overflow: hidden; }
.collapse-icon { transition: transform 0.15s ease; }
.collapse-icon.open { transform: rotate(180deg); }

.data-panel { display: flex; flex-direction: column; min-height: 0; }
.data-panel-header { flex-shrink: 0; }
.data-panel-body { flex: 1; overflow: auto; min-height: 0; }

.resize-handle-v {
  width: 5px;
  cursor: col-resize;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}
.resize-handle-v::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  width: 1px;
  background: rgb(59 130 246 / 0.2);
  transition: background 0.15s, width 0.15s, left 0.15s;
}
.dark .resize-handle-v::after { background: rgb(63 63 70 / 0.8); }
.resize-handle-v:hover::after, .resize-handle-v.dragging::after {
  background: rgb(59 130 246 / 0.6);
  width: 3px;
  left: 1px;
}
.dark .resize-handle-v:hover::after, .dark .resize-handle-v.dragging::after { background: rgb(59 130 246 / 0.5); }

.resize-handle-h {
  height: 5px;
  cursor: row-resize;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}
.resize-handle-h::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 1px;
  background: rgb(59 130 246 / 0.2);
  transition: background 0.15s, height 0.15s, top 0.15s;
}
.dark .resize-handle-h::after { background: rgb(63 63 70 / 0.8); }
.resize-handle-h:hover::after, .resize-handle-h.dragging::after {
  background: rgb(59 130 246 / 0.6);
  height: 3px;
  top: 1px;
}
.dark .resize-handle-h:hover::after, .dark .resize-handle-h.dragging::after { background: rgb(59 130 246 / 0.5); }

body.resizing { cursor: col-resize; user-select: none; }
body.resizing-v { cursor: row-resize; }
body.resizing * { cursor: inherit !important; user-select: none !important; }

.msg-box {
  border-radius: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.35;
  overflow: hidden;
}
.msg-box-header {
  padding: 0.125rem 0.375rem;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.msg-box-content {
  padding: 0.25rem 0.375rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  max-height: 300px;
  overflow-y: auto;
}
.msg-user .msg-box-header { background: rgb(59 130 246 / 0.2); color: rgb(37 99 235); }
.msg-user .msg-box-content { background: rgb(59 130 246 / 0.05); }
.msg-assistant .msg-box-header { background: rgb(34 197 94 / 0.2); color: rgb(22 163 74); }
.msg-assistant .msg-box-content { background: rgb(34 197 94 / 0.05); }
.msg-system .msg-box-header { background: rgb(250 204 21 / 0.2); color: rgb(202 138 4); }
.msg-system .msg-box-content { background: rgb(250 204 21 / 0.05); }
.msg-tool .msg-box-header, .msg-tool_calls .msg-box-header { background: rgb(168 85 247 / 0.2); color: rgb(147 51 234); }
.msg-tool .msg-box-content, .msg-tool_calls .msg-box-content { background: rgb(168 85 247 / 0.05); }
.msg-tool_result .msg-box-header { background: rgb(236 72 153 / 0.2); color: rgb(219 39 119); }
.msg-tool_result .msg-box-content { background: rgb(236 72 153 / 0.05); }
.dark .msg-user .msg-box-header { background: rgb(59 130 246 / 0.25); color: rgb(147 197 253); }
.dark .msg-user .msg-box-content { background: rgb(59 130 246 / 0.08); }
.dark .msg-assistant .msg-box-header { background: rgb(34 197 94 / 0.25); color: rgb(134 239 172); }
.dark .msg-assistant .msg-box-content { background: rgb(34 197 94 / 0.08); }
.dark .msg-system .msg-box-header { background: rgb(250 204 21 / 0.2); color: rgb(253 224 71); }
.dark .msg-system .msg-box-content { background: rgb(250 204 21 / 0.05); }
.dark .msg-tool .msg-box-header, .dark .msg-tool_calls .msg-box-header { background: rgb(168 85 247 / 0.25); color: rgb(216 180 254); }
.dark .msg-tool .msg-box-content, .dark .msg-tool_calls .msg-box-content { background: rgb(168 85 247 / 0.08); }
.dark .msg-tool_result .msg-box-header { background: rgb(236 72 153 / 0.25); color: rgb(249 168 212); }
.dark .msg-tool_result .msg-box-content { background: rgb(236 72 153 / 0.08); }
