.switcher {
  position: fixed;
  left: 50%;
  top: calc(var(--margin) + env(safe-area-inset-top));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100vw - var(--margin) * 2);
  padding: 4px 6px 4px 14px;
  background: var(--black);
  color: var(--white);
  transform: translateX(-50%);
  transition: opacity var(--dur) var(--ease-out);
}

.switcher:not(.is-summoned) {
  display: none;
}

.switcher.is-busy .switcher__panel {
  opacity: 0.7;
}

.detail-open .switcher,
.is-loading .switcher {
  visibility: hidden;
}

.switcher__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  white-space: nowrap;
}

.switcher__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.switcher__panel[hidden] {
  display: none;
}

.switcher__group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.switcher__name {
  margin-right: 6px;
  color: #9a9a9a;
}

.switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 36px;
  color: #9a9a9a;
  transition: color var(--dur) var(--ease-out);
}

.switcher__option[aria-pressed="true"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (hover: hover) {
  .switcher__option:hover,
  .switcher__toggle:hover {
    color: var(--white);
  }
}

.switcher__current {
  display: none;
  min-width: 7em;
  margin-left: 6px;
}

@media (min-width: 900px) {
  .switcher__current {
    display: inline;
  }
}
