#panorama.is-night-mode .annotation-visual {
  filter:
    drop-shadow(0 10px 18px rgba(4, 12, 25, .48))
    drop-shadow(0 0 8px rgba(255, 255, 255, .12));
}

.atmosphere-panel {
  position: fixed;
  z-index: 15;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 284px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  background: rgba(21, 24, 27, .46);
  box-shadow:
    0 20px 48px rgba(5, 8, 10, .25),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity .24s ease,
    transform .32s cubic-bezier(.22, 1, .36, 1),
    background-color .5s ease,
    border-color .5s ease;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.atmosphere-panel.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.atmosphere-panel:not(.is-ready) {
  pointer-events: none;
}

.atmosphere-panel__header {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.atmosphere-panel__header:hover {
  background: rgba(255, 255, 255, .08);
}

.atmosphere-panel__header:focus-visible,
.control-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.atmosphere-panel__title {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.atmosphere-panel__title strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atmosphere-panel__title small {
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  font-size: 9.75px;
  font-weight: 510;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atmosphere-panel__chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .24s ease;
}

.atmosphere-panel[data-expanded="false"]
  .atmosphere-panel__chevron {
  transform: rotate(-90deg);
}

.atmosphere-panel__body {
  display: grid;
  max-height: min(472px, calc(100vh - 90px));
  grid-auto-rows: minmax(0, auto);
  padding: 0 8px 8px;
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
  transition:
    max-height .3s cubic-bezier(.22, 1, .36, 1),
    padding .3s ease,
    opacity .18s ease;
}

.atmosphere-panel[data-expanded="false"] .atmosphere-panel__body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.control-row {
  display: grid;
  min-height: 48px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 7px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.control-row__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.control-row__copy strong {
  overflow: hidden;
  color: rgba(255, 255, 255, .94);
  font-size: 11.75px;
  font-weight: 650;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-row__copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, .56);
  font-size: 9.25px;
  font-weight: 500;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition:
    background-color .22s ease,
    box-shadow .22s ease,
    opacity .22s ease;
}

.control-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow:
    0 2px 5px rgba(68, 52, 39, .24),
    0 0 0 1px rgba(92, 70, 50, .07);
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.control-switch[aria-checked="true"] {
  background: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(62, 43, 28, .12),
    0 0 0 3px rgba(240, 162, 74, .12);
}

.control-switch[aria-checked="true"]::after {
  transform: translateX(19px);
}

.control-switch:active::after {
  width: 21px;
}

.control-switch[aria-disabled="true"],
.control-switch:disabled {
  cursor: not-allowed;
  opacity: .42;
}

#panorama.is-night-mode ~ .atmosphere-panel {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(12, 16, 22, .52);
}

@media (max-width: 720px) {
  .atmosphere-panel {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: min(266px, calc(100vw - 20px));
    border-radius: 16px;
  }

  .atmosphere-panel__header {
    min-height: 46px;
    padding: 7px 9px;
  }

  .control-row {
    min-height: 45px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 6px 4px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .atmosphere-panel {
    width: 258px;
  }

  .atmosphere-panel__body {
    max-height: calc(100vh - 70px);
  }

  .control-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .control-row__copy small {
    display: none;
  }

  .control-switch {
    width: 38px;
    height: 23px;
  }

  .control-switch::after {
    width: 17px;
    height: 17px;
  }

  .control-switch[aria-checked="true"]::after {
    transform: translateX(15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-panel,
  .atmosphere-panel__body,
  .atmosphere-panel__chevron,
  .control-switch,
  .control-switch::after {
    transition-duration: .01ms !important;
  }
}
