.portal-activity {
  display: flex;
  flex-direction: column;
}

.portal-activity__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.portal-activity__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-1);
}

.portal-activity__more {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-blue);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}

.portal-activity__more:hover {
  background: var(--color-bg-hover);
}

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

.portal-activity__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--motion-fast);
}

.portal-activity__item:last-child {
  border-bottom: none;
}

.portal-activity__item:hover {
  background: var(--color-bg-hover);
}

.portal-activity__rail {
  width: 0.1875rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.portal-activity__body {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-activity__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.portal-activity__action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-1);
}

.portal-activity__time {
  font-size: 0.6875rem;
  color: var(--color-text-5);
}

.portal-activity__subject {
  font-size: 0.75rem;
  color: var(--color-text-3);
  margin-top: 0.0625rem;
}

.portal-activity__detail-row {
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.portal-activity__detail {
  font-size: 0.75rem;
  color: var(--color-text-4);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.portal-activity__item--skeleton {
  cursor: default;
}

.portal-activity__item--skeleton .portal-activity__rail {
  background: var(--color-border-light);
}

.portal-activity__skel {
  height: 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    var(--color-bg-muted) 0%,
    var(--color-bg-hover) 50%,
    var(--color-bg-muted) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  margin-bottom: 0.375rem;
}

.portal-activity__skel--md {
  width: 70%;
}

.portal-activity__skel--sm {
  width: 50%;
  height: 0.625rem;
}
