.home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-2) 0 var(--space-22px);
}

.home-date {
  margin-top: var(--space-10px);
  font-size: var(--text-title);
  letter-spacing: var(--tracking-title);
}

.home-progress {
  padding-bottom: var(--space-5px);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.section-row-notes {
  margin: var(--space-4) 0 var(--space-3);
}

.section-count {
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.note-dots {
  display: flex;
  align-items: center;
  gap: var(--strip-cell-gap);
  padding: 0 var(--space-14px);
  margin-bottom: var(--space-2);
}

.note-dot-slot {
  flex: 1;
  display: flex;
  justify-content: center;
}

.note-dot {
  width: var(--note-dot);
  height: var(--note-dot);
  border-radius: var(--radius-round);
}

.note-dot.is-noted {
  background: var(--ink);
}

.section-title {
  font-size: var(--text-section);
  font-weight: var(--weight-bold);
}

.legend {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-5px);
}

.legend-swatch {
  width: var(--legend-swatch);
  height: var(--legend-swatch);
  border-radius: var(--radius-cell);
}

.legend-swatch-good {
  background: var(--good);
}

.legend-swatch-bad {
  background: var(--bad);
}

.legend-swatch-none {
  background: var(--none);
}

.metric-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-14px);
  list-style: none;
}

.metric-card {
  padding: var(--space-3) var(--space-14px) var(--space-14px);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.metric-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-10px);
}

.metric-card-title {
  font-size: var(--text-metric);
  font-weight: var(--weight-semibold);
}

.metric-card-percentage {
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.strip {
  display: flex;
  gap: var(--strip-cell-gap);
  list-style: none;
}

.strip-cell {
  position: relative;
  flex: 1;
  height: var(--strip-cell-height);
  border-radius: var(--radius-cell);
}

.strip-cell-good {
  background: var(--good);
}

.strip-cell-bad {
  background: var(--bad);
}

.strip-cell-none {
  background: var(--none);
}

.strip-cell.is-today {
  box-shadow: var(--ring-today);
}

.strip-footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-6px);
  font-size: var(--text-tiny);
  font-weight: var(--weight-medium);
  color: var(--faint);
}

.note-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-10px);
  list-style: none;
}

.note-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-14px);
  padding: var(--space-3) var(--space-14px) var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.note-row-when {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--note-row-when-width);
  padding-top: var(--space-1px);
}

.note-row-day {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
}

.note-row-date {
  margin-top: var(--space-1px);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.note-row-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-note);
  line-height: var(--leading-body);
}

.note-row-chevron {
  padding-top: var(--space-2px);
  font-size: var(--glyph-chevron);
  line-height: 1;
  color: var(--chevron);
}

.notes-empty {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.notes-empty-lead {
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.home-footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: var(--space-10) 0 calc(var(--space-6) + env(safe-area-inset-bottom));
}

.logout-button {
  min-height: var(--tap-target);
  padding: 0 var(--space-4);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.cta-bar {
  padding: var(--space-14px) 0 var(--space-2);
}

.cta-plus {
  margin-top: calc(-1 * var(--space-2px));
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  line-height: 1;
}
