The U.N. chief’s Syria envoy, Staffan de Mistura, is trying to nail down an agreement to end the country’s nearly six-year civil war, which has left hundreds of thousands of people dead and driven millions of Syrian refugees into neighboring countries and Europe.