.vn-feed-panels {
  margin-top: 20px;
}

.vn-feed-panels__mobile-rail,
.vn-feed-panels__dots {
  display: none;
}

.vn-feed-panels__viewport {
  min-width: 0;
}

.vn-feed-panels__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.vn-feed-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.vn-feed-panel--news {
  background: #d9e6f2;
  border-color: #b9cddd;
  color: #1f2937;
}

.vn-feed-panels__tab--society-hidden {
  opacity: 0.82;
  background: #e8e8e8;
  border-color: #cecece;
}

.vn-feed-panel--society {
  background: #f5e6d3;
  border-color: #dcc8ae;
  color: #1f2937;
}

.vn-feed-panel__head {
  padding: 16px 16px 10px;
  cursor: pointer;
  user-select: none;
}

.vn-feed-panel__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.15;
}

.vn-feed-panel__hint {
  margin: 6px 0 0;
  font-size: 13px;
}

.vn-feed-panel__society-hashtags {
  margin-top: 6px;
}

.vn-feed-panel__hint-label {
  display: block;
  margin-bottom: 6px;
}

.vn-society-hashtag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vn-society-hashtag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.3;
}

.vn-society-hashtag-pill:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.vn-society-hashtag-edit-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.vn-society-hashtag-edit-btn:hover {
  color: #1d4ed8;
}

.vn-society-hashtag-editor {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.vn-society-hashtag-editor-grid {
  display: grid;
  gap: 6px;
}

.vn-society-hashtag-editor-note {
  margin: 8px 0 0;
}

.vn-society-hashtag-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vn-society-hashtag-editor-status {
  margin: 8px 0 0;
  min-height: 1.2em;
}

.vn-feed-panel__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 12px 12px;
}

.vn-feed-panel__owner-bar {
  margin: 0 4px 10px;
}

.vn-feed-panel__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 2px 2px 4px;
}

.vn-feed-panel__empty {
  padding: 18px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.vn-feed-panel__list .profile-kartoteka-post-card {
  margin-bottom: 0 !important;
}

/* Общество: обложка — аватар автора — заголовок и дата */
.vn-feed-panel--society .profile-feed-grid--with-author {
  grid-template-columns: 128px 38px minmax(0, 1fr);
  gap: 10px 8px;
  align-items: start;
}

.vn-feed-panel--society .profile-feed-author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 2px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #475569;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.vn-feed-panel--society .profile-feed-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vn-feed-panel--society .profile-feed-author-avatar__letter {
  display: block;
  line-height: 1;
}

.vn-feed-panel--society .profile-feed-grid--with-author .profile-feed-body {
  padding: 8px 8px 8px 4px;
}

@media (max-width: 720px) {
  .vn-feed-panel--society .profile-feed-grid--with-author {
    grid-template-columns: 88px 34px minmax(0, 1fr) !important;
    gap: 10px 6px !important;
  }

  .vn-feed-panel--society .profile-feed-author-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .vn-feed-panel--society .profile-feed-grid--with-author .profile-feed-body {
    padding: 6px 8px 8px 2px !important;
  }
}

@media (max-width: 991px) {
  .vn-feed-panels__mobile-rail {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
  }

  .vn-feed-panels__tab {
    flex: 1 1 0;
    border: 2px solid #cecece;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #e8e8e8;
    color: #1f2937;
    font-weight: 900;
    font-size: 15px;
    padding: 10px 12px;
    cursor: pointer;
  }

  .vn-feed-panels__tab--news.is-active {
    background: #d9e6f2;
    border-color: #b9cddd;
  }

  .vn-feed-panels__tab--society.is-active {
    background: #f5e6d3;
    border-color: #dcc8ae;
  }

  .vn-feed-panels__viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    touch-action: pan-y;
  }

  /* Каждая панель = ширина экрана; свайп меняет блок целиком */
  .vn-feed-panels__track {
    display: flex;
    flex-wrap: nowrap;
    width: 200%;
    gap: 0;
    transition: transform 0.28s ease;
    will-change: transform;
  }

  .vn-feed-panels.is-society .vn-feed-panels__track {
    transform: translateX(-50%);
  }

  .vn-feed-panel {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 460px;
  }

  .vn-feed-panel__body,
  .vn-feed-panel__list,
  .vn-feed-panel__list .profile-kartoteka-post-card {
    max-width: 100%;
    min-width: 0;
  }

  .vn-feed-panel__list .profile-kartoteka-post-card {
    overflow: hidden;
  }

  .vn-feed-panels--no-society-public .vn-feed-panels__track {
    width: 100%;
  }

  .vn-feed-panels--no-society-public .vn-feed-panel {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .vn-feed-panels__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .vn-feed-panels__dots button {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    padding: 0;
    cursor: pointer;
  }

  .vn-feed-panels__dots button.is-active {
    background: #2563eb;
    transform: scale(1.15);
  }
}
