By Saad Sayeed, Andrew Mills, Ariba Shahid and Olivia Le PoidevinISLAMABAD, June 18 (Reuters) - Pakistani mediators spent weeks juggling late-night calls and competing drafts before a Qatari push helped secure this week's preliminary U.S.-Iran deal, but turning it into a permanent agreement will prove harder, sources said.

Mediators spent weeks working on a plan to bridge nearly half a century of hostility between Washington and Tehran

When a fragile US-Iran ceasefire threatened to collapse this spring, the diplomatic marathon to stitch together an agreement did not end in a dramatic finale that Pakistan hoped…