.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 24px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legendItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legendDot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legendAdded {
  background: var(--primary);
}

.legendUpdated {
  background: var(--chart-accent, #a855f7);
}

.status,
.error {
  font-size: 14px;
  text-align: center;
  padding: 40px 12px;
}

.status {
  color: var(--text-muted);
}

.error {
  color: #dc2626;
}

.chartWrap {
  overflow-x: auto;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-width: 100%;
  padding-bottom: 4px;
}

.group {
  flex: 1;
  min-width: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bars {
  display: flex;
  align-items: flex-end;
  height: 200px;
}

.bar {
  width: 12px;
  border-radius: 4px 4px 2px 2px;
  transition: height 0.3s ease;
}

.barAdded {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 55%, #ffffff) 0%,
    var(--primary) 100%
  );
}

.barUpdated {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--chart-accent, #a855f7) 55%, #ffffff) 0%,
    var(--chart-accent, #a855f7) 100%
  );
}

.label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
  }
}
