/* Notification Center bell — shared by both shells (site.css and
   site-nav.css each define --ink/--muted/--line/--red/--shadow with the
   same names, different values, so this file reads the tokens rather than
   hardcoding colors and looks right in either). */

.notif-bell-toggle { position: relative; }
.notif-bell-toggle .material-symbols-outlined { font-size: 22px; }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.notif-menu { width: 340px; max-width: calc(100vw - 32px); padding: 0; }
.notif-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}
.notif-mark-all { background: none; border: 0; color: var(--red); font: inherit; font-weight: 600; font-size: 12px; cursor: pointer; padding: 0; }
.notif-mark-all:hover { text-decoration: underline; }

.notif-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; }
.notif-empty { padding: 24px 14px; text-align: center; color: var(--muted); font-size: 13px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #f7f8fb; }
.notif-item-unread { background: #fbfaff; }

.notif-item-icon { font-size: 18px; margin-top: 1px; flex: 0 0 auto; color: var(--muted); }
.notif-item-icon-success { color: #23734d; }
.notif-item-icon-warning { color: #a06a00; }
.notif-item-icon-error,
.notif-item-icon-action_required { color: var(--red); }

.notif-item-body { min-width: 0; flex: 1; }
.notif-item-title { font-weight: 700; font-size: 13px; color: var(--ink); margin: 0; }
.notif-item-message { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.notif-item-action { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--red); text-decoration: none; }
.notif-item-action:hover { text-decoration: underline; }

.notif-item-dismiss {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.notif-item-dismiss:hover { background: var(--line); color: var(--ink); }

.notif-view-all {
  display: block;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.notif-view-all:hover { background: #f7f8fb; }

@media (max-width: 850px) {
  /* Small screens: the whole nav (including this dropdown) already collapses
     into a stacked panel — see site-nav.css's own 850px query — so this
     becomes a full-width sheet within that panel instead of a floating card. */
  .notif-menu { width: 100%; max-width: none; }
  .notif-list { max-height: 50vh; }
}
