/* SOCIAL - carved from nexus-members.css */

.nm-social-feed {
  display: grid;
  gap: 18px;
}


.nm-social-feed__title {
  margin: 0;
  min-height: 600px;
}


.nm-social-post,
.nm-follow-widget {
  color: inherit;
  background: inherit;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 18px;
  padding: 18px;
}


.nm-social-composer,
.nm-social-composer__form {
  display: grid;
  gap: 12px;
}


.nm-social-composer__title {
  margin: 0;
}


.nm-social-composer textarea,
.nm-social-post__comment-input {
  width: 100%;
  max-width: 100%;
  color: inherit;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  background: inherit;
}


.nm-social-composer__tools,
.nm-social-post__comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}


.nm-social-composer__media-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  line-height: 1;
}


.nm-social-composer__media-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.nm-social-composer__media-icon,
.nm-social-emoji__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
}


.nm-social-composer__media-icon svg,
.nm-social-emoji__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}


.nm-social-composer__media-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}


.nm-social-composer__media-preview[hidden] {
  display: none !important;
}


.nm-social-composer__media-item {
  display: grid;
  gap: 8px;
}


.nm-social-composer__media-item img,
.nm-social-composer__media-item video {
  display: block;
  width: 100%;
  border-radius: 12px;
}


.nm-social-composer__media-item--video {
  position: relative;
}


.nm-social-composer__video-poster {
  object-fit: cover;
}


.nm-social-composer__video-poster[hidden] {
  display: none !important;
}


.nm-social-composer button,
.nm-social-manage__action,
.nm-social-emoji__toggle,
.nm-social-comment__reply-toggle,
.nm-social-comment__reply-cancel,
.nm-social-comment__thread-toggle,
.nm-social-post__edit-cancel,
.nm-social-comment__edit-cancel,
.nm-social-post__edit-media-remove,
.nm-social-post__reaction-total,
.nm-social-post__comment-total,
.nm-social-post__comment-submit,
.nm-follow-widget__button {
  width: fit-content;
}


.nm-social-feed__list {
  display: grid;
  gap: 16px;
}


.nm-social-feed__sentinel {
  display: block;
  margin-top: 16px;
  padding: 12px 0;
  min-height: 4px;
}


.nm-social-feed__sentinel[hidden] {
  display: none !important;
}


.nm-social-feed__sentinel-spinner {
  display: none;
  margin: 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, currentColor 22%, transparent);
  border-top-color: currentColor;
  animation: nm-social-sentinel-spin 900ms linear infinite;
  opacity: 0.72;
}


.nm-social-feed.is-loading-next .nm-social-feed__sentinel-spinner,
.nm-social-feed__sentinel.is-visible .nm-social-feed__sentinel-spinner {
  display: block;
}


.nm-social-feed__empty {
  padding: 22px;
  border: 1px dashed currentColor;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 18px;
  opacity: 0.76;
}


.nm-social-feed__back-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  transition: background 120ms ease, transform 120ms ease;
}


.nm-social-empty-state__back-link:hover,
.nm-social-feed__back-link a:hover {
  background: color-mix(in srgb, currentColor 9%, transparent);
}


.nm-social-feed__back-link {
  margin: 18px 0 0 0;
  display: flex;
  justify-content: center;
}


.nm-social-post,
.nm-social-comments-modal__post {
  display: grid;
  gap: 16px;
}


.nm-social-post__header,
.nm-social-post__author,
.nm-social-post__actions,
.nm-social-post__actions-main,
.nm-social-post__actions-secondary,
.nm-social-comment__header {
  display: flex;
  align-items: center;
  gap: 12px;
}


.nm-social-post__header {
  justify-content: space-between;
}


.nm-social-post__author-meta {
  display: grid;
  gap: 4px;
}


.nm-social-post__manage,
.nm-social-comment__manage {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}


.nm-social-manage__action {
  appearance: none;
  font: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
}


.nm-social-manage__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.nm-social-composer__media-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 25%, transparent);
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}


.nm-social-manage__action:hover,
.nm-social-manage__action:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 0.82;
  transform: translateY(-1px);
}


.nm-social-emoji__toggle:hover,
.nm-social-emoji__toggle:focus {
  background: color-mix(in srgb, currentColor 20%, transparent);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  box-shadow: none;
  transform: translateY(-1px);
}


.nm-social-composer__media-label:hover,
.nm-social-composer__media-label:focus {
  background: color-mix(in srgb, currentColor 20%, transparent);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  box-shadow: none;
  transform: translateY(-1px);
}


.nm-social-manage__action svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}


.nm-social-post__author-name,
.nm-social-comment__author {
  font-weight: 700;
}


.nm-social-post__meta,
.nm-social-comment__meta,
.nm-follow-widget__counts {
  font-size: 0.8125rem;
}


.nm-social-post__badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
}


/* Kept content from members whose member role was removed. */
.nm-social-post__badge--archived,
.nm-social-comment__badge--archived {
  background: color-mix(in srgb, #b45309 12%, transparent);
  border: 1px solid color-mix(in srgb, #b45309 24%, transparent);
  color: #92400e;
  font-weight: 500;
  cursor: help;
}


.nm-social-comment__badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  line-height: 1.5;
  vertical-align: 1px;
}


.nm-social-post__link-clicks {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 2px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
  background: color-mix(in srgb, currentColor 8%, transparent);
}


.nm-social-post__link-clicks-icon {
  display: inline-flex;
  align-items: center;
}


.nm-social-post__link-clicks-icon .eicon {
  display: block;
  font-size: 0.875rem;
  line-height: 1;
}


.nm-social-post__link-clicks-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  opacity: 0.8;
}


.nm-social-post__link-clicks-pos {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}


.nm-social-post__link-clicks-pos-num {
  font-weight: 600;
}


.nm-social-post__link-clicks-pos-count {
  opacity: 0.85;
}


.nm-social-post__avatar img,
.nm-social-comment__avatar img {
  display: block;
  border-radius: 999px;
}


.nm-social-post__content,
.nm-social-comment__content {
  word-break: break-word;
}


a.nm-mention,
.nm-mention {
  display: inline-block;
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(109, 40, 217, 0.18);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}


a.nm-mention:hover,
a.nm-mention:focus,
.nm-mention:hover,
.nm-mention:focus {
  color: #fff;
  background: #6d28d9;
  border-color: #6d28d9;
  text-decoration: none;
  outline: none;
}


.nm-social-post__gallery {
  display: grid;
  gap: 12px;
}


.nm-social-post__gallery--count-1 {
  grid-template-columns: minmax(0, 1fr);
}


.nm-social-post__gallery--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.nm-social-post__gallery--count-3,
.nm-social-post__gallery--count-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}


.nm-social-post__gallery--count-3 .nm-social-post__gallery-item,
.nm-social-post__gallery--count-6 .nm-social-post__gallery-item {
  grid-column: span 2;
}


.nm-social-post__gallery--count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


.nm-social-post__gallery--count-4 .nm-social-post__gallery-item {
  grid-column: span 2;
}


.nm-social-post__gallery--count-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}


.nm-social-post__gallery--count-5 .nm-social-post__gallery-item {
  grid-column: span 2;
}


.nm-social-post__gallery--count-5 .nm-social-post__gallery-item:nth-child(n + 4) {
  grid-column: span 3;
}


.nm-social-post__gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 6%, transparent);
}


.nm-social-post__gallery-item--hidden {
  display: none !important;
}


.nm-social-post__gallery-item img,
.nm-social-post__gallery-video,
.nm-social-post__gallery-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.nm-social-post__gallery-video {
  position: relative;
  display: block;
  height: 100%;
}


.nm-social-post__gallery-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.54);
  color: #ffffff;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(8px);
}


.nm-social-post__gallery-video-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  backdrop-filter: blur(10px);
}


.nm-social-post__content p,
.nm-social-comment__content p {
  margin: 0 0 0.75em;
}


.nm-social-post__content p:last-child,
.nm-social-comment__content p:last-child {
  margin-bottom: 0;
}


.nm-social-post__link-preview,
.nm-social-comment__link-preview {
  margin-top: 4px;
}


.nm-link-preview-frame {
  position: relative;
  margin: 14px 0;
}


.nm-link-preview-frame .nm-link-preview {
  margin: 0;
}


.nm-link-preview__refresh {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(6px);
}


.nm-link-preview__refresh:hover,
.nm-link-preview__refresh:focus {
  opacity: 1;
  background: rgba(15, 23, 42, 0.78);
  outline: none;
}


.nm-link-preview-frame.is-refreshing .nm-link-preview {
  opacity: 0.6;
}


.nm-link-preview-frame.is-refreshing .nm-link-preview__refresh {
  opacity: 1;
  animation: nm-link-preview-spin 0.8s linear infinite;
}


.nm-link-preview {
  display: flex;
  flex-direction: column;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--nm-link-preview-border, color-mix(in srgb, currentColor 14%, transparent));
  border-radius: var(--nm-link-preview-radius, 14px);
  background: var(--nm-link-preview-bg, color-mix(in srgb, currentColor 5%, transparent));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}


.nm-link-preview:hover,
.nm-link-preview:focus {
  border-color: var(--nm-link-preview-border, color-mix(in srgb, currentColor 26%, transparent));
  background: var(--nm-link-preview-bg, color-mix(in srgb, currentColor 9%, transparent));
  text-decoration: none;
  outline: none;
}


.nm-link-preview__media {
  position: relative;
  display: block;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}


.nm-link-preview__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}


.nm-link-preview__media--embed {
  aspect-ratio: 16 / 9;
  max-height: none;
}


.nm-link-preview__media--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.nm-link-preview__media--cover {
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}


.nm-link-preview__media--cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}


.nm-link-preview__play-badge--embed {
  transition: transform 0.15s ease, background 0.15s ease;
}


.nm-link-preview__media--cover:hover .nm-link-preview__play-badge--embed {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(220, 38, 38, 0.9);
}


/* Provider-specific embed aspect ratios */
.nm-link-preview__media--twitter {
  aspect-ratio: 5 / 4;
}


.nm-link-preview__media--instagram {
  aspect-ratio: 4 / 5;
}


.nm-link-preview__media--tiktok {
  aspect-ratio: 9 / 16;
}


.nm-link-preview__play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  padding: 4px 0px 0px 4px ;
}


.nm-link-preview__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}


.nm-link-preview__domain {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nm-link-preview-domain, inherit);
  opacity: 0.62;
}


.nm-link-preview__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nm-link-preview-title, inherit);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.nm-link-preview__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--nm-link-preview-desc, inherit);
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.nm-link-preview-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--nm-link-preview-border, color-mix(in srgb, currentColor 14%, transparent));
  border-radius: var(--nm-link-preview-radius, 14px);
  background: var(--nm-link-preview-bg, color-mix(in srgb, currentColor 5%, transparent));
  color: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  opacity: 0.85;
}


.nm-link-preview-pending--failed {
  opacity: 0.55;
}


.nm-link-composer-preview .nm-link-preview {
  margin: 0;
}


.nm-link-preview-pending__spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  opacity: 0.7;
  animation: nm-link-preview-spin 0.8s linear infinite;
}


.nm-social-post__actions {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}


.nm-social-post__actions-main,
.nm-social-post__actions-secondary {
  flex-wrap: wrap;
}


.nm-social-post__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  appearance: none;
}


.nm-social-post__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.nm-social-post__action-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}


.nm-social-post__action-label[hidden] {
  display: none !important;
}


.nm-social-post__reaction-total,
.nm-social-post__comment-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}


.nm-social-post__action:hover,
.nm-social-post__action:focus,
.nm-social-post__reaction-total:hover,
.nm-social-post__reaction-total:focus,
.nm-social-post__comment-total:hover,
.nm-social-post__comment-total:focus {
  color: inherit;
  background: transparent;
  box-shadow: none;
}


.nm-social-post__reaction-total:hover,
.nm-social-post__reaction-total:focus,
.nm-social-post__comment-total:hover,
.nm-social-post__comment-total:focus {
  text-decoration: underline;
}


.nm-social-post__reaction-total.is-disabled {
  cursor: default;
  opacity: 0.46;
  text-decoration: none;
  pointer-events: none;
}


.nm-social-post--modal .nm-social-post__comment-total {
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}


.nm-social-post--modal .nm-social-post__comment-total:hover,
.nm-social-post--modal .nm-social-post__comment-total:focus {
  text-decoration: none;
}


.nm-social-post__action.is-active,
.nm-follow-widget__button.is-active {
  font-weight: 700;
}


.nm-social-post__comments {
  display: grid;
  gap: 14px;
}


.nm-social-post__comments[hidden],
.nm-social-post__reactions-data[hidden],
.nm-social-comment__reactions-data[hidden],
.nm-social-modal[hidden] {
  display: none !important;
}


.nm-social-post__comment-list {
  display: grid;
  gap: 12px;
}


.nm-social-comment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}


.nm-social-comment__body {
  display: grid;
  gap: 10px;
}


.nm-social-comment__header,
.nm-social-comment__author,
.nm-social-comment__actions,
.nm-social-comment__actions-main,
.nm-social-comment__actions-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
}


.nm-social-comment__header {
  justify-content: space-between;
}


.nm-social-comment__author {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  gap: 4px;
  align-items: start;
}


.nm-social-comment__author-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}


.nm-social-comment__meta {
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 0.75rem;
  line-height: 1.4;
}


.nm-social-comment__actions {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}


.nm-social-comment__actions-main,
.nm-social-comment__actions-secondary {
  flex-wrap: wrap;
  gap: 12px;
}


.nm-social-comment__action,
.nm-social-comment__reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  appearance: none;
  font: inherit;
}


.nm-social-comment__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.nm-social-comment__action-icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}


.nm-social-comment__action-label[hidden] {
  display: none !important;
}


.nm-social-comment__reaction-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


.nm-social-comment__reaction-total.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}


.nm-social-comment__action:hover,
.nm-social-comment__action:focus,
.nm-social-comment__reply-toggle:hover,
.nm-social-comment__reply-toggle:focus,
.nm-social-comment__reaction-total:hover,
.nm-social-comment__reaction-total:focus {
  color: inherit;
  background: transparent;
  box-shadow: none;
}


.nm-social-comment__reaction-total:hover,
.nm-social-comment__reaction-total:focus {
  text-decoration: underline;
}


.nm-social-comment__reaction-total[aria-disabled="true"],
.nm-social-comment__reaction-total.is-disabled {
  cursor: default;
  opacity: 0.46;
  text-decoration: none;
  pointer-events: none;
}


.nm-social-comment__action.is-active,
.nm-social-comment__reply-toggle[aria-expanded="true"] {
  font-weight: 700;
}


.nm-social-comment__reply-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 16px;
  background: var(--nm-overlay-modal-inner-card, color-mix(in srgb, currentColor 2.5%, transparent));
}


.nm-social-comment__reply-form[hidden],
.nm-social-post__comment-form[hidden] {
  display: none !important;
}


.nm-social-comment__children[hidden],
.nm-social-comment__children.is-collapsed {
  display: none !important;
}


.nm-social-comment__children {
  display: grid;
  gap: 14px;
  padding-left: 16px;
  margin-top: 6px;
  border-left: 2px solid color-mix(in srgb, currentColor 14%, transparent);
}


.nm-social-comment__thread-toggle-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 4px;
  margin-top: 8px;
  padding-left: 0;
  margin-left: 0;
}


.nm-social-comment__thread-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.86;
  font-weight: 600;
  font-size: 0.92em;
  cursor: pointer;
  line-height: 1;
  transition: background 120ms ease, opacity 120ms ease;
}


.nm-social-comment__thread-toggle:hover,
.nm-social-comment__thread-toggle:focus-visible {
  background: color-mix(in srgb, currentColor 8%, transparent);
  opacity: 1;
  outline: none;
}


.nm-social-comment__thread-toggle-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transform: translateY(1px) rotate(0deg);
  transition: transform 150ms ease;
}


.nm-social-comment__thread-toggle[aria-expanded="false"] .nm-social-comment__thread-toggle-caret {
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: currentColor;
  border-bottom: 6px solid currentColor;
  transform: translateY(-1px) rotate(90deg);
}


.nm-social-comment__media {
  display: grid;
  gap: 8px;
}


.nm-social-comment__media-item {
  margin:auto;
  display: inline-block;
  max-width: min(320px, 100%);
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  background: var(--nm-overlay-modal-inner-card, color-mix(in srgb, currentColor 3%, transparent));
}


.nm-social-comment__media-item img {
  display: block;
  width: 100%;
  height: auto;
}


.nm-social-post__comment-form {
  display: grid;
  gap: 16px;
  margin-top:20px;
}


.nm-social-post__comment-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}


.nm-social-post__comment-media-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}


.nm-social-post__comment-media-label:hover,
.nm-social-post__comment-media-label:focus {
  background: color-mix(in srgb, currentColor 6%, transparent);
}


.nm-social-post__comment-media-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


.nm-social-post__comment-media-icon svg {
  width: 18px;
  height: 18px;
}


.nm-social-post__comment-media-input {
  display: none;
}


.nm-social-post__comment-media-preview {
  display: grid;
  gap: 8px;
}


.nm-social-post__comment-media-preview[hidden] {
  display: none !important;
}


.nm-social-post__comment-media-preview img {
  display: block;
  max-width: min(320px, 100%);
  height: auto;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}


.nm-social-post__edit-form,
.nm-social-comment__edit-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 16px;
  background: var(--nm-overlay-modal-inner-card, color-mix(in srgb, currentColor 3%, transparent));
}


.nm-social-post__edit-form[hidden],
.nm-social-comment__edit-form[hidden] {
  display: none !important;
}


.nm-social-post__edit-input,
.nm-social-comment__edit-input {
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 14px;
  background: inherit;
  color: inherit;
  resize: vertical;
}


.nm-social-post__edit-actions,
.nm-social-comment__edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}


.nm-social-post__edit-tools,
.nm-social-comment__edit-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}


.nm-social-post__edit-media-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}


.nm-social-post__edit-media-item {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}


.nm-social-post__edit-media-open-preview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}


.nm-social-post__edit-media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}


.nm-social-post__edit-media-preview .nm-social-composer__media-item {
  display: block;
  width: 100%;
  height: 100%;
  gap: 0;
}


.nm-social-post__edit-media-preview img,
.nm-social-post__edit-media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}


.nm-social-post__edit-media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
  cursor: pointer;
}


.nm-social-post__edit-media-remove svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}


.nm-social-post__edit-media-item.is-removed {
  opacity: 0.4;
}


.nm-social-post__edit-media-item.is-removed .nm-social-post__edit-media-preview {
  filter: grayscale(1);
}


.nm-social-emoji {
  position: relative;
  display: inline-flex;
  align-items: center;
}


.nm-social-emoji__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 25%, transparent);
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}


.nm-social-emoji__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  width: min(360px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 3%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}


.nm-social-emoji__panel[hidden] {
  display: none !important;
}


.nm-social-emoji__browser {
  width: 100%;
  min-height: 360px;
  --border-radius: 14px;
  --background: var(--nm-cropper-bg, #ffffff);
  --border-color: color-mix(in srgb, currentColor 14%, transparent);
  --button-hover-background: color-mix(in srgb, currentColor 8%, transparent);
  --button-active-background: color-mix(in srgb, currentColor 12%, transparent);
  --category-emoji-padding: 0.45rem;
  --emoji-size: 1.35rem;
}


.nm-follow-widget {
  display: grid;
  gap: 12px;
  justify-items: start;
}


.nm-follow-widget--layout-column {
  display: flex;
  flex-direction: column;
}


.nm-follow-widget--layout-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}


.nm-follow-widget--layout-column.nm-follow-widget--align-start {
  align-items: flex-start;
  text-align: left;
}


.nm-follow-widget--layout-column.nm-follow-widget--align-center {
  align-items: center;
  text-align: center;
}


.nm-follow-widget--layout-column.nm-follow-widget--align-end {
  align-items: flex-end;
  text-align: right;
}


.nm-follow-widget--layout-column.nm-follow-widget--align-space-between {
  align-items: stretch;
}


.nm-follow-widget--layout-row.nm-follow-widget--align-start {
  justify-content: flex-start;
}


.nm-follow-widget--layout-row.nm-follow-widget--align-center {
  justify-content: center;
  text-align: center;
}


.nm-follow-widget--layout-row.nm-follow-widget--align-end {
  justify-content: flex-end;
  text-align: right;
}


.nm-follow-widget--layout-row.nm-follow-widget--align-space-between {
  justify-content: space-between;
}


.nm-follow-widget--layout-row .nm-follow-widget__counts {
  margin-left: 0;
}


.nm-notifications-widget {
  display: grid;
  gap: 12px;
}


.nm-notifications-widget__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}


.nm-notifications-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.nm-notifications-widget__icon svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}


.nm-notifications-widget__label:empty {
  display: none;
}


.nm-social-post__author-link,
.nm-social-comment__author-link,
.nm-messages__thread-link,
.nm-messages__author-link {
  color: inherit;
  text-decoration: none;
}


.nm-social-post__author-link:hover,
.nm-social-post__author-link:focus,
.nm-social-comment__author-link:hover,
.nm-social-comment__author-link:focus,
.nm-messages__thread-link:hover,
.nm-messages__thread-link:focus,
.nm-messages__author-link:hover,
.nm-messages__author-link:focus {
  text-decoration: underline;
}


.nm-messages {
  display: grid;
  gap: 18px;
}


.nm-messages-widget {
  display: grid;
  gap: 18px;
}


.nm-messages__title {
  margin: 0;
}


.nm-messages__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
  height: 100%;
}


.nm-messages__sidebar,
.nm-messages__panel,
.nm-messages__empty {
  color: inherit;
  background-color: var(--nm-overlay-modal-inner-card);
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 18px;
  padding: 18px;
}


.nm-messages__sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  max-height: min(68vh, 720px);
  overflow: auto;
}


.nm-messages__search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 3%, transparent);
}


.nm-messages__search-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: var(--nm-overlay-modal-bg);
  color: inherit;
  box-shadow: none;
}


.nm-messages__search-input:focus {
  outline: none;
}


.nm-messages__search-icon {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.72;
}


.nm-messages__search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}


.nm-messages__sidebar-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}


.nm-messages__thread-list,
.nm-messages__contact-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}


.nm-messages__search-empty {
  padding-top: 2px;
  opacity: 0.72;
  font-size: 0.8125rem;
}


.nm-messages__thread-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  align-items: center;
  padding: 12px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background: var(--nm-overlay-modal-inner-card, color-mix(in srgb, currentColor 3%, transparent));
  color: inherit;
  cursor: pointer;
  min-width: 0;
}


.nm-message-modal button.nm-messages__thread-item,
.nm-message-modal button.nm-messages__thread-item:hover,
.nm-message-modal button.nm-messages__thread-item:focus {
  font-family: inherit !important;
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}


.nm-messages__thread-main,
.nm-messages__panel-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}


.nm-messages__thread-name,
.nm-messages__panel-name,
.nm-messages__message-author {
  font-weight: 700;
}


.nm-messages__thread-preview,
.nm-messages__thread-time,
.nm-messages__panel-time,
.nm-messages__message-time,
.nm-messages__permission-note {
  opacity: 0.72;
  font-size: 0.8125rem;
}


.nm-messages__thread-name,
.nm-messages__thread-preview,
.nm-messages__panel-name,
.nm-messages__panel-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


.nm-messages__thread-name,
.nm-messages__panel-name {
  white-space: nowrap;
}


.nm-messages__thread-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}


.nm-messages__thread-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}


.nm-messages__thread-time {
  min-width: 0;
  white-space: nowrap;
}


.nm-messages__thread-seen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  color: #00D23B;
}


.nm-messages__thread-seen.is-seen {
  opacity: 1;
  color: #00D23B;
}


.nm-messages__thread-seen svg {
  width: 100%;
  height: 100%;
  display: block;
}


.nm-messages__panel-avatar,
.nm-messages__thread-avatar,
.nm-messages__message-avatar {
  flex-shrink: 0;
}


.nm-messages__mobile-back {
  display: none !important;
}


.nm-messages__panel-header {
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: var(--nm-overlay-modal-header-bg, color-mix(in srgb, var(--nm-overlay-modal-bg, #fff) 94%, currentColor));
  box-shadow: 0 4px 14px color-mix(in srgb, currentColor 12%, transparent);
}


.nm-messages__panel {
  display: none;
  gap: 16px;
  min-width: 0;
  min-height: min(68vh, 720px);
}


.nm-messages__panels {
  min-width: 0;
}


.nm-messages__panel.is-active {
  display: grid;
}


.nm-messages__panel--placeholder {
  align-content: center;
  justify-items: start;
}


.nm-messages__empty-panel-title {
  font-weight: 700;
  font-size: 1.05rem;
}


.nm-messages__empty-panel-text {
  opacity: 0.72;
}


.nm-messages__panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}


.nm-messages__panel-header .nm-messages__panel-meta {
  flex: 1 1 auto;
  min-width: 0;
}


button.nm-messages__panel-delete {
  padding: 0;
}


.nm-messages__panel-delete {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  color: inherit;
  opacity: 0.75;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  flex-shrink: 0;
}


.nm-messages__panel-delete svg {
  width: 20px;
  height: 20px;
  display: block;
}


.nm-messages__panel-delete:hover,
.nm-messages__panel-delete:focus {
  opacity: 1;
  color: #dc2626;
  border-color: color-mix(in srgb, #dc2626 42%, transparent);
  background: color-mix(in srgb, #dc2626 10%, transparent);
  outline: none;
  transform: translateY(-1px);
}


.nm-messages__panel-delete[disabled] {
  opacity: 0.45;
  cursor: progress;
  pointer-events: none;
  transform: none;
}


.nm-messages__message-list {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  max-height: min(42vh, 420px);
  overflow: auto;
}


.nm-messages__message {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}


.nm-messages__message.is-own {
  grid-template-columns: 1fr auto;
}


.nm-messages__message.is-own .nm-messages__message-avatar {
  order: 2;
}


.nm-messages__message.is-own .nm-messages__message-bubble {
  order: 1;
  justify-self: end;
}


.nm-messages__message.is-other .nm-messages__message-bubble {
  justify-self: start;
}


.nm-messages__message-bubble {
  display: grid;
  gap: 6px;
  max-width: min(100%, 640px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  background-color: color-mix(in srgb, var(--nm-overlay-modal-bg) 10%, transparent);
}


.nm-messages__message.is-own .nm-messages__message-bubble {
  background-color: color-mix(in srgb, var(--nm-overlay-modal-text) 5%, transparent);
}


.nm-messages__message-content p {
  margin: 0 0 0.75em;
}


.nm-messages__message-content p:last-child {
  margin-bottom: 0;
}


.nm-messages__message-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


.nm-messages__message.is-own .nm-messages__message-meta {
  justify-content: flex-end;
}


.nm-messages__message-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 14px;
  opacity: 0.7;
  color: #00D23B;
  margin-left: 4px;
  vertical-align: middle;
}


.nm-messages__message-status.is-seen {
  opacity: 1;
  color: #00D23B;
}


.nm-messages__message-status svg {
  width: 100%;
  height: 100%;
  display: block;
}


.nm-messages__composer {
  display: grid;
  gap: 12px;
}


.nm-messages__composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}


.nm-messages__composer textarea {
  width: 100%;
  max-width: 100%;
  color: inherit;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  background: var(--nm-overlay-modal-bg);
}


.nm-messages__composer button {
  width: fit-content;
}


.nm-message-modal button[type="submit"],
.nm-message-modal .nm-messages__composer button[type="submit"] {
  font-family: inherit !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}


.nm-messages__panel[hidden],
.nm-messages__thread-item[hidden],
.nm-messages__sidebar-heading[hidden],
.nm-messages__search-empty[hidden] {
  display: none !important;
}


.nm-notifications-widget__button {
  position: relative;
}


.nm-notifications-widget__icon {
  font-size: 1em;
}


.nm-notifications-widget__icon svg {
  width: 1em;
  height: 1em;
}


.nm-notifications-widget__bubble {
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  margin-left: 2px;
}


.nm-notifications-widget__bubble[hidden] {
  display: none !important;
}


.nm-messages__empty-thread {
  opacity: 0.76;
}


@media (max-width: 767px) {
  .nm-social-feed__composer,
  .nm-social-post,
  .nm-follow-widget {
    padding: 16px;
  }
  .nm-social-comment {
    grid-template-columns: 1fr;
  }
  .nm-messages__layout {
    grid-template-columns: 1fr;
  }
  .nm-messages__sidebar {
    max-height: 34dvh;
    padding: 12px;
    border-radius: 14px;
  }
  .nm-messages__panel {
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }
  .nm-messages__message-list {
    min-height: 0;
    max-height: min(46dvh, 420px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nm-messages__thread-item {
    min-height: 52px;
    padding: 10px;
  }
  .nm-messages__message,
  .nm-messages__message.is-own {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .nm-messages__message.is-own {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nm-messages__message.is-own .nm-messages__message-avatar {
    order: 2;
  }
  .nm-messages__message.is-own .nm-messages__message-bubble {
    order: 1;
    justify-self: end;
  }
  .nm-messages__message.is-other .nm-messages__message-bubble {
    justify-self: start;
  }
  .nm-messages__message-bubble {
    max-width: min(100%, 640px);
    padding: 11px 13px;
  }
  .nm-messages__composer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-inline: -12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--nm-overlay-modal-inner-card, var(--nm-overlay-modal-bg));
    border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  }
  .nm-messages__composer textarea {
    min-height: 48px;
    max-height: 28dvh;
    resize: vertical;
  }
}


.nm-social-reactions {
  display: grid;
  gap: 12px;
}


.nm-social-reactions__member {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}


.nm-social-reactions__avatar img {
  display: block;
  border-radius: 999px;
}


.nm-social-reactions__name a {
  color: inherit;
  text-decoration: none;
}


.nm-social-reactions__name a:hover,
.nm-social-reactions__name a:focus {
  text-decoration: underline;
}


.nm-social-reactions__empty {
  opacity: 0.72;
}


@media (max-width: 767px) {
  .nm-social-post__gallery,
  .nm-social-post__gallery--count-2,
  .nm-social-post__gallery--count-3,
  .nm-social-post__gallery--count-4,
  .nm-social-post__gallery--count-5,
  .nm-social-post__gallery--count-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nm-social-post__gallery--count-1 {
    grid-template-columns: minmax(0, 1fr);
  }
  .nm-social-post__gallery-item,
  .nm-social-post__gallery--count-3 .nm-social-post__gallery-item,
  .nm-social-post__gallery--count-4 .nm-social-post__gallery-item,
  .nm-social-post__gallery--count-5 .nm-social-post__gallery-item,
  .nm-social-post__gallery--count-6 .nm-social-post__gallery-item {
    grid-column: auto;
  }
}


@media (max-width: 479px) {
  .nm-social-post__gallery,
  .nm-social-post__gallery--count-2,
  .nm-social-post__gallery--count-3,
  .nm-social-post__gallery--count-4,
  .nm-social-post__gallery--count-5,
  .nm-social-post__gallery--count-6 {
    grid-template-columns: minmax(0, 1fr);
  }
  .nm-social-post__gallery--count-1 {
    grid-template-columns: minmax(0, 1fr);
  }
}


.nm-notifications {
  display: grid;
  gap: 14px;
}


.nm-notifications__item-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 18px;
  transition: opacity 180ms ease;
}


.nm-notifications__item-wrapper.is-removing {
  opacity: 0;
  pointer-events: none;
}


.nm-notifications__item,
.nm-notifications__loading,
.nm-notifications__empty {
  color: inherit;
  background: var(--nm-overlay-modal-inner-card, color-mix(in srgb, currentColor 3.5%, transparent));
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 18px;
  padding: 16px 18px;
}


.nm-notifications__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  text-decoration: none;
  position: relative;
  align-items: flex-start;
  overflow: hidden;
}


.nm-notifications__item-wrapper--read .nm-notifications__item {
  background: var(--nm-notification-read-bg, color-mix(in srgb, currentColor 2%, transparent));
  color: var(--nm-notification-read-text, color-mix(in srgb, currentColor 88%, transparent));
  opacity: 0.88;
}


.nm-notifications__item-wrapper--unread .nm-notifications__item {
  background: var(--nm-notification-unread-bg, color-mix(in srgb, var(--nm-accent, #2563eb) 6%, color-mix(in srgb, currentColor 4%, transparent)));
  color: var(--nm-notification-unread-text, color-mix(in srgb, currentColor 95%, transparent));
  border-color: color-mix(in srgb, var(--nm-accent, #2563eb) 40%, color-mix(in srgb, currentColor 12%, transparent));
}


.nm-notifications__item-wrapper--unread .nm-notifications__title {
  color: var(--nm-notification-unread-title, color-mix(in srgb, var(--nm-accent, #2563eb) 72%, var(--nm-overlay-modal-title, #0f172a)));
  text-decoration: none;
}


.nm-notifications__item-wrapper--read .nm-notifications__title,
.nm-notifications__title {
  color: var(--nm-notification-title, inherit);
  text-decoration: none;
}


.nm-notifications__item:hover .nm-notifications__title {
  text-decoration: underline;
}


.nm-notifications__message {
  color: var(--nm-notification-content, inherit);
}


.nm-notifications__unread-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--nm-notification-unread-dot, var(--nm-accent, #2563eb));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nm-accent, #2563eb) 18%, transparent);
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}


.nm-notifications__item-wrapper--unread .nm-notifications__unread-dot {
  opacity: 1;
  transform: scale(1);
}


button.nm-notifications__remove {
  appearance: none;
  -webkit-appearance: none;
  background: red;
  border: 0;
  color: var(--nm-notification-text, inherit);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 6px 4px 0 0;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}


button.nm-notifications__remove:hover {
  color: color-mix(in srgb, currentColor 90%, transparent);
  background: var(--nm-notification-title, inherit);
  transform: translateY(-1px);
  border-radius: 999px;
}


button.nm-notifications__remove svg {
  width: 18px;
  height: 18px;
}


.nm-notifications__avatar,
.nm-notifications__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}


.nm-notifications__avatar img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}


.nm-notifications__icon svg {
  width: 22px;
  height: 22px;
}


.nm-notifications__body {
  display: grid;
  gap: 6px;
  padding-right: 18px;
}


.nm-notifications__title {
  font-weight: 700;
}


.nm-notifications__message,
.nm-notifications__meta,
.nm-notifications__loading,
.nm-notifications__empty {
  opacity: 0.8;
}


time.nm-notifications__meta {
  font-size: 0.75rem;
}


.nm-social-comment,
.nm-social-post,
.nm-messages__message {
  scroll-margin-block: 120px;
}


.nm-message-modal .nm-messages,
.nm-message-modal .nm-messages__layout,
.nm-message-modal .nm-messages__panels {
  min-height: 0;
}


.nm-message-modal .nm-messages {
  height: 100%;
}


.nm-message-modal .nm-messages__layout {
  height: 100%;
}


.nm-message-modal .nm-messages__sidebar,
.nm-message-modal .nm-messages__panel {
  min-height: 0;
  max-height: 100%;
}


@media (max-width: 767px) {
  .nm-message-modal .nm-messages__layout {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: contain;
  }
  .nm-message-modal .nm-messages__sidebar {
    display: grid;
    height: 100%;
    max-height: none;
    overflow: auto;
    align-content: start;
  }
  .nm-message-modal .nm-messages__panels {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none !important;
    padding: 0;
    background: var(--nm-overlay-modal-bg, #fff);
  }
  .nm-message-modal .nm-messages.nm-message-conversation-open .nm-messages__panels {
    display: block !important;
  }
  .nm-message-modal .nm-messages.nm-message-conversation-open .nm-messages__mobile-back {
    display: inline-flex !important;
  }
  .nm-message-modal .nm-messages__panel {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .nm-message-modal .nm-messages__panel-header {
    min-height: 68px;
    padding: 12px 16px;
    border-width: 0 0 1px;
    border-radius: 0;
  }
  .nm-message-modal .nm-messages__mobile-back {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 8%, transparent);
    color: inherit;
    font: inherit;
    font-size: 1.875rem;
    line-height: 1;
    cursor: pointer;
  }
  .nm-message-modal .nm-messages__mobile-back:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--nm-accent, #2563eb) 70%, transparent);
    outline-offset: 2px;
  }
  .nm-message-modal .nm-messages__message-list {
    min-height: 0;
    max-height: none;
    padding: 14px 16px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .nm-message-modal .nm-messages__composer {
    position: static;
    margin: 0;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom, 0px));
    background: var(--nm-overlay-modal-bg, #fff);
  }
  .nm-message-modal__content,
  .nm-message-modal .nm-messages,
  .nm-message-modal .nm-messages__layout,
  .nm-message-modal .nm-messages__panels,
  .nm-message-modal .nm-messages__panel {
    min-height: 0;
    overscroll-behavior: contain;
  }
}


.nm-social-post__gallery-item {
  position: relative;
  overflow: hidden;
}


.nm-social-post__gallery-item--hidden {
  display: none;
}


.nm-social-post__gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}


/* -------------------------------------------------------------------------- */
/*  Social Feed Sort / Search Toolbar                                        */
/*  (Visual styling is owned by the Elementor Feed Widget style controls.)   */
/*  Below: structural layout + native select defaults matching onboarding.  */
/* -------------------------------------------------------------------------- */
.nm-social-feed__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 18px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  margin-bottom: 18px;
}


.nm-social-feed__sort {
  max-width: 100%;
}


.nm-social-feed__sort {
  position: relative;
  max-width: 100%;
}


.nm-social-feed__sort::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-color: currentColor;
  opacity: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.75'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='0.75'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}


.nm-social-feed__sort select {
  width: 100%;
  max-width: 100%;
  color: inherit;
  padding: 12px 36px 12px 14px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  background: inherit;
  font: inherit;
  line-height: 1.3;
  min-height: 40px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}


.nm-social-feed__sort select:hover,
.nm-social-feed__sort select:focus {
  outline: none;
}


.nm-social-feed__sort select::-ms-expand {
  display: none;
}


@media (max-width: 767px) {
  .nm-social-feed__toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nm-social-feed__sort select {
    width: 100% !important;
  }
}


/* -------------------------------------------------------------------------- */
/*  Feed Switcher                                                             */
/*  (Visual styling is owned by the Elementor Feed Widget style controls.)   */
/*  Below: structural layout + neutral defaults derived from the site's own   */
/*  text colour, so the control reads as part of the theme out of the box.    */
/* -------------------------------------------------------------------------- */
.nm-feed-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 999px;
  background-color: color-mix(in srgb, currentColor 6%, transparent);
}


.nm-feed-switcher__button {
  margin: 0;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: transparent;
  background-image: none;
  color: inherit;
  font: inherit;
  line-height: 1.3;
  cursor: pointer;
  opacity: 0.72;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}


.nm-feed-switcher__button:hover,
.nm-feed-switcher__button:focus-visible {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
  opacity: 1;
  outline: none;
}


.nm-feed-switcher__button:focus-visible {
  border-color: color-mix(in srgb, currentColor 40%, transparent);
}


.nm-feed-switcher__button.is-active,
.nm-feed-switcher__button[aria-pressed='true'] {
  background-color: color-mix(in srgb, currentColor 14%, transparent);
  opacity: 1;
}


/* A switch already in flight must not accept a second one: the mode is read
   from the feed's own attribute when the page-1 reload runs, so changing it
   mid-request would leave the buttons describing a feed nobody fetched. */
.nm-social-feed.is-loading-page1 .nm-feed-switcher {
  pointer-events: none;
  opacity: 0.7;
}


@media (max-width: 767px) {
  .nm-feed-switcher {
    display: flex;
    width: 100%;
  }
  .nm-feed-switcher__button {
    flex: 1 1 0;
    padding: 10px 12px;
    text-align: center;
  }
}


/* -------------------------------------------------------------------------- */
/*  Sticky / Pinned Posts                                                     */
/* -------------------------------------------------------------------------- */
.nm-social-post__badge--pinned {
  background: color-mix(in srgb, var(--nm-accent, #2563eb) 14%, transparent);
  border-color: color-mix(in srgb, var(--nm-accent, #2563eb) 35%, color-mix(in srgb, currentColor 10%, transparent));
  color: color-mix(in srgb, var(--nm-accent, #2563eb) 85%, currentColor);
  font-weight: 600;
}


.nm-social-post__manage,
.nm-social-comment__manage {
  position: relative;
}


.nm-social-manage__action--menu {
  transition: opacity 140ms ease, transform 140ms ease;
}


.nm-social-manage__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 210px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 10px;
  background: var(--nm-overlay-modal-bg, #ffffff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}


.nm-social-manage__menu[hidden] {
  display: none;
}


.nm-social-manage__status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nm-accent, #2563eb);
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}


.nm-social-manage__status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}


.nm-social-manage__status-icon .dashicons {
  width: 13px;
  height: 13px;
  font-size: 0.8125rem;
}


.nm-social-manage__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
}


.nm-social-manage__item:hover,
.nm-social-manage__item:focus {
  background: color-mix(in srgb, currentColor 7%, transparent);
  text-decoration: none;
  outline: none;
}


.nm-social-manage__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}


.nm-social-manage__item-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}


.nm-social-manage__item-icon .dashicons {
  width: 16px;
  height: 16px;
  font-size: 1rem;
}


.nm-social-manage__item--pin.is-busy {
  opacity: 0.6;
  pointer-events: none;
}


.nm-social-manage__item--pin.is-at-capacity {
  display: none;
}


/* -------------------------------------------------------------------------- */
/*  Social Search Widget                                                      */
/* -------------------------------------------------------------------------- */
.nm-social-search {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: var(--nm-overlay-modal-radius, 22px);
  background: var(--nm-overlay-modal-inner-card, color-mix(in srgb, currentColor 3%, transparent));
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
}


.nm-social-search__title {
  margin: 0;
  padding: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--nm-overlay-modal-title, inherit);
}


.nm-social-search__form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}


.nm-social-search__field-wrap {
  flex: 1 1 260px;
  min-width: 0;
  display: block;
}


.nm-social-search__field {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: var(--nm-search-field-bg, color-mix(in srgb, currentColor 4%, transparent));
  color: inherit;
  font-size: 0.9375rem;
  line-height: 1.3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'></circle><line x1='21' y1='21' x2='16.65' y2='16.65'></line></svg>");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 18px 18px;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}


.nm-social-search__field::placeholder {
  color: color-mix(in srgb, currentColor 55%, transparent);
}


.nm-social-search__field:hover,
.nm-social-search__field:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--nm-accent, #2563eb) 50%, currentColor 20%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nm-accent, #2563eb) 16%, transparent);
}


.nm-social-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--nm-accent, #2563eb);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}


.nm-social-search__submit:hover {
  background: color-mix(in srgb, var(--nm-accent, #2563eb) 88%, #000);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--nm-accent, #2563eb) 28%, transparent);
}


.nm-social-search__form.is-busy .nm-social-search__submit,
.nm-social-search__form.is-busy .nm-social-search__field {
  opacity: 0.72;
  pointer-events: none;
}


.nm-social-search__results {
  display: grid;
  gap: 22px;
}


.nm-social-search__prompt {
  padding: 20px 4px;
  text-align: center;
  color: color-mix(in srgb, currentColor 65%, transparent);
  font-size: 0.875rem;
  line-height: 1.5;
}


.nm-social-search__prompt p {
  margin: 0;
}


.nm-social-search__empty {
  padding: 26px 20px;
  border-radius: 18px;
  text-align: center;
  background: color-mix(in srgb, currentColor 3%, transparent);
  border: 1px dashed color-mix(in srgb, currentColor 18%, transparent);
  color: color-mix(in srgb, currentColor 70%, transparent);
}


.nm-social-search__empty p {
  margin: 0;
}


.nm-social-search__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 4px;
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, currentColor 65%, transparent);
}


.nm-social-search__tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}


.nm-social-search__tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
  will-change: transform;
}


.nm-social-search__tab:hover {
  background: color-mix(in srgb, currentColor 6%, transparent);
}


.nm-social-search__tab:focus-visible {
  outline: 2px solid var(--nm-accent, #2563eb);
  outline-offset: 2px;
}


.nm-social-search__tab.is-active {
  background: var(--nm-accent, #2563eb);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--nm-accent, #2563eb) 24%, transparent);
}


.nm-social-search__tab-label {
  display: inline-block;
  white-space: nowrap;
}


.nm-social-search__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 30%, transparent);
  font-weight: 600;
}


.nm-social-search__tab.is-active .nm-social-search__tab-count {
  background: color-mix(in srgb, #fff 20%, transparent);
  color: #fff;
}


@media (max-width: 767px) {
  .nm-social-search__tabs {
    width: 100%;
    display: flex;
    border-radius: 14px;
  }
  .nm-social-search__tab {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.8125rem;
  }
}


.nm-social-search__list {
  display: grid;
  gap: 12px;
}


/* Unified search user result cards */
.nm-search-result--user {
  border-radius: 16px;
  overflow: hidden;
  background: var(--nm-search-user-card-bg, color-mix(in srgb, currentColor 3%, transparent));
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
  will-change: transform;
}


.nm-search-result--user:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nm-accent, #2563eb) 35%, color-mix(in srgb, currentColor 12%, transparent));
  box-shadow: 0 10px 28px color-mix(in srgb, currentColor 10%, transparent);
}


.nm-search-result__user-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}


.nm-search-result__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.nm-search-result__avatar img {
  display: block;
  border-radius: 999px;
  width: 48px;
  height: 48px;
}


.nm-search-result__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}


.nm-search-result__title {
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--nm-search-user-name, inherit);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.nm-search-result__subtitle {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: color-mix(in srgb, currentColor 60%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.nm-search-result__member-number {
  margin: 2px 0 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.25;
  color: color-mix(in srgb, var(--nm-accent, #2563eb) 75%, color-mix(in srgb, currentColor 55%, transparent));
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Unified search post result cards */
.nm-search-result--post {
  border-radius: 16px;
  overflow: hidden;
  background: var(--nm-search-post-card-bg, color-mix(in srgb, currentColor 3%, transparent));
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
  will-change: transform;
}


.nm-search-result--post:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--nm-accent, #2563eb) 35%, color-mix(in srgb, currentColor 12%, transparent));
  box-shadow: 0 10px 28px color-mix(in srgb, currentColor 10%, transparent);
}


.nm-search-result__post-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}


.nm-search-result--post .nm-search-result__avatar img {
  width: 40px;
  height: 40px;
}


.nm-search-result__title-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  line-height: 1.25;
}


.nm-search-result__post-author {
  font-weight: 600;
  color: inherit;
}


.nm-search-result__post-date {
  color: color-mix(in srgb, currentColor 58%, transparent);
  white-space: nowrap;
}


.nm-search-result__post-media-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--nm-accent, #2563eb);
  background: color-mix(in srgb, var(--nm-accent, #2563eb) 12%, transparent);
  margin-left: 2px;
}


.nm-search-result__post-excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 82%, transparent);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


@media (max-width: 767px) {
  .nm-search-result__post-link {
    padding: 12px 14px;
    gap: 12px;
  }
  .nm-search-result__post-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}


/* Notification Centre: Tabs + Follow Requests tabbed sections */
.nm-notifications-center__tabs.nm-nc-tabs {
  display: inline-flex;
  align-items: stretch;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
}


.nm-notifications-center__panel {
  display: block;
}


.nm-notifications-center__panel .nm-notifications {
  min-width: 0;
}


.nm-notifications__item {
  min-height: 64px;
}


.nm-notifications__item:focus-visible,
.nm-notifications__remove:focus-visible,
.nm-nc-tabs__tab:focus-visible,
.nm-follow-requests__action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--nm-accent, #2563eb) 70%, transparent);
  outline-offset: 2px;
}


@media (max-width: 767px) {
  .nm-notifications-center__tabs.nm-nc-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 4px;
    margin: 0 0 14px;
    border-radius: 14px;
    background: var(--nm-notification-modal-content-bg, var(--nm-overlay-modal-bg));
  }
  .nm-notifications__item,
  .nm-follow-requests__row {
    border-radius: 14px;
  }
  .nm-notifications__item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
  }
  .nm-notifications__avatar,
  .nm-notifications__icon {
    width: 40px;
    height: 40px;
  }
  .nm-notifications__avatar img {
    width: 40px;
    height: 40px;
  }
  .nm-notifications__body {
    padding-right: 20px;
  }
  button.nm-notifications__remove {
    width: 44px;
    height: 44px;
    margin: 0;
    align-self: center;
  }
}


.nm-notifications-center__subheader {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 4px 2px;
}


.nm-follow-widget__incoming-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}


.nm-follow-widget--layout-column .nm-follow-widget__incoming-actions {
  width: 100%;
  flex-direction: row;
}


.nm-follow-widget__button--accept.is-primary {
  background: var(--nm-accent, #2563eb);
  color: #fff;
  border-color: var(--nm-accent, #2563eb);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--nm-accent, #2563eb) 22%, transparent);
}


.nm-follow-widget__button--deny.is-subtle {
  background: color-mix(in srgb, currentColor 6%, transparent);
}


.nm-follow-widget.is-processing {
  opacity: 0.65;
  pointer-events: none;
}


body .nm-social-feed__composer textarea,
body .nm-social-composer textarea,
body .nm-social-post__comment-input,
body .nm-messages__composer textarea {
  border-radius: 12px !important;
  padding: 12px 14px !important;
}


body .nm-social-feed__sort select {
  border-radius: 12px !important;
  padding: 12px 36px 12px 14px !important;
  min-height: 40px !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}


.nm-social-post__content--truncated {
  max-height: 8em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}


.nm-social-post__content--expanded {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
}


.nm-social-post__read-more {
  padding-top: 4px;
}


.nm-social-post__read-more-link {
  color: inherit;
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.88em;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.15s ease;
}


.nm-social-post__read-more-link:hover,
.nm-social-post__read-more-link:focus {
  opacity: 1;
  text-decoration: underline;
}

