/*
 * Your account, and the API tokens shown on it and on an administrator's view
 * of someone else's account.
 */

.account__section,
.api-tokens {
  max-width: 52rem;
  margin-bottom: var(--space-6);
}

.account__manage {
  margin: var(--space-3) 0 0;
}

/* API tokens */

.api-tokens__list {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.api-token__header {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.api-token__header h3 {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.api-token__value {
  margin: 0 0 var(--space-3);
}

/* Revoked and expired tokens stay listed for the record, but quieter: the
   card says which in words as well. */
.api-token--revoked {
  background: transparent;
  border-style: dashed;
}

.api-token--revoked h3,
.api-token--revoked .api-token__value {
  color: var(--ink-quiet);
}

.api-tokens__create h3 {
  margin-top: 0;
}

.api-tokens__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 var(--space-4);
}
