/* ===========================================================
   team.css — the review-team board and the batch strip.
   =========================================================== */

/* ---- batches ---- */
.tb-batches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tb-batch {
  padding: 14px 15px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color .2s;
}
.tb-batch:hover { border-color: var(--border-bright); }
.tb-batch.complete { border-color: rgba(143,206,159,.3); background: rgba(143,206,159,.04); }
.tb-batch.closed   { opacity: .62; }

.tb-bhead { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.tb-bname { font-family: var(--serif); font-size: 15px; color: var(--text); line-height: 1.2; }
.tb-bwho {
  margin-top: 4px; font-family: var(--mono); font-size: 10px; color: var(--text-3);
}
.tb-bwho em { font-style: italic; opacity: .7; }
.tb-bstatus {
  margin-left: auto; flex-shrink: 0;
  padding: 3px 8px; border-radius: 3px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em;
  text-transform: uppercase; border: 1px solid var(--border);
  color: var(--text-3); background: var(--surface);
}
.tb-bstatus.open      { color: var(--gold);  border-color: var(--border-gold); }
.tb-bstatus.submitted { color: var(--cyan);  border-color: rgba(143,212,222,.35); }
.tb-bstatus.closed    { color: var(--green); border-color: rgba(143,206,159,.35); }

.tb-bar { height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.tb-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.tb-batch.complete .tb-bar i { background: linear-gradient(90deg, rgba(143,206,159,.6), var(--green)); }

.tb-bfoot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--text-3);
}
.tb-bpct { color: var(--text-2); }
.tb-bacts { display: flex; gap: 6px; margin-top: 11px; }

.tb-mini {
  padding: 5px 10px; border-radius: 5px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-bright);
  color: var(--text-2); font-family: var(--mono); font-size: 9px;
  letter-spacing: .07em; text-transform: uppercase;
  transition: border-color .18s, color .18s;
}
.tb-mini:hover { border-color: var(--border-gold); color: var(--gold); }

/* ---- reviewers ---- */
.tb-rhead, .tb-rrow {
  display: grid;
  grid-template-columns: minmax(0,2.2fr) 68px 74px 84px 68px 96px;
  gap: 10px; align-items: center;
}
.tb-rhead {
  padding-bottom: 9px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.tb-rhead span:not(:first-child) { text-align: right; }
.tb-rrow {
  padding: 11px 0; border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent; padding-left: 9px; margin-left: -9px;
}
.tb-rrow:last-of-type { border-bottom: none; }
.tb-rname { font-family: var(--serif); font-size: 14px; color: var(--text); min-width: 0; }
.tb-rname em {
  display: block; margin-top: 2px; font-style: normal;
  font-family: var(--mono); font-size: 9.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tb-rn   { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.tb-rate { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--text-3); }

.tb-rrow.good  { border-left-color: rgba(143,206,159,.55); }
.tb-rrow.good  .tb-rate { color: var(--green); }
.tb-rrow.watch { border-left-color: rgba(224,170,94,.55); }
.tb-rrow.watch .tb-rate { color: var(--amber); }
.tb-rrow.bad   { border-left-color: rgba(224,122,112,.6); background: rgba(224,122,112,.035); }
.tb-rrow.bad   .tb-rate { color: var(--red); }
.tb-rrow.thin  .tb-rate { color: var(--text-3); opacity: .55; }

.tb-note {
  margin-top: 14px; font-size: 11px; line-height: 1.65;
  color: var(--text-3); max-width: 78ch;
}

.tb-qcsum {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.tb-qcsum > div {
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2); text-align: center;
}
.tb-qcsum b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold); }
.tb-qcsum span {
  display: block; margin-top: 4px; font-family: var(--mono);
  font-size: 9px; letter-spacing: .05em; color: var(--text-3);
}
.tb-qclist { margin-top: 14px; max-height: 38vh; overflow-y: auto; }
.tb-qcrow {
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.tb-qcrow span { font-family: var(--mono); font-size: 10.5px; color: var(--gold); }
.tb-qcrow em { font-style: normal; font-size: 11px; color: var(--text-3); }

/* ---- the batch strip above the review queue ---- */
.rv-batch {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; margin-bottom: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-gold); background: rgba(201,169,98,.06);
}
.rv-batch.qc { border-color: rgba(143,212,222,.4); background: rgba(143,212,222,.05); }
.rv-bdot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,98,.16);
}
.rv-batch.qc .rv-bdot { background: var(--cyan); box-shadow: 0 0 0 3px rgba(143,212,222,.16); }
.rv-batch > div { flex: 1; min-width: 0; }
.rv-batch b {
  display: block; font-family: var(--serif); font-size: 14px; color: var(--text); font-weight: 500;
}
.rv-batch span:not(.rv-bdot) {
  display: block; margin-top: 2px; font-family: var(--mono);
  font-size: 10px; color: var(--text-3);
}
.rv-bclear {
  flex-shrink: 0; padding: 6px 11px; border-radius: 5px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-bright);
  color: var(--text-2); font-family: var(--mono); font-size: 9px;
  letter-spacing: .07em; text-transform: uppercase;
  transition: border-color .18s, color .18s;
}
.rv-bclear:hover { border-color: var(--border-gold); color: var(--gold); }

@media (max-width: 900px) {
  .tb-rhead, .tb-rrow { grid-template-columns: minmax(0,1.6fr) 56px 60px 70px 60px; }
  .tb-rhead span:last-child, .tb-rrow .tb-mini { display: none; }
  .tb-qcsum { grid-template-columns: 1fr; }
}

/* A validation recorded on the matter by somebody else. */
.tar-shared {
  padding: 10px 12px; margin-bottom: 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(143,212,222,.32); background: rgba(143,212,222,.05);
}
.tar-shared b {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px;
}
.tar-shared span {
  display: block; font-family: var(--mono); font-size: 10px; color: var(--text-3);
}
