.identities {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.identities__header {
  h1 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    color: var(--text-primary);
  }

  p {
    margin: 0;
    color: var(--text-secondary, var(--text-muted));
  }
}

.identities__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary, var(--text-muted));

  &--error {
    color: var(--color-error, #c0392b);
  }
}

.identities__retry {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

.identities__conflict {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--color-warning, #d19a00);
  border-radius: var(--radius-md, 8px);
  background: var(--color-warning-bg, rgba(209, 154, 0, 0.08));
  color: var(--text-primary);
}

.identities__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-primary);
}

.identity__icon {
  display: inline-flex;
  color: var(--text-secondary, var(--text-muted));
}

.identity__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.identity__name {
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-primary);
}

.identity__detail {
  font-size: 0.875rem;
  color: var(--text-secondary, var(--text-muted));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity__unlink {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

.identities__add {
  display: flex;
  flex-direction: column;
  gap: 12px;

  h2 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
  }
}
