/* Native radio buttons preserve keyboard arrows and screen-reader state. */
.theme-control { display: flex; align-items: center; margin: 0.75rem 0; padding: 0; border: 0; min-width: 0; }
.theme-control[hidden] { display: none; }
.theme-options { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line-strong, var(--border-color)); border-radius: 9px; background: var(--well, var(--darkened-bg)); }
.theme-option { position: relative; margin: 0; padding: 0; float: none; width: auto; cursor: pointer; }
.theme-radio, .theme-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.theme-option-face { display: flex; align-items: center; justify-content: center; width: 36px; height: 32px; border-radius: 6px; color: var(--ink-soft, var(--body-quiet-color)); }
.theme-option-auto { width: 52px; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.theme-option:hover .theme-option-face { background: var(--hover-wash, var(--selected-bg)); color: var(--ink, var(--body-fg)); }
.theme-radio:checked + .theme-option-face { background: #2563eb; color: #ffffff; }
.theme-radio:focus-visible + .theme-option-face { outline: 2px solid var(--green, var(--link-fg)); outline-offset: 2px; }
