This whole set of rules seems similar to how we style edit/controls in other places (e.g. the Unit page UI) - is the duping of styles needed here or can this be abstracted out at least partially to share styling with those places?