.theme-picker { position: relative; flex: 0 0 auto; color: var(--ink, var(--body-fg)); }
.theme-picker, .theme-picker * { box-sizing: border-box; }
.theme-picker summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line, var(--border-color)); border-radius: 10px; cursor: pointer; list-style: none; font: 14px/1.4 Arial, sans-serif; }
.theme-picker summary::-webkit-details-marker { display: none; }
.theme-picker summary:hover, .theme-picker[open] summary { background: var(--soft, var(--selected-bg)); }
.theme-picker summary:focus-visible { outline: 3px solid var(--accent, var(--link-fg)); outline-offset: 3px; }
.theme-icon { display: none; }
html[data-theme-mode="light"] .theme-icon-light, html[data-theme-mode="dark"] .theme-icon-dark, html[data-theme-mode="system"] .theme-icon-system { display: flex; }
.theme-options { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 210px; max-width: calc(100vw - 32px); margin: 0; padding: 8px; background: var(--surface, var(--body-bg)); color: var(--ink, var(--body-fg)); border: 1px solid var(--line, var(--border-color)); border-radius: 12px; box-shadow: 0 10px 30px #0002; text-align: left; }
.theme-options label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font: 14px/1.4 Arial, sans-serif; }
.theme-options label:has(:checked) { background: var(--soft, var(--selected-bg)); }
.theme-options label:hover { background: var(--soft, var(--selected-bg)); }
.theme-options input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent, var(--link-fg)); }
.theme-options svg { flex-shrink: 0; }
@media (max-width: 1100px) { .theme-picker-caption { display: none; } }
.theme-options .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
