/* ════════════════════════════════════════════════════════════════
   Brand contrast rule (overrides — keep at end)
   ONLY apply to selectors whose BACKGROUND is solid accent (#F25623)
   or solid white/light (#DEDEDE). Selectors with dark/transparent bg
   and only an accent BORDER must keep their original light/accent text
   colour — forcing black text on those makes them invisible.
   ════════════════════════════════════════════════════════════════ */
/* Accent solid-fill backgrounds → black text */
.auth-form button[type="submit"],
.auth-form button[type="submit"]:hover,
.bio-lock-btn,
.bio-lock-btn:hover,
.nav-logo:hover,
.nav-link.active,
.add-friend-drop button:hover,
.user-toggle .avatar.sm,
.server-rail-btn.active,
.server-icon.active,
.header-icon-btn.accent:hover,
.search-btn,
.add-friend-action-btn:hover,
.fr-accept,
.story-type-tabs .tab.active,
.toggle-btn.active,
.avatar.sm,
.mention-option:hover, .mention-option.selected,
.context-menu button:hover,
.unread-badge,
.me-btn,
.me-btn:hover,
.disc-mode-btn.is-on,
.disc-gps-toggle.is-on,
.disc-iframe-fallback-btn,
.ex-cta,
.ex-cta:hover,
.ex-chip.on,
.ch-av.a,
.ch-hero .av.a,
.ch-foll.on,
.com-cat,
.com-detail-cat,
.ev-date,
.ev-detail-date,
.ev-rsvp.on {
  color: var(--black);
}

/* Same rule for white/light-grey solid backgrounds */
.auth-tab.active,
.nav-link:hover {
  color: var(--black);
}

/* ── Multi-select mode for messages ─────────────────────── */
/* No layout shift on enter: msg-wrap keeps its width + padding. Only a
   background-tint marks selected state. The bar slots into the same flex
   column as .chat-input, replacing its space cleanly. */
.select-mode-active .chat-input,
.select-mode-active #reply-bar,
.select-mode-active #edit-bar { display: none !important; }
#messages.select-mode .msg-wrap { cursor: pointer; }
#messages.select-mode .msg-wrap.selected { background: rgba(255, 61, 0, 0.18); border-radius: 6px; }

#msg-select-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: var(--gray-900);
  border-top: 1px solid var(--gray-700);
  flex: 0 0 auto;
}
#msg-select-bar.open { display: flex; }
#msg-select-bar .msg-select-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  flex: 1;
  text-align: center;
}
#msg-select-bar button {
  background: none;
  border: none;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  color: var(--white);
}
#msg-select-bar .msg-select-delete { color: var(--accent); }
#msg-select-bar .msg-select-cancel { color: var(--gray-400); }
#msg-select-bar button:hover { background: var(--gray-800); }
