.notif-live { display: contents; }
.notif-bell { position: relative; }
.notif-bell__count {
  position: absolute; top: var(--space-1); right: var(--space-1);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: var(--text-on-accent);
  font-size: 10px; font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface-page);
  pointer-events: none;
}
.notif-menu {
  position: absolute; top: calc(100% + var(--space-2)); right: 0;
  width: 380px; max-width: calc(100vw - var(--space-8));
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  display: flex; flex-direction: column;
  text-align: left;
}
.notif-menu.dropdown__menu {
  top: calc(100% + var(--space-2));
  margin-top: 0;
  padding: 0;
  min-width: 0;
  background-color: var(--surface-base);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xl);
}
.notif-menu__head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-1); }
.notif-menu__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-primary); }
.notif-menu__head .button_to { margin-left: auto; }
.notif-menu__enable { padding: 0 var(--space-4); border-block: 1px solid var(--border-subtle); margin-top: var(--space-2); }
.notif-menu__list { max-height: 430px; overflow-y: auto; padding: var(--space-1) var(--space-2) var(--space-2); scrollbar-width: thin; }
.notif-menu__off { padding-block: var(--space-6) var(--space-5); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--space-2); }
.notif-menu__off .btn { margin-top: var(--space-2); }
.notif-menu__foot { border-top: 1px solid var(--border-subtle); padding: var(--space-2); display: flex; }
.notif-menu__foot .btn { flex: 1; justify-content: center; }
.notif-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  text-decoration: none; color: inherit;
  transition: background var(--duration-fast) var(--ease-out);
}
.notif-row:hover { background: var(--surface-hover); }
.notif-row--unread { background: var(--accent-subtle); }
.notif-row--unread:hover { background: var(--accent-muted); }
.notif-row + .notif-row { margin-top: var(--space-0-5); }
.notif-row .avatar { width: 32px; height: 32px; }
.notif-row__text { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-secondary); overflow-wrap: anywhere; }
.notif-row__text strong { color: var(--text-primary); font-weight: var(--weight-semibold); }
.notif-row__source {
  margin-top: 2px;
  display: flex; align-items: center; gap: var(--space-1-5);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-tertiary);
  white-space: nowrap; overflow: hidden;
}
.notif-row__source .material-symbols-rounded { font-size: 13px; }
.notif-row__state { display: flex; align-items: center; padding-top: 7px; }

.notif-page { display: flex; flex-direction: column; min-width: 0; }
.notif-page__bar { display: flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-3); }
.notif-page__bar .btn { margin-left: auto; }
.notif-day { padding: var(--space-4) var(--space-2) var(--space-1); }
.notif-day:first-of-type { padding-top: 0; }
.notif-row--page { grid-template-columns: 36px minmax(0, 1fr) auto; padding: var(--space-3) var(--space-2); }
.notif-row--page .avatar { width: 36px; height: 36px; }

.notif-stat { display: flex; flex-direction: column; gap: var(--space-1); }
.notif-stat__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.notif-kinds { display: flex; flex-direction: column; }
.notif-kind { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; font-size: var(--text-sm); color: var(--text-secondary); }
.notif-kind .material-symbols-rounded { font-size: 18px; color: var(--text-tertiary); }
.notif-kind__count { margin-left: auto; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
