FIX: Don't show wrong flag choices after undo
FIX: Apply contract checks when first creating a badge
UX: CSS tweaks for badge query previews