:root {
  --bg: #121212; --card: #1e1e1e; --ink: #e5e7eb; --muted: #94a3b8;
  --md: #6200ee; --md2: #03dac6; --danger: #ef4444;
  --rad: 14px; --shadow: 0 8px 20px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif; }
.wrap { max-width: 720px; margin: 32px auto; padding: 0 16px; }
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
h1 { margin: 0; font-weight: 700; }
.add { display: flex; gap: 10px; padding: 16px; background: var(--card);
  border-radius: var(--rad); box-shadow: var(--shadow); }
.add input { flex: 1; background: #0f172a; color: var(--ink);
  border: 1px solid #273042; border-radius: 10px; padding: 12px 14px; }
.btn { background: var(--md); border: 0; color: #fff; padding: 10px 16px;
  border-radius: 999px; cursor: pointer; font-weight: 600; }
.btn:hover { filter: brightness(1.08); }
.btn.danger { background: var(--danger); }
.filters { display: flex; gap: 8px; margin: 14px 2px 10px; }
.chip { background: #0b1220; border: 1px solid #2b3546; border-radius: 999px;
  color: var(--muted); padding: 8px 12px; cursor: pointer; }
.chip.active { background: var(--md2); color: #001b1a; border-color: transparent; font-weight: 700; }
.list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: 12px; border: 1px solid #2b3546; padding: 12px 14px; }
.item input[type="checkbox"] { width: 18px; height: 18px; }
.item .txt { flex: 1; }
.item.completed .txt { text-decoration: line-through; color: #9aa4b5; }
.item .rm { background: #0b1220; border: 1px solid #2b3546; border-radius: 8px; color: #fff; padding: 6px 10px; cursor: pointer; }
.foot { margin-top: 10px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
