/* «Команда», «Мій доступ» and the invitation page; every value is a design-system token. */
.team-page {
  display: grid;
  gap: var(--ds-space-5);
  max-width: 800px;
}
.team-panel {
  display: grid;
  gap: var(--ds-space-3);
  padding: var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.team-panel-title {
  margin: 0;
  font-size: var(--ds-text-md);
}
.team-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
}
.team-list {
  display: grid;
  margin: 0;
  padding: 0;
}
.team-muted {
  margin: 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
.team-text {
  margin: 0;
}
.team-form {
  display: grid;
  gap: var(--ds-space-4);
}
.team-error {
  margin: 0;
  color: var(--ds-danger);
  font-size: var(--ds-text-sm);
}
.team-error:empty {
  display: none;
}
.team-role-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2);
  margin: 0;
  font-size: var(--ds-text-sm);
}
.team-promo {
  justify-items: start;
}
.team-promo h2,
.team-promo p {
  margin: 0;
}
.team-promo h2 {
  font-size: var(--ds-text-lg);
}
.team-rights-block h3 {
  margin: 0 0 var(--ds-space-2);
  font-size: var(--ds-text-sm);
}
.team-plain-list {
  display: grid;
  gap: var(--ds-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--ds-text-sm);
}
.team-plain-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-2);
}
.team-yes {
  color: var(--ds-accent);
}
.team-no {
  color: var(--ds-muted);
}
.team-space-list {
  display: grid;
  gap: var(--ds-space-1);
}
.overview-space {
  overflow: hidden;
  min-width: 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.overview-space:empty {
  display: none;
}
.team-join {
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: var(--ds-space-8) var(--ds-space-4);
}
.team-join-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--ds-space-4);
  width: 100%;
  max-width: 520px;
  height: fit-content;
  padding: var(--ds-space-8);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.team-join-logo {
  width: auto;
  height: var(--ds-space-8);
}
.team-join-card h1 {
  margin: 0;
  font-size: var(--ds-text-xl);
}
.team-join-card h2 {
  margin: 0;
  font-size: var(--ds-text-sm);
}
@media (max-width: 760px) {
  .team-panel,
  .team-join-card {
    padding: var(--ds-space-4);
  }
}

.team-role-note {
  margin: 0;
  color: var(--ds-muted);
  font-size: var(--ds-text-sm);
}
