/* ============================================================================
   CHIPS, COUNT BADGE, RANK LETTER, EFFORT + TREND
   ============================================================================ */

/* Status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font: var(--fw-semibold) 12px/1 var(--font);
  white-space: nowrap;
}

.chip .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.chip--sm {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.chip--lg {
  height: 28px;
  padding: 0 11px;
  font-size: 13px;
}

.chip--mint    { background: var(--mint);   color: var(--mint-tx); }
.chip--butter  { background: var(--butter); color: var(--butter-tx); }
.chip--peach   { background: var(--peach);  color: var(--peach-tx); }
.chip--lilac   { background: var(--lilac);  color: var(--lilac-tx); }
.chip--accent  { background: var(--ac-bg);  color: var(--ac-text); }
/* Up next, solid (a Planner row) */
.chip--up-next { background: var(--ac);     color: var(--ac-ink); }
/* Taking a break is neutral */
.chip--neutral { background: var(--sf2);    color: var(--tx2); }

/* Count badge: pill, min-width equal to its height */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 23px;
  min-width: 23px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--sf2);
  color: var(--tx2);
  font: var(--fw-bold) 13px/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.count-badge--accent {
  background: var(--ac-bg);
  color: var(--ac-text);
}

/* Mint: a tally of things done ("Done today 2") */
.count-badge--mint {
  height: 24px;
  min-width: 24px;
  background: var(--mint);
  color: var(--mint-tx);
}

/* Alert: the sidebar Roster check-in count. A 20px rounded square rather
   than a pill. */
.count-badge--alert {
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--dan-bg);
  color: var(--dan);
  font: var(--fw-semibold) 12px/1 var(--font);
}

/* Rank letter */
.rank-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font: var(--fw-bold) 12px/1 var(--font);
}

.rank-letter--square {
  width: 22px;
  height: 22px;
  border-radius: var(--r-chip-sq);
  background: var(--ac-bg);
  color: var(--ac-text);
  font-size: 11px;
}

.rank-letter--roster {
  gap: 2px;
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--sf2);
  border: var(--bw) solid var(--line);
  color: var(--tx);
  font-size: 14px;
}

@media (max-width: 1099px), (hover: none) and (pointer: coarse) {
  .rank-letter--roster {
    height: 30px;
    min-width: 30px;
  }
}

.rank-letter-arrow {
  width: 12px;
  height: 12px;
}

.rank-letter-arrow--up { color: var(--mint-tx); }
.rank-letter-arrow--down { color: var(--peach-tx); }

/* Effort pill + trend circle.
   The pill is colored by effort band, not a flat accent fill: low 0-3
   peach, mid 4-6 butter, high 7-10 mint; no effort stays neutral. The
   bands live in TrainingSession::EFFORT_BANDS. */
.effort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 30px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  font: var(--fw-bold) 14px/1 var(--font);
  font-variant-numeric: tabular-nums;
}

.effort-pill--mint   { background: var(--mint);   color: var(--mint-tx); }
.effort-pill--butter { background: var(--butter); color: var(--butter-tx); }
.effort-pill--peach  { background: var(--peach);  color: var(--peach-tx); }
.effort-pill--neutral { background: var(--sf2);   color: var(--tx2); }

.effort-trend-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

.trend-circle .icon {
  width: 14px;
  height: 14px;
}

/* Trend colors: better mint with the up
   arrow, same neutral with the right arrow, worse peach with the down arrow */
.trend-circle--better {
  background: var(--mint);
  color: var(--mint-tx);
}

.trend-circle--same {
  background: var(--sf2);
  color: var(--tx2);
}

.trend-circle--worse {
  background: var(--peach);
  color: var(--peach-tx);
}
