:root {
  --bg: #0e1220;
  --panel: #161b2e;
  --line: #262d45;
  --text: #e9ecf6;
  --dim: #99a1bd;
  --accent: #36d6c3;
  --accent-ink: #06231f;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
  min-height: 100vh;
}
.wrap { width: 100%; max-width: 560px; }
.head { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.mark {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #4b8cf7);
}
h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.sub { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
.add { display: flex; gap: 8px; margin-bottom: 18px; }
.add input {
  flex: 1; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit;
}
.add input::placeholder { color: #6d7597; }
.add input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.add button {
  padding: 12px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
}
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel);
}
.item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.item span { flex: 1; }
.item.done span { color: var(--dim); text-decoration: line-through; }
.item .x { background: none; border: 0; color: #6d7597; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; }
.item .x:hover { color: #ff8095; }
.foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; color: var(--dim); font-size: 14px; }
.link { background: none; border: 0; color: var(--dim); cursor: pointer; font: inherit; text-decoration: underline; }
.link:hover { color: var(--text); }
