.preference-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pref-ink, #1d1d1f);
  font:
    500 12px/1.3 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.preference-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap;
  border: 0 !important;
  min-width: 0 !important;
}
.preference-controls label:has(.preference-native) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.preference-language {
  position: relative;
  flex: none;
}
.preference-language summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.preference-language summary::-webkit-details-marker {
  display: none;
}
.preference-controls svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
}
.preference-chevron {
  width: 5px;
  height: 5px;
  border-right: 1.3px solid;
  border-bottom: 1.3px solid;
  transform: rotate(45deg);
  margin: 0 3px 3px;
  opacity: 0.7;
}
.preference-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 154px;
  padding: 6px;
  border: 1px solid var(--pref-line, #d2d2d7);
  border-radius: 14px;
  background: var(--pref-surface, #fff);
  box-shadow: 0 12px 36px #0002;
}
.preference-language-menu button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 11px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.preference-language-menu button:hover {
  background: var(--pref-pill, #e8e8ed);
}
.preference-modes {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 100px;
  background: var(--pref-pill, #e8e8ed);
}
.preference-modes button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.preference-modes button[aria-pressed='true'] {
  background: var(--pref-surface, #fff);
  box-shadow: 0 1px 4px #0002;
}
.preference-controls :is(button, summary):focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}
html[data-site-theme='dark'] {
  --pref-ink: #f5f5f7;
  --pref-surface: #30343c;
  --pref-pill: #21252d;
  --pref-line: #424650;
}
@media (max-width: 650px) {
  .preference-controls {
    gap: 8px;
  }
  .preference-language summary {
    min-height: 40px;
  }
  .preference-modes button {
    width: 32px;
    height: 32px;
  }
}
