:root {
  --bg: #0a0c15;
  --surface: #11141f;
  --border: #2a2f40;
  --text: #e6e8ef;
  --muted: #8a90a3;
  --accent: #eb6534;
  --positive: #acbea3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
  max-width: 560px;
  margin: 4rem auto;
  padding: 0 1rem;
}

header h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

header .hint {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.875rem;
}

header a { color: var(--accent); text-decoration: none; }
header a:hover { text-decoration: underline; }

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

input[type="text"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.625rem 0.75rem;
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--accent);
}

button {
  background: var(--positive);
  color: #0a0c15;
  border: none;
  border-radius: 4px;
  padding: 0 1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9375rem;
}
button:hover { filter: brightness(1.05); }

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.625rem 0.75rem;
}

li input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--positive);
  cursor: pointer;
}

li .title { flex: 1; font-size: 0.9375rem; }
li.done .title { text-decoration: line-through; color: var(--muted); }

li .del {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
}
li .del:hover { color: #f87171; border-color: #f87171; }

.empty, .error {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.error { color: #f87171; }
