/* Shared layout and surfaces. */
.pm-page [name="subj"],
.pm-page label[for="subj"] {
  display: none !important;
}

/* Sidebar --------------------------------------------------------------- */
.side_menu_category-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  display: block;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
  object-position: center;
}

.side_menu_item:hover .side_menu_category-icon,
.side_menu_item.side_menu_active .side_menu_category-icon {
  border-color: var(--border-strong);
}

.side_menu_more.is-open .js-side-menu-toggle {
  display: none !important;
}

/* One radius for the complete left navigation panel at every breakpoint. */
.sidebar-nav-panel,
.sidebar-mobile-tools {
  border-radius: var(--ui-card-radius) !important;
}

/* Last comments and profile activity ----------------------------------- */
.comment-card--stream {
  display: block;
  margin: 0 !important;
}

.comment-card--stream > .comment-card__inner {
  margin-bottom: 10px !important;
}

.comment-card--stream:last-of-type > .comment-card__inner,
.comment-card--stream:last-child > .comment-card__inner {
  margin-bottom: 0 !important;
}

.profile-comments-list {
  gap: 0 !important;
}

.profile-comment__inner {
  margin-bottom: 10px !important;
}

.profile-comment:last-child .profile-comment__inner {
  margin-bottom: 0 !important;
}

.comment-card--activity .comment-card__context-label,
.profile-comment__context-label {
  font-size: 10px !important;
  line-height: 1.2 !important;
  font-weight: 650 !important;
  letter-spacing: .035em !important;
}

.comment-card--activity .comment-card__news-title,
.comment-card--activity .comment-card__news-title a,
.profile-comment__news-title,
.profile-comment__news-title a {
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  letter-spacing: -.01em !important;
}

/* Large surfaces use one compact radius throughout the desktop site. */
.feed-card,
.full_story.feed-card,
.short_story.feed-card,
.subsite-card,
.ui-page-surface,
.category-head,
.page-head,
.story-related,
.story-comments,
.comment-card.comment-card--activity > .comment-card__inner,
.profile-comment__inner,
.profile-settings__card,
.pm-card,
.pm-chat,
.poll-card,
.theme-card__inner,
.static-page,
.service-card,
.registration-card,
.feedback-card,
.addnews-block {
  border-radius: var(--ui-card-radius) !important;
}

@media screen and (max-width: 640px) {
  .profile-settings-modal .auth-modal__panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .profile-settings-modal .profile-settings__card {
    padding: 15px;
    border-radius: 0 !important;
  }

  .comment-card.comment-card--activity > .comment-card__inner {
    padding: 14px !important;
    border-radius: 0 !important;
  }

  .content > .comment-card--stream {
    margin: 0 !important;
  }

  .profile-settings-modal .profile-form-option--security {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-settings-modal .profile-form-option--security select,
  .profile-settings-modal .profile-form-option--security .ui-select,
  .profile-settings-modal .profile-form-option--security select.form-control {
    width: 100%;
    min-width: 0;
  }

  .full_story .full_text .pk-gallery {
    width: calc(100% + 28px) !important;
    max-height: min(68dvh, 520px) !important;
    margin-right: -14px !important;
    margin-left: -14px !important;
  }

  .full_story .full_text .pk-gallery > .pk-gallery__grid {
    gap: 3px !important;
  }

  .full_story .full_text figure.story-video > .modern-player {
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
  }

  .full_story .full_text figure.story-video.story-primary-media {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }

  .feed-card,
  .full_story.feed-card,
  .short_story.feed-card,
  .subsite-card,
  .ui-page-surface,
  .category-head,
  .page-head,
  .story-related,
  .story-comments,
  .comment-card.comment-card--activity > .comment-card__inner,
  .profile-comment__inner,
  .profile-settings__card,
  .pm-card,
  .pm-chat,
  .poll-card,
  .theme-card__inner,
  .static-page,
  .service-card,
  .registration-card,
  .feedback-card,
  .addnews-block {
    border-right-color: transparent !important;
    border-left-color: transparent !important;
    border-radius: 0 !important;
  }

  .auth-modal__panel,
  .feed-card__menu-dropdown,
  .post-menu {
    border-radius: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-settings-modal .profile-form-option,
  .profile-settings-modal .profile-form-option input,
  .profile-settings-modal .profile-form-option input::after {
    transition: none !important;
  }
}

