/* Notes teammates leave each other. Unread ones carry the accent. */
.pings { padding: 0.25rem clamp(1.1rem, 3vw, 1.75rem); }
.list .ping { flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start; }
.ping__photo :is(.figure, .portrait) { display: block; width: 2.4rem; height: 2.4rem; }
.ping__body { display: grid; gap: 0.2rem; min-width: 0; color: var(--ink); text-decoration: none; }
.ping__body:hover strong { text-decoration: underline; }
.ping__body strong { font-weight: 400; }
.ping__note { overflow-wrap: anywhere; }
.ping--unread .ping__body strong { font-weight: 700; }
.ping__photo { position: relative; flex: none; }
.ping--unread .ping__photo::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Mentions stay pinned up top, on amber like notes, until they're dismissed. */
.pings-mentions { border-color: var(--amber); background: var(--amber-pale); }
.pings-mentions h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.pings-mentions .pings { padding: 0; }
.ping__dismiss-form { flex: none; margin-left: auto; }

/* Typing @ in a note or a followup: the team, by photo and name, under the
   cursor (above it on phones). */
.mentionable { position: relative; }
.mention-menu {
  position: absolute;
  z-index: 20;
  width: min(18rem, 100%);
  max-height: 15rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-pop);
}
.mention-menu[hidden] { display: none; }
.mention-menu__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}
.mention-menu__option[hidden] { display: none; }
.mention-menu__option[aria-selected="true"], .mention-menu__option:hover { background: var(--accent-pale); }
.mention-menu__option :is(.figure, .portrait) { display: block; flex: none; width: 2rem; height: 2rem; }
.mention { font-weight: 700; color: var(--accent-deep); }
