/* Type autocomplete popup and the hint badges. */

#ac {
  position: fixed;
  z-index: 90;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  max-height: 208px;
  overflow-y: auto;
  min-width: 190px;
  display: none;
  padding: 3px;
}
.ac-i {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.ac-i:hover {
  background: rgba(255, 255, 255, 0.04);
}
.ac-i.on {
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}
.ac-k {
  font-size: 9px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  color: var(--faint);
  letter-spacing: -0.03em;
}
.ac-i .m {
  color: var(--type);
  font-weight: 500;
}
.ac-i.on .m {
  color: var(--type);
}
.ac-tag {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--faint);
  padding-left: 14px;
}

.hint-badge {
  position: absolute;
  top: -9px;
  left: -9px;
  background: var(--type);
  color: #1a1408;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

#ac::-webkit-scrollbar {
  width: 8px;
}
#ac::-webkit-scrollbar-track {
  background: transparent;
}
#ac::-webkit-scrollbar-thumb {
  background: #2a2e36;
  border-radius: 4px;
  border: 2px solid var(--raised);
}
#ac::-webkit-scrollbar-thumb:hover {
  background: #383e49;
}
