#panel-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

#panel-root.is-open {
  pointer-events: auto;
}

.panel-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 0.25s ease;
}

#panel-root.is-open .panel-overlay {
  opacity: 1;
}

#panel-root:not(.is-open) .panel-overlay {
  visibility: hidden;
  pointer-events: none;
}

#panel-root:not(.is-open) .panel-box {
  pointer-events: none;
}

#panel-root:not(.is-open),
#panel-root:not(.is-open) * {
  pointer-events: none !important;
}

#panel-root.is-open .panel-overlay {
  visibility: visible;
  pointer-events: auto;
}

#panel-root.is-open .panel-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.panel-overlay::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);

  z-index: 0;
}

.panel-box {
  width: 330px;
  height: calc(100% - 122px);

  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;

  padding-top: 15px;

  box-sizing: border-box;
  
  background: rgba(20, 24, 28, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);

  position: relative;
  z-index: 2;

  transform: scale(0.92) translateY(20px);
  opacity: 0;

  transition:
    transform 0.28s cubic-bezier(.2,.8,.2,1),
    opacity 0.2s ease;
}

.panel-header {
  height: 14px;
  padding: 0 12px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(20, 24, 28, 0.98);
  border-bottom: 1px solid rgba(0, 255, 238, 0.22);

  color: #00ffee;
  font-family: Aldrich, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}

.panel-close {
  position: static;

  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  cursor: pointer;
}

.panel-close img {
  width: 25px;
  height: 25px;
  display: block;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.panel-hub-close {
  position:absolute;
  padding-bottom: 18px;
  right: 4px;
  width: 35px;
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  cursor: pointer;
}

.panel-hub-close img {
  width: 25px;
  height: 25px;
  display: block;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.panel-scroll {
  flex: 1;
  max-height: calc(100%);
  overflow-y: auto;
  padding: 8px 8px 20px;
  box-sizing: border-box;
}

.panel-close:hover img {
  filter: drop-shadow(0 0 6px #00f6ff);
}

.panel-close:active img {
  transform: scale(1.3);
}

.panel-hub-close:hover img {
  filter: drop-shadow(0 0 6px #00f6ff);
}

.panel-hub-close:active img {
  transform: scale(1.3);
}