DEAR MISS MANNERS: Is there a proper condolence for a friend who is a criminal defense attorney who loses a case? Let's just say that his client is probably guilty and you would not otherwise doubt that justice was done.
GENTLE READER: "You gave him the best possible defense. I hope he appreciates that."
In turn, Miss Manners hopes that you appreciate this tactful solution, which your friend will find flattering, and that you will not be disappointed that it omits showing satisfaction at the conviction. You are not supposed to make lawyers feel guilty about defending the guilty.