#admin-menu-root {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
}

#admin-menu-root:empty {
  display: none;
}

#admin-menu-root .admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: auto;
  background:
    radial-gradient(circle at 82% 8%, rgba(151, 174, 68, 0.12), transparent 26%),
    rgba(10, 14, 7, 0.16);
}

#admin-menu-root .admin-menu-drawer {
  box-sizing: border-box;
  position: fixed;
  top: 96px;
  right: 44px;
  width: min(520px, calc(100vw - 88px));
  max-height: min(460px, calc(100vh - 116px));
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  pointer-events: auto;
  overflow-y: auto;
  border: 1px solid rgba(111, 129, 31, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(155, 179, 70, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(238, 246, 218, 0.98));
  box-shadow: 0 24px 64px rgba(48, 61, 20, 0.24);
  animation: adminMenuPanelIn 0.22s ease-out;
}

#admin-menu-root .admin-menu-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#admin-menu-root .admin-menu-drawer-head h2 {
  margin: 4px 0 0;
  color: #4d631c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.4rem);
  font-weight: 800;
  line-height: 0.94;
}

#admin-menu-root .admin-menu-drawer-head .eyebrow {
  margin: 0;
  color: #6f8120;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#admin-menu-root .admin-menu-drawer-head button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 129, 31, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4d631c;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(77, 93, 28, 0.12);
  cursor: pointer;
}

#admin-menu-root .admin-menu-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#admin-menu-root .admin-menu-drawer-item {
  appearance: none;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  min-height: 94px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(111, 129, 31, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(151, 174, 68, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 246, 220, 0.9));
  color: #20281d;
  font: inherit;
  text-align: left;
  white-space: normal;
  box-shadow: 0 18px 42px rgba(77, 93, 28, 0.1);
  cursor: pointer;
}

#admin-menu-root .admin-menu-drawer-item:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 129, 31, 0.38);
  box-shadow: 0 22px 48px rgba(77, 93, 28, 0.16);
}

#admin-menu-root .admin-menu-drawer-item strong,
#admin-menu-root .admin-menu-drawer-item span {
  display: block;
  white-space: normal;
}

#admin-menu-root .admin-menu-drawer-item strong {
  color: #4d631c;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
}

#admin-menu-root .admin-menu-drawer-item span {
  color: #66705f;
  font-size: 0.88rem;
  line-height: 1.28;
}

@keyframes adminMenuPanelIn {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 760px) {
  #admin-menu-root .admin-menu-drawer {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  #admin-menu-root .admin-menu-drawer-grid {
    grid-template-columns: 1fr;
  }
}
