@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #4361EE;
  --primary-light: #6B83F2;
  --primary-dark: #3A0CA3;
  --primary-bg: #EEF1FD;
  --accent: #F72585;
  --accent-light: #FF5CA1;
  --success: #06D6A0;
  --success-light: #E8FBF5;
  --success-dark: #05B384;
  --warning: #FFB703;
  --warning-light: #FFF4DB;
  --danger: #EF476F;
  --danger-light: #FDE8ED;
  --purple: #7209B7;
  --purple-light: #F3E8FA;
  --teal: #0CB8B6;
  --orange: #FB8500;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-hover: #FAFBFF;
  --text: #1A1A2E;
  --text-secondary: #5A5F7A;
  --text-muted: #8E92A4;
  --border: #E4E7F1;
  --border-light: #F0F1F7;
  --shadow-sm: 0 1px 2px rgba(26,26,46,0.04);
  --shadow: 0 1px 3px rgba(26,26,46,0.06), 0 4px 12px rgba(26,26,46,0.03);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.08), 0 1px 4px rgba(26,26,46,0.04);
  --shadow-lg: 0 8px 32px rgba(26,26,46,0.12), 0 2px 8px rgba(26,26,46,0.04);
  --shadow-primary: 0 4px 16px rgba(67,97,238,0.2);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 1920px;
  min-height: 1080px;
  overflow-x: hidden;
  line-height: 1.5;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1860px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 48px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.brand-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 4px;
}

.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-tab {
  padding: 20px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: -0.1px;
}

.nav-tab:hover {
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.nav-tab-icon {
  margin-right: 6px;
  font-size: 14px;
}

.main-content {
  max-width: 1860px;
  margin: 0 auto;
  padding: 24px 30px 40px;
}

.tab-panel {
  display: none;
  animation: fadeSlideUp 0.3s ease;
}

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

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

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.card-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-body {
  padding: 20px;
}

.card-body-compact {
  padding: 12px 20px;
}

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

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 0;
}

.kpi-card.kpi-blue::before { background: var(--primary); }
.kpi-card.kpi-purple::before { background: var(--purple); }
.kpi-card.kpi-green::before { background: var(--success); }
.kpi-card.kpi-orange::before { background: var(--warning); }

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.kpi-blue .kpi-icon { background: var(--primary-bg); }
.kpi-purple .kpi-icon { background: var(--purple-light); }
.kpi-green .kpi-icon { background: var(--success-light); }
.kpi-orange .kpi-icon { background: var(--warning-light); }

.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 99px;
}

.kpi-trend.up { color: var(--success-dark); background: var(--success-light); }
.kpi-trend.down { color: var(--danger); background: var(--danger-light); }

.hypothesis-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hypothesis-card:hover {
  box-shadow: var(--shadow-primary);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.hypothesis-card-id {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hypothesis-card-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.hypothesis-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hypothesis-card-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hypothesis-card-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.hypothesis-card-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.hypothesis-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.hypothesis-panel:hover {
  box-shadow: var(--shadow-md);
}

.hypothesis-panel-header {
  padding: 24px 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.hypothesis-badge {
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hypothesis-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.hypothesis-narrative {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hypothesis-chart-area {
  padding: 0 28px 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.hypothesis-comparison {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-group {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  position: relative;
}

.comparison-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.comparison-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.comparison-value.high { color: var(--success); }
.comparison-value.low { color: var(--danger); }

.comparison-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  margin-top: 10px;
  overflow: hidden;
}

.comparison-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.comparison-bar-fill.high { background: var(--success); }
.comparison-bar-fill.low { background: var(--danger); }

.hypothesis-viz {
  min-height: 280px;
  position: relative;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E92A4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: var(--transition);
  min-width: 140px;
}

.filter-select:hover {
  border-color: var(--primary-light);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-input {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 36px;
  width: 260px;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E92A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.filter-reset {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-top: 14px;
}

.filter-reset:hover {
  background: var(--primary-bg);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table thead th {
  background: var(--bg);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 5;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: var(--transition);
}

.data-table thead th:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.data-table thead th .sort-icon {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.4;
}

.data-table thead th.sorted .sort-icon {
  opacity: 1;
  color: var(--primary);
}

.data-table tbody tr {
  transition: var(--transition);
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

.data-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-container {
  max-height: 560px;
  overflow-y: auto;
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.table-container::-webkit-scrollbar { width: 6px; }
.table-container::-webkit-scrollbar-track { background: transparent; }
.table-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  display: inline-block;
  white-space: nowrap;
}

.badge-tier2 { background: var(--warning-light); color: #B8860B; }
.badge-tier3 { background: var(--danger-light); color: var(--danger); }
.badge-success { background: var(--success-light); color: var(--success-dark); }
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-warning { background: var(--warning-light); color: #B8860B; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-purple { background: var(--purple-light); color: var(--purple); }

.badge-archetype {
  font-size: 9px;
  padding: 2px 8px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 12px;
}

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: #B8860B; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.sparkline-cell {
  display: inline-flex;
  align-items: center;
  height: 24px;
}

.sparkline-cell svg {
  display: block;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.visible {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 1100px;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 5;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.modal-body {
  padding: 24px 28px 28px;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.modal-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.modal-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.tooltip {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  background: var(--text);
  color: white;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tooltip.visible {
  opacity: 1;
}

.tooltip-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: white;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.tooltip-label {
  color: rgba(255,255,255,0.7);
}

.tooltip-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: white;
}

.tooltip-divider {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 6px 0;
}

.chart-container {
  position: relative;
  width: 100%;
}

.chart-container canvas {
  width: 100% !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.leaderboard-rank {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-rank.top-3 {
  background: var(--warning-light);
  color: #B8860B;
}

.progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.fill-primary { background: var(--primary); }
.progress-bar-fill.fill-success { background: var(--success); }
.progress-bar-fill.fill-warning { background: var(--warning); }
.progress-bar-fill.fill-danger { background: var(--danger); }

.radar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sankey-container svg text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  fill: var(--text);
}

.heatmap-container {
  overflow-x: auto;
  overflow-y: auto;
}

.heatmap-container svg text {
  font-family: 'Inter', sans-serif;
}

.stat-highlight {
  background: linear-gradient(135deg, var(--primary-bg), rgba(67, 97, 238, 0.05));
  border: 1px solid rgba(67, 97, 238, 0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.stat-highlight-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-highlight-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.dual-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dual-metric-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.dual-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dual-metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  text-decoration: underline;
  color: var(--primary);
}

.inline-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-bar-track {
  width: 60px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.inline-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.tab-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tab-summary-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.tab-summary-date {
  font-size: 13px;
  color: var(--text-muted);
}

.metric-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stat {
  text-align: center;
  padding: 10px;
}

.mini-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.mini-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d3-axis line, .d3-axis path {
  stroke: var(--border);
}

.d3-axis text {
  fill: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
}

.d3-grid line {
  stroke: var(--border-light);
  stroke-dasharray: 2,3;
}

svg .dot {
  transition: r 0.15s ease, opacity 0.15s ease;
}

svg .dot:hover {
  r: 8;
  opacity: 1 !important;
}

.count-up {
  display: inline-block;
}

.no-data {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.scroll-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.matrix-cell {
  cursor: pointer;
  transition: var(--transition);
}

.matrix-cell:hover {
  stroke: var(--text);
  stroke-width: 2;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.info-banner {
  background: linear-gradient(135deg, #4361EE08, #3A0CA308);
  border: 1px solid rgba(67, 97, 238, 0.12);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.info-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

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

.tab-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}

.tab-header-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.d3-tooltip-bg {
  fill: var(--text);
  rx: 6;
}

.execution-flag {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.execution-flag.on {
  background: var(--success-light);
  color: var(--success);
}

.execution-flag.off {
  background: var(--danger-light);
  color: var(--danger);
}
