:root {
  --bg: #000000;
  --bg-soft: #121212;
  --card: #171717;
  --line: #2a2a2a;
  --accent: #ff7f50;
  --text: #f4f4f4;
  --muted: #b8b8b8;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --nd-fs-display: 24px;
  --nd-fs-footer: 12px;
  --nd-fs-small: 16px;
  --nd-fs-content: 20px;
  --nd-fs-button: 16px;
  --nd-z-content: 1;
  --nd-z-topbar: 200;
  --nd-forum-sidebar-width: 280px;
  --nd-forum-layout-gap: 24px;
  --nd-btn-height: 48px;
  --nd-surface-bg: radial-gradient(circle at 80% -40%, rgba(255, 127, 80, 0.32), rgba(255, 127, 80, 0) 48%),
    linear-gradient(180deg, #221812, #161010);
  --nd-surface-border: rgba(255, 127, 80, 0.28);
  --nd-page-head-bg: rgba(255, 127, 80, 0.24);
  --nd-page-head-border: rgba(255, 127, 80, 0.55);
  --nd-poll-pct-width: 30px;
  --nd-surface-light-bg: #f5f5f5;
  --nd-surface-light-border: rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: #000000;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--text);
  font: var(--nd-fs-content)/1.45 "Segoe UI", "Inter", Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-nd-nav] {
  height: auto;
  max-height: none;
  overflow-y: auto;
}

.nd-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.nd-page-bg__photo {
  position: absolute;
  inset: -4%;
  background-color: #000000;
  background-image: var(--nd-bg-desktop, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
  filter: blur(4px);
}

.nd-page-bg__glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 8% 12%, rgba(255, 127, 80, 0.14) 0%, rgba(255, 127, 80, 0) 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 127, 80, 0.1) 0%, rgba(255, 127, 80, 0) 26%);
  backdrop-filter: blur(2px) saturate(1.08);
  -webkit-backdrop-filter: blur(2px) saturate(1.08);
}

@media (max-width: 900px) {
  .nd-page-bg__photo {
    background-image: var(--nd-bg-mobile, var(--nd-bg-desktop, none));
  }
}

body > main,
body > .site-footer {
  position: relative;
  z-index: var(--nd-z-content);
}

body > .topbar {
  position: relative;
  z-index: var(--nd-z-topbar);
}

main[data-nd-main] {
  transition: opacity 0.24s ease, transform 0.24s ease;
}

main[data-nd-main].nd-nav-leave {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

main[data-nd-main].nd-nav-enter {
  opacity: 0;
  transform: translateY(10px);
}

body.nd-nav-busy {
  cursor: progress;
}

body.nd-nav-busy main[data-nd-main] {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  main[data-nd-main] {
    transition: none;
  }

  main[data-nd-main].nd-nav-leave,
  main[data-nd-main].nd-nav-enter {
    transform: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1 0 auto;
  width: 100%;
  isolation: isolate;
}

.container {
  width: min(1400px, 94vw);
  margin: 0 auto;
}

.container--home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 22px;
}

.container--home > .home-section,
.container--home > .home-row {
  min-width: 0;
}

.home-row {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.home-row--forum-poll {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.home-row--media {
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: start;
}

.home-col--left {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.home-section--videos,
.home-section--chat,
.home-monitoring,
.home-section--topics,
.home-section--poll {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-section--chat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-chat-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-section--topics {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-section--poll {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-poll-panel {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-section--videos {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: start;
  width: 100%;
  max-width: 100%;
}

.home-topic-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.home-section__title {
  margin: 0 0 14px;
  font-size: var(--nd-fs-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--nd-z-topbar);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.topbar .container {
  position: relative;
}

.topbar__inner {
  display: flex;
  align-items: center;
  min-height: 100px;
  gap: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 100px;
}

.brand__logo {
  display: block;
  height: 72px;
  width: auto;
}

.brand__logo--mobile {
  display: none;
}

.menu {
  flex: 1 1 auto;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: stretch;
  width: 100%;
}

.menu > .menu-link,
.menu > .dropdown {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.menu > .dropdown > .menu-link {
  width: 100%;
  justify-content: center;
}

.menu-link,
.menu-link.menu-link--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  padding: 8px 4px;
  background: transparent;
  color: #ffffff;
  font-size: var(--nd-fs-display);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-link:hover,
.menu-link.menu-link--btn:hover {
  color: #ffffff;
  opacity: 0.88;
  background: transparent;
  border-color: transparent;
}

.menu-link.is-active {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}

.dropdown {
  position: relative;
  z-index: 1;
}

.dropdown.is-open {
  z-index: 2;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 220px;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}

.dropdown__menu a {
  display: block;
  padding: 12px 14px;
  font-size: var(--nd-fs-content);
  border-bottom: 1px solid #242424;
}

.dropdown__menu a:last-child {
  border-bottom: 0;
}

.dropdown.is-open .dropdown__menu {
  display: block;
}

.mobile-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: var(--nd-fs-display);
}

.home-block,
.nd-surface {
  background: var(--nd-surface-bg);
  border: 1px solid var(--nd-surface-border);
  border-radius: var(--radius);
  padding: 16px;
}

.nd-surface-light {
  background: var(--nd-surface-light-bg);
  border: 1px solid var(--nd-surface-light-border);
  border-radius: var(--radius);
  color: #111;
}

.page-stack {
  display: grid;
  gap: 22px;
  padding: 22px 0 28px;
}

/* Unified action button: 20% icon strip + 80% label (play / TG CTA style) */
.nd-btn,
.nd-play-btn {
  display: grid;
  grid-template-columns: 20% 80%;
  align-items: stretch;
  box-sizing: border-box;
  min-height: var(--nd-btn-height);
  height: var(--nd-btn-height);
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.28);
  backdrop-filter: blur(12px) saturate(1.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  color: #ffffff;
  font-size: var(--nd-fs-button);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 18px rgba(255, 127, 80, 0.45);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  overflow: hidden;
}

.nd-btn:hover,
.nd-play-btn:hover {
  color: #ffffff;
  background: rgba(18, 18, 18, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 6px 22px rgba(255, 127, 80, 0.55);
}

.nd-btn__icon-zone,
.nd-play-btn__icon-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: var(--accent);
  color: #ffffff;
}

.nd-btn__icon-zone svg,
.nd-play-btn__icon-zone svg,
.nd-play-btn__icon {
  display: block;
  flex-shrink: 0;
  color: #ffffff;
}

.nd-btn__label,
.nd-play-btn__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.nd-btn--block,
.nd-play-btn--block {
  width: 100%;
}

.nd-btn--fit,
.nd-play-btn--fit {
  width: auto;
  min-width: clamp(140px, 28vw, 220px);
}

.nd-btn--fit .nd-btn__label,
.nd-play-btn--fit .nd-play-btn__label {
  padding: 0 16px;
}

.nd-btn--ghost {
  background: rgba(12, 12, 12, 0.18);
  border-color: rgba(255, 127, 80, 0.45);
}

.nd-btn--ghost .nd-btn__icon-zone {
  background: rgba(255, 127, 80, 0.35);
}

.nd-btn--no-icon {
  grid-template-columns: 1fr;
}

.nd-btn--no-icon .nd-btn__icon-zone {
  display: none;
}

.nd-btn--wide {
  min-width: clamp(180px, 36vw, 280px);
}

button.nd-btn,
label.nd-btn {
  appearance: none;
  cursor: pointer;
}

label.nd-btn {
  display: grid;
}

/* Legacy .btn — map to compact nd style inside newdesign main */

.home-monitoring {
  margin-bottom: 0;
}

.home-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.home-topic-item {
  display: grid;
  grid-template-columns: 10% 60% 30%;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #2b2b2b;
}

.home-topic-item__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--accent);
}

.home-topic-item__ico svg,
.home-topic-item__ico img {
  display: block;
  width: clamp(28px, 2.2vw, 36px);
  height: auto;
  max-width: 100%;
}

.home-topic-item:last-child {
  padding-bottom: 14px;
}

.home-topic-item__title {
  display: block;
  font-size: var(--nd-fs-content);
  font-weight: 700;
  line-height: 1.32;
  margin: 0;
  min-width: 0;
}

.home-topic-item__title:hover {
  color: var(--accent);
}

.home-topic-item__title:has(.nd-nick):hover,
.home-topic-item__title:has(> a.nd-nick):hover {
  color: inherit;
}

.home-topic-item__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.home-topic-item__author-row {
  display: grid;
  grid-template-columns: 20% 80%;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-topic-item__avatar-link {
  display: block;
  line-height: 0;
}

.home-topic-item__avatar {
  display: block;
  width: 100%;
  max-width: 36px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-topic-item__date {
  font-size: var(--nd-fs-small);
  font-weight: 600;
  color: #e8e8e8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-topic-item__author {
  font-size: var(--nd-fs-small);
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

.home-video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  cursor: pointer;
}

.home-video-card__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.15);
}

.home-video-card__play.nd-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: auto;
  min-width: min(88%, 168px);
}

.home-video-card__play.nd-play-btn:hover {
  transform: translate(-50%, -50%) translateY(-1px);
}

.home-video-card.is-playing .home-video-card__play {
  opacity: 0;
  pointer-events: none;
}

.home-video-card__mute {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  cursor: pointer;
}

.home-video-card__mute-icon--off {
  display: none;
}

.home-video-card__mute[aria-pressed="true"] .home-video-card__mute-icon--on {
  display: none;
}

.home-video-card__mute[aria-pressed="true"] .home-video-card__mute-icon--off {
  display: block;
}

.home-video-card__expand {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-family: inherit;
  font-size: var(--nd-fs-footer);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.home-video-card__expand span {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .home-video-card__expand span {
    display: none;
  }
}

body.nd-video-lightbox-open {
  overflow: hidden;
}

.nd-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.nd-video-lightbox[hidden] {
  display: none !important;
}

.nd-video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}

.nd-video-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(calc(min(92vh, 900px) * 9 / 16), calc(100vw - 32px));
  aspect-ratio: 9 / 16;
  max-height: min(92vh, 900px);
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.nd-video-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.nd-video-lightbox__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: top;
}

@media (max-width: 700px) {
  .nd-video-lightbox {
    padding: 12px;
  }

  .nd-video-lightbox__close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
  }

  .nd-video-lightbox__panel {
    width: min(calc((100vh - 24px) * 9 / 16), calc(100vw - 24px));
    max-height: calc(100vh - 24px);
  }
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}

.server-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111111 center / cover no-repeat;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.server-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card__poster {
  transition: opacity 0.25s ease;
}

.server-card__video {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.server-card:hover .server-card__video {
  opacity: 1;
}

.server-card:hover .server-card__poster {
  opacity: 0;
}

.server-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75));
  pointer-events: none;
  z-index: 1;
}

.server-card__title {
  position: absolute;
  left: clamp(6px, 0.6vw, 10px);
  right: clamp(6px, 0.6vw, 10px);
  bottom: clamp(52px, 5.5vw, 72px);
  z-index: 2;
  font-size: var(--nd-fs-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-card__players {
  position: absolute;
  top: clamp(6px, 0.7vw, 12px);
  right: clamp(6px, 0.7vw, 12px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: clamp(3px, 0.35vw, 6px) clamp(6px, 0.6vw, 10px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: var(--nd-fs-small);
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.server-card__actions {
  position: absolute;
  left: clamp(6px, 0.6vw, 10px);
  right: clamp(6px, 0.6vw, 10px);
  bottom: clamp(6px, 0.6vw, 10px);
  z-index: 2;
}

.server-card__play.nd-play-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
  font-size: clamp(10px, 2vw, 12px);
  grid-template-columns: 36px minmax(0, 1fr);
}

.server-card__play.nd-play-btn.nd-play-btn--fit {
  min-width: 0;
  width: 100%;
}

.server-card__play.nd-play-btn .nd-play-btn__label {
  padding: 0 4px;
  min-width: 0;
  overflow: hidden;
}

.server-card__play.nd-play-btn .nd-play-btn__label span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card__play.nd-play-btn:hover {
  transform: translateY(-1px);
}

.server-card__actions {
  box-sizing: border-box;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-section--news {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.home-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #2b2b2b;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-news-card__date {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 7px 11px;
  background: var(--accent);
  color: #ffffff;
  font-size: var(--nd-fs-small);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 0 10px 0 0;
  pointer-events: none;
}

.home-news-card:hover {
  border-color: rgba(255, 127, 80, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 127, 80, 0.12);
}

.home-news-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding-right: clamp(72px, 18vw, 118px);
}

.home-news-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--accent);
}

.home-news-card__ico svg {
  display: block;
  width: clamp(28px, 2.2vw, 36px);
  height: auto;
}

.home-news-card__title {
  margin: 0;
  min-width: 0;
  font-size: var(--nd-fs-content);
  font-weight: 700;
  line-height: 1.32;
}

.home-news-card:hover .home-news-card__title {
  color: var(--accent);
}

.home-news-card__text {
  --home-news-preview-lh: 1.45;
  margin: 0;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--nd-fs-small);
  line-height: var(--home-news-preview-lh);
  max-height: calc(var(--home-news-preview-lh) * 3 * 1em);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  word-break: normal;
  overflow-wrap: break-word;
}

.home-tg-chat,
.home-chat-panel,
.nd-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #ff7f50 #111111;
}

.home-tg-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  padding: 0 6px 0 2px;
}

.home-tg-chat::-webkit-scrollbar,
.home-chat-panel::-webkit-scrollbar,
.nd-scrollbar::-webkit-scrollbar {
  width: 12px;
}

.home-tg-chat::-webkit-scrollbar-button,
.home-chat-panel::-webkit-scrollbar-button,
.nd-scrollbar::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.home-tg-chat::-webkit-scrollbar-track,
.home-chat-panel::-webkit-scrollbar-track,
.nd-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 127, 80, 0.12);
  border-radius: 999px;
}

.home-tg-chat::-webkit-scrollbar-thumb,
.home-chat-panel::-webkit-scrollbar-thumb,
.nd-scrollbar::-webkit-scrollbar-thumb {
  background-color: #080808;
  background-clip: padding-box;
  border: 2px solid #ff7f50;
  border-radius: 999px;
  min-height: 56px;
  box-shadow: 0 0 8px rgba(255, 127, 80, 0.55);
}

.home-tg-chat::-webkit-scrollbar-thumb:hover,
.home-chat-panel::-webkit-scrollbar-thumb:hover,
.nd-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #121212;
  border-color: #ff9a72;
  box-shadow: 0 0 10px rgba(255, 127, 80, 0.75);
}

.home-tg-chat__msg {
  flex-shrink: 0;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #2b2b2b;
}

.home-tg-chat__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 8px;
}

.home-tg-chat__head strong {
  font-size: var(--nd-fs-content);
  font-weight: 700;
  line-height: 1.32;
  color: #ffffff;
}

.home-tg-chat__time {
  font-size: var(--nd-fs-small);
  font-weight: 400;
  line-height: 1.32;
  color: var(--muted);
}

.home-tg-chat__text {
  font-size: var(--nd-fs-content);
  line-height: 1.32;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.home-tg-chat__text p {
  margin: 0 0 0.5em;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.home-tg-chat__text p:last-child {
  margin-bottom: 0;
}

.home-tg-chat__text code {
  font-family: Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 3px;
}

.home-tg-chat__media img {
  max-width: min(100%, 280px);
  height: auto;
  margin-top: 6px;
  border-radius: 6px;
}

.home-tg-chat__cta-wrap {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 12px;
}

.nd-poll-block--home {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
}

.nd-poll-block--home .nd-poll-form,
.nd-poll-block--home .nd-poll-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}

.nd-poll-block--home .nd-poll-form > .nd-poll-view,
.nd-poll-block--home > .nd-poll-view {
  flex: 1 1 auto;
  min-height: 0;
}

.nd-poll-block--home .home-topic-list.nd-poll-results {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.nd-poll-block--home .home-poll-item .home-topic-item__meta {
  display: none;
}

.nd-poll-block--home .nd-poll-results {
  cursor: default;
}

.nd-poll-block--home .nd-poll-results .home-poll-item {
  min-height: 0;
  align-items: stretch;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.nd-poll-block--home .nd-poll-results .home-poll-item:not(.home-poll-item--question):not(.home-poll-item--vote) {
  grid-template-columns: 10% minmax(0, 1fr) var(--nd-poll-pct-width);
  gap: 10px 0;
  padding-right: 0;
}

.nd-poll-block--home .home-poll-item--vote {
  padding: 0;
}

.nd-poll-block--home .home-poll-item__vote-btn {
  display: grid;
  grid-template-columns: 10% minmax(0, 1fr) var(--nd-poll-pct-width);
  gap: 10px 14px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.nd-poll-block--home .home-poll-item__vote-btn:hover {
  background: rgba(255, 127, 80, 0.08);
}

.nd-poll-block--home .home-poll-item__vote-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nd-poll-block--home .home-poll-item__vote-btn .home-topic-item__ico {
  color: var(--accent);
}

.nd-poll-block--home .home-poll-item__pct-zone--slot {
  align-self: stretch;
  width: var(--nd-poll-pct-width);
  min-width: var(--nd-poll-pct-width);
  max-width: var(--nd-poll-pct-width);
  min-height: 0;
  margin: -10px -16px -10px 0;
  pointer-events: none;
}

.nd-poll-block--home .nd-poll-results .home-poll-item--question {
  grid-template-columns: 10% minmax(0, 1fr);
  border-color: #2b2b2b;
}

.nd-poll-block--home .nd-poll-results .home-poll-item--question .home-topic-item__title {
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-poll-block--home .nd-poll-results .home-poll-item__pct-zone {
  grid-column: 3;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nd-poll-pct-width);
  min-width: var(--nd-poll-pct-width);
  max-width: var(--nd-poll-pct-width);
  margin: -10px 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--accent);
  border-radius: 0 9px 9px 0;
  overflow: hidden;
  pointer-events: none;
}

.nd-poll-block--home .nd-poll-results .home-poll-item__pct-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
}

.nd-poll-block--home .nd-poll-results .home-topic-item__title {
  display: flex;
  align-items: center;
  min-height: 0;
  cursor: default;
}

.home-poll-item__avatar-ph {
  display: block;
  width: 100%;
  max-width: 36px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.home-poll-item__author-ph,
.home-poll-item__date-ph {
  visibility: hidden;
}

.home-poll-item--question .home-topic-item__title {
  font-weight: 700;
}

.home-tg-chat__cta.nd-play-btn {
  width: 100%;
}

.home-tg-chat__cta.nd-play-btn:hover {
  transform: translateY(-1px);
}

.home-tg-chat__cta .nd-play-btn__icon-zone svg {
  width: 18px;
  height: 18px;
}

.nd-news-article__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.nd-news-article__title.nd-page-head {
  margin: 0;
  width: 100%;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.2;
}

.nd-news-article__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

.nd-news-article__meta {
  margin: 0;
  font-size: var(--nd-fs-small);
}

.nd-news-article__body {
  font-size: var(--nd-fs-content);
  line-height: 1.55;
  word-break: break-word;
  display: flow-root;
}

.nd-news-article__body::after {
  content: "";
  display: block;
  clear: both;
}

.nd-news-page__back {
  margin-bottom: 4px;
}

.nd-news-article__like-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.nd-news-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 127, 80, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.nd-news-like-btn.is-liked {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 127, 80, 0.15);
}

.nd-news-like-btn--guest {
  opacity: 0.55;
  cursor: default;
}

.nd-news-like-count {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(255, 127, 80, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: var(--nd-fs-button);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.nd-news-like-count:hover {
  border-color: var(--accent);
  background: rgba(255, 127, 80, 0.12);
}

.nd-news-article__body img,
.nd-news-article__body .sa-news-media-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: 10px;
}

/* Первое видео слева, текст обтекает с той же верхней линии */
.nd-news-article__body > .sa-bbcode-align:first-child {
  float: left;
  width: min(100%, clamp(200px, 32%, 360px));
  max-width: clamp(200px, 32%, 360px);
  margin: 0 18px 12px 0;
  padding: 0;
  text-align: left;
}

.nd-news-article__body > .sa-bbcode-align:first-child + br,
.nd-news-article__body > .sa-news-media-video:first-child + br,
.nd-news-article__body > .sa-bbcode-video:first-child + br {
  display: none;
}

.nd-news-article__body > .sa-bbcode-align:first-child .sa-news-media-video,
.nd-news-article__body > .sa-bbcode-align:first-child video {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.nd-news-article__body > .sa-news-media-video:first-child,
.nd-news-article__body > video.sa-news-media-video:first-child,
.nd-news-article__body > .sa-bbcode-video:first-child {
  float: left;
  width: min(100%, clamp(200px, 32%, 360px));
  max-width: clamp(200px, 32%, 360px);
  margin: 0 18px 12px 0;
}

.nd-news-article__body .sa-news-media-video,
.nd-news-article__body video.sa-news-media-video {
  display: block;
  width: min(100%, clamp(160px, 28vw, 360px));
  max-width: clamp(160px, 28vw, 360px);
  aspect-ratio: 9 / 16;
  height: auto;
  margin: 14px 0;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

.nd-news-article__body > .sa-bbcode-align:first-child .sa-news-media-video,
.nd-news-article__body > .sa-bbcode-align:first-child video,
.nd-news-article__body > .sa-news-media-video:first-child,
.nd-news-article__body > video.sa-news-media-video:first-child {
  margin-top: 0;
  margin-bottom: 0;
}

.nd-news-recent__title {
  margin: 0 0 14px;
  font-size: var(--nd-fs-display);
}

.nd-news-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nd-news-recent__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.nd-news-recent__link:hover {
  border-color: rgba(255, 127, 80, 0.45);
}

.nd-news-recent__link-title {
  min-width: 0;
  font-weight: 700;
}

.nd-news-recent__link-date {
  flex-shrink: 0;
  font-size: var(--nd-fs-small);
  white-space: nowrap;
}

.news-list-block {
  display: grid;
  gap: 14px;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: var(--nd-fs-content);
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--nd-fs-small);
}

.topic-list,
.forum-table {
  width: 100%;
  border-collapse: collapse;
}

.topic-list td,
.forum-table td,
.forum-table th {
  border-bottom: 1px solid #252525;
  padding: 10px 8px;
  text-align: left;
}

.forum-table th {
  color: #ffb899;
  font-size: var(--nd-fs-small);
  font-weight: 600;
}

.forum-table td.muted {
  color: #e8e0dc;
}

.forum-table .num {
  width: 72px;
  text-align: center;
}

.forum-table .ico {
  width: 36px;
  text-align: center;
  color: var(--accent);
}

.forum-th__icon {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.forum-th__label {
  display: inline;
}

.forum-page,
.nd-forum-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--nd-forum-sidebar-width);
  gap: var(--nd-forum-layout-gap);
  padding: 22px 0 28px;
  align-items: start;
}

.forum-categories {
  display: grid;
  gap: 18px;
}

/* Заголовки страниц/блоков: один компактный стиль (без «пустого» запаса по высоте) */
[data-nd-nav] :is(h1, h2, h3, h4).nd-page-head,
.forum-cat__title,
.nd-page-head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 12px;
  min-height: 0;
  line-height: 1.2;
  border-radius: 10px;
  background: var(--nd-page-head-bg);
  border: 1px solid var(--nd-page-head-border);
  font-size: var(--nd-fs-display);
  font-weight: 700;
  color: #ffffff;
}

.page-stack > :is(h1, h2, h3).nd-page-head,
.page-stack > .nd-page-head {
  align-self: start;
  width: 100%;
}

.nd-page-block > .nd-page-head:last-child,
.nd-page-block > .nd-page-head:only-child {
  margin-bottom: 0;
}

.forum-cat__title a:hover,
.nd-page-head a:hover {
  color: var(--accent);
}

.nd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 16px;
  border-bottom: 2px solid rgba(255, 127, 80, 0.35);
}

.nd-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  margin-bottom: -2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--nd-fs-small);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.nd-tabs__tab:hover {
  background: rgba(255, 127, 80, 0.12);
  color: #ffffff;
}

.nd-tabs__tab.is-active {
  background: rgba(255, 127, 80, 0.22);
  border-color: rgba(255, 127, 80, 0.45);
  color: #ffffff;
}

.nd-tabs__tab:disabled {
  opacity: 0.45;
  cursor: default;
}

.forum-table-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 127, 80, 0.3);
  background: rgba(255, 127, 80, 0.06);
}

.sidebar-widget {
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 80% -40%, rgba(255, 127, 80, 0.28), rgba(255, 127, 80, 0) 48%),
    linear-gradient(180deg, #221812, #161010);
  border: 1px solid rgba(255, 127, 80, 0.28);
  border-radius: 12px;
  padding: 14px;
}

.sidebar-widget h3 {
  margin: 0 0 10px;
  font-size: var(--nd-fs-content);
  font-weight: 700;
}

.online-stats {
  margin: 0 0 8px;
  font-size: var(--nd-fs-small);
}

.online-cloud {
  font-size: var(--nd-fs-small);
  line-height: 1.6;
}

.online-comma {
  color: var(--muted);
}

.plain-list {
  display: grid;
  gap: 8px;
}

.plain-list article,
.nd-card {
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #2b2b2b;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0 28px;
}

.project-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 16px;
  border: 1px solid #2c2c2c;
  overflow: hidden;
  background: #151515;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: rgba(255, 127, 80, 0.55);
  transform: translateY(-2px);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 127, 80, 0.35), rgba(255, 127, 80, 0) 36%),
    radial-gradient(circle at 80% 78%, rgba(255, 127, 80, 0.24), rgba(255, 127, 80, 0) 34%),
    linear-gradient(130deg, #252525, #090909);
}

/*.project-card::after {
  content: "PLACEHOLDER";
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: var(--nd-fs-small);
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 8px;
  pointer-events: none;
}*/

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.project-card--fit::before {
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 127, 80, 0.4), rgba(255, 127, 80, 0) 34%),
    radial-gradient(circle at 75% 40%, rgba(255, 220, 120, 0.16), rgba(255, 220, 120, 0) 40%),
    linear-gradient(125deg, #2a1f1a, #080808);
}

.project-card--lol::before {
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 127, 80, 0.45), rgba(255, 127, 80, 0) 32%),
    radial-gradient(circle at 25% 82%, rgba(255, 127, 80, 0.2), rgba(255, 127, 80, 0) 42%),
    linear-gradient(125deg, #271a16, #070707);
}

.project-card--co::before {
  background:
    radial-gradient(circle at 40% 16%, rgba(255, 127, 80, 0.28), rgba(255, 127, 80, 0) 38%),
    radial-gradient(circle at 86% 86%, rgba(255, 127, 80, 0.26), rgba(255, 127, 80, 0) 30%),
    linear-gradient(125deg, #1f1f1f, #080808);
}

.project-title {
  font-size: var(--nd-fs-display);
  font-weight: 800;
  text-align: center;
}

.project-desc {
  text-align: center;
  color: #f2d6cb;
  font-size: var(--nd-fs-small);
}

.admin-chapter {
  display: grid;
  gap: 14px;
}

.admin-chapter > h2 {
  margin: 0;
  font-size: var(--nd-fs-display);
}

.admin-chapter > h3 {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 127, 80, 0.22);
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.admin-chapter > h3:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-grid-stack {
  display: grid;
  gap: 16px;
}

.admin-grid--featured {
  grid-template-columns: repeat(var(--admin-grid-cols, 3), minmax(0, 1fr));
}

.admin-card {
  background: #111111;
  border: 1px solid #292929;
  border-radius: 14px;
  overflow: hidden;
}

.admin-photo {
  position: relative;
  min-height: 240px;
  background: linear-gradient(135deg, #292929, #151515);
}

.admin-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.admin-name {
  position: absolute;
  left: 12px;
  bottom: 52px;
  font-size: var(--nd-fs-display);
  font-weight: 800;
  line-height: 1.05;
  text-shadow: 0 3px 8px #000;
}

.admin-name a {
  color: inherit;
  text-decoration: none;
}

.admin-nick {
  position: absolute;
  left: 14px;
  bottom: 16px;
  font-size: var(--nd-fs-content);
}

.admin-meta {
  padding: 14px 12px;
  display: grid;
  gap: 8px;
}

.admin-meta__role {
  font-size: var(--nd-fs-content);
}

.admin-meta__about {
  margin: 0;
  font-size: var(--nd-fs-small);
  line-height: 1.45;
  color: #888;
}

.admin-meta__email {
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.admin-subchapter {
  margin: 18px 0 10px;
  font-size: var(--nd-fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-compact-grid--team-photo .admin-compact__av--team img {
  width: 72px;
  height: 96px;
  border-radius: 10px;
}

.admin-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-compact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(255, 127, 80, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
}

.admin-compact__av img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #222;
}

.admin-compact__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-compact__title,
.admin-compact__nick {
  font-size: var(--nd-fs-small);
  font-weight: 700;
}

.admin-compact__alias,
.admin-compact__real,
.admin-compact__role {
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.admin-compact__email {
  font-size: var(--nd-fs-small);
  color: #888;
}

.admin-dev-list {
  display: grid;
  gap: 10px;
}

.admin-dev-row {
  padding: 14px 16px;
  border: 1px solid rgba(255, 127, 80, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 4px;
}

.admin-dev-row__nick {
  font-size: var(--nd-fs-content);
  font-weight: 700;
}

.admin-dev-row__role {
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.admin-dev-row__email {
  font-size: var(--nd-fs-small);
  color: #888;
}

.admin-person {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #292929;
  border-radius: 12px;
  background: #0d0d0d;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-person__av img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #222;
}

.admin-person__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-person__meta > .nd-nick,
.admin-mini .nd-nick {
  font-size: var(--nd-fs-small);
}

.admin-person__real {
  color: var(--muted);
  font-size: var(--nd-fs-small);
}

.admin-person__email,
.admin-person__meta > a:not(.nd-nick) {
  font-size: var(--nd-fs-small);
  font-weight: 400;
  color: var(--muted);
  word-break: break-all;
}

.admin-server-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #292929;
  border-radius: 12px;
  background: #0a0a0a;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-server-block h3 {
  margin: 0;
  font-size: var(--nd-fs-display);
}

.admin-server-label {
  font-size: var(--nd-fs-small);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-mini {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.admin-mini img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

/* 5 групп: C-LEVEL · Менеджмент · Команда проекта · User · Banned */
.nd-nick.nd-g-adminportal {
  color: #ffffff;
  font-weight: 700;
  text-shadow:
    0 0 10px #ff7f50,
    0 0 22px rgba(255, 127, 80, 0.75),
    0 0 36px rgba(255, 160, 100, 0.45),
    0 2px 4px rgba(255, 100, 50, 0.55);
}
.nd-nick.nd-g-game-direction-curator,
.nd-nick.nd-g-mansrv {
  color: #ff7f50;
  font-weight: 400;
  text-shadow: none;
}
.nd-nick.nd-g-mod,
.nd-nick.nd-g-srv,
.nd-nick.nd-g-developers {
  color: #ffffff;
  font-weight: 400;
  text-shadow: none;
}
.nd-nick.nd-g-user {
  color: #8a8a8a;
  font-weight: 400;
  text-shadow: none;
}
.nd-nick.nd-g-banned {
  color: #555555;
  font-weight: 400;
  text-decoration: line-through;
  text-shadow: none;
}
.nd-nick.nd-g-clevel {
  color: #ffffff;
  font-weight: 700;
  text-shadow:
    0 0 10px #ff7f50,
    0 0 22px rgba(255, 127, 80, 0.75),
    0 0 36px rgba(255, 160, 100, 0.45),
    0 2px 4px rgba(255, 100, 50, 0.55);
}
.nd-nick.nd-g-management {
  color: #ff7f50;
  font-weight: 400;
  text-shadow: none;
}
.nd-nick.nd-g-project-team {
  color: #ffffff;
  font-weight: 400;
  text-shadow: none;
}

.muted {
  color: var(--muted);
}

.rules-content {
  color: var(--text);
  line-height: 1.6;
  font-size: var(--nd-fs-content);
}

.rules-content h2,
.rules-content h3 {
  margin-top: 1.2em;
  font-size: var(--nd-fs-display);
}

.nd-vacancies {
  display: grid;
  gap: 16px;
}

.nd-vacancies__top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: stretch;
}

.nd-vacancy-card {
  background:
    radial-gradient(circle at 80% -40%, rgba(255, 127, 80, 0.14), rgba(255, 127, 80, 0) 45%),
    #141414;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.nd-vacancy-card__title {
  margin: 0 0 10px;
  font-size: var(--nd-fs-display);
}

.nd-vacancy-card__line {
  margin: 6px 0;
  font-size: var(--nd-fs-content);
}

.nd-vacancy-card__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.nd-vacancy-card__cat {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 127, 80, 0.35);
  background: rgba(255, 127, 80, 0.1);
  font-size: var(--nd-fs-small);
}

.nd-vacancy-card__skills ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.nd-vacancies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nd-vacancies__filter-select {
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 12px;
  font: inherit;
  font-size: var(--nd-fs-content);
}

.nd-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.nd-form label {
  display: grid;
  gap: 6px;
  font-size: var(--nd-fs-content);
}

.nd-input,
.nd-form select,
.nd-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: var(--nd-fs-content);
}

.nd-form textarea {
  min-height: 90px;
  resize: vertical;
}

.nd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nd-poll-block {
  display: grid;
  gap: 8px;
}

.nd-poll-block__question {
  margin: 0;
}

.nd-poll-form {
  display: grid;
  gap: 12px;
}

.nd-poll-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--nd-fs-content);
  line-height: 1.35;
}

.nd-poll-form .nd-poll-option {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr) 20%;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.nd-poll-option__vote-btn {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr) 20%;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--nd-fs-content);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.nd-poll-option__vote-btn:hover {
  background: rgba(255, 127, 80, 0.08);
}

.nd-poll-option__vote-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nd-poll-option__vote-btn .nd-poll-option__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nd-btn-height);
  color: var(--accent);
}

.nd-poll-option__vote-btn .nd-poll-option__label {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-width: 0;
  font-weight: 700;
}

.nd-poll-results {
  display: grid;
  gap: 8px;
  cursor: default;
}

.nd-poll-results .nd-poll-option {
  display: grid;
  grid-template-columns: 20% minmax(0, 1fr) var(--nd-poll-pct-width);
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.nd-poll-results .nd-poll-option.is-chosen {
  border-color: rgba(255, 127, 80, 0.45);
}

.nd-poll-results .nd-poll-option__ico,
.nd-poll-results .nd-poll-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nd-btn-height);
  margin: 0;
  width: auto;
  height: auto;
  color: var(--accent);
}

.nd-poll-results .nd-poll-option__label {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  min-width: 0;
}

.nd-poll-results .nd-poll-option__pct-zone {
  grid-column: 3;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--nd-poll-pct-width);
  min-width: var(--nd-poll-pct-width);
  max-width: var(--nd-poll-pct-width);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--accent);
  border-radius: 0 9px 9px 0;
  overflow: hidden;
  pointer-events: none;
}

.nd-poll-results .nd-poll-option__pct {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
}

.nd-poll-option.is-chosen {
  border-color: rgba(255, 127, 80, 0.45);
}

.nd-poll-option__vote {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  cursor: pointer;
}

.nd-poll-option__vote input {
  flex-shrink: 0;
  accent-color: var(--accent);
}

.nd-poll-option__label {
  flex: 1;
  min-width: 0;
}

.nd-poll-option__pct {
  flex-shrink: 0;
  color: var(--muted);
}

.nd-poll-results .nd-poll-option__pct {
  color: inherit;
}

.nd-poll-check {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.nd-poll-check svg {
  display: block;
  width: 22px;
  height: 22px;
}

.nd-poll-form__submit.nd-btn {
  justify-self: stretch;
}

.nd-poll-note {
  margin: 0;
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.nd-bottom-nav {
  display: none;
}

.nd-bottom-nav__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  max-width: min(1400px, 94vw);
  margin: 0 auto;
}

.nd-bottom-nav__link,
.nd-bottom-nav__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}

.nd-bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.nd-bottom-nav__icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.nd-bottom-nav__link.is-active,
.nd-bottom-nav__btn.is-active {
  color: var(--accent);
}

.nd-bottom-nav__item {
  position: relative;
  display: flex;
  min-width: 0;
}

.nd-bottom-nav__menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
  z-index: 5;
}

.nd-bottom-nav__menu a {
  display: block;
  padding: 12px 14px;
  font-size: var(--nd-fs-content);
  border-bottom: 1px solid #242424;
}

.nd-bottom-nav__menu a:last-child {
  border-bottom: 0;
}

.nd-bottom-nav__item.is-open .nd-bottom-nav__menu {
  display: block;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 12px 32px;
  border-top: 1px solid #1a1a1a;
  background: #000000;
  color: #888;
  text-align: center;
  width: 100%;
}

.site-footer__social {
  margin: 0 0 8px;
  font-size: var(--nd-fs-footer);
  line-height: 1.5;
}

.site-footer__social a {
  color: #aaa;
}

.site-footer__social a:hover {
  color: var(--accent);
}

.site-footer__note {
  margin: 0;
  font-size: var(--nd-fs-footer);
  line-height: 1.45;
  color: #666;
}

@media (max-width: 1250px) {
  .server-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .projects-grid,
  .admin-grid,
  .admin-compact-grid,
  .nd-vacancies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --nd-bottom-nav-height: 72px;
    --nd-mobile-gutter: 3%;
  }

  html {
    min-height: 100dvh;
  }

  body[data-nd-nav] {
    min-height: 100dvh;
    padding-bottom: calc(var(--nd-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    overflow-x: clip;
  }

  body > main.container,
  body > main.container.container--home {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--nd-mobile-gutter);
    padding-right: var(--nd-mobile-gutter);
    overflow-x: clip;
  }

  body > .topbar .container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--nd-mobile-gutter);
    padding-right: var(--nd-mobile-gutter);
    box-sizing: border-box;
  }

  body > main.container > *,
  body > main.container .page-stack,
  body > main.container .admin-chapter,
  body > main.container .admin-server-block,
  body > main.container .admin-person,
  body > main.container .admin-mini-grid,
  body > main.container .admin-grid,
  body > main.container .admin-compact-grid {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body > main.container .admin-server-block {
    width: 100%;
    overflow-x: clip;
  }

  body > main.container .admin-person {
    width: 100%;
  }

  body > main.container .admin-person__meta,
  body > main.container .admin-person__meta a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body > main.container .admin-mini {
    min-width: 0;
    max-width: 100%;
  }

  body > main.container .admin-mini .nd-nick {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .site-footer {
    display: none;
  }

  body[data-nd-nav] > .nd-bottom-nav {
    display: block;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: var(--nd-z-topbar);
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #000000;
    border-top: 1px solid var(--line);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .nd-bottom-nav__inner {
    max-width: none;
    width: 100%;
    min-height: var(--nd-bottom-nav-height);
    box-sizing: border-box;
    padding-left: var(--nd-mobile-gutter);
    padding-right: var(--nd-mobile-gutter);
  }

  .nd-bottom-nav__link,
  .nd-bottom-nav__btn {
    justify-content: center;
    padding: 6px 2px;
    gap: 4px;
  }

  .nd-bottom-nav__text {
    font-size: 11px;
    line-height: 1.1;
  }

  .nd-bottom-nav__menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--nd-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    top: auto;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    border-radius: 14px 14px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
    z-index: calc(var(--nd-z-topbar) + 10);
    max-height: min(52vh, 340px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nd-bottom-nav__menu a,
  .nd-bottom-nav__menu-logout {
    padding: 14px var(--nd-mobile-gutter);
    font-size: var(--nd-fs-small);
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-nd-nav] .nd-page-head,
  body[data-nd-nav] .forum-cat__title,
  body[data-nd-nav] .nd-surface > .nd-page-head {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body[data-nd-nav] .nd-profile-head-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body[data-nd-nav] .nd-profile-head-row > .nd-page-head {
    width: 100%;
    margin-bottom: 0;
  }

  body[data-nd-nav] .nd-profile-head-tabs.nd-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-bottom: 16px;
  }

  body[data-nd-nav] .nd-profile-head-tabs .nd-tabs__tab {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  body[data-nd-nav] .nd-profile__avatar,
  body[data-nd-nav] .nd-profile-settings__avatar-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin-left: 0;
    margin-right: 0;
  }

  body[data-nd-nav] .nd-profile-settings__avatar-layout {
    grid-template-columns: 1fr;
  }

  body[data-nd-nav] .nd-profile-settings__avatar-preview {
    width: 100%;
  }

  body[data-nd-nav] .nd-profile-settings__avatar-pick-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-nd-nav] .nd-btn--fit,
  body[data-nd-nav] .nd-profile-settings .nd-btn,
  body[data-nd-nav] .nd-profile-settings label.nd-btn,
  body[data-nd-nav] .nd-profile-settings button.nd-btn,
  body[data-nd-nav] .nd-profile-compose .nd-btn {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  body[data-nd-nav] .nd-profile__pm {
    max-width: none;
  }

  body[data-nd-nav] .nd-profile__pm .nd-btn--profile-pm {
    width: auto;
    min-width: min(100%, 148px);
    max-width: 100%;
  }

  body[data-nd-nav] .nd-btn--fit .nd-btn__label,
  body[data-nd-nav] .nd-profile-settings .nd-btn__label {
    padding: 0 10px;
    font-size: clamp(12px, 3.2vw, var(--nd-fs-button));
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .topbar__inner {
    justify-content: center;
    min-height: 0;
    padding: 10px 0;
  }

  .brand {
    margin-right: 0;
  }

  .brand__logo--default {
    display: none;
  }

  .brand__logo--mobile {
    display: block;
    height: auto;
    max-height: 64px;
    width: auto;
    max-width: min(300px, 82vw);
  }

  .menu,
  .mobile-toggle {
    display: none !important;
  }

  .container--home {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
  }

  .container--home > .home-section,
  .container--home > .home-row {
    width: 100%;
  }

  .home-monitoring {
    order: 1;
  }

  .home-section--news {
    order: 2;
  }

  .home-row--media {
    order: 3;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
  }

  .home-row--forum-poll {
    order: 4;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
  }

  .home-section--topics {
    order: 1;
  }

  .home-section--poll {
    order: 2;
  }

  .home-section--videos {
    order: 1;
    align-self: stretch;
    width: 100%;
  }

  .home-section--chat {
    order: 2;
  }

  .home-tg-chat__msg:nth-child(n + 6) {
    display: none;
  }

  .home-video-duo {
    width: 100%;
  }

  .server-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .server-card {
    position: relative;
    aspect-ratio: auto;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    box-shadow: none;
    background: #111111;
    border: 1px solid #2b2b2b;
    overflow: hidden;
  }

  .server-card__poster {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 1 !important;
    z-index: 0;
  }

  .server-card__video,
  .server-card__actions {
    display: none !important;
  }

  .server-card__overlay {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 55%, rgba(0, 0, 0, 0.68) 100%);
    pointer-events: none;
  }

  .server-card__title {
    position: absolute;
    left: 14px;
    right: 72px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 2;
    flex: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: var(--nd-fs-content);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
    pointer-events: none;
  }

  .server-card__players {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    margin: 0 0 0 auto;
    padding: 4px 10px;
    font-size: var(--nd-fs-small);
    align-self: center;
  }

  .home-topic-list .home-topic-item:nth-child(n + 6) {
    display: none;
  }

  .home-topic-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    align-items: center;
  }

  .home-topic-item__ico {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }

  .home-topic-item__ico svg,
  .home-topic-item__ico img {
    width: 28px;
  }

  .home-topic-item__title {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-topic-item__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }

  .home-topic-item__author-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-topic-item__avatar {
    max-width: 28px;
    width: 28px;
    flex-shrink: 0;
  }

  .home-topic-item__author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-topic-item__date {
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
  }

  .home-section--poll .home-poll-panel,
  .nd-poll-block--home,
  .nd-poll-block--home .nd-poll-form {
    min-height: auto;
    flex: none;
  }

  .nd-poll-block--home .nd-poll-view,
  .nd-poll-block--home .nd-poll-form {
    flex: none;
    min-height: auto;
  }

  .nd-poll-block--home .home-topic-list.nd-poll-results {
    display: grid;
    grid-template-rows: none;
    gap: 8px;
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .nd-poll-block--home .nd-poll-results .home-poll-item {
    flex: none;
    min-height: 44px;
    height: auto;
    overflow: hidden;
    grid-template-rows: auto;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px 10px;
  }

  .nd-poll-block--home .nd-poll-results .home-poll-item:not(.home-poll-item--question):not(.home-poll-item--vote) {
    grid-template-columns: 36px minmax(0, 1fr) var(--nd-poll-pct-width);
    gap: 8px 0;
    padding-right: 0;
  }

  .nd-poll-block--home .nd-poll-results .home-poll-item--question {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 10px 12px;
    gap: 8px 10px;
  }

  .nd-poll-block--home .home-poll-item--vote {
    padding: 0;
    grid-template-columns: none;
  }

  .nd-poll-block--home .home-poll-item__vote-btn {
    grid-template-columns: 36px minmax(0, 1fr) var(--nd-poll-pct-width);
    gap: 8px 0;
    padding: 10px 0 10px 12px;
  }

  .nd-poll-block--home .home-poll-item__pct-zone--slot {
    display: none;
  }

  .nd-poll-block--home .home-poll-item .home-topic-item__meta {
    display: none;
  }

  .nd-poll-block--home .nd-poll-results .home-poll-item__ico,
  .nd-poll-block--home .home-poll-item__vote-btn .home-topic-item__ico {
    grid-column: 1;
    grid-row: 1;
  }

  .nd-poll-block--home .nd-poll-results .home-topic-item__title,
  .nd-poll-block--home .nd-poll-results .home-poll-item--question .home-topic-item__title,
  .nd-poll-block--home .home-poll-item__vote-btn .home-topic-item__title {
    grid-column: 2;
    grid-row: 1;
    color: var(--text);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    min-height: auto;
    align-items: unset;
    line-height: 1.35;
  }

  .nd-poll-block--home .nd-poll-results .home-poll-item__pct-zone {
    grid-column: 3;
    grid-row: 1;
    align-self: stretch;
    margin: -10px 0;
    width: var(--nd-poll-pct-width);
    min-width: var(--nd-poll-pct-width);
    max-width: var(--nd-poll-pct-width);
    border-radius: 0 9px 9px 0;
  }

  .nd-poll-block--home .nd-poll-results .home-poll-item__pct-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
  }

  .nd-poll-results .nd-poll-option__pct-zone {
    margin: 0;
    align-self: stretch;
    border-radius: 0 9px 9px 0;
  }

  .nd-poll-results .nd-poll-option__pct {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
  }

  .home-video-duo {
    grid-template-columns: 1fr;
  }

  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-news-card__date {
    display: none;
  }

  .home-news-card__head {
    padding-right: 0;
  }

  .forum-page,
  .nd-vacancies__top {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .forum-page > *,
  .forum-categories,
  .forum-cat,
  .forum-page aside,
  .sidebar-widget {
    min-width: 0;
    max-width: 100%;
  }

  .forum-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .forum-table {
    table-layout: fixed;
    width: 100%;
  }

  .forum-table thead {
    display: none;
  }

  .nd-forums-table thead {
    display: table-header-group;
  }

  .nd-forums-table thead tr {
    display: table-row;
  }

  .nd-forums-table thead th {
    display: table-cell;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 127, 80, 0.22);
    vertical-align: middle;
  }

  .nd-forums-table .forum-th__label {
    display: none !important;
  }

  .nd-forums-table .forum-th__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .nd-forums-table .forum-th__svg {
    width: 18px;
    height: 18px;
  }

  .nd-forums-table tbody tr {
    display: table-row;
    grid-template-columns: none;
    grid-template-areas: none;
    gap: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nd-forums-table tbody tr + tr {
    border-top: 1px solid rgba(255, 127, 80, 0.12);
  }

  .nd-forums-table tbody td {
    display: table-cell;
    padding: 10px 6px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 127, 80, 0.12);
  }

  .nd-forums-table tbody td.ico {
    display: table-cell;
    width: 36px;
    text-align: center;
  }

  .nd-forums-table tbody td.num,
  .nd-forums-table tbody td.forum-td--poster,
  .nd-forums-table tbody td.forum-td--date {
    display: table-cell !important;
  }

  .nd-forums-table tbody td.forum-td--title {
    font-size: var(--nd-fs-small);
    min-width: 0;
  }

  .nd-forums-table tbody td.num {
    font-size: var(--nd-fs-small);
    text-align: center;
    white-space: nowrap;
  }

  .nd-forums-table tbody td.forum-td--date {
    font-size: var(--nd-fs-small);
    white-space: nowrap;
  }

  .nd-topics-table thead {
    display: none !important;
  }

  .nd-topics-table,
  .nd-topics-table thead,
  .nd-topics-table tbody,
  .nd-topics-table tbody tr {
    display: block;
    width: 100%;
  }

  .nd-forums-table {
    display: table;
    width: 100%;
  }

  .nd-forums-table tbody {
    display: table-row-group;
    width: 100%;
  }

  .nd-topics-table tbody tr {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas: "ico title";
    gap: 10px;
    align-items: center;
    padding: 12px 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 127, 80, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
  }

  .nd-topics-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .nd-topics-table tbody td {
    display: block;
    border: 0;
    padding: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nd-topics-table tbody td.ico {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: ico;
    width: 36px;
    min-width: 36px;
    color: var(--accent);
  }

  .nd-topics-table tbody td.ico svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .nd-topics-table tbody td.num,
  .nd-topics-table tbody td.forum-td--replies,
  .nd-topics-table tbody td.forum-td--views,
  .nd-topics-table tbody td.forum-td--poster,
  .nd-topics-table tbody td.forum-td--date {
    display: none !important;
  }

  .nd-topics-table tbody td.forum-td--title {
    grid-area: title;
    grid-column: auto;
    font-size: var(--nd-fs-small);
    line-height: 1.35;
    min-width: 0;
  }

  .nd-topics-table tbody td.forum-td--title a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
  }

  .nd-topics-table tbody td.forum-td--title a:hover {
    color: var(--accent);
  }

  .nd-topics-table tbody td.forum-td--poster,
  .nd-topics-table tbody td.forum-td--date {
    grid-area: poster;
    min-width: 0;
    font-size: var(--nd-fs-small);
  }

  .forum-td__poster {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .forum-td__avatar-link {
    flex-shrink: 0;
    line-height: 0;
  }

  .forum-td__avatar {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .forum-td__nick {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .forum-td__nick:hover {
    color: var(--accent);
  }

  .forum-td__empty {
    color: var(--muted);
  }

  .nd-poll-block--home .home-poll-item__pct-value,
  .nd-poll-results .nd-poll-option__pct-zone,
  .nd-poll-results .nd-poll-option__pct {
    color: #ffffff;
  }

  .nd-profile-tabs.nd-tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    border-bottom: 0;
  }

  .nd-profile-tabs .nd-tabs__tab {
    width: 100%;
    margin-bottom: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
  }

  .nd-profile-tabs .nd-tabs__tab.is-active {
    border-color: rgba(255, 127, 80, 0.45);
  }

  .nd-profile-comment.home-topic-item {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }

  .nd-profile-comment .home-topic-item__ico {
    grid-row: 1;
    align-self: start;
  }

  .nd-profile-comment .home-topic-item__title {
    grid-column: 2;
    grid-row: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }

  .nd-profile-comment .nd-profile-comment__body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nd-profile-comment .home-topic-item__meta:empty {
    display: none;
  }

  .nd-profile-comment .nd-profile-comment__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
  }

  .nd-profile-comment .nd-profile-comment__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .nd-profile-comment .nd-profile-comment__actions .nd-pc-action {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
  }

  /* Опрос в сайдбаре: только главная форума; на главной сайта — блок .home-section--poll */
  .nd-forum-page aside .sidebar-widget--poll {
    display: none;
  }

  .nd-forum-page.nd-forum-page--index aside .sidebar-widget--poll {
    display: block;
  }

  /* Поиск в сайдбаре: только главная форума */
  .nd-forum-page aside .nd-search-widget {
    display: none;
  }

  .nd-forum-page.nd-forum-page--index aside .nd-search-widget {
    display: block;
  }

  .nd-forum-page:has(.forum-cat--no-topics) aside > .sidebar-widget:not(.sidebar-widget--poll):not(.nd-search-widget) {
    display: none;
  }

  .nd-forum-topics-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  .nd-forum-topics-head .forum-cat__title {
    width: 100%;
    margin-bottom: 0;
    font-size: var(--nd-fs-display);
    line-height: 1.2;
  }

  .nd-forum-topics-head .sa-forum-btn,
  .nd-forum-topics-head__new {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: center;
  }

  .nd-pm-item {
    grid-template-columns: 30% minmax(0, 70%);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    align-items: start;
  }

  .nd-pm-item__avatar {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: stretch;
  }

  .nd-pm-item__avatar img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1;
  }

  .nd-pm-item__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .forum-page,
  .nd-forum-page {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .forum-categories {
    gap: 12px;
  }

  .nd-forum-page aside {
    margin-top: 0;
  }

  .nd-forum-page aside .sidebar-widget:first-child {
    margin-top: 0;
  }

  .nd-forum-admin .sa-adm-section > form > p > .sa-btn-vb,
  .nd-forum-admin .sa-adm-section > form > p > .nd-btn,
  .nd-forum-admin .sa-adm-section form .nd-form__submit {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: grid !important;
  }

  .nd-forum-legacy .sa-thread-header__toolbar,
  .nd-forum-legacy .sa-thread-actions-top,
  .nd-forum-legacy .sa-post-foot__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
  }

  .nd-forum-legacy .sa-thread-toolbar-form,
  .nd-forum-legacy .sa-post-foot__form {
    display: block;
    width: 100%;
    margin: 0;
  }

  .nd-forum-legacy .sa-forum-btn,
  .nd-forum-legacy button.sa-forum-btn,
  .nd-forum-legacy a.sa-forum-btn,
  .nd-forum-legacy .sa-thread-header__toolbar .sa-forum-btn,
  .nd-forum-legacy .sa-post-foot__actions .sa-forum-btn {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .nd-forum-legacy .sa-post-usercell {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  .nd-forum-legacy .sa-profile-row--posts,
  .nd-forum-legacy .sa-profile-row--legacy,
  .nd-forum-legacy .sa-profile-row--thanks,
  .nd-forum-legacy .sa-profile-row--online,
  .nd-forum-legacy .sa-profile-row--social,
  .nd-forum-legacy .sa-rep-brackets {
    display: none !important;
  }

  .nd-forum-admin > .nd-tabs,
  .nd-forum-admin .nd-tabs--sub {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    border-bottom: 0;
    margin-bottom: 12px;
  }

  .nd-forum-admin .nd-tabs__tab {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    border-bottom: 1px solid transparent;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .nd-forum-admin .nd-tabs__tab.is-active {
    border-color: rgba(255, 127, 80, 0.45);
  }

  .nd-forum-admin .sa-adm-list-row,
  .nd-admin-news-row,
  .nd-admin-post-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nd-forum-admin .sa-adm-list-row form,
  .nd-forum-admin .sa-adm-list-row .sa-btn-vb,
  .nd-forum-admin .sa-adm-list-row .nd-btn,
  .nd-admin-news-row__actions,
  .nd-admin-news-row__actions .nd-btn,
  .nd-admin-news-row__actions form,
  .nd-admin-news-row__actions .nd-btn--fit,
  .nd-admin-post-row__delete,
  .nd-admin-post-row__delete .nd-btn,
  .nd-admin-post-row__delete .sa-btn-vb {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  .nd-forum-admin .sa-adm-list-row .sa-btn-vb,
  .nd-forum-admin .sa-adm-list-row button.sa-btn-vb,
  .nd-forum-admin .sa-adm-list-row input.sa-btn-vb[type="submit"] {
    display: grid !important;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .nd-forum-admin .sa-adm-list-row > a.sa-btn-vb {
    display: grid !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    text-decoration: none;
  }

  .nd-admin-news-row__actions {
    flex-direction: column;
    align-items: stretch;
    position: static;
    width: 100%;
  }

  .nd-admin-news-row__info {
    width: 100%;
  }

  .nd-admin-news-row__actions .nd-btn,
  .nd-admin-news-row__actions .nd-btn--fit {
    position: static;
    display: grid;
    min-width: 0 !important;
  }

  .nd-admin-post-row {
    flex-direction: column;
    align-items: stretch;
  }

  .nd-admin-post-row__info {
    width: 100%;
    min-width: 0;
  }

  .nd-admin-news-row__form {
    display: block;
    width: 100%;
  }

  .admin-person__meta > a:not(.nd-nick) {
    font-size: var(--nd-fs-small);
    font-weight: 400;
    color: var(--muted);
    word-break: break-all;
  }

  .admin-mini-grid--no-photo {
    margin-top: 0;
  }

  .nd-profile-guests__nick.nd-g-user {
    color: #8a8a8a !important;
    font-weight: 400 !important;
  }

  #nd-tab-topics .home-topic-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  #nd-tab-topics .home-topic-item__ico,
  #nd-tab-topics .home-topic-item__meta,
  #nd-tab-topics .home-topic-item__title .muted {
    display: none !important;
  }

  #nd-tab-topics .home-topic-item__title {
    display: block;
    min-width: 0;
    margin: 0;
  }

  #nd-tab-topics .home-topic-item__title a {
    display: block;
    color: #fff;
    font-size: var(--nd-fs-small);
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #nd-tab-posts .nd-profile-post-item__thumb,
  #nd-tab-posts .nd-profile-post-item__date,
  #nd-tab-posts .nd-profile-post-snippet {
    display: none !important;
  }

  #nd-tab-posts .nd-profile-posts,
  #nd-tab-posts .nd-profile-post-item,
  #nd-tab-posts .nd-profile-post-item__body {
    min-width: 0;
    max-width: 100%;
  }

  #nd-tab-posts .nd-profile-post-item {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    overflow: hidden;
    box-sizing: border-box;
  }

  #nd-tab-posts .nd-profile-post-item__body {
    min-width: 0;
  }

  #nd-tab-posts .nd-profile-post-item__title {
    display: block;
    color: #fff;
    font-size: var(--nd-fs-small);
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #nd-tab-posts .nd-profile-post-item__title:hover {
    color: #fff;
  }

  #nd-tab-reputation .home-topic-item__meta,
  #nd-tab-reputation .home-topic-item__title > div {
    display: none !important;
  }

  #nd-tab-reputation .home-topic-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  #nd-tab-reputation .home-topic-item__title a.nd-nick {
    font-weight: inherit;
    text-decoration: none;
  }

  #nd-tab-reputation .home-topic-item__title a.nd-nick.nd-g-user {
    color: #8a8a8a !important;
    font-weight: 400 !important;
  }

  .nd-forum-legacy .sa-post-table,
  .nd-forum-legacy .sa-post-table tbody,
  .nd-forum-legacy .sa-post-table tr,
  .nd-forum-legacy .sa-post-usercell,
  .nd-forum-legacy .sa-post-maincell {
    display: block;
    width: 100%;
  }

  .nd-forum-legacy .sa-post-usercell {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 127, 80, 0.15);
  }

  .nd-pm-item__name {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
  }

  .nd-pm-item__date {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    white-space: normal;
    line-height: 1.3;
  }

  .nd-pm-item__preview {
    grid-column: 1 / -1;
    grid-row: 2;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.4em * 3);
  }
}

@media (max-width: 700px) {
  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .admin-grid,
  .admin-compact-grid,
  .admin-mini-grid,
  .nd-vacancies__grid {
    grid-template-columns: 1fr;
  }
}

/* —— Tools / Nanobanana —— */
.nd-tools-page {
  padding: 28px 0 48px;
  font-size: var(--nd-fs-content);
  line-height: 1.45;
}

main.nd-tools-page.page-stack {
  padding: 16px 0 32px;
  gap: 14px;
}

.nd-tools-title {
  margin: 0 0 24px;
  font-size: var(--nd-fs-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nd-tools-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.nd-tools-crumb a {
  color: var(--accent);
  text-decoration: none;
}

.nd-tools-crumb a:hover {
  text-decoration: underline;
}

.nd-tools-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.nd-tools-limit-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: var(--nd-fs-content);
  font-weight: 700;
  white-space: nowrap;
}

.nd-tools-btn {
  min-height: 48px;
  padding: 12px 28px;
  font-size: var(--nd-fs-button);
  letter-spacing: 0.04em;
}

.nd-tools-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.nd-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.nd-tools-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 127, 80, 0.35);
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nd-tools-card--compact {
  padding: 16px 14px;
  gap: 8px;
}

.nd-tools-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.nd-tools-card__icon {
  font-size: 48px;
  line-height: 1;
}

.nd-tools-card__title {
  margin: 0;
  font-size: var(--nd-fs-display);
  font-weight: 700;
}

.nd-tools-card__desc {
  margin: 0;
  font-size: var(--nd-fs-small);
  color: var(--muted);
  flex: 1 1 auto;
  min-height: 2.6em;
}

.nd-tools-card__btn,
.nd-tools-card > .nd-btn {
  align-self: flex-start;
  margin-top: auto;
}

.nd-tools-card__btn.nd-btn {
  text-decoration: none;
}

.nd-tools-panel {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(23, 23, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nd-nb-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nd-nb-label {
  display: block;
  font-size: var(--nd-fs-content);
  font-weight: 600;
  margin-bottom: 8px;
}

.nd-nb-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.nd-nb-fieldset .nd-nb-label {
  margin-bottom: 12px;
}

.nd-nb-textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font: inherit;
  font-size: var(--nd-fs-content);
  resize: vertical;
}

.nd-nb-textarea:focus {
  outline: 2px solid rgba(255, 127, 80, 0.55);
  border-color: var(--accent);
}

.nd-nb-aspect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.nd-nb-aspect {
  cursor: pointer;
  display: flex;
}

.nd-nb-aspect input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nd-nb-aspect__box {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
  padding: 18px 12px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nd-nb-aspect input:checked + .nd-nb-aspect__box {
  border-color: var(--accent);
  background: rgba(255, 127, 80, 0.12);
}

.nd-nb-aspect__frame-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
}

.nd-nb-aspect__frame {
  display: block;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.nd-nb-aspect__frame--916 {
  width: 36px;
  height: 64px;
}

.nd-nb-aspect__frame--169 {
  width: 64px;
  height: 36px;
}

.nd-nb-aspect__frame--11 {
  width: 48px;
  height: 48px;
}

.nd-nb-aspect__text {
  font-size: var(--nd-fs-content);
  font-weight: 600;
}

.nd-nb-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.nd-nb-file__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.nd-nb-file__btn {
  cursor: pointer;
  margin: 0;
}

.nd-nb-file__name {
  font-size: var(--nd-fs-small);
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-nb-upload-preview {
  position: relative;
  display: inline-block;
  margin-top: 12px;
  max-width: 100%;
}

.nd-nb-upload-preview img {
  display: block;
  max-width: min(100%, 320px);
  max-height: 240px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.nd-nb-upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: var(--nd-fs-display);
  line-height: 1;
  cursor: pointer;
}

.nd-nb-hint {
  margin: 8px 0 0;
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.nd-nb-submit {
  align-self: flex-start;
  cursor: pointer;
}

.nd-nb-error {
  margin: 0;
  font-size: var(--nd-fs-content);
  color: #ff6b6b;
}

.nd-nb-loader[hidden],
.nd-nb-result[hidden],
.nd-nb-error[hidden],
.nd-nb-upload-preview[hidden] {
  display: none !important;
}

.nd-nb-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 24px;
  margin-top: 24px;
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.78);
  border: 1px solid rgba(255, 127, 80, 0.25);
}

.nd-nb-loader__text {
  margin: 0;
  font-size: var(--nd-fs-display);
  font-weight: 600;
}

.nd-nb-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 127, 80, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: nd-nb-spin 0.9s linear infinite;
}

@keyframes nd-nb-spin {
  to {
    transform: rotate(360deg);
  }
}

.nd-nb-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(23, 23, 23, 0.78);
  border: 1px solid rgba(255, 127, 80, 0.35);
}

.nd-nb-result__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.nd-nb-result__download {
  text-decoration: none;
}

@media (max-width: 900px) {
  .nd-tools-page {
    padding-top: 20px;
  }

  .nd-nb-aspect-grid {
    grid-template-columns: 1fr;
  }

  .nd-nb-submit {
    width: 100%;
    align-self: stretch;
  }

  .nd-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Forum legacy inside newdesign shell */
.nd-forum-legacy {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.nd-forum-legacy--boxed {
  background: rgba(18, 18, 18, 0.35);
  border: 1px solid rgba(255, 127, 80, 0.2);
  border-radius: var(--radius, 14px);
  padding: 12px;
}

.nd-forum-legacy .sa-col-main,
.nd-forum-legacy td.sa-col-main,
.nd-forum-legacy div.sa-col-main {
  display: block;
  width: 100%;
  overflow: visible;
}

.nd-breadcrumbs {
  margin: 0 0 14px;
  font-size: 13px;
}

.nd-forum-topics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .forum-page,
  .nd-forum-page {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    flex-wrap: wrap;
  }
}

/* User menu — same flex as other top-level menu items */
.menu > .dropdown--user {
  flex: 1 1 0;
  min-width: 0;
}

.nd-user-menu__label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nd-user-menu__logout {
  margin: 0;
  padding: 0;
}

.nd-user-menu__logout-btn,
.nd-bottom-nav__menu-logout {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--accent, #ff7f50);
  font-size: var(--nd-fs-content);
  text-align: left;
  cursor: pointer;
}

.dropdown__menu .nd-user-menu__logout-btn:hover,
.nd-bottom-nav__menu-logout:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Login modal */
.nd-login-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.nd-login-modal[hidden] {
  display: none !important;
}

.nd-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.nd-login-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 24px 22px 20px;
  border-radius: var(--radius, 14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 16, 16, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.nd-login-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.nd-login-modal__title {
  margin: 0 0 16px;
  font-size: var(--nd-fs-display);
}

.nd-login-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.nd-login-form__label {
  font-size: var(--nd-fs-small);
  opacity: 0.85;
}

.nd-login-form .nd-btn--block {
  width: 100%;
  margin-top: 4px;
}

.nd-login-form__links {
  margin: 12px 0 0;
  text-align: center;
  font-size: var(--nd-fs-small);
}

.nd-login-form__sep {
  margin: 16px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nd-login-form__register {
  margin: 0;
}

.nd-login-form__register .nd-btn {
  width: 100%;
}

.nd-applications-guest__actions {
  margin: 16px 0 0;
}

/* Sidebar search */
.nd-search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nd-search-form__input {
  width: 100%;
}

.nd-search-form__btn {
  width: 100%;
}

/* Forum legacy forms in newdesign */
.nd-forum-legacy {
  color: var(--text);
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-outer-t,
.nd-forum-legacy table {
  width: 100%;
  border-collapse: collapse;
}

.nd-forum-legacy .sa-tcat {
  display: block;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: var(--nd-fs-content);
  font-weight: 700;
}

.nd-forum-legacy .sa-tcat a {
  color: var(--accent);
}

.nd-forum-legacy .sa-alt1,
.nd-forum-legacy .sa-alt2,
.nd-forum-legacy td.sa-alt1,
.nd-forum-legacy td.sa-alt2 {
  display: block;
  padding: 14px !important;
  background: transparent !important;
  border: none !important;
  color: var(--text);
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-small {
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-muted,
.nd-forum-legacy .muted {
  color: var(--muted);
}

.nd-forum-legacy a {
  color: var(--accent);
}

.nd-forum-legacy a.nd-btn,
.nd-forum-legacy a.nd-play-btn,
.nd-forum-legacy a.nd-btn:hover,
.nd-forum-legacy a.nd-play-btn:hover {
  color: #ffffff;
}

.nd-forum-legacy .sa-post-usercell .sa-username {
  margin-bottom: 6px;
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-post-usercell .sa-username a:not(.nd-nick) {
  color: #333;
  font-weight: 700;
}

.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-adminportal,
.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-clevel {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow:
    0 0 10px #ff7f50,
    0 0 22px rgba(255, 127, 80, 0.75),
    0 0 36px rgba(255, 160, 100, 0.45),
    0 2px 4px rgba(255, 100, 50, 0.55);
}

.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-game-direction-curator,
.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-mansrv,
.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-management {
  color: #ff7f50 !important;
  font-weight: 700;
  text-shadow: none;
}

.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-mod,
.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-srv,
.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-developers,
.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-project-team {
  color: #ffffff !important;
  font-weight: 400;
  text-shadow: none;
}

.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-user {
  color: #8a8a8a !important;
  font-weight: 400;
  text-shadow: none;
}

.nd-forum-legacy .sa-post-usercell .sa-username a.nd-nick.nd-g-banned {
  color: #888 !important;
  font-weight: 400;
  text-decoration: line-through;
  text-shadow: none;
}

.nd-forum-legacy .sa-post-usercell .sa-usertitle {
  margin-bottom: 6px;
}

.nd-forum-legacy .sa-post-usercell .sa-post-avatar {
  margin-top: 0;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 127, 80, 0.45);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.nd-forum-legacy .sa-post-usercell .sa-post-avatar img {
  border-radius: 10px;
}

.nd-forum-legacy .sa-usertitle {
  color: #fff;
  font-size: var(--nd-fs-small);
  font-weight: 400;
}

.nd-forum-legacy .sa-input,
.nd-forum-legacy .sa-input-vb,
.nd-forum-legacy input[type="text"],
.nd-forum-legacy input[type="password"],
.nd-forum-legacy input[type="search"],
.nd-forum-legacy input[type="email"],
.nd-forum-legacy input[type="number"],
.nd-forum-legacy textarea,
.nd-forum-legacy select {
  box-sizing: border-box;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy textarea {
  min-height: 120px;
  resize: vertical;
}

.nd-forum-legacy .sa-btn,
.nd-forum-legacy .sa-btn-vb,
.nd-forum-legacy button.sa-btn-vb,
.nd-forum-legacy input.sa-btn-vb,
.nd-forum-legacy button[type="submit"]:not(.nd-btn):not(.nd-user-menu__logout-btn):not(.nd-bottom-nav__menu-logout):not(.sa-forum-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: auto;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: var(--nd-fs-button);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.nd-forum-legacy .sa-btn-vb:hover,
.nd-forum-legacy .sa-btn:hover,
.nd-forum-legacy button.sa-btn-vb:hover {
  filter: brightness(1.08);
}

.nd-forum-legacy .sa-btn--primary {
  background: var(--accent);
}

.nd-forum-legacy .sa-form-errors {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.nd-forum-legacy .sa-form-error {
  color: #ff8a80;
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-notif {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line) !important;
}

.nd-forum-legacy .sa-notif--unread {
  background: rgba(255, 127, 80, 0.08);
  border-radius: 10px;
  padding: 12px 14px 12px;
}

.nd-forum-legacy .sa-notif__body,
.nd-forum-legacy .sa-notif__body--html {
  color: var(--text);
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-notif__body a,
.nd-forum-legacy .sa-notif__body--html a {
  color: var(--accent);
}

.nd-forum-legacy .sa-pm-inbox-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.nd-forum-legacy .sa-pm-inbox-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nd-forum-legacy .sa-pm-inbox-row--unread {
  background: rgba(255, 127, 80, 0.08);
}

.sa-forum-btn {
  --sa-forum-btn-pad: 7px;
  --sa-forum-btn-gap: 6px;
  --sa-forum-btn-ico: 18px;
  /* «Пожаловаться», Tahoma 12px ≈ 96px; −4px запас */
  --sa-forum-btn-label: 96px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: var(--sa-forum-btn-gap);
  width: calc(var(--sa-forum-btn-pad) * 2 + var(--sa-forum-btn-ico) + var(--sa-forum-btn-gap) + var(--sa-forum-btn-label));
  max-width: calc(var(--sa-forum-btn-pad) * 2 + var(--sa-forum-btn-ico) + var(--sa-forum-btn-gap) + var(--sa-forum-btn-label));
  min-width: calc(var(--sa-forum-btn-pad) * 2 + var(--sa-forum-btn-ico) + var(--sa-forum-btn-gap) + var(--sa-forum-btn-label));
  height: 28px;
  padding: 0 var(--sa-forum-btn-pad);
  border: 1px solid #a8a8a8;
  border-radius: 4px;
  background: linear-gradient(180deg, #fdfdfd 0%, #e3e3e3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 0 rgba(0, 0, 0, 0.08);
  color: #111 !important;
  font: 12px/1 Tahoma, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

.nd-forum-legacy button.sa-forum-btn,
.nd-forum-legacy a.sa-forum-btn,
button.sa-forum-btn,
a.sa-forum-btn {
  appearance: none;
  font-family: inherit;
  line-height: 1;
}

.sa-forum-btn:hover {
  filter: brightness(1.03);
}

.sa-forum-btn:active {
  background: linear-gradient(180deg, #ececec 0%, #d8d8d8 100%);
}

.sa-forum-btn:disabled,
.sa-forum-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.sa-forum-btn.is-static {
  cursor: default;
}

.sa-forum-btn.is-dim {
  opacity: 0.55;
  filter: grayscale(0.25);
}

.sa-forum-btn__ico {
  width: var(--sa-forum-btn-ico);
  height: var(--sa-forum-btn-ico);
  flex: 0 0 var(--sa-forum-btn-ico);
  display: grid;
  place-items: center;
  line-height: 0;
}

.sa-forum-btn__ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sa-forum-btn__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.nd-forum-legacy .sa-thread-topic-title {
  color: var(--text);
}

.nd-forum-legacy .sa-thread-topic-title.nd-page-head {
  margin: 0 0 14px;
  display: block;
}

.nd-forum-legacy .sa-thread-header {
  border-bottom-color: var(--line);
}

.nd-forum-legacy .sa-raffle-block {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.nd-forum-legacy .sa-raffle-block__header {
  padding: 10px 14px;
  font-size: var(--nd-fs-small);
  font-weight: 700;
  line-height: 1.35;
  color: #2a1408;
  background: #ffd18a;
  border-bottom: 1px solid rgba(255, 127, 80, 0.45);
}

.nd-forum-legacy .sa-raffle-block__body {
  padding: 12px 14px;
  font-size: var(--nd-fs-small);
  line-height: 1.45;
  color: #111;
  background: linear-gradient(180deg, #fff7ea 0%, #ffeccf 100%);
}

.nd-forum-legacy .sa-raffle-block__body,
.nd-forum-legacy .sa-raffle-block__body .sa-small,
.nd-forum-legacy .sa-raffle-block__body .sa-muted,
.nd-forum-legacy .sa-raffle-block__body p,
.nd-forum-legacy .sa-raffle-block__invite {
  color: #111 !important;
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-raffle-block__invite {
  margin: 0 0 8px;
  font-weight: 700;
}

.nd-forum-legacy .sa-raffle-block__body strong {
  color: #000;
  font-weight: 700;
}

/* BBCode toolbar — ND: чёрный фон, одинаковый размер, белые иконки */
body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcode-tb,
body[data-nd-nav] .sa-bbcode-toolbar .sa-smiley-toggle,
body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcolor-toggle,
body[data-nd-nav] .sa-bbcode-toolbar .sa-bbsize-toggle,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcode-tb,
.nd-forum-legacy .sa-bbcode-toolbar .sa-smiley-toggle,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcolor-toggle,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbsize-toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111 !important;
  color: #fff !important;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  vertical-align: middle;
}

body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcode-tb:hover,
body[data-nd-nav] .sa-bbcode-toolbar .sa-smiley-toggle:hover,
body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcolor-toggle:hover,
body[data-nd-nav] .sa-bbcode-toolbar .sa-bbsize-toggle:hover,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcode-tb:hover,
.nd-forum-legacy .sa-bbcode-toolbar .sa-smiley-toggle:hover,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcolor-toggle:hover,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbsize-toggle:hover {
  background: #1a1a1a !important;
  filter: none;
}

body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcode-tb svg,
body[data-nd-nav] .sa-bbcode-toolbar .sa-smiley-toggle svg,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcode-tb svg,
.nd-forum-legacy .sa-bbcode-toolbar .sa-smiley-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcode-tb svg,
body[data-nd-nav] .sa-bbcode-toolbar .sa-bbcode-tb svg text,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcode-tb svg,
.nd-forum-legacy .sa-bbcode-toolbar .sa-bbcode-tb svg text {
  color: #fff;
  fill: currentColor;
  stroke: currentColor;
}

.nd-forum-legacy .sa-bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.nd-forum-legacy .sa-autocomplete__list {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nd-forum-legacy .sa-autocomplete__item {
  padding: 8px 12px;
  font-size: var(--nd-fs-small);
  cursor: pointer;
}

.nd-forum-legacy .sa-autocomplete__item--active,
.nd-forum-legacy .sa-autocomplete__item:hover {
  background: rgba(255, 127, 80, 0.15);
}

.nd-forum-legacy .sa-adm {
  color: var(--text);
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-adm h3 {
  color: var(--text);
  border-bottom-color: var(--line);
  font-size: var(--nd-fs-content);
}

.nd-forum-legacy .sa-adm-tabs {
  border-bottom-color: var(--line);
}

.nd-forum-legacy .sa-adm-tab {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-adm-tab--active {
  background: rgba(255, 127, 80, 0.12);
  color: var(--text);
}

.nd-forum-legacy .sa-adm .sa-input-vb,
.nd-forum-legacy .sa-adm textarea.sa-input-vb,
.nd-forum-legacy .sa-adm select.sa-input-vb,
.nd-forum-legacy .sa-adm .sa-btn-vb {
  width: 100%;
  max-width: 420px;
}

.nd-forum-legacy .sa-adm textarea.sa-input-vb {
  max-width: 100%;
}

.nd-forum-legacy .sa-adm-list-row {
  border-top-color: var(--line);
}

.nd-forum-legacy .sa-notif__head {
  margin: 0 0 6px;
  font-size: var(--nd-fs-small);
}

.nd-forum-legacy .sa-notif__body {
  white-space: normal;
  margin: 0 0 10px;
}

.nd-forum-legacy__actions {
  margin: 0 0 12px;
}

.nd-forum-legacy__actions:last-child {
  margin-bottom: 0;
}

.nd-search-results {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.nd-search-results__item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nd-search-results__item:last-child {
  border-bottom: 0;
}

.nd-search-results__snippet {
  margin: 6px 0 0;
  font-size: var(--nd-fs-small);
  color: var(--muted, rgba(255, 255, 255, 0.65));
}

.nd-search-page__meta,
.nd-search-page__pager {
  margin-top: 12px;
}

.nd-notifications-page__all {
  margin-bottom: 16px;
}

.nd-notification {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nd-notification.is-unread {
  margin-left: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--accent, #ff7f50);
}

.nd-notifications-page__meta,
.nd-notifications-page__pager {
  margin: 0 0 14px;
}

.nd-notifications-page__pager {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.nd-notification__head {
  margin: 0 0 6px;
}

.nd-notification__body {
  margin: 0 0 10px;
  white-space: normal;
}

.nd-notification__read {
  margin: 0;
}

/* Forum admin (newdesign) */
.nd-forum-admin__body.sa-adm {
  color: var(--text);
  font-size: var(--nd-fs-content);
}

.nd-forum-admin__body.sa-adm h3,
.nd-forum-admin__body.sa-adm h4 {
  color: #ffffff;
  border-color: rgba(255, 127, 80, 0.35);
}

.nd-forum-admin__body .sa-input-vb,
.nd-forum-admin__body select.sa-input-vb,
.nd-forum-admin__body textarea.sa-input-vb {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 127, 80, 0.35);
  color: #fff;
  border-radius: 8px;
}

.nd-forum-admin__body .sa-adm-list-row {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Member profile (native) */
.nd-profile-wrap {
  margin-bottom: 24px;
}

.nd-profile-head-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 16px;
}

.nd-profile-head-row > .nd-page-head {
  width: 100%;
  margin-bottom: 0;
  align-self: stretch;
}

.nd-profile-head-row > .nd-profile-head-tabs {
  align-self: flex-start;
}

.nd-profile__pm {
  margin: 0 0 14px;
  max-width: 200px;
}

.nd-profile__pm .nd-btn--profile-pm {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.nd-profile__pm .nd-btn--profile-pm.nd-btn--fit {
  min-width: min(100%, 148px);
}

.nd-profile__grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: var(--nd-forum-layout-gap);
  align-items: start;
}

.nd-profile__nick {
  margin: 0 0 4px;
  font-size: var(--nd-fs-display);
  font-weight: 700;
}

.nd-profile__avatar {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  border: 2px solid rgba(255, 127, 80, 0.35);
  margin: 10px 0 16px;
}

.nd-profile-guests__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nd-profile-guests__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
  font-size: var(--nd-fs-small);
}

.nd-profile-guests__ava {
  display: block;
  width: 40px;
  flex-shrink: 0;
}

.nd-profile-guests__ava img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.nd-profile-guests__line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.nd-profile-guests__nick {
  font-weight: 700;
  line-height: 1.2;
}

.nd-profile-guests__when {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--nd-fs-small);
  line-height: 1.2;
}

.nd-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}

.nd-profile-stat {
  flex: 1 1 100px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 127, 80, 0.2);
  border-radius: 10px;
  text-align: center;
}

.nd-profile-stat__val {
  display: block;
  font-size: var(--nd-fs-display);
  font-weight: 700;
}

.nd-profile-panel {
  padding-top: 12px;
}

.nd-profile-panel[hidden] {
  display: none !important;
}

.nd-profile-comments {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.nd-profile-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.nd-profile-comment__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nd-profile-compose {
  margin-top: 16px;
}

.nd-profile-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nd-profile-award img {
  max-width: 80px;
  height: auto;
}

.nd-profile-pager {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-profile-settings .nd-form {
  margin-bottom: 16px;
}

.nd-profile-settings__hint {
  margin: 0 0 14px;
  font-size: var(--nd-fs-small);
  line-height: 1.45;
}

.nd-profile-settings__hint code {
  font-size: 0.92em;
}

.nd-profile-settings__label {
  display: block;
  margin: 0 0 8px;
  font-size: var(--nd-fs-small);
  font-weight: 600;
  color: var(--text);
}

.nd-profile-settings__avatar-layout {
  display: grid;
  grid-template-columns: minmax(72px, 20%) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
}

.nd-profile-settings__avatar-preview {
  width: 100%;
}

.nd-profile-settings__avatar-img {
  display: block;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 127, 80, 0.45);
}

.nd-profile-settings__avatar-actions {
  min-width: 0;
}

.nd-profile-settings__avatar-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.nd-profile-settings__or {
  margin: 12px 0;
  text-align: center;
  font-size: var(--nd-fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nd-profile-settings__btn-half {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.nd-profile-settings__btn-full {
  width: 100%;
  max-width: none;
}

.nd-profile-settings .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .nd-profile-settings__avatar-layout {
    grid-template-columns: 1fr;
  }

  .nd-profile-settings__avatar-img {
    width: 100%;
    max-width: none;
  }
}

.nd-profile-settings__steam-form .nd-input {
  width: 100%;
  margin-bottom: 14px;
}

.nd-profile-steam-rl {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 40px 14px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--nd-radius);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.nd-profile-steam-rl[hidden] {
  display: none;
}

.nd-profile-steam-rl__text {
  margin: 0;
  font-size: var(--nd-fs-small);
  line-height: 1.45;
}

.nd-profile-steam-rl__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 960px) {
  .nd-profile__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Bugfix batch: forum legacy, PM, profile, admin, forms ——— */

.nd-search-form__btn.nd-btn {
  width: 100%;
}

.nd-btn--wide {
  min-width: min(100%, 320px);
  width: auto;
  max-width: 100%;
}

.nd-btn--wide .nd-btn__label span {
  white-space: nowrap;
}

.nd-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
}

.nd-pager__nums {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.nd-pager__num,
.nd-pager__cur,
.nd-pager__gap,
.nd-pager__link {
  font-size: var(--nd-fs-small);
}

.nd-pager__cur {
  font-weight: 700;
  color: #fff;
}

.nd-pager__num,
.nd-pager__link {
  color: var(--accent);
  text-decoration: none;
}

.nd-pager__gap {
  color: var(--muted);
}

.nd-tabs--sub {
  margin-top: -8px;
}

.nd-forum-page,
.nd-forum-legacy {
  overflow: visible;
  max-height: none;
}

main[data-nd-main].nd-forum-page,
main[data-nd-main] .nd-forum-legacy {
  overflow: visible;
  height: auto;
  min-height: 0;
  max-height: none;
}

/* Forum posts — ND surface (variant 5) */
.nd-forum-legacy .sa-post-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 127, 80, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% -30%, rgba(255, 127, 80, 0.28), transparent 50%),
    linear-gradient(180deg, #221812, #121010);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.nd-forum-legacy .sa-post-table td {
  border: none;
  vertical-align: top;
}

.nd-forum-legacy .sa-post-usercell,
.nd-forum-legacy .sa-post-maincell {
  color: var(--text);
}

.nd-forum-legacy .sa-post-usercell {
  background: rgba(0, 0, 0, 0.25) !important;
  border-right: 1px solid rgba(255, 127, 80, 0.15) !important;
}

.nd-forum-legacy .sa-post-maincell {
  background: rgba(0, 0, 0, 0.18) !important;
}

.nd-forum-legacy .sa-profile-box {
  margin-top: 8px;
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 127, 80, 0.18);
}

.nd-forum-legacy .sa-profile-row {
  font-size: var(--nd-fs-small);
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 400;
}

.nd-forum-legacy .sa-profile-row:first-child {
  border-top: none;
}

.nd-forum-legacy .sa-profile-row > span,
.nd-forum-legacy .sa-profile-box .sa-profile-row span:first-child {
  color: #fff !important;
  font-weight: 400;
}

.nd-forum-legacy .sa-profile-row strong {
  color: #fff !important;
  font-weight: 700;
}

.nd-forum-legacy .sa-profile-row .sa-rep-inline,
.nd-forum-legacy .sa-profile-row .sa-rep-inline.sa-rep--pos,
.nd-forum-legacy .sa-profile-row .sa-rep-inline.sa-rep--neg,
.nd-forum-legacy .sa-profile-row .sa-rep-inline.sa-rep--zero,
.nd-forum-legacy .sa-profile-row button.sa-rep-inline--btn {
  color: #fff !important;
  font-weight: 700;
}

.nd-forum-legacy .sa-profile-row .sa-rep-bracket-link {
  color: #fff;
  font-weight: 400;
}

.nd-forum-legacy .sa-post-head {
  padding: 8px 14px;
  background: rgba(255, 127, 80, 0.1);
  color: #fff;
  font-size: var(--nd-fs-small);
  border-bottom: 1px solid rgba(255, 127, 80, 0.2);
}

.nd-forum-legacy .sa-post-head a {
  color: #ffb899 !important;
  font-weight: 700;
}

.nd-forum-legacy .sa-post-body {
  padding: 14px 16px 10px;
  color: #f0ebe8;
  font-size: var(--nd-fs-content);
  line-height: 1.45;
}

.nd-forum-legacy .sa-post-body,
.nd-forum-legacy .sa-post-body *:not(a):not(.sa-bbcode-quote):not(.sa-quote-head) {
  color: #f0ebe8;
  font-size: inherit;
}

.nd-forum-legacy .sa-post-body a {
  color: #7eb8ff;
}

.nd-forum-legacy .sa-post-body a.sa-bbcode-mention {
  color: #ffb899;
  font-weight: 600;
}

.nd-forum-legacy .sa-post-body .sa-bbcode-quote {
  border-color: rgba(255, 127, 80, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #e8e0dc;
}

.nd-forum-legacy .sa-post-sig,
.nd-forum-legacy .sa-post-thanks {
  color: var(--muted);
  border-top-color: rgba(255, 127, 80, 0.15);
}

.nd-forum-legacy .sa-post-foot {
  padding: 8px 14px 14px;
  background: transparent !important;
  border-top: 1px solid rgba(255, 127, 80, 0.2);
  font-size: var(--nd-fs-footer);
}

.nd-forum-legacy .sa-edited-mark,
.nd-forum-legacy .sa-post-foot__edited {
  color: var(--muted);
  font-size: var(--nd-fs-footer);
}

.nd-forum-legacy .sa-post-foot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nd-forum-legacy .sa-post-table.sa-post--highlight-new {
  animation: nd-post-highlight-pulse 2.5s ease-out 1;
}

@keyframes nd-post-highlight-pulse {
  0% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.45),
      0 0 0 3px rgba(255, 127, 80, 0.65);
  }

  100% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-forum-legacy .sa-post-table.sa-post--highlight-new {
    animation: none;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.45),
      0 0 0 2px rgba(255, 127, 80, 0.55);
  }
}

.nd-forum-legacy .sa-status-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: middle;
  background: url("/assets/img/icons/user-offline.svg") center / 12px 12px no-repeat;
}

.nd-forum-legacy .sa-status-icon--on {
  background-image: url("/assets/img/icons/user-online.svg");
}

.nd-forum-legacy .sa-rep-bracket-link {
  color: #ffb899;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.nd-forum-legacy .sa-rep-bracket-link:hover {
  text-decoration: underline;
}

.nd-forum-legacy .sa-forum-btn,
.nd-forum-legacy button.sa-forum-btn,
.nd-forum-legacy a.sa-forum-btn {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 20% 80%;
  align-items: stretch;
  width: auto;
  min-width: 120px;
  max-width: 100%;
  height: 36px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.28);
  box-shadow: none;
  color: #fff !important;
  font: 700 var(--nd-fs-button) / 1 "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  gap: 0;
}

.nd-forum-legacy .sa-post-foot .sa-forum-btn {
  background: rgba(12, 12, 12, 0.55) !important;
}

.nd-forum-legacy .sa-post-foot .sa-forum-btn__label {
  background: transparent;
}

.nd-forum-legacy .sa-forum-btn__ico {
  width: 100%;
  height: 100%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-sizing: border-box;
  color: #fff;
  background: var(--accent);
  border-radius: 8px 0 0 8px;
}

.nd-forum-legacy .sa-forum-btn__ico svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nd-forum-legacy .sa-forum-btn__ico svg path,
.nd-forum-legacy .sa-forum-btn__ico svg circle,
.nd-forum-legacy .sa-forum-btn__ico svg rect,
.nd-forum-legacy .sa-forum-btn__ico svg line {
  stroke: #fff !important;
  fill: none;
}

.nd-forum-legacy .sa-forum-btn__ico svg [fill]:not([fill="none"]) {
  fill: #fff !important;
  stroke: none;
}

.nd-forum-legacy .sa-forum-btn__label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-forum-legacy .sa-forum-btn:hover {
  filter: none;
  background: rgba(18, 18, 18, 0.36);
  box-shadow: 0 4px 14px rgba(255, 127, 80, 0.4);
}

.nd-forum-legacy .sa-forum-btn:active {
  background: rgba(8, 8, 8, 0.5);
}

.nd-forum-legacy .sa-forum-btn.is-dim,
.nd-forum-legacy .sa-forum-btn.is-static.is-dim {
  opacity: 0.5;
  filter: grayscale(0.2);
}

.nd-forum-legacy .sa-thread-actions-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nd-forum-legacy .sa-tcat .sa-btn--primary,
.nd-forum-legacy .sa-tcat .sa-pm-compose-link {
  float: none;
  display: inline-flex;
  margin-left: auto;
  font-size: var(--nd-fs-small);
  font-weight: 700;
  color: var(--accent) !important;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.nd-forum-legacy .sa-tcat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nd-forum-legacy .sa-pm-inbox-row {
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 127, 80, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.nd-forum-legacy .sa-pm-inbox-row--unread {
  border-color: rgba(255, 127, 80, 0.45);
  background: rgba(255, 127, 80, 0.1);
}

.nd-forum-legacy .sa-pm-inbox-row__partner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nd-forum-legacy .sa-pm-inbox-row__status {
  display: none;
}

.nd-forum-legacy .sa-pm-inbox-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.nd-forum-legacy .sa-pm-inbox-row__name {
  font-size: var(--nd-fs-content);
  font-weight: 700;
  line-height: 1.2;
}

.nd-forum-legacy .sa-pm-inbox-row__name .sa-g-user,
.nd-forum-legacy .sa-pm-inbox-row__name [class*="sa-g-"] {
  font-size: inherit;
}

.nd-forum-legacy .sa-pm-inbox-row__preview {
  font-size: var(--nd-fs-small);
  line-height: 1.4;
  color: var(--text);
}

.nd-forum-legacy .sa-pm-inbox-row__date {
  font-size: var(--nd-fs-small);
  white-space: nowrap;
}

.nd-forum-admin .sa-btn-vb,
.nd-forum-admin button.sa-btn-vb,
.nd-forum-admin input.sa-btn-vb[type="submit"] {
  box-sizing: border-box;
  display: inline-grid !important;
  grid-template-columns: 20% 80%;
  align-items: stretch;
  width: auto;
  min-width: 140px;
  max-width: 100%;
  min-height: 36px;
  height: auto;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.28) !important;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.nd-forum-admin .sa-btn-vb::before {
  content: "";
  background: var(--accent);
  border-radius: 8px 0 0 8px;
}

.nd-forum-admin .sa-adm-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nd-forum-admin .sa-adm-list-row form {
  display: inline-flex;
  margin: 0;
}

.nd-forum-admin .sa-adm-list-row .sa-btn-vb {
  min-width: 120px;
}

.nd-forum-admin .sa-news-editor-bar .sa-btn-vb,
.nd-forum-admin .sa-bbcode-toolbar--news .sa-btn-vb {
  display: inline-flex !important;
  width: auto !important;
  min-width: 36px;
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
  grid-template-columns: unset;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111 !important;
  color: var(--text) !important;
  font-size: 12px;
  font-weight: 600;
}

.nd-forum-admin .sa-news-editor-bar .sa-btn-vb::before,
.nd-forum-admin .sa-bbcode-toolbar--news .sa-btn-vb::before {
  content: none;
}

.admin-nick-plain,
.admin-chapter .nd-nick.admin-nick-plain {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.admin-compact-grid--no-photo,
.admin-mini-grid--no-photo {
  margin-top: 16px;
}

.rules-content .rules-strikearena > :first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.rules-content .rules-strikearena h2:first-child,
.rules-content .rules-strikearena h3:first-child {
  margin-top: 0.5em;
}

.nd-news-edit-page .nd-news-edit-toolbar.sa-bbcode-toolbar,
.nd-forum-admin .nd-news-edit-toolbar.sa-bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.nd-news-edit-page .nd-news-edit-toolbar .sa-bbcode-tb,
.nd-forum-admin .nd-news-edit-toolbar .sa-bbcode-tb,
.nd-news-edit-page .nd-news-edit-toolbar .sa-smiley-toggle,
.nd-forum-admin .nd-news-edit-toolbar .sa-smiley-toggle,
.nd-news-edit-page .nd-news-edit-toolbar .sa-bbcolor-toggle,
.nd-forum-admin .nd-news-edit-toolbar .sa-bbcolor-toggle,
.nd-news-edit-page .nd-news-edit-toolbar .sa-bbsize-toggle,
.nd-forum-admin .nd-news-edit-toolbar .sa-bbsize-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.nd-news-edit-page .nd-news-edit-toolbar .sa-bbcode-tb::before,
.nd-forum-admin .nd-news-edit-toolbar .sa-bbcode-tb::before {
  content: none;
}

.nd-news-edit-page .nd-news-edit-toolbar .sa-bbcode-tb svg,
.nd-news-edit-page .nd-news-edit-toolbar .sa-bbcode-tb svg text,
.nd-forum-admin .nd-news-edit-toolbar .sa-bbcode-tb svg,
.nd-forum-admin .nd-news-edit-toolbar .sa-bbcode-tb svg text {
  color: #fff;
  fill: currentColor;
  stroke: currentColor;
}

.nd-forum-admin .nd-news-admin-form .nd-input {
  width: 100%;
  box-sizing: border-box;
}

.nd-forum-admin .nd-news-admin-form .nd-form__submit {
  margin-top: 8px;
}

.nd-news-icon-toggle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 360px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.nd-news-icon-toggle__opt {
  margin: 0;
  cursor: pointer;
}

.nd-news-icon-toggle__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nd-news-icon-toggle__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 4px;
  background: rgba(12, 12, 12, 0.45);
  color: var(--accent);
}

.nd-news-icon-toggle__opt.is-active .nd-news-icon-toggle__ico {
  background: var(--accent);
  color: #fff;
}

.nd-news-publish-toggle {
  margin-bottom: 16px;
}

.nd-mic-toggle {
  display: inline-flex;
  max-width: 280px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
}

.nd-mic-toggle__opt {
  flex: 1 1 50%;
  margin: 0;
  cursor: pointer;
}

.nd-mic-toggle__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nd-mic-toggle__opt span {
  display: block;
  padding: 10px 18px;
  text-align: center;
  font-weight: 700;
  background: rgba(12, 12, 12, 0.45);
  color: var(--text);
}

.nd-mic-toggle__opt.is-active span {
  background: var(--accent);
  color: #fff;
}

.nd-form__submit {
  margin-top: 12px;
}

.nd-applications-page .nd-surface.nd-form {
  padding-bottom: 18px;
}

.nd-applications-page.page-stack {
  padding-top: 16px;
  padding-bottom: 12px;
  gap: 14px;
}

.nd-applications-page > .nd-page-head {
  margin-bottom: 0;
}

.nd-profile-post-snippet {
  margin-top: 6px;
  max-height: 5.5em;
  overflow: hidden;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}

.nd-profile-post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 14px;
  align-items: start;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #2b2b2b;
}

.nd-profile-post-item:has(.nd-profile-post-item__thumb) {
  grid-template-columns: auto 1fr auto;
}

.nd-profile-post-item__thumb {
  display: block;
  flex-shrink: 0;
}

.nd-profile-post-item__thumb img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2b2b2b;
}

.nd-profile-post-item__body {
  min-width: 0;
}

.nd-profile-post-item__title {
  display: block;
  font-size: var(--nd-fs-content);
  font-weight: 700;
  line-height: 1.32;
  color: var(--accent);
}

.nd-profile-post-item__title:hover {
  color: #ffb088;
}

.nd-profile-post-item__date {
  white-space: nowrap;
  font-size: var(--nd-fs-small);
  line-height: 1.4;
}

.nd-profile-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

@media (max-width: 640px) {
  .nd-profile-post-item {
    grid-template-columns: 1fr;
  }

  .nd-profile-post-item__date {
    grid-row: 1;
    justify-self: end;
  }
}

.nd-applications-page .nd-form.nd-surface {
  margin-bottom: 0;
}

.nd-steam-tool {
  max-width: none;
  width: 100%;
}

.nd-steam-tool.nd-page-block {
  min-height: 0;
  padding-bottom: 14px;
  align-self: start;
}

.nd-tools-page--steam .nd-page-block {
  min-height: 0;
}

.nd-steam-tool .sa-bbcode-steamcvt {
  margin: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.nd-steam-tool .sa-bbcode-steamcvt__head {
  display: none;
}

.nd-steam-tool .sa-bbcode-steamcvt__hint {
  color: var(--muted);
  margin: 0 0 10px;
}

.nd-steam-tool .sa-bbcode-steamcvt__in {
  flex: 1 1 200px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.nd-steam-tool .sa-bbcode-steamcvt__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.nd-steam-tool .sa-bbcode-steamcvt__go.nd-btn {
  flex-shrink: 0;
}

.nd-steam-tool .sa-bbcode-steamcvt__out[hidden] {
  display: none !important;
}

.nd-steam-tool .sa-bbcode-steamcvt__table {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.nd-steam-tool .sa-bbcode-steamcvt__table th {
  background: rgba(255, 127, 80, 0.12);
  color: var(--text);
}

.nd-steam-tool .sa-bbcode-steamcvt__table td,
.nd-steam-tool .sa-bbcode-steamcvt__table th {
  border-color: rgba(255, 255, 255, 0.1);
}

.nd-taskmanager-wrap {
  padding: 16px;
  overflow: visible;
}

.nd-taskmanager-wrap .sa-taskmanager-content {
  color: var(--text);
}

.nd-taskmanager-wrap .sa-task__board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.nd-taskmanager-wrap .sa-task-col {
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--nd-surface-border);
  background: rgba(0, 0, 0, 0.28);
  min-height: 160px;
}

.nd-taskmanager-wrap .sa-task-col > h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
  font-size: var(--nd-fs-content);
  color: #fff;
  pointer-events: none;
}

.nd-taskmanager-wrap .sa-task-col__body {
  min-height: 48px;
}

.nd-taskmanager-wrap .sa-task-card {
  position: relative;
  border: 1px solid rgba(255, 127, 80, 0.25);
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.72);
  padding: 10px 12px 12px;
  margin-bottom: 8px;
  cursor: grab;
  color: var(--text);
}

.nd-taskmanager-wrap .sa-task-card__title-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.nd-taskmanager-wrap .sa-task-card__title-link:hover {
  color: var(--accent);
}

.nd-taskmanager-wrap .sa-task-col--drag-over {
  box-shadow: inset 0 0 0 2px var(--accent);
}

@media (max-width: 900px) {
  .nd-taskmanager-wrap .sa-task__board {
    grid-template-columns: 1fr;
  }
}

/* TaskManager: формы, спойлер «Новая задача», BBCode */
.nd-taskmanager-wrap .nd-taskmanager-inner {
  font-size: var(--nd-fs-content);
  line-height: 1.45;
}

.nd-taskmanager-wrap .sa-task {
  gap: 16px;
}

.nd-taskmanager-wrap .sa-task-spoiler {
  border: 1px solid var(--nd-surface-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.nd-taskmanager-wrap .sa-task-spoiler > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: var(--nd-fs-content);
  font-weight: 700;
  color: #fff;
}

.nd-taskmanager-wrap .sa-task-spoiler > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.nd-taskmanager-wrap .sa-task-spoiler[open] > summary::before {
  content: "▾ ";
}

.nd-taskmanager-wrap .sa-task-spoiler > summary::-webkit-details-marker {
  display: none;
}

.nd-taskmanager-wrap .sa-task-spoiler__body {
  border-top: 1px solid var(--nd-surface-border);
  padding: 14px;
}

.nd-taskmanager-wrap .nd-task-form p,
.nd-taskmanager-wrap .nd-task-form .sa-task-form__field {
  margin: 0 0 12px;
}

.nd-taskmanager-wrap .sa-task-form__label {
  display: block;
  margin: 0 0 6px;
  font-size: var(--nd-fs-small);
  font-weight: 600;
  color: var(--text);
}

.nd-taskmanager-wrap .nd-task-form .sa-input-vb,
.nd-taskmanager-wrap .nd-task-form input.sa-input-vb,
.nd-taskmanager-wrap .nd-task-form select.sa-input-vb,
.nd-taskmanager-wrap .nd-task-form textarea.sa-input-vb {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  border: 1px solid var(--line) !important;
  background: #111 !important;
  color: var(--text) !important;
  font: inherit;
  font-size: var(--nd-fs-content);
}

.nd-taskmanager-wrap .nd-task-form select.sa-input-vb {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff7f50' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

.nd-taskmanager-wrap .nd-task-form input[type="date"].sa-input-vb {
  color-scheme: dark;
}

.nd-taskmanager-wrap .nd-task-form textarea.sa-input-vb {
  min-height: 140px;
  resize: vertical;
}

.nd-taskmanager-wrap .sa-task-form__row--triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.nd-taskmanager-wrap .sa-task-form__row--triple .sa-task-form__field {
  margin: 0;
}

.nd-taskmanager-wrap .nd-task-form .sa-bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.nd-taskmanager-wrap .nd-task-form .sa-bbcode-tb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111 !important;
  color: #fff !important;
  cursor: pointer;
}

.nd-taskmanager-wrap .nd-task-form .sa-bbcode-tb::before {
  content: none;
}

.nd-taskmanager-wrap .nd-task-form .sa-bbcode-tb svg,
.nd-taskmanager-wrap .nd-task-form .sa-bbcode-tb svg text {
  color: #fff;
  fill: currentColor;
  stroke: currentColor;
}

.nd-taskmanager-wrap .nd-task-form__submit {
  margin-top: 14px;
}

.nd-taskmanager-wrap .sa-task-form--comment .sa-task-comment-editor__ta {
  min-height: 90px;
}

/* Фильтр, карточка задачи, панели */
.nd-taskmanager-wrap .sa-task__filter {
  border: 1px solid var(--nd-surface-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 12px 14px;
}

.nd-taskmanager-wrap .sa-task__filter-head {
  color: #fff;
  margin-bottom: 8px;
}

.nd-taskmanager-wrap .sa-task__filter-sep {
  color: var(--muted);
}

.nd-taskmanager-wrap .sa-task__filter-reset a {
  color: var(--accent);
}

.nd-taskmanager-wrap .sa-task__panel,
.nd-taskmanager-wrap .sa-task__detail {
  border: 1px solid var(--nd-surface-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 14px;
  color: var(--text);
}

.nd-taskmanager-wrap .sa-task__panel-title,
.nd-taskmanager-wrap .sa-task__title {
  color: #fff;
}

.nd-taskmanager-wrap .sa-task__detail-corner-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent);
  text-decoration: none;
  font-size: var(--nd-fs-small);
}

.nd-taskmanager-wrap .sa-task__detail-corner-btn:hover {
  border-color: var(--accent);
}

.nd-taskmanager-wrap .sa-task-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.nd-taskmanager-wrap .sa-task-meta-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
}

.nd-taskmanager-wrap .sa-task-meta-tile__label {
  font-size: var(--nd-fs-small);
  color: var(--muted);
}

.nd-taskmanager-wrap .sa-task-meta-tile__value {
  color: var(--text);
}

.nd-taskmanager-wrap .sa-task-view-desc__label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.nd-taskmanager-wrap .sa-task-html,
.nd-taskmanager-wrap .sa-task-html--description {
  color: var(--text);
}

.nd-taskmanager-wrap .sa-task-attachments-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
}

.nd-taskmanager-wrap .sa-task-attachments-list a {
  color: var(--accent);
}

.nd-taskmanager-wrap .sa-task-feed-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.nd-taskmanager-wrap .sa-task-feed-item__time {
  color: var(--muted);
}

.nd-taskmanager-wrap .sa-task-feed-item__action {
  color: var(--muted);
}

@media (max-width: 760px) {
  .nd-taskmanager-wrap .sa-task-form__row--triple {
    grid-template-columns: 1fr;
  }
}

.nd-acp-embed-shell {
  padding: 12px 14px 18px;
  overflow-x: auto;
}

.nd-acp-admin-nav-wrap {
  margin: 0 0 12px;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.base,
body.nd-acp-page .nd-acp-admin-nav-wrap nav.sub {
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.base ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.base a,
body.nd-acp-page .nd-acp-admin-nav-wrap nav.sub a {
  color: #fff;
  text-decoration: none;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.base li {
  float: none;
  width: auto;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.base a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 127, 80, 0.25);
  font-size: 13px;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.sub {
  padding: 0 0 8px;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.sub ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.nd-acp-page .nd-acp-admin-nav-wrap nav.sub a {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 127, 80, 0.2);
  font-size: 12px;
}

body.nd-acp-page .nd-acp-content,
.nd-acp-embed-shell #content {
  padding: 12px 0 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  color: inherit;
  box-sizing: border-box;
}

body.nd-acp-page .nd-acp-content table {
  color: inherit;
}

body.nd-acp-page .nd-acp-content a {
  color: #ffb088;
}

body.nd-acp-page .nd-acp-content input,
body.nd-acp-page .nd-acp-content select,
body.nd-acp-page .nd-acp-content textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 127, 80, 0.35);
  color: #fff;
  border-radius: 8px;
}

.nd-acp-site-wrap {
  min-height: 40vh;
}

body[data-nd-nav] .nd-acp-embed-shell.nd-acp-layout {
  color: #e8e8e8;
}

body[data-nd-nav] .nd-acp-embed-shell.nd-acp-layout #content {
  padding: 16px !important;
  margin: 0 !important;
  max-width: 100%;
  color: inherit;
}

body[data-nd-nav] .nd-acp-embed-shell.nd-acp-layout #content a {
  color: #ffb088;
}

body[data-nd-nav] .nd-acp-embed-shell.nd-acp-layout #content table {
  color: inherit;
}

body[data-nd-nav] .nd-acp-embed-shell .wrapper,
body[data-nd-nav] .nd-acp-embed-shell #top.mini {
  display: none;
}

.nd-profile__status {
  margin-top: 2px;
}

.nd-profile-guests__title {
  margin: 0 0 10px;
  font-size: var(--nd-fs-content);
  font-weight: 700;
  color: #fff;
}


/* Scroll: forum/topic pages must use document scroll */
html {
  height: auto !important;
  overflow-y: auto !important;
}

body[data-nd-nav] {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body[data-nd-nav] > main[data-nd-main] {
  flex: 1 0 auto;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

body[data-nd-nav] .nd-forum-legacy,
body[data-nd-nav] .nd-forum-page {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.nd-app-role-hint:empty,
.nd-app-role-hint[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reputation modal in newdesign forum */
.nd-forum-legacy .sa-rep-modal,
body[data-nd-nav] .sa-rep-modal {
  position: fixed;
  inset: 0;
  z-index: 10025;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 24px;
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}

.nd-forum-legacy .sa-rep-modal[hidden],
body[data-nd-nav] .sa-rep-modal[hidden] {
  display: none !important;
}

.nd-forum-legacy .sa-rep-modal__box,
body[data-nd-nav] .sa-rep-modal__box {
  width: min(440px, 100%);
  margin: 0;
  padding: 18px 18px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 127, 80, 0.45);
  background: linear-gradient(180deg, #221812, #161010);
  color: var(--text);
  box-shadow: var(--shadow);
}

.nd-forum-legacy .sa-rep-modal__title,
body[data-nd-nav] .sa-rep-modal__title {
  margin: 0 28px 10px 0;
  color: #fff;
}

.nd-forum-legacy .sa-rep-modal__hint,
body[data-nd-nav] .sa-rep-modal__hint {
  color: var(--muted);
}

.nd-forum-legacy .sa-rep-modal__input,
.nd-forum-legacy .sa-rep-modal__comment,
body[data-nd-nav] .sa-rep-modal__input,
body[data-nd-nav] .sa-rep-modal__comment {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.nd-forum-legacy .sa-rep-modal .nd-btn,
body[data-nd-nav] .sa-rep-modal .nd-btn {
  margin-top: 4px;
}

.nd-forum-legacy .sa-report-close,
body[data-nd-nav] .sa-report-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

/* PM inbox (newdesign) */
.nd-pm-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.nd-pm-page__head .nd-page-head {
  margin-bottom: 0;
}

.nd-pm-list {
  display: grid;
  gap: 10px;
}

.nd-pm-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 127, 80, 0.22);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  text-decoration: none;
}

.nd-pm-item:hover {
  border-color: rgba(255, 127, 80, 0.45);
  background: rgba(255, 127, 80, 0.08);
}

.nd-pm-item.is-unread {
  border-color: rgba(255, 127, 80, 0.5);
  background: rgba(255, 127, 80, 0.12);
}

.nd-pm-item__avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.nd-pm-item__avatar img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.nd-pm-item__head {
  display: contents;
}

.nd-pm-item__name {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-weight: 700;
  min-width: 0;
  margin-bottom: 0;
}

.nd-pm-item__date {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: var(--nd-fs-small);
  color: var(--muted);
  white-space: nowrap;
}

.nd-pm-item__preview {
  grid-column: 2;
  grid-row: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: var(--nd-fs-small);
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nd-pm-item__badge {
  color: var(--accent);
  font-weight: 700;
}

.nd-pm-page .nd-pager {
  margin-top: 16px;
}

/* Forum admin: post list */
.nd-admin-posts {
  margin-top: 12px;
}

.nd-admin-news-list {
  margin-top: 8px;
}

.nd-admin-news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.15);
}

.nd-admin-news-row:first-child {
  border-top: 0;
}

.nd-admin-news-row__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.nd-admin-news-row__title {
  font-size: var(--nd-fs-content);
  font-weight: 600;
}

.nd-admin-news-row__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nd-admin-news-row__form {
  margin: 0;
  display: inline-flex;
}

.nd-admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.15);
}

.nd-admin-post-row:first-child {
  border-top: 0;
}

.nd-admin-post-row__info {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-admin-post-row__delete {
  flex: 0 0 auto;
  margin: 0;
}

.nd-pc-action {
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 127, 80, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: var(--nd-fs-small);
  cursor: pointer;
}

.nd-pc-action:hover {
  background: rgba(255, 127, 80, 0.15);
}
