* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; justify-content: center;
  padding: 40px 16px; background: #f1f5f9; color: #1e293b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.card {
  width: 100%; max-width: 520px; height: fit-content; background: #fff;
  padding: 28px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
h1 { margin: 0; font-size: 1.6rem; }
.sub { margin: 4px 0 20px; color: #64748b; font-size: .9rem; }
.add-form { display: flex; gap: 8px; margin-bottom: 20px; }
.add-form input {
  flex: 1; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem;
}
button {
  padding: 10px 16px; border: 0; border-radius: 8px; background: #2563eb;
  color: #fff; font-size: .95rem; cursor: pointer;
}
button:hover { background: #1d4ed8; }
button.small { padding: 6px 10px; font-size: .8rem; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #e2e8f0;
}
.tasks li.done span { text-decoration: line-through; color: #94a3b8; }
.tasks li.empty { justify-content: center; color: #94a3b8; border: 0; }
.tasks span { word-break: break-word; }
.actions { display: flex; gap: 6px; }
.actions form { margin: 0; }
