.emoji-library {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #35454b;
}

.emoji-library-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.emoji-library-title span {
  color: #c8d2ce;
  font-size: 10px;
  font-weight: 800;
}

.emoji-library-title small,
.emoji-group > small {
  color: var(--muted);
  font-size: 8px;
}

#emojiGroups {
  max-height: 172px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: #52646a transparent;
  scrollbar-width: thin;
}

.emoji-group + .emoji-group {
  margin-top: 9px;
}

.emoji-group > small {
  display: block;
  margin-bottom: 5px;
  letter-spacing: .08em;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.emoji-button {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #39494f;
  border-radius: 5px;
  background: #202c30;
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}

.emoji-button:hover,
.emoji-button:focus-visible {
  z-index: 1;
  border-color: var(--lime);
  background: #2b3837;
  outline: none;
  transform: translateY(-1px);
}

.emoji-button:active {
  transform: scale(.92);
}

.emoji-button img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.emoji-button span {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 720px) {
  .emoji-library-title small {
    display: none;
  }

  .emoji-grid {
    grid-template-columns: repeat(9, 1fr);
  }
}
