.theme-picker { position: relative; flex: 0 0 auto; z-index: 35; }
.theme-picker > summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; padding: 0; }
.theme-picker > summary::-webkit-details-marker { display: none; }
.theme-mode-icon { display: none; place-items: center; }
[data-theme-preference=light] [data-theme-icon=light], [data-theme-preference=dark] [data-theme-icon=dark], [data-theme-preference=system] [data-theme-icon=system] { display: grid; }
.theme-menu { position: absolute; top: calc(100% + .5rem); inset-inline-end: 0; width: 16rem; padding: .5rem; background: var(--surface, var(--card, #fff)); color: var(--ink, var(--fg, #14333c)); border: 2px solid var(--line); box-shadow: 4px 4px 0 #031829; font-family: var(--font-body, system-ui, sans-serif); }
.theme-choice { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 44px; padding: .75rem; color: inherit; background: transparent; border: 0; border-radius: 0; text-align: start; font: inherit; font-size: .875rem; line-height: 1.4; cursor: pointer; }
.theme-choice:hover, .theme-choice[aria-pressed=true] { background: var(--accent-soft, var(--note, #e9f1ee)); }
.theme-choice > svg { flex: 0 0 auto; }
.theme-choice-copy { flex: 1; min-width: 0; }
.theme-choice-label { display: block; }
.theme-choice small { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; }
.theme-choice-check { flex: 0 0 auto; visibility: hidden; }
.theme-choice[aria-pressed=true] .theme-choice-check { visibility: visible; }
.theme-choice:focus-visible, .theme-picker summary:focus-visible { outline: 3px solid var(--accent, var(--link, #087b76)); outline-offset: 2px; }
@media (max-width: 600px) { .header-actions .theme-menu { position: fixed; inset-inline: 1rem; top: calc(var(--nav-height) + .5rem); width: auto; } }
@media print { .theme-picker { display: none; } }
