Removing the outline on buttons fixes the look and breaks keyboard navigation.
button:focus-visible, a:focus-visible {
outline: 3px solid #0b6bcb;
outline-offset: 2px;
}
:focus-visible matches when the browser thinks a focus indicator is useful: always for keyboard navigation, usually not after a mouse click on a button. That gives you a clear ring where it is needed without the ring flashing on every click. Never write outline: none without a replacement. Text fields still show the ring on a click, because typing needs to be obvious there. The selector is supported in every current browser.
Further reading: MDN: :focus-visible