Add a data binding for the selection color.
Different selection color. And don't set state for selection.
Add a binding on the ports so they respect the selection color.
Bind the stroke of the connectors to the selection state of the nodes.