*{box-sizing:border-box;margin:0;padding:0}body{font-family:system-ui,-apple-system,sans-serif;background:#f4f6f8;color:#222}.container{max-width:560px;margin:60px auto;padding:0 20px}h1{font-size:2rem;margin-bottom:20px;text-align:center}.add-form{display:flex;gap:8px;margin-bottom:16px}.add-form input{flex:1;padding:12px;border:1px solid #ccc;border-radius:8px;font-size:1rem}.add-form button{padding:12px 20px;border:none;border-radius:8px;background:#2563eb;color:#fff;font-size:1rem;cursor:pointer}.add-form button:hover{background:#1d4ed8}.count{color:#666;margin-bottom:16px;font-size:.9rem}.task-list{list-style:none;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;overflow:hidden}.task-list li{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee}.task-list li:last-child{border-bottom:none}.task-list label{display:flex;align-items:center;gap:10px;cursor:pointer;flex:1}.task-list input[type=checkbox]{width:18px;height:18px}.task-list li.completed span{text-decoration:line-through;color:#999}.delete{padding:6px 12px;border:none;border-radius:6px;background:#ef4444;color:#fff;cursor:pointer}.delete:hover{background:#dc2626}.empty{text-align:center;color:#999;margin-top:30px}
