Improved CSS value detection in JS, and darkened active colours.