.notif-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: none;
  place-items: center;
  border: 2px solid var(--rst-ui-bg);
  border-radius: var(--rst-ui-radius-pill);
  background: var(--rst-state-warning);
  color: var(--rst-ui-text);
  font-size: 10px;
  font-weight: var(--rst-fw-display);
  line-height: 1;
  box-shadow: none;
}

.notif-badge.show {
  display: grid;
}

.notif-badge.danger-count.show {
  background: var(--rst-state-danger);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: var(--rst-z-panel);
  width: min(360px,calc(100vw - 32px));
  max-height: min(520px,calc(100vh - 96px));
  overflow: auto;
  display: none;
  padding: 12px;
  border: 1px solid var(--rst-ui-divider);
  border-radius: var(--rst-ui-radius-xl);
  background: var(--rst-ui-workspace-header);
  box-shadow: var(--rst-ui-shadow-floating);
  color: var(--rst-ui-text);
}

.notif-panel.open {
  display: block;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.notif-head strong {
  color: var(--rst-ui-text);
  font-size: 13px;
  font-weight: var(--rst-fw-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.notif-head button {
  appearance: none;
  border-radius: var(--rst-ui-radius-pill);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: var(--rst-fw-bold);
  cursor: pointer;
  border: 1px solid var(--rst-ui-divider);
  background: var(--rst-ui-divider);
  color: var(--rst-state-info-text);
}

.notif-item {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0,1fr);
  gap: 10px;
  margin: 6px 0;
  padding: 11px 10px;
  border: 1px solid var(--rst-topbar-line);
  border-radius: var(--rst-ui-radius-lg);
  background: var(--rst-ui-section-row);
  color: var(--rst-ui-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--rst-motion-fast) var(--rst-motion-smooth),border-color var(--rst-motion-fast) var(--rst-motion-smooth),transform var(--rst-motion-fast) var(--rst-motion-smooth);
}

.notif-item:hover {
  transform: translateY(-1px);
  background: var(--rst-ui-section-row-hover);
  border-color: var(--rst-ui-divider);
}

.notif-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: var(--rst-ui-radius-pill);
  background: var(--rst-state-warning);
  box-shadow: none;
}

.notif-item.is-danger .notif-dot {
  background: var(--rst-state-danger);
  box-shadow: none;
}

.notif-item.is-warning .notif-dot {
  background: var(--rst-state-warning);
}

.notif-item strong {
  display: block;
  color: var(--rst-ui-text);
  font-size: 13px;
  font-weight: var(--rst-fw-display);
  line-height: 1.2;
}

.notif-item small {
  display: block;
  margin-top: 4px;
  color: var(--rst-ui-muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: var(--rst-fw-bold);
}

.notif-empty {
  margin: 6px 4px 4px;
  color: var(--rst-ui-muted);
  font-size: 13px;
  font-weight: var(--rst-fw-bold);
}
