Added blue color for SOC (Special Outcome)
Added light gray for low priority
added more precise matching for theme
added sanity checks for lines (check matching brackets)