:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
}

body {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

form {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
}

form button {
  grid-column: 2;
  justify-self: start;
}

#error {
  min-height: 1.5em;
  color: #b00020;
}

#items {
  padding: 0;
  list-style: none;
}

#items li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0;
}

#items .name {
  flex: 1;
}

#items input {
  width: 4rem;
}

.version {
  color: GrayText;
  font-size: 0.85rem;
}
