
:root{--team-gold:#e0ba68;--team-panel:#0f1319;--team-border:rgba(255,255,255,.09);--team-muted:#9aa5b3}
.team-page{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:34px 0 70px}
.team-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:30px;border:1px solid var(--team-border);border-radius:22px;background:linear-gradient(135deg,rgba(15,20,27,.98),rgba(7,9,13,.98))}
.team-kicker,.team-group__heading span{color:var(--team-gold);font-size:.74rem;font-weight:900;letter-spacing:.12em}
.team-hero h1{margin:7px 0 8px;font-size:clamp(2rem,5vw,3.8rem)}.team-hero p{max-width:720px;margin:0;color:var(--team-muted);line-height:1.65}
.team-back{display:inline-flex;padding:10px 14px;border:1px solid rgba(224,186,104,.28);border-radius:10px;color:#f5dfae;text-decoration:none;white-space:nowrap}
.team-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.team-metric{padding:16px;border:1px solid var(--team-border);border-radius:14px;background:var(--team-panel)}.team-metric small,.team-metric strong{display:block}.team-metric small{color:var(--team-muted);font-size:.75rem}.team-metric strong{margin-top:5px;font-size:1.55rem}
.team-groups{display:grid;gap:22px}.team-group{padding:22px;border:1px solid var(--team-border);border-radius:18px;background:rgba(13,17,23,.94)}.team-group__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.team-group__heading h2{margin:4px 0 0}.team-count{display:grid;place-items:center;min-width:36px;height:36px;border-radius:50%;background:rgba(224,186,104,.12);color:#f3d58f;font-weight:900}
.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.team-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:center;padding:15px;border:1px solid var(--team-border);border-radius:15px;color:inherit;text-decoration:none;background:rgba(255,255,255,.025);transition:border-color .18s,transform .18s,background .18s}.team-card:hover{transform:translateY(-2px);border-color:rgba(224,186,104,.45);background:rgba(224,186,104,.045)}.team-card img{width:64px;height:64px;border-radius:13px;object-fit:cover;border:1px solid rgba(255,255,255,.12)}.team-card h3{margin:0 0 4px}.team-card p{margin:0;color:var(--team-muted);font-size:.82rem}.team-card__meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.team-pill{padding:4px 7px;border-radius:999px;border:1px solid rgba(255,255,255,.1);color:#c7d0dc;font-size:.68rem;font-weight:800}.team-pill--online{color:#a6f4c5;border-color:rgba(75,205,128,.35);background:rgba(75,205,128,.08)}.team-pill--inactive{color:#ff9ba3;border-color:rgba(255,83,96,.35)}.team-pill--condition{color:#ffd88a;border-color:rgba(224,186,104,.32)}.team-empty,.team-loading{padding:24px;text-align:center;color:var(--team-muted);border:1px dashed var(--team-border);border-radius:14px}
.team-role-icon{width:31px;height:31px;object-fit:contain;vertical-align:middle;margin-right:7px}
@media(max-width:900px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.team-page{width:min(100% - 20px,1240px);padding-top:18px}.team-hero{align-items:flex-start;flex-direction:column;padding:22px}.team-grid,.team-summary{grid-template-columns:1fr}.team-group{padding:15px}}

/* List view: one thin row per team member. */
.team-grid{grid-template-columns:1fr;gap:6px}
.team-card{grid-template-columns:34px minmax(0,1fr);gap:12px;padding:7px 12px;border-radius:10px}
.team-card:hover{transform:none}
.team-card img{width:34px;height:34px;border-radius:8px}
.team-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
.team-row__who{min-width:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.team-card h3{margin:0;font-size:.95rem}.team-card h3 small{color:var(--team-muted);font-weight:600}
.team-card p{font-size:.78rem}
.team-card__meta{margin-top:0;gap:5px;justify-content:flex-end;flex:0 1 auto}
.team-pill{padding:2px 7px;font-size:.64rem}
.team-group{padding:14px}.team-group__heading{margin-bottom:10px}.team-group__heading h2{font-size:1.15rem}
.team-role-icon{width:24px;height:24px}.team-count{min-width:28px;height:28px;font-size:.85rem}
@media(max-width:900px){.team-grid{grid-template-columns:1fr}}
@media(max-width:700px){.team-row{flex-direction:column;align-items:flex-start;gap:4px}.team-card__meta{justify-content:flex-start}}

/* Role colours: administrators red, staff green, moderators blue. */
.team-group--administrator{--role:#ff6b6b;--role-soft:rgba(255,107,107,.12);--role-line:rgba(255,107,107,.35)}
.team-group--staff{--role:#4ade80;--role-soft:rgba(74,222,128,.12);--role-line:rgba(74,222,128,.35)}
.team-group--moderator{--role:#60a5fa;--role-soft:rgba(96,165,250,.12);--role-line:rgba(96,165,250,.35)}
.team-group__heading span{color:var(--role)}
.team-group__heading h2{color:var(--role)}
.team-group .team-count{background:var(--role-soft);color:var(--role)}
.team-group .team-card h3{color:var(--role)}
.team-group .team-card img{border-color:var(--role-line)}
.team-group .team-card:hover{border-color:var(--role-line);background:var(--role-soft)}
.team-groups{margin-top:10px;gap:10px}
/* Smaller group headings. */
.team-group{padding:10px 12px}
.team-group__heading{margin-bottom:6px}
.team-group__heading>div{display:flex;align-items:center;gap:10px}
.team-group__heading span{font-size:.6rem}
.team-group__heading h2{margin:0;font-size:.95rem}
.team-role-icon{width:18px;height:18px;margin-right:5px}
.team-count{min-width:22px;height:22px;font-size:.72rem}
