.status.warning {
  background: #fff3d6;
  color: #8a5700;
}

.notice.failure {
  background: #fde8e8;
  color: #9b1c1c;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.toolbar {
  align-items: flex-start;
}

.toolbar .actions {
  max-width: 720px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.team-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  margin: 0 0 30px;
  border: 1px solid #d9e8f4;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6fbff, #edf6fd);
}

.source-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.source-info strong {
  display: block;
  color: #173a5e;
  font-size: 15px;
}

.source-info p {
  margin: 4px 0 0;
  color: #6b8298;
  font-size: 13px;
}

.source-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #0870c9;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.team-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.team-stats div {
  display: grid;
  min-width: 105px;
  padding: 0 20px;
  border-left: 1px solid #d9e8f4;
}

.team-stats strong {
  color: #075399;
  font-size: 24px;
  line-height: 1;
}

.team-stats span {
  margin-top: 6px;
  color: #6b8298;
  font-size: 12px;
}

.list-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.list-tools h3 {
  margin: 0;
  color: #173a5e;
  font-size: 23px;
}

.search-field {
  width: min(330px, 100%);
}

.search-field input {
  padding-left: 42px;
  background: #f8fbfe
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b8298' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E")
    no-repeat 14px center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.team-list {
  display: grid;
  gap: 28px;
}

.team-group-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 4px;
}

.team-group-heading h4 {
  margin: 0;
  color: #49677f;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-group-heading span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 99px;
  background: #e9f2f9;
  color: #075399;
  font-size: 12px;
  font-weight: 800;
}

.team-rows {
  overflow: hidden;
  border: 1px solid #dce8f2;
  border-radius: 16px;
  background: #fff;
}

.team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 13px 16px;
  border-bottom: 1px solid #e6eef5;
  transition: background .15s ease;
}

.team-row:last-child {
  border-bottom: 0;
}

.team-row:hover {
  background: #f8fbfe;
}

.team-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.team-monogram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #cfe2f2;
  border-radius: 13px;
  background: #edf6fd;
  color: #075399;
  font-size: 17px;
  font-weight: 900;
}

.team-identity h5 {
  overflow: hidden;
  margin: 0;
  color: #173a5e;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.team-identity p {
  margin: 4px 0 0;
  color: #7890a5;
  font-size: 13px;
}

.team-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.source-link {
  color: #577087;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.source-link:hover {
  color: #0870c9;
  text-decoration: underline;
}

.row-edit {
  padding: 9px 13px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .team-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-stats {
    width: 100%;
  }

  .team-stats div {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 680px) {
  .team-overview {
    padding: 18px;
  }

  .team-stats div {
    padding: 0 12px;
  }

  .team-stats div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .list-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .team-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .team-meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
  }

  .row-edit {
    grid-column: 1 / -1;
    width: 100%;
  }
}
