.activity-feed-page {
  min-height: 100vh;
  background: #f7f7f8;
}

.activity-feed-page .app-header--home {
  background: #f7f7f8;
}

.activity-feed-shell {
  width: min(100%, 450px);
  min-height: calc(100vh - 54px);
  margin: 0 auto;
  background: #fff;
}

.activity-feed-note {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid #eeeef0;
  color: #8a878d;
  font-size: 12px;
  line-height: 1.5;
}

.activity-feed-list {
  display: grid;
}

.activity-card {
  padding: 15px 16px 17px;
  border-bottom: 1px solid #eeeef0;
  background: #fff;
}

.activity-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 11px;
}

.activity-card-actor {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.activity-card-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f0edf0;
  object-fit: cover;
  object-position: center top;
}

.activity-card-meta {
  min-width: 0;
}

.activity-card-name-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  line-height: 1.35;
}

.activity-card-name {
  min-width: 0;
  overflow: hidden;
  color: #29272b;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-card-time-separator {
  flex: 0 0 auto;
  margin-left: 2px;
  color: #99959b;
  font-size: 13px;
}

.activity-card-time {
  flex: 0 0 auto;
  color: #99959b;
  font-size: 13px;
  white-space: nowrap;
}

.activity-card-chat-count {
  display: flex;
  align-items: center;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: #6f7680;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.activity-card-chat-count-icon {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.activity-card-badge {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f2f4;
  color: #77737a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.activity-card-title {
  margin: 0;
  color: #3f3b40;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.activity-card-text {
  margin: 5px 0 0;
  color: #4e4a50;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.activity-card-text--clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.activity-card-text-more {
  margin: 0 0 0 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a878d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.activity-card--cast-post .activity-card-text {
  margin-top: 0;
  color: #302d32;
  font-size: 14px;
}

.activity-card-media-link {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 12px;
  margin-right: -16px;
  margin-left: -16px;
  border-radius: 0;
  background: #f0edf0;
  color: inherit;
  text-decoration: none;
}

.activity-card-experience-chat-count {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
}

.activity-card--media-first .activity-card-media-link {
  margin-top: 0;
}

.activity-card--media-first {
  padding-bottom: 10px;
}

.activity-card--media-first .activity-card-media-link + .activity-card-title {
  margin-top: 10px;
}

.activity-card-title + .activity-card-text {
  margin-top: -3px;
}

.activity-card--media-first .activity-card-media-link + .activity-card-text {
  margin-top: 10px;
}

.activity-card-media {
  display: block;
  width: 100%;
  max-height: 540px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.activity-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #bc557b;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.activity-card-title + .activity-card-action {
  margin-top: 0;
}

.activity-card--media-first .activity-card-action {
  margin-top: 0;
}

.activity-card-action::after {
  content: "›";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-2px);
}

.activity-card a:focus-visible,
.activity-card button:focus-visible,
.activity-feed-empty a:focus-visible,
.activity-feed-load-more:focus-visible {
  outline: 2px solid rgba(188, 85, 123, 0.4);
  outline-offset: 2px;
}

.activity-card--skeleton {
  min-height: 240px;
  background: linear-gradient(100deg, #f5f3f5 30%, #fbfafb 48%, #f5f3f5 66%);
  background-size: 260% 100%;
  animation: activity-feed-shimmer 1.35s ease-in-out infinite;
}

.activity-feed-empty,
.activity-feed-status {
  padding: 48px 28px;
  color: #7f7b82;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.activity-feed-empty p {
  margin: 0 0 15px;
}

.activity-feed-empty a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #2f2f33;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.activity-feed-status {
  margin: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}

.activity-feed-sentinel {
  height: 1px;
}

.activity-feed-load-more {
  display: block;
  min-height: 40px;
  margin: 14px auto 24px;
  padding: 0 20px;
  border: 1px solid #dedbe0;
  border-radius: 999px;
  background: #fff;
  color: #555158;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.activity-feed-load-more[hidden] {
  display: none;
}

@keyframes activity-feed-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-card--skeleton {
    animation: none;
  }
}
