Make responsive layout work for RTL. Fix button alignment and shrink buttons to avoid wrapping on small screens.