.sp-feed-layout {
  max-width: 720px;
  margin: 0 auto;
}

.sp-feed-guest,
.sp-feed-empty {
  background: #fff;
  border: 1px solid var(--sp-border, #e8edf2);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sp-feed-guest p,
.sp-feed-empty p {
  margin: 0 0 16px;
  color: var(--sp-muted, #667085);
}

.sp-feed-guest .sp-btn {
  margin: 0 6px 8px;
}

.sp-feed-compose {
  background: #fff;
  border: 1px solid var(--sp-border, #e8edf2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sp-feed-compose__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sp-feed-compose__head strong {
  font-size: 15px;
  color: var(--sp-text, #1f2937);
}

.sp-feed-compose__avatar,
.sp-feed-post__avatar,
.sp-feed-comment__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef2ff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-feed-compose__avatar img,
.sp-feed-post__avatar img,
.sp-feed-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-feed-compose__avatar-fallback,
.sp-feed-post__avatar-fallback,
.sp-feed-comment__avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
}

.sp-feed-compose__form textarea,
.sp-feed-post__comment-form textarea {
  width: 100%;
  border: 1px solid var(--sp-border, #e8edf2);
  border-radius: 12px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 96px;
  font: inherit;
}

.sp-feed-compose__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.sp-feed-compose__hint {
  font-size: 13px;
  color: var(--sp-muted, #667085);
}

.sp-feed-list {
  display: grid;
  gap: 18px;
}

.sp-feed-post {
  background: #fff;
  border: 1px solid var(--sp-border, #e8edf2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.sp-feed-post__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.sp-feed-post__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sp-feed-post__name {
  font-size: 15px;
  color: var(--sp-text, #1f2937);
}

.sp-feed-post__role {
  font-size: 12px;
  color: #4f46e5;
  font-weight: 600;
}

.sp-feed-post__time {
  font-size: 12px;
  color: var(--sp-muted, #667085);
}

.sp-feed-post__delete {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 4px;
  cursor: pointer;
}

.sp-feed-post__delete:hover {
  color: #ef4444;
}

.sp-feed-post__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--sp-text, #1f2937);
  white-space: pre-wrap;
  word-break: break-word;
}

.sp-feed-post__stats {
  display: flex;
  gap: 16px;
  margin: 14px 0 10px;
  font-size: 13px;
  color: var(--sp-muted, #667085);
}

.sp-feed-post__actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--sp-border, #e8edf2);
}

.sp-feed-post__action {
  flex: 1;
  border: 0;
  background: #f8fafc;
  color: var(--sp-text, #1f2937);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sp-feed-post__action:hover,
.sp-feed-post__action.is-active {
  background: #eef2ff;
  color: #4f46e5;
}

.sp-feed-post__comments {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sp-feed-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sp-feed-comment__avatar {
  width: 36px;
  height: 36px;
}

.sp-feed-comment__bubble {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
}

.sp-feed-comment__bubble strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.sp-feed-comment__bubble span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--sp-text, #1f2937);
}

.sp-feed-comment__bubble em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  color: var(--sp-muted, #667085);
}

.sp-feed-post__comment-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.sp-feed-pagination {
  margin-top: 24px;
}

@media (max-width: 575px) {
  .sp-feed-compose,
  .sp-feed-post {
    padding: 16px;
  }

  .sp-feed-compose__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
