body {
  font-family: system-ui, sans-serif;
  max-width: 32rem;
  margin: 3rem auto;
  color: #1a1a1a;
}

form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

input[type="text"] {
  flex: 1;
  padding: 0.4rem 0.6rem;
}

button {
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.todo-list {
  list-style: none;
  padding: 0;
}

.todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.todo-list li.completed span:first-child {
  text-decoration: line-through;
  color: #888;
}

.todo-list li form {
  margin: 0;
}

.badge {
  color: #2a8f2a;
  font-size: 0.85rem;
}

.empty {
  color: #888;
}
