.theme-control { position: relative; flex: none; }
.theme-control[hidden], .theme-options[hidden], .theme-toggle svg[hidden] { display: none; }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  color: #fff; background: #FFFFFF12; border: 1px solid #FFFFFF35; border-radius: 10px;
}
.theme-toggle:hover, .theme-toggle[aria-expanded=true] { background: #FFFFFF26; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-options {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0;
  min-width: 160px; padding: 6px; z-index: 10; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 35px #0003;
}
.theme-choice {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px;
  border-radius: 7px; background: transparent; text-align: start; font-size: 12px;
}
.theme-choice:hover, .theme-choice:focus-visible { background: var(--mist); }
.theme-choice[aria-checked=true] { color: var(--blue); font-weight: 600; }
.theme-choice svg { width: 17px; height: 17px; flex: none; }
.theme-check { margin-inline-start: auto; }
.theme-choice[aria-checked=false] .theme-check { visibility: hidden; }
@media (max-width: 600px) { .theme-toggle { width: 40px; height: 40px; } }
