/* A keyboard-accessible native checkbox provides the Dark/Light switch. */
.theme-picker{position:relative;display:inline-flex;align-items:center;gap:8px;flex-shrink:0;margin:0;padding:5px 7px;min-height:36px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font:11px/1.2 var(--font,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
.theme-picker input[type=checkbox]{position:absolute;inline-size:1px;block-size:1px;min-height:0;padding:0;margin:0;opacity:0;clip-path:inset(50%)}
.theme-picker .theme-switch-track{position:relative;display:inline-block;flex:0 0 32px;width:32px;height:18px;border:1px solid var(--line);border-radius:20px;background:var(--surface,var(--panel));transition:background .15s}
.theme-switch-track:before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform .15s,background .15s}
.theme-picker input:checked+.theme-switch-track{background:var(--mint,var(--accent));border-color:var(--mint,var(--accent))}
.theme-picker input:checked+.theme-switch-track:before{transform:translateX(14px);background:var(--bg)}
.theme-picker input:focus-visible+.theme-switch-track{outline:2px solid var(--mint,var(--accent));outline-offset:3px}
.theme-picker .theme-dark-name{color:var(--text,var(--ink))}
:root[data-theme=light] .theme-picker .theme-dark-name{color:var(--muted)}
:root[data-theme=light] .theme-picker .theme-light-name{color:var(--text,var(--ink))}
@media(max-width:650px){.theme-picker{gap:6px;padding:4px 5px;min-height:32px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.theme-picker .theme-switch-track,.theme-switch-track:before{transition:none}}
