/* ============================================================
   Astra Origins — Inbox / Notifications (new design)
   Shared shell lives in cosmos.css. Lives in the right pane's
   scrollable area with an animated skeleton + infinite scroll.
   ============================================================ */

.nt-wrap { max-width: 720px; margin: 0 auto; }

/* Header */
.nt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nt-head-title h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.nt-head-sub { display: block; font-size: 9px; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 800; margin-top: 4px; }
.nt-readall { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.nt-readall:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }

/* List */
.nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nt-item { display: flex; align-items: stretch; gap: 4px; border-radius: 12px; border: 1px solid transparent; transition: background 0.15s ease; }
.nt-item:hover { background: var(--surface-2); }
.nt-item.is-unread { background: var(--accent-soft); border-color: var(--accent-line); }
.nt-item.is-unread:hover { background: var(--accent-soft); }

.nt-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; border-radius: 12px; }
.nt-main:not([role]) { cursor: default; }

/* Avatar + type badge */
.nt-av { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.nt-av img, .nt-av-txt {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; color: white; font-size: 14px; font-weight: 800;
  background: linear-gradient(135deg, oklch(0.55 0.16 250), oklch(0.34 0.12 265));
  box-shadow: inset -3px -4px 10px oklch(0 0 0 / 0.25);
}
.nt-badge {
  position: absolute; right: -3px; bottom: -3px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: white;
  border: 2px solid var(--surface);
}
.nt-item.is-unread .nt-badge { border-color: var(--surface); }
.nt-like      { background: oklch(0.62 0.2 20); }
.nt-comment   { background: oklch(0.6 0.16 250); }
.nt-share     { background: oklch(0.62 0.15 150); }
.nt-follow    { background: oklch(0.58 0.19 300); }
.nt-post      { background: oklch(0.65 0.16 55); }
.nt-message   { background: oklch(0.6 0.13 200); }
.nt-community { background: oklch(0.62 0.18 330); }
.nt-hub       { background: oklch(0.58 0.19 305); }
.nt-event     { background: oklch(0.6 0.18 30); }
.nt-newsroom  { background: oklch(0.58 0.15 230); }
.nt-blog      { background: oklch(0.55 0.13 160); }
.nt-astro     { background: oklch(0.5 0.16 275); }
.nt-default   { background: var(--ink-3); }

/* Body */
.nt-body { min-width: 0; flex: 1; }
.nt-text { font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: break-word; }
.nt-text strong { color: var(--ink); font-weight: 700; margin-right: 4px; }
.nt-time { font-size: 10px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.02em; }
.nt-unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; align-self: center; }

/* Delete */
.nt-del { width: 30px; margin: 8px 6px 8px 0; border: 0; background: none; color: var(--ink-3); border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity 0.12s ease; }
.nt-item:hover .nt-del { opacity: 1; }
.nt-del:hover { background: var(--surface); color: var(--accent); }
.nt-item.is-removing { opacity: 0; transform: translateX(12px); transition: opacity 0.2s ease, transform 0.2s ease; }

/* Empty state */
.nt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; }
.nt-empty-orb { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 16px; }
.nt-empty-title { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.nt-empty-sub { font-size: 13px; color: var(--ink-3); margin: 0; max-width: 300px; line-height: 1.5; }

/* Animated skeleton */
.nt-skeleton { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.nt-skeleton[hidden] { display: none; }
.nt-sk-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.nt-sk-av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.nt-sk-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.nt-sk-line { height: 10px; border-radius: 6px; }
.nt-sk-glow {
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: nt-shimmer 1.3s ease-in-out infinite;
}
@keyframes nt-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Sentinel + end */
.nt-sentinel { height: 1px; }
.nt-end { text-align: center; padding: 18px; font-size: 9px; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 800; }
.nt-end[hidden] { display: none; }

@media (max-width: 768px) {
  .nt-head-title h1 { font-size: 19px; }
  .nt-readall span { display: none; }
}
