/* Shares the existing bottom-right toast region with ordinary application hints. */
.timeline-item[data-note-id] { scroll-margin-top: 110px; }
.timeline-item.is-linked-note .timeline-content {
  outline: 2px solid #fb923c;
  outline-offset: 4px;
  animation: linked-note-highlight 2.6s ease-out both;
}
@keyframes linked-note-highlight {
  from { box-shadow: 0 0 0 8px rgba(251, 146, 60, .20); }
  to { box-shadow: 0 0 0 8px rgba(251, 146, 60, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-item.is-linked-note .timeline-content { animation: none; }
}
#toastRegion:has(.live-note-toast) {
  max-height: calc(100vh - 32px - var(--safe-bottom, 0px));
  max-height: calc(100dvh - 32px - var(--safe-bottom, 0px));
  grid-auto-rows: max-content;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  pointer-events: auto;
}
.live-note-toast {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(251, 146, 60, .38);
  border-left: 3px solid #fb923c;
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(41, 42, 51, .98), rgba(15, 27, 46, .98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
  pointer-events: auto;
  animation: live-note-slide-up .35s cubic-bezier(.2, .8, .2, 1) both;
}
.live-note-toast__link {
  display: grid;
  gap: 5px;
  padding: 15px 44px 15px 15px;
  min-width: 0;
  color: #f4f7fb;
  text-decoration: none;
}
.live-note-toast__link:hover { background: rgba(255, 255, 255, .035); text-decoration: none; }
.live-note-toast__link:focus-visible { outline: 2px solid #93c5fd; outline-offset: -3px; border-radius: 14px; }
.live-note-toast__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin-bottom: 2px; }
.live-note-toast__badge { border-radius: 6px; padding: 3px 7px; color: #fdba74; background: rgba(251, 146, 60, .14); font-size: 11px; font-weight: 800; line-height: 1.35; }
.live-note-toast__number { color: #bcc9d9; font-size: 11px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live-note-toast__author { font-size: 13px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.live-note-toast__subject { color: #e2e9f3; font-size: 13px; font-weight: 650; line-height: 1.45; }
.live-note-toast__preview { color: #b7c2d2; font-size: 12px; line-height: 1.45; }
.live-note-toast__subject, .live-note-toast__preview { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.live-note-toast__action { color: #93c5fd; font-size: 11px; font-weight: 750; line-height: 1.5; margin-top: 3px; }
.live-note-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #b7c2d2;
  background: transparent;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.live-note-toast__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.live-note-toast__close:focus-visible { outline: 2px solid #93c5fd; outline-offset: 1px; }
@keyframes live-note-slide-up { from { opacity: 0; transform: translateY(calc(100% + 24px)); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .live-note-toast { animation: none; } }
@media (max-height: 640px) {
  .live-note-toast__preview { -webkit-line-clamp: 1; }
  .live-note-toast__link { padding-top: 11px; padding-bottom: 11px; gap: 3px; }
}
