/* Team feed (2.3.97, app/35_team.js): the project crew's medals, crew
   milestones and shout-outs. Built on the Night Shift Premium tokens
   (theme-premium.css), with plain fallbacks for the older themes. */
.team-shout-btn {
  margin-bottom: 14px;
}
.team-feed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}
.team-empty {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
  padding: 24px 12px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  margin: 0;
  border-radius: var(--radius-p, var(--radius-sm));
  background: var(--card-p, var(--surface-glass));
  border: 1px solid var(--edge-p, var(--border));
  box-shadow: var(--lit-p, none);
}
/* One accent as an edge, same idea as the 2.3.98 colour language:
   gold for a medal someone earned, cyan for a crew tally, sky for a thanks. */
.team-card.team-kind-medal {
  border-left: 4px solid var(--medal-gold, #fbbf24);
}
.team-card.team-kind-crew {
  border-left: 4px solid var(--kpi-cyan, #7ad7f0);
}
.team-card.team-kind-shoutout {
  border-left: 4px solid var(--area-more, var(--brand, var(--primary)));
}
.team-card.is-pending {
  opacity: 0.8;
  border-style: dashed;
}
.team-card.is-hidden {
  opacity: 0.6;
}
.team-card.is-focus {
  box-shadow:
    0 0 0 2px var(--brand, var(--primary)),
    var(--lit-p, none);
}
.team-card-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
/* The coin only. The card itself must not use this class: a 46px circle
   on the article collapses the card and the words paint over the next one. */
.team-coin {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: #fde68a;
  background:
    radial-gradient(circle at 50% 50%, #1b2440 58%, transparent 60%),
    var(
      --ring-spectrum,
      conic-gradient(from 210deg, #fde68a, #f59e0b, #fb7185, #818cf8, #38bdf8, #fde68a)
    );
  box-shadow: var(--glow-gold, 0 6px 16px rgba(245, 158, 11, 0.22));
}
.team-card-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-main);
  line-height: 1.35;
}
.team-kicker,
.team-card-title,
.team-when {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}
.team-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}
.team-kind-medal .team-card-title {
  color: var(--medal-gold, #fbbf24);
}
.team-when {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin-top: 2px;
}
.team-msg {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-main);
  overflow-wrap: anywhere;
}
.team-detail {
  margin: 8px 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.team-link {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge-p, var(--border));
  background: transparent;
  color: var(--brand-text, var(--primary));
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  /* Batch C (sweep D5): 31px -> the 44px tap standard. */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.team-reacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.team-react {
  min-width: 52px;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--edge-p, var(--border));
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.team-react.is-mine {
  border-color: var(--medal-gold, #fbbf24);
  background: rgba(251, 191, 36, 0.14);
}
.team-react-n {
  font-size: var(--fs-sm);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.team-react-n:empty {
  display: none;
}
.team-who,
.team-mod {
  border: none;
  background: none;
  color: var(--brand-text, var(--primary));
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 8px 4px;
  cursor: pointer;
  /* Batch C (sweep D5): 33px -> the 44px tap standard. */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.team-who {
  margin-left: auto;
}
.team-card-head .team-mod {
  flex: none;
  color: var(--text-muted);
  align-self: flex-start;
}
#teamView > .ach-h {
  margin-top: 8px;
}
.team-hidden-note {
  margin-top: 8px;
  font-size: var(--fs-xs);
  color: var(--warning);
}
.team-count {
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}
.team-count.is-over,
.team-error {
  color: var(--danger);
}
.team-error {
  min-height: 1em;
  font-size: var(--fs-sm);
  margin: 0 0 8px;
}
.team-error:empty {
  display: none;
}
.team-shout-sheet textarea {
  width: 100%;
  font-size: 1rem;
}
/* A shout-out in the alerts bell, distinct from a fault. */
.alert-item.alert-shout {
  border-left: 4px solid var(--area-more, var(--brand, var(--primary)));
}
@media (prefers-reduced-motion: no-preference) {
  .team-react {
    transition: transform 0.12s ease;
  }
  .team-react:active {
    transform: scale(0.92);
  }
}

/* Team quiz (2.4.86): the round itself - big tap targets, the answer
   colours the teaching moment, one explanation line. */
.quiz-progress {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.quiz-topic {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}
.quiz-question {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-opt {
  text-align: left;
  justify-content: flex-start;
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.35;
}
.quiz-opt-right {
  background: #1e7d32;
  border-color: #1e7d32;
  color: #fff;
}
.quiz-opt-wrong {
  background: #b3261e;
  border-color: #b3261e;
  color: #fff;
}
.quiz-feedback {
  margin-top: 16px;
}
.quiz-verdict {
  font-weight: 700;
  margin-bottom: 4px;
}
.quiz-explain {
  margin-bottom: 12px;
  line-height: 1.45;
}
.quiz-score {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin: 18px 0 4px;
}
.quiz-score-line {
  text-align: center;
  margin-bottom: 18px;
}
.quiz-done-btns {
  display: grid;
  gap: 10px;
}
