.training-calendar {
  margin-top: 4px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.calendar-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--surface-section);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.calendar-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-month-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  user-select: none;
}

.calendar-day.is-other-month {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.is-done {
  color: var(--text-on-primary);
  background: var(--brand);
  box-shadow: 0 0 8px rgba(217, 255, 0, 0.28);
}

.calendar-day.is-today {
  color: #ffffff;
  border: 1px solid var(--brand);
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(
    135deg,
    var(--brand) 50%,
    rgba(255, 255, 255, 0.1) 50%
  );
  box-shadow: 0 0 8px rgba(217, 255, 0, 0.2);
}

.calendar-day.is-today.is-done {
  color: #ffffff;
  border: 1px solid var(--brand);
  background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(
    135deg,
    var(--brand) 50%,
    rgba(255, 255, 255, 0.1) 50%
  );
  box-shadow: 0 0 8px rgba(217, 255, 0, 0.28);
}

.calendar-day.is-future {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.week-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.week-chart-label {
  min-width: 0;
}

.week-chart-label h3 {
  margin: 0 0 4px;
}

.week-chart-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.week-chart-range {
  flex-shrink: 0;
  padding-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.streak-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.streak-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.streak-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.streak-legend .done i {
  background: var(--brand);
}

.streak-legend .legend-today,
.streak-legend i.legend-today {
  background: linear-gradient(135deg, var(--brand) 50%, rgba(255, 255, 255, 0.1) 50%);
  border: 1px solid var(--brand);
}

.trend-chart-block .trend-chart,
.trend-chart-block .trend-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.trend-chart-block .trend-chart {
  align-items: flex-end;
  height: 72px;
  padding-top: 8px;
}

.trend-chart-block .trend-bar {
  flex: unset;
  width: 100%;
  justify-self: center;
  max-width: 100%;
}

.trend-chart-block .trend-labels {
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.trend-chart-block .trend-labels span {
  text-align: center;
}
