/* notifications — the page at #/notifications: a list of what the game tells you, with the answer
   to a friend request or a donation under it. Tokens and shared components only (docs/DESIGN.md). */
@layer pages {
  .notice-list { margin: 0; padding: 0; list-style: none; }
  .notice { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border-subtle); }
  .notice:last-child { border-bottom: 0; }
  .notice.unread { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); box-shadow: inset 3px 0 0 var(--brand); }
  .notice-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-subtle); }
  .notice.unread .notice-ico { color: var(--brand-text); border-color: var(--brand-border); }
  .notice-main { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; align-items: flex-start; }
  .notice-head { display: flex; align-items: baseline; gap: var(--sp-3); width: 100%; }
  .notice-head time { margin-left: auto; flex: none; }
  .notice-body { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
  .notice-actor { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-semibold); }
  .notice-tools { display: flex; flex-direction: column; gap: var(--sp-1); }
  .notice .answer-box { align-self: stretch; }
  @media (max-width: 560px) {
    .notice { grid-template-columns: 32px minmax(0, 1fr); padding: var(--sp-4); }
    .notice-ico { width: 32px; height: 32px; }
    .notice-tools { grid-column: 2; flex-direction: row; }
  }
}
