nllg-appearance-control {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-width: var(--appearance-width, 84px);
  min-height: 37px;
  padding: 2px;
  border: 1px solid var(--appearance-control-line, color-mix(in srgb, currentColor 34%, transparent));
  border-radius: 999px;
  color: inherit;
  background: var(--appearance-control-background, color-mix(in srgb, currentColor 5%, transparent));
  box-sizing: border-box;
  white-space: nowrap;
}

nllg-appearance-control button {
  display: grid;
  min-height: 31px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  font-weight: 660;
  line-height: 1;
  cursor: pointer;
}

.appearance-control-settings { flex: 1; padding: 0 8px; }
.appearance-control-mode { width: 31px; padding: 0; }
.appearance-control-mode svg { width: 16px; height: 16px; }
.appearance-control-sun { font-size: 17px; }
.appearance-control-sun, :root[data-theme="dark"] .appearance-control-moon { display: none; }
:root[data-theme="dark"] .appearance-control-sun { display: block; }
nllg-appearance-control button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
nllg-appearance-control button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

@media (any-pointer: coarse) {
  nllg-appearance-control { min-height: 44px; }
  nllg-appearance-control button { min-height: 38px; }
}
