Tolerant CSS parsing and AST transformation