.activity-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.activity-bell {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  position: relative;
}
.activity-bell:hover {
  background: var(--blue-soft);
  border-color: rgba(0,94,184,0.25);
  color: var(--blue);
}
.activity-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}
.activity-badge.show { display: inline-flex; }
.activity-panel {
  position: absolute;
  right: 0;
  top: 42px;
  width: min(360px, calc(100vw - 32px));
  max-height: 420px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 500;
  display: none;
}
.activity-panel.open { display: block; }
.activity-panel-header {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.activity-list { padding: 6px 0; }
.activity-item {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }
.activity-item.milestone {
  border-left: 3px solid var(--green);
  background: rgba(52,199,89,0.05);
}
.activity-item.milestone .activity-summary { font-weight: 700; }
.activity-content {
  min-width: 0;
  flex: 1;
}
.activity-summary {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}
.activity-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-muted);
}
.activity-avatar,
.activity-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
}
.activity-avatar {
  display: block;
  object-fit: cover;
}
.activity-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}
.activity-empty {
  padding: 22px 15px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}
