From Probabilistic Pedestrian Intent to Risk-Optimal Trajectories: A Prediction-Driven Planning Framework in Shared Spaces | Synapse