/* Shared by the public site, admin editor, and sign-in screen. */
.theme-picker {
  --picker-surface: #fff;
  --picker-track: #f0f0f0;
  --picker-selected: #fff;
  --picker-ink: #202024;
  --picker-muted: #626269;
  --picker-line: rgba(0,0,0,.1);
  --picker-shadow: 0 12px 40px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  display: inline-flex;
  flex-shrink: 0;
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.4;
  color: var(--picker-ink);
}
[data-theme="dark"] .theme-picker, .theme-dark .theme-picker {
  --picker-surface: #1c1c1e;
  --picker-track: #111;
  --picker-selected: #343437;
  --picker-ink: #f0f0f0;
  --picker-muted: #a8a8ae;
  --picker-line: rgba(255,255,255,.12);
  --picker-shadow: 0 12px 40px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.12);
}
.theme-picker .theme-picker-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--picker-line);
  border-radius: 11px;
  background: transparent;
  color: var(--picker-ink);
  cursor: pointer;
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.theme-picker .theme-picker-trigger:hover, .theme-picker .theme-picker-trigger[aria-expanded="true"] {
  background: var(--picker-track);
  border-color: var(--picker-muted);
}
.theme-picker svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.theme-picker .theme-picker-panel {
  position: fixed;
  z-index: 45;
  box-sizing: border-box;
  width: min(268px, calc(100vw - 24px));
  padding: 15px;
  border: 1px solid var(--picker-line);
  border-radius: 16px;
  background: var(--picker-surface);
  box-shadow: var(--picker-shadow);
  transform-origin: top right;
  text-align: left;
}
.theme-picker [hidden] { display: none !important; }
.theme-picker .theme-picker-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.theme-picker .theme-picker-group legend {
  margin: 0 0 12px;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--picker-ink);
}
.theme-picker .theme-picker-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: 11px;
  background: var(--picker-track);
  isolation: isolate;
}
.theme-picker .theme-picker-indicator {
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border: 1px solid var(--picker-line);
  border-radius: 8px;
  background: var(--picker-selected);
  box-shadow: 0 2px 5px rgba(0,0,0,.06);
  transform: translateX(calc(var(--theme-index, 1) * 100%));
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), background-color 180ms ease;
}
.theme-picker .theme-picker-option { position: relative; display: block; margin: 0; cursor: pointer; }
.theme-picker .theme-picker-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.theme-picker .theme-picker-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-height: 65px;
  padding: 10px 4px;
  border-radius: 8px;
  color: var(--picker-muted);
  font-size: 11px;
  font-weight: 600;
  transition: color 180ms ease;
}
.theme-picker .theme-picker-option:hover .theme-picker-choice,
.theme-picker input:checked + .theme-picker-choice { color: var(--picker-ink); }
.theme-picker input:focus-visible + .theme-picker-choice,
.theme-picker .theme-picker-trigger:focus-visible { outline: 2px solid var(--picker-ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .theme-picker *, .theme-picker *::before, .theme-picker *::after { transition: none !important; animation: none !important; }
}
