.menu-btt {
  position: fixed;
  right: 18px;
  bottom: calc(94px + var(--safe-bottom));
  z-index: 30;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.88);
  color: var(--yellow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.menu-btt.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-btt.clear-nav {
  bottom: calc(24px + var(--safe-bottom));
}

.menu-btt:active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #050505;
  transform: scale(0.95);
}

.menu-btt svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

body[data-menu-mode="static"] .menu-btt {
  bottom: calc(24px + var(--safe-bottom));
}

@media (max-width: 1119px) {
  body:not([data-menu-mode="static"]) .nav {
    left: 72px;
  }

  body:not([data-menu-mode="static"]) .menu-btt:not(.clear-nav) {
    right: auto;
    bottom: calc(21px + var(--safe-bottom));
    left: 12px;
  }

  body:not([data-menu-mode="static"]) .menu-btt.clear-nav {
    right: auto;
    left: 18px;
  }
}

@media (min-width: 520px) and (max-width: 1119px) {
  body:not([data-menu-mode="static"]) .menu-btt:not(.clear-nav) {
    bottom: calc(16px + var(--safe-bottom));
  }
}

@media (max-width: 519px) {
  body:not([data-menu-mode="static"]) .menu-btt:not(.clear-nav) {
    bottom: calc(17px + var(--safe-bottom));
  }
}

.sheet-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 48px;
}

.sheet-topbar .sheet-handle {
  grid-column: 2;
  justify-self: center;
}

.sheet-close {
  display: grid;
  grid-column: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.96);
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.sheet-close:focus-visible,
.menu-btt:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (min-width: 1120px) {
  body:not([data-menu-mode="static"]) .menu-btt,
  body:not([data-menu-mode="static"]) .menu-btt.clear-nav {
    right: 424px;
    bottom: 36px;
  }

  body[data-menu-mode="static"] .menu-btt {
    right: 28px;
    bottom: 28px;
  }
}
