.graph-card {
  padding: var(--space-5) var(--space-4) var(--space-5);
  overflow: hidden;
}

.graph-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--graph-accent, var(--sholat-4));
  opacity: 0.7;
}

.graph-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.graph-icon-badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--graph-accent, var(--sholat-4)) 18%, transparent);
  color: var(--graph-accent, var(--sholat-4));
}

.graph-icon-badge [data-lucide] {
  width: 18px;
  height: 18px;
}

.graph-header-text { display: flex; flex-direction: column; gap: 1px; }

.graph-header h2 {
  font-size: 1rem;
  margin: 0;
}

.graph-header .graph-count {
  margin-left: auto;
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.graph-months-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3) var(--space-2);
}

.graph-month-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.graph-month-block-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
}

.graph-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.graph-day {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.5px;
  background: var(--color-surface-raised);
  cursor: pointer;
}

.graph-day:hover {
  outline: 1px solid var(--graph-accent, var(--sholat-4));
  outline-offset: 1px;
}

.graph-day--empty {
  background: transparent;
  visibility: hidden;
  cursor: default;
}

.graph-day--empty:hover {
  outline: none;
}

.graph-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: var(--space-4);
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

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