/* Couchdicks Evidence Terminal theme adapter — Arena Launchpad. */
:root {
  --bg: var(--cd-bg);
  --surface: var(--cd-surface-1);
  --surface2: var(--cd-surface-2);
  --line: var(--cd-border);
  --text: var(--cd-text);
  --muted: var(--cd-muted);
}

body { background: var(--cd-bg); color: var(--cd-text); }
.topbar { background: var(--cd-overlay); }
.gridline { stroke: var(--cd-chart-grid); }
.axis-label { fill: var(--cd-chart-axis); }
#tooltip { background: var(--cd-tooltip); border-color: var(--cd-border-strong); box-shadow: var(--cd-shadow); }

:root[data-cd-theme="light"] .notice { background: #eee8fb; border-color: #b8abe4; color: #4d3d7f; }
:root[data-cd-theme="light"] .section-title span { background: #e6e0f6; color: #5a42b6; }
:root[data-cd-theme="light"] .bar-track { background: var(--cd-surface-3); }
:root[data-cd-theme="light"] th { background: var(--cd-surface-2); }
:root[data-cd-theme="light"] td a,
:root[data-cd-theme="light"] .method-row a { color: #5840b4; }
:root[data-cd-theme="light"] .tag { background: #e7e0fa; color: #5139a9; }
:root[data-cd-theme="light"] .refresh-button[data-state="success"] { background: var(--cd-good-bg); border-color: #8abca6; }
:root[data-cd-theme="light"] .refresh-button[data-state="error"] { background: var(--cd-danger-bg); border-color: #d5a2aa; }
:root[data-cd-theme="light"] .mark { color: #fff; }
:root[data-cd-theme="light"] .range button.active,
:root[data-cd-theme="light"] .tabs button.active { color: #fff; }
:root[data-cd-theme="light"] .header-actions > a,
:root[data-cd-theme="light"] .refresh-button,
:root[data-cd-theme="light"] .controls select,
:root[data-cd-theme="light"] .range,
:root[data-cd-theme="light"] .tabs button,
:root[data-cd-theme="light"] .more { background: var(--cd-surface-1); }
:root[data-cd-theme="light"] .topbar nav a:hover,
:root[data-cd-theme="light"] .topbar nav a.active { color: var(--cd-text); }

@media (max-width: 650px) {
  .cd-theme-toggle { width: 40px; padding-inline: 0; }
  .cd-theme-toggle__label { display: none; }
}
