.roster-hero-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}

.roster-hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  text-align: left;
}

.roster-hero-card__top h3 {
  margin: 0 0 0.35rem;
}

.roster-hero-card__subtitle {
  margin: 0;
  color: #6b7280;
}

.roster-hero-card__badge-wrap {
  display: flex;
  align-items: center;
}

.roster-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
}

.roster-hero-card__tools {
  margin-top: 0.25rem;
}

.roster-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.75rem;
  align-items: center;
}

.roster-searchbar__input input,
.roster-searchbar__filter select {
  width: 100%;
  margin: 0;
}

.roster-searchbar__input input {
  min-width: 0;
}

.roster-searchbar__filter select {
  min-width: 0;
}

@media (max-width: 700px) {
  .roster-searchbar {
    grid-template-columns: 1fr;
  }
}

.roster-hero {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.roster-hero__top h2 {
  margin: 0;
}

.roster-hero__top p {
  margin: 0.25rem 0 1rem;
  color: #6b7280;
}

.roster-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.roster-tools {
  display: flex;
  gap: 0.75rem;
}

.badge {
  background: #111827;
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.roster-panel {
  padding: 1.5rem;
}

.roster-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  text-align: left;
}

.roster-header h3 {
  margin: 0 0 0.35rem;
}

.roster-subtitle {
  margin: 0;
  color: #6b7280;
}

.roster-tools {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.roster-search input,
.roster-filter select {
  min-width: 220px;
}

.roster-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.25rem 0 0.85rem;
  flex-wrap: wrap;
}

.roster-section-head h4 {
  margin: 0;
}

.roster-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.team-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.team-card.is-current-user-team {
  border-color: #93c5fd;
  box-shadow:
    0 0 0 2px rgba(59, 130, 246, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.06);
}

.team-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.team-card__title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.team-card__label {
  color: #6b7280;
  font-weight: 700;
}

.team-card__number {
  font-size: 1.15rem;
  font-weight: 800;
}

.team-card__count {
  color: #6b7280;
  font-size: 0.92rem;
}

.team-card__members {
  display: grid;
  gap: 0.5rem;
}

.team-member,
.roster-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: #fafbfc;
  text-align: left;
}

.team-member.is-current-user,
.roster-item.is-current-user {
  background: #eff6ff;
  border-color: #93c5fd;
}

.member-number,
.roster-number {
  min-width: 2ch;
  font-weight: 800;
  color: #6b7280;
}

.member-name,
.roster-name {
  font-weight: 600;
  flex: 1;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.roster-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.roster-list--solo {
  margin-top: 0.25rem;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .roster-tools {
    width: 100%;
  }

  .roster-search,
  .roster-filter {
    flex: 1 1 100%;
  }

  .roster-search input,
  .roster-filter select {
    width: 100%;
    min-width: 0;
  }
}
