/* Daily Streak section (#sectionStreak, portal/streak.js). Decomposition slice 4 out of
   index.html's first inline <style> block (README_BACKLOG.md). */

.streak-intro {
  color: var(--dash-text-soft);
  margin-bottom: 16px;
}
.streak-stats {
  max-width: 300px;
  margin-top: 16px;
  font-size: 0.9em;
}
.streak-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-top: 1px solid var(--dash-border);
  color: var(--dash-text-mute);
}
.streak-stat-row:first-child {
  border-top: none;
}
.streak-stat-row .ui-icon-img.streak-stat-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  margin-right: 2px;
}
.streak-stat-row b {
  color: var(--dash-text);
  font-weight: 600;
  white-space: nowrap;
}
.streak-cal {
  max-width: 420px;
  background: var(--dash-surface);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  padding: 14px;
}
.streak-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.streak-cal-nav .btn-secondary {
  padding: 2px 12px;
  line-height: 1.4;
}
.streak-cal-title {
  font-weight: 600;
  color: var(--dash-text);
}
.streak-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.streak-cal-wd {
  text-align: center;
  font-size: 0.72em;
  color: var(--dash-text-mute);
  padding-bottom: 4px;
}
.streak-cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--dash-surface);
  color: var(--dash-text-mute);
  font-size: 0.82em;
}
.streak-cal-cell.empty {
  background: transparent;
}
.streak-cal-cell.logged {
  background: #43a047;
  color: #10240f;
  font-weight: 700;
}
.streak-cal-cell.milestone {
  background: #e0a915;
  color: #241a00;
  cursor: help;
}
.streak-cal-cell.today {
  outline: 2px solid #6fd3ff;
  outline-offset: -2px;
}
