Local-density theory of multiplet structure