/* Button and click polish (assets/ui-polish.js). No new look: the same buttons, but quicker, easier to hit and reachable from the keyboard. */

/* taps: no 300 ms wait or double-tap zoom, no grey flash, buttons are not text you can accidentally select */
button, [role="button"], [role="menuitem"], .btn, .icon-btn, .rail-btn, .snav, .ctx-item, .channel-item, .member-row { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, [role="button"], [role="menuitem"], .btn { -webkit-user-select: none; user-select: none; }
button:disabled, [aria-disabled="true"], .btn[disabled] { cursor: not-allowed; }

/* the keyboard ring on rows that are now reachable (inside the row, so a scrolling list never clips it) */
[data-kbd]:focus-visible { outline: 2px solid var(--accent-hi, var(--accent, #8b5cf6)); outline-offset: -2px; }
.ux-skipall:focus-visible, .ub-caret:focus-visible, .sm-chip:focus-visible { outline: 2px solid var(--accent-hi, var(--accent, #8b5cf6)); outline-offset: 2px; }
/* the right-click menu, driven by the keyboard: the row you are on looks like the row under the mouse */
.ctx-item[role="menuitem"]:focus { outline: none; }
.ctx-item[role="menuitem"]:focus-visible { background: var(--accent); color: #fff; }
#ctx-menu:focus, #ctx-sub:focus { outline: none; }

/* small icon buttons: the same size to the eye, a finger-sized (24 px or more) place to hit */
.ub-caret { position: relative; }
.ub-caret::after { content: ''; position: absolute; inset: 0 -6px; }
button.reaction { min-height: 26px; }
#acc-email-reveal { display: inline-flex; align-items: center; min-height: 26px; padding: 0 4px; }
.icon-btn { min-height: 24px; }

/* a link-like line of small text that is also a button: a taller place to press */
small[data-kbd], span[data-kbd]:not(.swatch) { display: inline-block; min-height: 24px; line-height: 24px; }
