:root{color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.5}body{margin:0;min-height:100vh;background:#0f172a;color:#e2e8f0}.app{max-width:40rem;margin:4rem auto;padding:1.5rem;background:#1e293b;border:1px solid #334155;border-radius:.75rem}h1{margin-top:0;font-size:1.5rem}.add{display:flex;gap:.5rem;margin-bottom:1rem}.add input{flex:1;padding:.5rem .75rem;border:1px solid #475569;border-radius:.375rem;background:#0f172a;color:inherit}button{padding:.5rem .75rem;border:0;border-radius:.375rem;background:#2563eb;color:#fff;cursor:pointer}button:hover{background:#1d4ed8}.tasks{list-style:none;margin:0;padding:0}.tasks li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid #334155}.tasks label{display:flex;align-items:center;gap:.5rem}.done span{text-decoration:line-through;opacity:.6}.remove{background:#7f1d1d}.remove:hover{background:#991b1b}.error{color:#fca5a5}.empty{opacity:.7}
