.stat-card.clickable {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.stats-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.stats-overlay.hidden { display: none; }
.stats-modal {
  background: var(--surface, #fff);
  border-radius: var(--radius, 12px);
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow, 0 2px 12px rgba(0, 0, 0, 0.08));
}
.stats-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.stats-modal-header h3 { margin: 0; font-size: 1rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted, #64748b);
  line-height: 1;
}
.stats-modal-meta {
  padding: 8px 18px 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #64748b);
}
.stats-modal-list { overflow-y: auto; padding: 12px 18px 18px; }
.stats-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.stats-list-item:last-child { border-bottom: none; }
.stats-list-main { flex: 1; min-width: 0; }
.stats-list-title { font-weight: 600; }
.stats-list-detail { font-size: 0.85rem; color: var(--muted, #64748b); margin-top: 2px; }
.stats-remove-btn {
  flex-shrink: 0;
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.stats-remove-btn:hover { background: #fecaca; }
