/* Notification details: one sleek glass card. Who and when on top, the message once, actions last. */
dialog.notification-sheet {
  --ns-glass: rgba(250,248,255,.72); --ns-edge: rgba(255,255,255,.78); --ns-ink: #17163a; --ns-soft: #6b6890; --ns-accent: #7b4dff;
  width: min(420px, calc(100vw - 32px)); max-height: min(78vh, 640px); padding: 0; margin: auto; overflow: hidden;
  border: 0; border-radius: 28px; color: var(--ns-ink);
  background: var(--ns-glass);
  box-shadow: 0 2px 6px rgba(29,25,62,.08), 0 24px 60px rgba(29,25,62,.22), inset 0 0 0 1px var(--ns-edge);
  backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  font-family: inherit; font-size: 15px; line-height: 1.45; display: none;
}
dialog.notification-sheet[open] { display: flex; flex-direction: column; animation: sp-sheet-in var(--sp-dur-glide) var(--sp-ease-glide) backwards; }
dialog.notification-sheet::backdrop { background: rgba(20,18,44,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes ns-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.notification-sheet-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px 18px 16px 20px; }
.notification-sheet-head > .profile-social-avatar { width: 52px !important; height: 52px !important; border-radius: 16px; flex: none; }
.notification-sheet-mark { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(140deg,#9b6cff,#5b8cff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.notification-sheet-title { display: grid; gap: 2px; min-width: 0; }
.notification-sheet-title strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.notification-sheet-title small { font-size: 13px; color: var(--ns-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-sheet-title small:empty { display: none; }
.notification-sheet-close { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ns-soft); background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(23,22,58,.06); transition: background .15s; }
.notification-sheet-close:hover { background: rgba(255,255,255,.9); color: var(--ns-ink); }
.notification-sheet-body { display: grid; gap: 8px; padding: 2px 20px 20px; overflow: auto; }
.notification-sheet-body p { margin: 0; font-size: 15px; color: var(--ns-ink); }
.notification-sheet-body p + p { color: var(--ns-soft); font-size: 14px; }
.notification-sheet-body select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(23,22,58,.1); font: inherit; }
dialog.notification-sheet .notification-sheet-actions { display: flex !important; flex-wrap: wrap; gap: 10px; padding: 14px 20px 20px; border-top: 1px solid rgba(23,22,58,.06); }
dialog.notification-sheet .notification-sheet-actions button { flex: 1 1 0; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ns-ink); background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(23,22,58,.08); }
dialog.notification-sheet .notification-sheet-actions button:first-child { color: #fff; background: linear-gradient(140deg,#8a5cff,#5b6cff); box-shadow: 0 6px 16px rgba(110,80,255,.3); }
html[data-theme="dark"] dialog.notification-sheet { --ns-glass: rgba(26,25,46,.8); --ns-edge: rgba(220,208,255,.2); --ns-ink: #f5f3ff; --ns-soft: #aaa6cc; box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px var(--ns-edge); }
html[data-theme="dark"] .notification-sheet-close, html[data-theme="dark"] dialog.notification-sheet .notification-sheet-actions button:not(:first-child), html[data-theme="dark"] .notification-sheet-body select { background: rgba(255,255,255,.08); color: var(--ns-ink); }
html[data-theme="dark"] dialog.notification-sheet .notification-sheet-actions { border-top-color: rgba(255,255,255,.08); }
@media (prefers-reduced-transparency: reduce) { dialog.notification-sheet { --ns-glass: #f7f5fc; } html[data-theme="dark"] dialog.notification-sheet { --ns-glass: #242236; } }
@media (prefers-reduced-motion: reduce) { dialog.notification-sheet[open] { animation: none; } }

/* Hover stays dark in dark mode (the light hover is white). */
html[data-theme="dark"] .notification-sheet-close:hover { background: rgba(167,139,250,.22); color: #f5f8ff; }
