active/inactive border tweaks fro @larz0