#notif-bell-root {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: opacity 0.15s;
}
.notif-bell-btn:hover { opacity: 0.7; }

.notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 420px;
  background: var(--workplace-window-background);
  border: var(--workplace-window-border);
  color: var(--workplace-window-text-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 9000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-panel[hidden] { display: none !important; }

.notif-titlebar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  height: 32px;
  background: var(--workplace-window-bar-background);
  border-bottom: var(--workplace-window-bar-border);
  color: var(--workplace-window-bar-text-color);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  flex-shrink: 0;
  user-select: none;
}

.notif-titlebar label {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 600;
}

.notif-mark-all {
  background: var(--workplace-window-bar-button-background);
  border: var(--workplace-window-bar-button-border);
  color: var(--workplace-window-bar-button-text-color);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin: 0;
}
.notif-mark-all:hover {
  background: var(--workplace-window-bar-button-hover-background);
  border: var(--workplace-window-bar-button-hover-border);
  color: var(--workplace-window-bar-button-hover-text-color);
}

.notif-close-btn {
  background: var(--workplace-window-bar-button-background);
  border: var(--workplace-window-bar-button-border);
  color: var(--workplace-window-bar-button-text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.notif-close-btn:hover {
  background: var(--workplace-window-bar-button-hover-background);
  border: var(--workplace-window-bar-button-hover-border);
  color: var(--workplace-window-bar-button-hover-text-color);
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: var(--workplace-window-border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--workplace-window-button-hover-background); }
.notif-item.unread { background: var(--accent-dim); }

.notif-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-body { flex: 1; min-width: 0; }

.notif-title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-msg {
  font-size: 0.76rem;
  opacity: 0.7;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.7rem;
  opacity: 0.45;
  margin-top: 3px;
}

.notif-empty {
  padding: 24px 14px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
  margin: 0;
}
