Exception-based error handling. CSS tweaks