/* Notifications module: the top-bar bell, its dropdown and the /notifications rows.
   Design tokens only (design/tokens.css): no raw colour ever appears here. */

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

.notif-bell-button { position: relative; }

.notif-badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: var(--accent-contrast);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.notif-panel {
  position: absolute;
  top: calc(100% + var(--space-1));
  inset-inline-end: 0;
  z-index: var(--z-drawer);
  width: min(360px, calc(100vw - 2 * var(--space-3)));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: var(--space-2);
}

.notif-panel[hidden] { display: none; }

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0 var(--space-1) var(--space-1);
  border-bottom: 1px solid var(--border);
}

.notif-panel-empty { padding: var(--space-3) var(--space-1); margin: 0; }

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

.notif-item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  width: 100%;
  padding: var(--space-2) var(--space-1);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}

.notif-item:hover { background: var(--bg-sunken); }
.notif-item[data-read="true"] { color: var(--text-muted); }

.notif-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-item-title { font-weight: 600; }
.notif-item-body,
.notif-item-meta { font-size: var(--fs-sm); color: var(--text-muted); }
.notif-item-body { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notif-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.notif-page-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }

.notif-row[data-read="true"] { opacity: 0.75; }
.notif-row-title { margin: 0; font-size: var(--fs-md); }
