/* ============================================================
   Notifications dropdown (anchored to topbar bell icon)
   ============================================================ */

.notif-wrap { position: relative; display: inline-flex; }

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  z-index: 60;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 100px);
  overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  gap: 12px;
}
.notif-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.notif-sub   { font-size: 11px;   color: var(--text-tertiary); margin-top: 3px; }
.notif-list  { flex: 1; min-height: 0; overflow-y: auto; padding: 4px; }
.notif-list::-webkit-scrollbar { width: 8px; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 999px; }

.notif-item {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 100ms ease;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.notif-line { font-size: 12.5px; color: var(--text-primary); line-height: 1.4; }
.notif-time {
  font-size: 10.5px; color: var(--text-tertiary);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.notif-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 11px;
}
.notif-item.is-read .notif-line { color: var(--text-secondary); }
.notif-item.is-read .notif-dot  { display: none; }

.notif-foot {
  display: block;
  text-align: center;
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 100ms ease;
}
.notif-foot:hover { background: var(--bg-hover); }

@media (max-width: 600px) {
  .notif-panel { right: -56px; }
}
