/* ==========================================================================
   Reaction-emoji picker (mass-reactions settings) — a grid of toggle tiles
   standing in for the old free-text "type your emoji list" input. The
   submitted value is still a plain comma-separated string in a hidden input
   (see the reaction_emoji_picker macro and its click handler in app.js).
   ========================================================================== */
/* Fixed 6-column grid — with exactly 18 choices this lays out as 3 full, even rows
   every time, instead of flex-wrap's "however many fit the container width" (which
   read as messy: 13 tiles on row one, 5 stranded on row two). Tiles stretch to fill
   their column so the whole grid reads as one deliberate block, not a loose cluster. */
.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
}
.emoji-tile {
  width: 100%;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast) var(--ease), border-color var(--transition-fast) var(--ease), transform var(--transition-fast) var(--ease);
}
.emoji-tile:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.emoji-tile.selected {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
@media (max-width: 420px) {
  .emoji-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Labeled sub-groups inside the Массовые реакции/просмотры settings tab (Лимиты /
   Расписание) — a light divider + small uppercase heading instead of one long
   undifferentiated stack of fields. */
.field-section + .field-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.field-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 0.85rem;
}
.field-section-title .icon { width: 0.85rem; height: 0.85rem; }

