/* Pointer focus should not inherit a keyboard ring through dialog autofocus. */
:where(button,a):focus:not(:focus-visible){outline:none;box-shadow:none}
html[data-focus-input="pointer"] :where(button,a):focus{outline:none;box-shadow:none}
html[data-focus-input="keyboard"] :where(button,a):focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.avatar-option:focus-within:not(:has(input:focus-visible)),
html[data-focus-input="pointer"] .avatar-option:focus-within{outline:none}
/* Invisible but accessible touch target; keyboard ring follows its rounded shape. */
dialog .close{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border-radius:6px;line-height:1}
