/* ================================================================
   GROUPS — member rows and activity bars (restored 2026-09-27).

   The Groups tab came back after the 2026-09-26 removal. Its member rows
   are the `.placement-area*` rows and its daily bars are
   practice/activity-bars.js' `.activity-day*` columns; both styles lived in
   styles/practice/home.css until that removal and are here now, their only
   consumer being the Groups tab. Load BEFORE groups.css: `.dd-member-areas`
   and `.dd-activity-chart` there override these at the same specificity.
   ================================================================ */

/* ---- 2. AREA ROWS (the group board) ------------------------------------ */
.placement-areas { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; }
.placement-areas-head { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
/* Fixed track column so every bar starts and ends on the same two pixels —
   rows that each size their own bar cannot be compared by eye, which is the
   entire point of the list. */
.placement-area {
  align-items: center;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 1.4fr) minmax(80px, 3fr) 44px 40px 74px;
  padding: 7px 8px;
  margin: 0 -8px;
}
.placement-area:hover { background: rgb(var(--tint-rgb) / calc(0.04 * var(--tint-k))); }
.placement-area-name { color: var(--text); font-size: 13px; }
.placement-area-bar { background: rgb(var(--well-rgb) / calc(0.22 * var(--well-k))); border-radius: 999px; height: 6px; overflow: hidden; }
.placement-area-bar i { background: var(--info); border-radius: 999px; display: block; height: 100%; }
.placement-area-pct { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.placement-area-conf { color: var(--muted-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; }
.placement-area-probes { color: var(--muted-dim); font-size: 11.5px; text-align: right; }
/* An unprobed area is a prior wearing a percentage. Everything about the row
   is dialled down, and the bar is hollow rather than filled, so it never
   reads as a measurement taken. */
.placement-area--unprobed .placement-area-name,
.placement-area--unprobed .placement-area-pct { color: var(--muted); }
.placement-area--unprobed .placement-area-bar i { background: rgb(var(--info-rgb) / 0.3); }
.placement-area--unprobed .placement-area-probes { font-style: italic; }

@media (max-width: 620px) {
  .placement-area { grid-template-columns: 1fr 44px 40px; grid-template-areas: "name pct conf" "bar bar probes"; }
  .placement-area-name { grid-area: name; }
  .placement-area-bar { grid-area: bar; }
  .placement-area-pct { grid-area: pct; }
  .placement-area-conf { grid-area: conf; }
  .placement-area-probes { grid-area: probes; text-align: left; }
}

/* ---- ACTIVITY BARS (practice/activity-bars.js) ------------------------ */
.activity-week-chart {
  align-items: stretch;
  display: flex;
  gap: 10px;
}
.activity-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
.activity-day-count {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  /* Reserve the line even when empty so all seven tracks stay level. */
  min-height: 15px;
}
/* Fixed-height track with the bar growing up from the floor — same "every bar
   shares the same two pixels" reasoning as .placement-area-bar, rotated
   vertical. The hairline floor keeps a zero day visibly a day, not a gap. */
.activity-day-track {
  align-items: flex-end;
  background: rgb(var(--well-rgb) / calc(0.12 * var(--well-k)));
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  display: flex;
  height: 88px;
}
.activity-day-bar {
  background: var(--info);
  border-radius: 4px 4px 0 0;
  display: block;
  width: 100%;
}
.activity-day-letter {
  color: var(--muted-dim);
  font-size: 11px;
  font-weight: 700;
}
/* Today reads a shade louder than the finished days — it is the bar that is
   still being earned. */
.activity-day.is-today .activity-day-letter,
.activity-day.is-today .activity-day-count { color: var(--text); }
