/* ======================================
   NOTIFICATIONS / BELL
   ====================================== */
.bell-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.bell-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.bell-btn.urgent { animation: bell-pulse 1s infinite; }

@keyframes bell-pulse {
  0%, 100% { border-color: var(--text-danger); color: var(--text-danger); }
  50%       { border-color: var(--border-dim);  color: var(--text-muted);  }
}

.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  background: var(--text-danger);
  color: var(--bg-base);   /* white on the lifted danger red was 3.3:1 */
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-family: var(--font-ui);
}

/* ======================================
   TOAST NOTIFICATIONS
   ====================================== */
#toast-container {
  position: fixed;
  top: 56px;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--accent-ember);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  min-width: 220px;
  max-width: 300px;
  pointer-events: auto;
  animation: toast-in 0.3s ease forwards;
}
.toast.urgent { border-left-color: var(--text-danger); }
.toast.fadeout { animation: toast-out 0.4s ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* THE X ON AN AWAITING-YOU CARD (maggie, 2026-09-16). Put down a card you are
   not going to answer and it stops being on the list.

   It sits in the card's own top-right corner rather than in the row of buttons
   along the bottom, because it is not one of the answers - Join, Pay, Consent
   and Refuse all DO something to the world, and this only clears your screen.
   The padding-right on the card keeps a long first line from running under it.

   44px on a coarse pointer like everything else (components/touch.css), but
   the glyph stays small: it is the least important control on the card and
   should not read as the loudest. */
.tidings-card {
  position: relative;
  padding-right: 2.2rem;
}
.tidings-x {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.tidings-x:hover { color: var(--text-primary); background: var(--bg-surface); }
@media (pointer: coarse) {
  .tidings-x { width: 44px; height: 44px; top: 0; right: 0; }
  .tidings-card { padding-right: 2.8rem; }
}

/* -- A HISTORY ROW THAT GOES SOMEWHERE (the QoL pass, 2026-09-18) ------- */
/* The rows that have a destination are real buttons so they are reachable by
   keyboard; this keeps them looking exactly like the rows that are not. */
.tidings-row { width: 100%; text-align: left; border: 1px solid var(--border-dim); font: inherit; color: inherit; cursor: pointer; }
.tidings-row:hover, .tidings-row:focus-visible { border-color: var(--accent-gold); }
