/* Notifications / Activity feed — local styles. */

/* Drop the .aq-nf ancestor — page renders its own scroll root. */
.nf-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* ── Header ──────────────────────────────────────────────────── */
.nf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--aq-line);
}
.nf-eyebrow {
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
  margin-bottom: 4px;
}
.nf-header h1 {
  margin: 0 0 6px;
  font-family: var(--aq-ff-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--aq-text);
}
.nf-header p { margin: 0; font-size: 12.5px; color: var(--aq-text-faint); }

.nf-header-actions { display: flex; gap: 8px; }
.nf-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  background: var(--aq-text);
  border: 1px solid var(--aq-text);
  border-radius: 7px;
  color: #08090b;
  font: inherit; font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: filter var(--aq-d-1) var(--aq-ease);
}
.nf-btn:hover { filter: brightness(0.92); }
.nf-btn.ghost {
  background: var(--aq-surface-2);
  border-color: var(--aq-line);
  color: var(--aq-text);
  font-weight: 400;
}
.nf-btn.ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--aq-line-strong); }
.nf-btn.sm { padding: 5px 10px; font-size: 11.5px; }

.nf-link {
  background: transparent; border: 0; padding: 0;
  color: var(--aq-accent);
  font: inherit; font-size: 11.5px;
  cursor: pointer;
}
.nf-link:hover { text-decoration: underline; }

/* ── Toolbar ─────────────────────────────────────────────────── */
.nf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--aq-line);
}
.nf-tabs {
  display: flex;
  gap: 2px;
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 8px;
  padding: 3px;
}
.nf-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--aq-text-faint);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.nf-tab:hover { color: var(--aq-text-dim); }
.nf-tab.is-active {
  background: var(--aq-surface);
  color: var(--aq-text);
  box-shadow: 0 0 0 1px var(--aq-line);
}
.nf-tab-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aq-accent);
  box-shadow: 0 0 6px var(--aq-accent);
}
.nf-tab-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--aq-line);
  color: var(--aq-text-faint);
  font-family: var(--aq-ff-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.nf-tab.is-active .nf-tab-count { background: var(--aq-line-strong); color: var(--aq-text-dim); }
.nf-tab-count.is-warn { background: color-mix(in srgb, var(--aq-warn) 22%, transparent); color: var(--aq-warn); }
.nf-tab-count.is-danger { background: color-mix(in srgb, var(--aq-danger) 22%, transparent); color: var(--aq-danger); }

.nf-tools { display: flex; gap: 8px; align-items: center; }
.nf-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 7px;
  width: 240px;
  color: var(--aq-text-faint);
}
.nf-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--aq-text);
  font: inherit;
  font-size: 12px;
}
.nf-search input::placeholder { color: var(--aq-text-faint); }

/* ── Layout ──────────────────────────────────────────────────── */
.nf-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

/* ── Feed groups ─────────────────────────────────────────────── */
.nf-feed { display: flex; flex-direction: column; gap: 16px; }

.nf-group {
  background: var(--aq-surface);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  overflow: hidden;
}
.nf-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--aq-line);
  background: var(--aq-surface-2);
}
.nf-group-head h2 {
  margin: 0;
  font-family: var(--aq-ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aq-text-dim);
}
.nf-group-head span { font-size: 11px; color: var(--aq-text-faint); }

.nf-list { list-style: none; margin: 0; padding: 0; }

/* ── Item ────────────────────────────────────────────────────── */
.nf-item {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  gap: 12px;
  padding: 14px 16px 14px 14px;
  border-bottom: 1px solid var(--aq-line);
  transition: background var(--aq-d-1) var(--aq-ease);
  position: relative;
}
.nf-item:last-child { border-bottom: 0; }
.nf-item:hover { background: var(--aq-surface-2); }
.nf-item.is-priority {
  border-left: 2px solid var(--aq-danger);
  padding-left: 12px;
}
.nf-item.is-priority.is-unread { border-left-color: var(--aq-danger); }

.nf-item-marker {
  display: flex;
  justify-content: center;
  padding-top: 9px;
}
.nf-unread-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aq-accent);
  box-shadow: 0 0 6px var(--aq-accent);
}
.nf-item.is-priority .nf-unread-dot { background: var(--aq-danger); box-shadow: 0 0 6px var(--aq-danger); }

.nf-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: white;
  font-family: var(--aq-ff-display);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.nf-avatar-system {
  background: var(--aq-surface-2);
  border-color: var(--aq-line);
  color: var(--aq-text-faint);
}

.nf-item-body { min-width: 0; }

.nf-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}
.nf-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nf-item-meta b {
  font-size: 12.5px;
  color: var(--aq-text);
  font-weight: 500;
}
.nf-divider {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--aq-text-faint);
  opacity: 0.5;
}
.nf-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--aq-ff-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nf-priority {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--aq-danger) 16%, transparent);
  color: var(--aq-danger);
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nf-item-time {
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  color: var(--aq-text-faint);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nf-item-title {
  font-size: 13.5px;
  color: var(--aq-text);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 3px;
  text-wrap: pretty;
}
.nf-item.is-unread .nf-item-title { color: var(--aq-text); }
.nf-item:not(.is-unread) .nf-item-title { color: var(--aq-text-dim); font-weight: 400; }

.nf-item-text {
  font-size: 12.5px;
  color: var(--aq-text-faint);
  line-height: 1.55;
  text-wrap: pretty;
}

.nf-item-target {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 5px 10px 5px 6px;
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--aq-text-dim);
  cursor: pointer;
  max-width: 100%;
}
.nf-item-target:hover { border-color: var(--aq-line-strong); color: var(--aq-text); }
.nf-target-kind {
  font-family: var(--aq-ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
  background: var(--aq-surface);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--aq-line);
}

.nf-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.nf-action {
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 6px;
  padding: 5px 12px;
  color: var(--aq-text-dim);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.nf-action:hover { border-color: var(--aq-line-strong); color: var(--aq-text); }
.nf-action.primary {
  background: var(--aq-text);
  border-color: var(--aq-text);
  color: #08090b;
  font-weight: 500;
}
.nf-action.primary:hover { background: rgba(255,255,255,0.92); }

/* ── Empty state ─────────────────────────────────────────────── */
.nf-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--aq-surface);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  color: var(--aq-text-faint);
}
.nf-empty svg { color: var(--aq-success); margin-bottom: 10px; }
.nf-empty h3 {
  margin: 0 0 4px;
  font-family: var(--aq-ff-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--aq-text);
}
.nf-empty p { margin: 0; font-size: 12.5px; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.nf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
}
.nf-side-card {
  background: var(--aq-surface);
  border: 1px solid var(--aq-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.nf-side-card h3 {
  margin: 0 0 10px;
  font-family: var(--aq-ff-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aq-text-faint);
}
.nf-snap { display: flex; flex-direction: column; gap: 8px; }
.nf-snap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--aq-text-dim);
}
.nf-snap-row b {
  font-family: var(--aq-ff-display);
  font-size: 18px;
  color: var(--aq-text);
  font-weight: 500;
}
.nf-snap-row b.is-warn { color: var(--aq-warn); }
.nf-snap-row b.is-danger { color: var(--aq-danger); }

.nf-by-cat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.nf-by-cat li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.nf-by-cat-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  background: var(--aq-surface-2);
  border: 1px solid var(--aq-line);
  border-radius: 5px;
}
.nf-by-cat-label { color: var(--aq-text-dim); }
.nf-by-cat-count {
  font-family: var(--aq-ff-mono);
  font-size: 11px;
  color: var(--aq-text);
  letter-spacing: 0.02em;
}

.nf-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nf-people li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--aq-text-dim);
}
.nf-people b {
  font-family: var(--aq-ff-mono);
  font-size: 11px;
  color: var(--aq-text);
}

.nf-side-prefs p {
  margin: 0 0 8px;
  font-size: 11.5px;
  color: var(--aq-text-faint);
  line-height: 1.55;
}
.nf-side-prefs b { color: var(--aq-text-dim); font-weight: 500; }
