.storify-switcher__open,
.storify-switcher__panel {
  box-sizing: border-box;
  color-scheme: light;
  font: 400 1rem/1.45 system-ui, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

.storify-switcher__open {
  position: fixed;
  z-index: 10000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 2.75rem;
  padding: .6rem 1.15rem;
  border: 1px solid #33463a;
  border-radius: 3rem;
  background: #203e2b;
  color: #fff;
  box-shadow: 0 .3rem 1rem #18312155;
  font-weight: 650;
  cursor: pointer;
}

.storify-switcher__open:hover {
  background: #31583e;
}

.storify-switcher__panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 25rem);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) 1.5rem;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f8f6ec;
  color: #1a2920;
  box-shadow: -.5rem 0 2rem #152c2140;
}

.storify-switcher__panel[open] {
  animation: storify-switcher-in 220ms ease-out both;
}

.storify-switcher__panel::backdrop {
  background: #101c16a6;
}

@keyframes storify-switcher-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .storify-switcher__panel[open] { animation: none; }
}

.storify-switcher__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 1.25rem;
}

.storify-switcher__title {
  margin: 0;
  color: #1a2920;
  font: 700 1.45rem/1.15 system-ui, sans-serif;
  letter-spacing: -.025em;
}

.storify-switcher__close {
  min-height: 2.75rem;
  padding: .45rem .7rem;
  border: 1px solid #a9b4a8;
  border-radius: .45rem;
  background: transparent;
  color: #203e2b;
  font: 600 .875rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.storify-switcher__list {
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storify-switcher__row {
  margin: 0;
  padding: 0;
}

.storify-switcher__link {
  display: grid;
  gap: .15rem;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: .7rem .8rem;
  border: 1px solid #bdc8bb;
  border-radius: .55rem;
  color: #203e2b;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.storify-switcher__link:hover,
.storify-switcher__close:hover,
.storify-switcher__link[aria-current="page"] {
  background: #e6eddd;
  border-color: #859582;
}

.storify-switcher__run-title {
  font-weight: 650;
}

.storify-switcher__description {
  color: #435649;
  font-size: .875rem;
}

.storify-switcher__current {
  width: fit-content;
  margin-top: .3rem;
  padding: .15rem .45rem;
  border-radius: 1rem;
  background: #203e2b;
  color: #fff;
  font-size: .75rem;
  font-weight: 650;
}

.storify-switcher__open:focus-visible,
.storify-switcher__close:focus-visible,
.storify-switcher__link:focus-visible {
  outline: 2px solid #31583e;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
