/* Shared glass theme picker; the website retains its original crown skin branding. */
.theme-picker { position: relative; flex: 0 0 auto; }
.theme-picker .theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
}
.theme-picker .theme-toggle[aria-expanded=true] { background: var(--soft-surface); }
.theme-picker .theme-toggle svg { width: 20px; height: 20px; pointer-events: none; }
.theme-picker .theme-menu.glass {
  z-index: 100;
  top: calc(100% + 10px);
  right: var(--theme-menu-offset, 0px);
  width: 208px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 7px;
  border-radius: 18px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  backdrop-filter: blur(32px) saturate(1.5);
  box-shadow: var(--shadow), var(--glass-shadow);
  animation: theme-menu-in .22s var(--ease);
}
.theme-picker .theme-menu button {
  min-height: 44px;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  color: var(--ink);
  line-height: 1.4;
}
.theme-picker .theme-menu button[aria-checked=true] {
  background: var(--soft-surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 650;
}
.theme-picker :is(button):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.release-page-actions { display: flex; align-items: center; gap: 14px; }
.release-page-actions > .text-link { min-height: 44px; }
@keyframes theme-menu-in {
  from { opacity: 0; translate: 0 -5px; }
  to { opacity: 1; translate: 0 0; }
}
@media (max-width: 400px) {
  .release-page-nav { column-gap: 8px; }
  .release-page-actions { gap: 4px; }
  .release-page-actions > .text-link { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-picker .theme-menu { animation: none; }
  .theme-picker .theme-toggle { transition: none; }
}
