.f-theme-switch {
  --theme-surface: #fffdf8;
  --theme-inset: #e4edf1;
  --theme-text: #192e38;
  --theme-muted: #495d66;
  --theme-focus: #275d77;
  --theme-border: #758a91;
  position: relative;
  z-index: 3;
  flex: none;
  font: inherit;
  color: var(--theme-text);
}
html[data-brand-theme="dark"] .f-theme-switch {
  --theme-surface: #243f4b;
  --theme-inset: #304e5b;
  --theme-text: #fffdf8;
  --theme-muted: #d3e3e8;
  --theme-focus: #b1ddf0;
  --theme-border: #a3b7be;
}
.f-theme-switch[hidden] { display: none; }
.f-theme-trigger {
  min-height: 44px;
  min-width: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border: 1px solid var(--theme-border);
  border-radius: 2rem;
  color: var(--theme-text);
  background: var(--theme-surface);
  list-style: none;
  cursor: pointer;
  font: 650 .875rem/1.25 Manrope, Arial, sans-serif;
}
.f-theme-trigger::-webkit-details-marker { display: none; }
.f-theme-trigger:hover, .f-theme-switch[open] .f-theme-trigger,
.f-theme-option:hover, .f-theme-option:has(input:checked) {
  background: var(--theme-inset);
}
.f-theme-switch :focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 3px;
}
.f-theme-popover {
  box-sizing: border-box;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .45rem);
  width: min(16.5rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--theme-border);
  border-radius: .65rem;
  background: var(--theme-surface);
  color: var(--theme-text);
  box-shadow: 0 .65rem 1.8rem #1227312e;
  text-align: start;
}
.f-theme-options {
  padding: 0;
  margin: 0;
  min-width: 0;
  border: 0;
}
.f-theme-options legend {
  margin-bottom: .45rem;
  padding: 0;
  font-size: 1rem;
  font-weight: 750;
}
.f-theme-option {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: .65rem;
  margin: .1rem 0;
  padding: .45rem .55rem;
  border-radius: .35rem;
  cursor: pointer;
}
.f-theme-option input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--theme-focus);
}
.f-theme-option-copy {
  font-size: .9375rem;
  line-height: 1.35;
  font-weight: 700;
}
.f-theme-option small, .f-theme-note {
  display: block;
  color: var(--theme-muted);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
}
.f-theme-note {
  margin: .65rem 0 0;
  padding: .65rem 0 0;
  border-top: 1px solid var(--theme-border);
}
@media (max-width: 600px) {
  .f-theme-trigger { width: 44px; padding: .45rem; }
  .f-theme-current, .f-theme-chevron { display: none; }
}
