#preferences {
  /* Step and mode visibility (see styles.css). */
  display: none;
  position: absolute;
  top: calc(var(--headerHeight) + 16px);
  left: 16px;
  bottom: 53px;
  width: 250px;
  background: var(--panel);
  color: var(--textFaint);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0px 4px 16px 2px #0001;
  transition: bottom 0.15s;
}
.preferenceMode #preferences {
  display: block;
}
.preferenceBox {
  width: 100%;
  min-height: 150px;
  border: 4px dashed var(--border);
  border-radius: 8px;
  margin-top: 8px;
  padding: 8px;
  transition: 0.3s;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px;
  padding-bottom: 54px;
}
.preferenceMode:has(.grabGuestBall) .preferenceBox {
  border-color: var(--gold);
}
.preferenceMode:has(.grabGuestBall) .preferenceBox:hover {
  transform: scale(1.03);
}
.preferenceBox .name {
  padding: 4px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.26rem;
}
.preferenceBox .name:hover {
  background: var(--bgInset);
  cursor: pointer;
}

.emptyInfo {
  font-size: 0.8rem;
  line-height: 1.12rem;
  color: var(--textHint);
}
.notEmptyInfo {
  font-size: 0.8rem;
  line-height: 1.12rem;
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  color: var(--textHint);
}
.preferenceChairHelp {
  font-size: 0.8rem;
  line-height: 1.12rem;
  color: var(--textHint);
}
.notAllowedChairs {
  color: var(--red);
}
.onlyAllowedChairs {
  color: var(--green);
}

.buildMode #highlightedGuestInfo {
  display: none !important;
}
.placementMode #highlightedGuestInfo {
  display: none !important;
}
.buildMode #highlightedGroupInfo {
  display: none !important;
}
.placementMode #highlightedGroupInfo {
  display: none !important;
}

.fulfilledPreferences p {
  cursor: default;
}
.guestStep .fulfilledPreferences {
  display: none !important;
}
.buildMode .fulfilledPreferences {
  display: none !important;
}
