/* Relay positions stay distinct from match sides and entered skill grades. */
html:root body.site-sport :is(.ref-team-roster,.score-roster) {
  display:grid;gap:4px;margin-top:9px;text-align:left;color:var(--muted,#51636f);font-size:12px;line-height:1.35;
}
html:root body.site-sport .lineup-player {
  display:grid;grid-template-columns:30px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 6px;align-items:center;padding:4px 0;min-width:0;
}
html:root body.site-sport .lineup-avatar {grid-column:1;grid-row:1/3;width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:#e4ece7;color:#274c39;font-size:9px;font-weight:850;line-height:1;}
html:root body.site-sport .lineup-avatar img {width:100%;height:100%;object-fit:cover;}
html:root body.site-sport .lineup-slot {grid-column:3;grid-row:2;font-size:9px;font-weight:700;white-space:nowrap;}
html:root body.site-sport .lineup-name {grid-column:2;grid-row:1;font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html:root body.site-sport .lineup-grade {grid-column:2;grid-row:2;font-size:10px;overflow-wrap:anywhere;}
html:root body.site-sport .lineup-serving {grid-column:3;grid-row:1;font-size:9px;font-weight:800;font-style:normal;letter-spacing:.05em;}
html:root body.site-sport .lineup-warning {font-size:12px;font-weight:700;overflow-wrap:anywhere;}
html:root body.site-sport .lineup-player[data-playing="true"] {color:var(--text,#10202a);}
html:root body.site-sport.courtside-body.referee-arena .ref-team-roster {color:#bdccd5;}
html:root body.site-sport.courtside-body.referee-arena .lineup-avatar {background:#263d4a;color:#dbe8ee;border:1px solid rgba(255,255,255,.13);}
html:root body.site-sport.courtside-body.referee-arena .lineup-player[data-playing="true"] {color:#fff;}
html:root body.site-sport.courtside-body.referee-arena .lineup-player[data-serving="true"] .lineup-slot,
html:root body.site-sport.courtside-body.referee-arena .lineup-serving {color:var(--ref-a);}
html:root body.site-sport.courtside-body.referee-arena .team-b .lineup-player[data-serving="true"] .lineup-slot,
html:root body.site-sport.courtside-body.referee-arena .team-b .lineup-serving {color:var(--ref-b);}

.relay-draw-panel{padding:14px;margin:12px 0;border:1px solid var(--border,#cbd5ce);border-radius:12px;background:var(--surface,#f3f8f5);font-size:14px;color:var(--text,#14291d)}.relay-draw-panel[hidden]{display:none}.relay-draw-orders{display:grid;gap:8px;margin:10px 0;line-height:1.5;overflow-wrap:anywhere}.relay-draw-panel button{min-height:44px;width:100%}.relay-draw-leg{padding:8px;border-radius:7px;background:var(--surface-2,#e6efe9)}
