.reaction-button {
  border: 1px solid #555;
  border-radius: 8px;
  background: #242429;
  color: #eee;
  padding: 2px 10px;
  min-height: 32px;
  font-size: 1rem;
}
#reaction-add { font-size: 1.4rem; line-height: 1; }
.reaction-button:hover:not(:disabled), .reaction-button:focus-visible { border-color: #949cf7; }
.reaction-button[aria-pressed="true"] { background: #353966; border-color: #949cf7; }
.reaction-button:disabled { opacity: .5; cursor: default; }
.reaction-picker {
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - 48px);
  padding: 16px;
  border: 1px solid #555;
  border-radius: 10px;
  background: #202024;
  color: #eee;
}
.reaction-picker::backdrop { background: rgba(0, 0, 0, .7); }
body:has(#reaction-picker[open]) { overflow: hidden; }
.reaction-emoji { width: 24px; height: 24px; vertical-align: middle; }
.reaction-choices .reaction-emoji { width: 28px; height: 28px; }
.reaction-choices {
  height: min(360px, 55dvh);
  overflow-y: auto;
  overflow-anchor: none;
}
.reaction-choice-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 44px;
}
.reaction-choices button {
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 4px;
  min-width: 0;
  overflow: hidden;
  font-size: 1.4rem;
}
.reaction-choices button:hover, .reaction-choices button:focus-visible { background: #42434c; }
