.header,
.footer,
.board,
.topbar {
  max-width: none;
  width: auto;
  margin: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: rgba(7, 8, 6, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  border: 1px solid var(--line);
  background: rgba(10, 12, 10, 0.45);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: rgba(214, 255, 74, 0.45);
  color: var(--lime);
}

.menu-toggle__ico {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--lime);
}

.menu-toggle[aria-expanded="true"] {
  background: rgba(214, 255, 74, 0.12);
  border-color: rgba(214, 255, 74, 0.5);
  color: var(--lime);
}

/* выезжающая колонка разделов (раздвигает контент) */
.layout-wrap {
  display: grid;
  grid-template-columns: 0fr 1fr;
  transition: grid-template-columns 0.26s ease;
}

.layout-wrap.is-open {
  grid-template-columns: 292px 1fr;
}

.railnav {
  overflow: hidden;
  min-width: 0;
  border-right: 1px solid transparent;
}

.layout-wrap.is-open .railnav {
  border-right-color: var(--line);
  overflow: visible;
}

.railnav__inner {
  width: 292px;
  padding: 1rem 0.75rem 2rem;
}

.railnav__head {
  font-family: var(--display);
  font-size: 0.95rem;
  padding: 0.1rem 0.5rem 0.6rem;
}

.rail__group {
  position: relative;
  margin-top: 0.85rem;
  padding-top: 0.8rem;
}

.rail__group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.55rem;
  right: 0.45rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(214, 255, 74, 0.7) 0 7px,
    rgba(244, 241, 232, 0.16) 7px,
    rgba(244, 241, 232, 0.05) 100%
  );
}

.rail__group:first-of-type {
  margin-top: 0.15rem;
  padding-top: 0.15rem;
}

.rail__group:first-of-type::before {
  display: none;
}

.rail__cat {
  margin: 0 0.5rem 0.35rem;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.28rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.rail__item:hover {
  background: rgba(214, 255, 74, 0.1);
}

.rail__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--tone-bg, #1c2410);
  color: var(--tone, #d6ff4a);
  border: 1px solid var(--tone-line, rgba(214, 255, 74, 0.28));
}

.rail__ico.has-pic {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.rail__ico.has-pic .node-ico-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.rail__ico .node-ico {
  width: 17px;
  height: 17px;
}

.rail__name {
  white-space: nowrap;
}

.railmain {
  min-width: 0;
}

/* лого слева, четыре баннера справа */
.mast {
  display: grid;
  grid-template-columns: minmax(420px, 540px) 1fr;
  gap: 1.4rem;
  align-items: start;
  margin: 0;
  padding: 0.35rem 0.9rem 0.2rem;
}

.mast__logo {
  display: block;
  background: none;
  border: none;
  padding: 0;
}

.mast__logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  image-rendering: auto;
}

.banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.4rem;
  margin-bottom: 0;
}

.banner {
  position: relative;
  aspect-ratio: 658 / 116;
  min-height: 0;
  border: 1px dashed rgba(244, 241, 232, 0.22);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--muted);
  background: rgba(10, 12, 10, 0.42);
  overflow: hidden;
}

.banner:hover {
  border-color: rgba(214, 255, 74, 0.4);
  color: var(--ink);
}

.banner.has-image {
  aspect-ratio: 658 / 116;
  min-height: 0;
  height: auto;
  border-style: solid;
  border-color: rgba(244, 241, 232, 0.16);
  color: #f4f1e8;
}

.banner.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.banner.has-image .banner__text,
.banner.has-image .banner__tag {
  display: none;
}

.banner__tag {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.banner__text {
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .mast {
    grid-template-columns: 1fr;
  }
  .mast__logo img {
    max-height: 180px;
  }
  .layout-wrap.is-open {
    grid-template-columns: 240px 1fr;
  }
}

.top-pills,
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.top-pills {
  flex: 1;
  overflow: auto;
  scrollbar-width: none;
}

.top-actions {
  margin-left: auto;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 0.38rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.chip:hover {
  background: rgba(244, 241, 232, 0.06);
  border-color: rgba(244, 241, 232, 0.16);
}

.chip--icon {
  position: relative;
  padding: 0.32rem;
}

.mail-badge {
  position: absolute;
  top: -0.28rem;
  right: -0.28rem;
  min-width: 1rem;
  padding: 0.05rem 0.28rem;
  border-radius: 999px;
  background: var(--lime);
  color: #14180a;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.chip--icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.verified-plaque {
  display: inline-flex;
  margin: 0.35rem 0 0;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 255, 74, 0.55);
  color: var(--lime);
  font-size: 0.78rem;
}

.nick-form {
  display: grid;
  gap: 0.45rem;
  max-width: 360px;
  margin: 1rem 0 1.2rem;
}

h1.nick--verified {
  color: var(--lime);
}

.chip--lime {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}

.chip--lime:hover {
  background: var(--lime);
  color: var(--lime-ink);
}

.shell {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0.9rem;
  padding: 0.9rem;
  align-items: start;
}

.cat {
  margin: 0 0 3.35rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.cat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgba(244, 241, 232, 0.08);
}

.cat__head::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: none;
  flex: none;
}

.cat__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
  text-shadow: none;
}

body {
  position: relative;
  background-color: #070807;
  background-image:
    radial-gradient(900px 520px at 100% -10%, rgba(214, 255, 74, 0.035), transparent 62%),
    radial-gradient(700px 460px at -8% 12%, rgba(180, 190, 160, 0.03), transparent 60%);
  background-attachment: fixed;
}

/* тематический узор: тонкая сетка-«схема» с узлами */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.05) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg fill='none' stroke='%23d6ff4a' stroke-opacity='0.12'%3E%3Cpath d='M28 24v8M24 28h8'/%3E%3Ccircle cx='28' cy='28' r='1.4' fill='%23d6ff4a' fill-opacity='0.14' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px, 56px 56px, 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, #000 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, #000 68%, transparent 100%);
}

.noise,
.spotlight {
  display: none;
}

.node-card em,
.node-card p,
.muted {
  color: var(--muted);
}

.muted.small {
  font-size: 0.82rem;
  margin: 0.6rem 0 0;
}

.node-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.8rem;
  align-items: start;
  min-height: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  background: #141810;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.node-card--locked {
  cursor: default;
}

.node-card:hover {
  border-color: rgba(214, 255, 74, 0.28);
  background: #14180f;
}

.node-card--locked:hover {
  border-color: rgba(244, 241, 232, 0.1);
  background: #10120e;
}

.node-card__lock {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--muted);
  flex: none;
}

.node-card__lock svg {
  width: 16px;
  height: 16px;
}

.node-card__ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--tone-bg, #1c2410);
  color: var(--tone, #d6ff4a);
  border: 1px solid var(--tone-line, rgba(214, 255, 74, 0.28));
}

.node-card__ico.has-pic {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.node-card__ico.has-pic .node-ico-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.node-card:hover .node-card__ico {
  border-color: var(--tone, #d6ff4a);
}

.node-card__ico--sm {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.node-ico {
  width: 26px;
  height: 26px;
  display: block;
}

.node-card__ico--sm .node-ico {
  width: 20px;
  height: 20px;
}

.tone-lime { --tone: #c5d96a; --tone-bg: #121410; --tone-line: rgba(197, 217, 106, 0.22); }
.tone-sand { --tone: #c4ae8e; --tone-bg: #141210; --tone-line: rgba(196, 174, 142, 0.22); }
.tone-sky { --tone: #a9c0d4; --tone-bg: #111316; --tone-line: rgba(169, 192, 212, 0.22); }
.tone-gold { --tone: #d4c48a; --tone-bg: #14130f; --tone-line: rgba(212, 196, 138, 0.22); }
.tone-mint { --tone: #a8cfc0; --tone-bg: #101412; --tone-line: rgba(168, 207, 192, 0.22); }
.tone-violet { --tone: #c0b4d4; --tone-bg: #131216; --tone-line: rgba(192, 180, 212, 0.22); }
.tone-amber { --tone: #d4b48a; --tone-bg: #14120f; --tone-line: rgba(212, 180, 138, 0.22); }
.tone-paper { --tone: #d2cbb8; --tone-bg: #131311; --tone-line: rgba(210, 203, 184, 0.18); }
.tone-rose { --tone: #d4a8ae; --tone-bg: #161112; --tone-line: rgba(212, 168, 174, 0.22); }

.node-card__body {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.node-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}

.node-card strong {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.node-card p,
.node-card em {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.node-card em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
}

.board {
  padding: 1.1rem 1.1rem 2rem;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.header .nav {
  display: flex;
  margin-left: auto;
}

.menu-btn__bars {
  width: 14px;
  height: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 30;
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  z-index: 40;
  background: #10120e;
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  overflow: auto;
  padding: 1rem 0.9rem 2rem;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.drawer__cat {
  margin: 0.9rem 0 0.25rem;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.drawer a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.38rem 0.2rem;
  font-size: 0.92rem;
}

.drawer a:hover {
  color: var(--lime);
}

.board__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.board__top h1 {
  font-family: var(--font);
  font-weight: 750;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.board__top .live {
  animation: none;
  box-shadow: none;
}

.board__top p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.node {
  margin-top: 2.2rem;
}

.node__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.node__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.node__head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.forum-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1.05rem;
  align-items: stretch;
}

.node-card {
  height: 100%;
}

.subforums {
  display: grid;
  gap: 0.28rem;
  padding: 0 0.7rem 0.75rem;
}

.subforum {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.subforum:hover {
  background: rgba(214, 255, 74, 0.12);
}

.subforum em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
}

.forum-card {
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.58);
  overflow: hidden;
  min-width: 0;
}

.forum-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem 0.4rem;
}

.forum-card__head a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.forum-card__head a:hover {
  color: var(--lime);
}

.forum-card__desc {
  margin: 0;
  padding: 0 1.1rem 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.thread-list {
  display: grid;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem 0.85rem;
}

.thread-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(10, 12, 10, 0.45);
  border: 1px solid rgba(244, 241, 232, 0.12);
  color: inherit;
  text-decoration: none;
}

.thread-row:hover {
  background: #161910;
  border-color: rgba(214, 255, 74, 0.28);
}

.thread-row--pin {
  background: #14180f;
  border-color: rgba(214, 255, 74, 0.34);
  box-shadow: none;
}

.pin-head {
  margin: 0.15rem 0 0;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pin-head--rest {
  margin-top: 0.45rem;
  color: var(--muted);
}

.pin-mark {
  margin-right: 0.4rem;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thread-row strong {
  display: block;
  font-weight: 600;
}

.thread-row small {
  color: var(--muted);
}

.thread-row em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

.thread-metrics {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.thread-metrics small {
  margin-left: 0.28rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
}

.page-thread .menu-toggle,
.page-thread .railnav,
.page-messages .menu-toggle,
.page-messages .railnav,
.page-guarantee .menu-toggle,
.page-guarantee .railnav,
.page-trade .menu-toggle,
.page-trade .railnav,
.page-admin .menu-toggle,
.page-admin .railnav,
.page-member .menu-toggle,
.page-member .railnav {
  display: none;
}

.page-messages .layout-wrap,
.page-messages .layout-wrap.is-open,
.page-guarantee .layout-wrap,
.page-guarantee .layout-wrap.is-open,
.page-trade .layout-wrap,
.page-trade .layout-wrap.is-open,
.page-admin .layout-wrap,
.page-admin .layout-wrap.is-open,
.page-member .layout-wrap,
.page-member .layout-wrap.is-open {
  grid-template-columns: 1fr;
}

.page-messages,
.page-guarantee,
.page-trade,
.page-admin {
  background-color: #070807;
  background-image:
    radial-gradient(680px 380px at 8% -6%, rgba(214, 255, 74, 0.1), transparent 64%),
    radial-gradient(520px 340px at 96% 8%, rgba(214, 255, 74, 0.05), transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent 0 84px,
      rgba(244, 241, 232, 0.028) 84px 85px
    );
  background-attachment: fixed;
}

.page-trade {
  --trade-accent: var(--lime);
  --trade-accent-soft: rgba(214, 255, 74, 0.12);
}

.page-trade--s2 {
  --trade-accent: #c4b5fd;
  --trade-accent-soft: rgba(196, 181, 253, 0.12);
}

.page-trade--s3 {
  --trade-accent: #f0ebe3;
  --trade-accent-soft: rgba(240, 235, 227, 0.1);
}

.page-trade--s4 {
  --trade-accent: #7ec8ff;
  --trade-accent-soft: rgba(126, 200, 255, 0.12);
}

.page-trade--s5 {
  --trade-accent: #3dcc4a;
  --trade-accent-soft: rgba(61, 204, 74, 0.14);
}

.page-trade--s6 {
  --trade-accent: #ff9900;
  --trade-accent-soft: rgba(255, 153, 0, 0.14);
}

.page-member {
  background-color: #080a07;
  background-image:
    radial-gradient(820px 460px at 0% -8%, rgba(214, 255, 74, 0.18), transparent 62%),
    radial-gradient(640px 420px at 100% 12%, rgba(214, 255, 74, 0.1), transparent 58%),
    radial-gradient(720px 380px at 40% 120%, rgba(214, 255, 74, 0.07), transparent 60%),
    repeating-linear-gradient(
      90deg,
      transparent 0 64px,
      rgba(214, 255, 74, 0.07) 64px 65px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 64px,
      rgba(244, 241, 232, 0.045) 64px 65px
    );
  background-attachment: fixed;
}

.page-messages .inbox__list,
.page-messages .inbox__talk,
.page-messages .stat,
.page-guarantee .inbox__list,
.page-guarantee .inbox__talk,
.page-guarantee .stat,
.page-trade .stat,
.page-admin .stat,
.page-admin .admin-card,
.page-trade .trade-roster,
.page-trade .trade-room,
.page-trade .trade-escrow__promo,
.page-trade .trade-escrow__form,
.page-member .stat,
.page-member .author-card,
.page-member .member-panel {
  background: rgba(14, 16, 14, 0.62);
  border-color: rgba(244, 241, 232, 0.1);
  backdrop-filter: blur(12px);
}

.page-messages .dm-card,
.page-messages .dm-card--reply,
.page-guarantee .dm-card,
.page-trade .dm-card {
  background: rgba(16, 18, 14, 0.55);
  backdrop-filter: blur(10px);
}

.page-trade .trade-cover {
  position: relative;
  height: 118px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(244, 241, 232, 0.1);
}

.page-trade .trade-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-trade .trade-cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 7, 0.82), rgba(7, 8, 7, 0.35) 55%, rgba(7, 8, 7, 0.75));
  pointer-events: none;
}

.page-trade .trade-head {
  margin-bottom: 1.6rem;
}

.page-trade .trade-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.page-trade .trade-head__code {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--trade-accent-soft);
  color: var(--trade-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.page-trade .trade-head__title {
  margin-bottom: 0.45rem;
}

.page-trade .trade-head__lead {
  margin: 0.35rem 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.page-trade .trade-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(244, 241, 232, 0.1);
  background: rgba(8, 10, 8, 0.42);
  backdrop-filter: blur(10px);
}

.page-trade .trade-hours > span:first-child {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--trade-accent);
}

.page-trade .trade-hours b {
  font-weight: 800;
}

.page-trade .trade-hours > span:not(:first-child) {
  font-size: 0.88rem;
  color: rgba(244, 241, 232, 0.86);
}

.page-trade .trade-head__scopes {
  margin: 0;
  padding: 1.15rem 1.25rem;
  list-style: none;
  border-radius: 16px;
  border: 1px solid rgba(244, 241, 232, 0.1);
  background: rgba(14, 16, 14, 0.55);
  display: grid;
  gap: 0.85rem;
}

.page-trade .trade-head__scopes li {
  font-size: 0.82rem;
  color: rgba(244, 241, 232, 0.82);
  padding-left: 0.85rem;
  position: relative;
}

.page-trade .trade-head__scopes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--trade-accent);
}

.page-trade .trade-console {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) minmax(300px, 340px);
  gap: 1.35rem;
  align-items: stretch;
}

.page-trade .trade-roster {
  border-radius: 18px;
  padding: 1.05rem 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
}

.page-trade .trade-roster__pattern {
  flex: 1;
  min-height: 160px;
  margin-top: 0.85rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.07);
  background:
    linear-gradient(180deg, rgba(244, 241, 232, 0.05), transparent 46%),
    linear-gradient(160deg, var(--trade-accent-soft), transparent 62%),
    rgba(8, 10, 8, 0.28);
  backdrop-filter: blur(16px);
}

.page-trade .trade-roster__pattern::before {
  content: "";
  position: absolute;
  width: 180%;
  height: 70%;
  left: -40%;
  top: -18%;
  background: radial-gradient(ellipse at center, rgba(244, 241, 232, 0.09), transparent 68%);
  pointer-events: none;
}

.page-trade .trade-roster__pattern::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--trade-accent), transparent);
  opacity: 0.28;
  pointer-events: none;
}

.page-trade .trade-roster__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.page-trade .trade-roster__head span {
  color: var(--muted);
}

.page-trade .trade-op {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.45rem;
}

.page-trade .trade-op.is-on,
.page-trade .trade-op:hover {
  background: rgba(255, 255, 255, 0.04);
}

.page-trade .trade-op.is-on {
  box-shadow: inset 0 0 0 1px var(--trade-accent-soft);
}

.page-trade .trade-op__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.page-trade .trade-op__name {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.page-trade .trade-op__partner {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-trade .trade-op__live {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(244, 241, 232, 0.28);
  flex-shrink: 0;
}

.page-trade .trade-op__live.is-on {
  background: var(--trade-accent);
  box-shadow: 0 0 10px var(--trade-accent-soft);
}

.page-trade .trade-op__role {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-trade .trade-op__meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.page-trade .trade-op__profile {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--trade-accent);
  text-decoration: none;
  font-weight: 700;
}

.page-trade .trade-room {
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.15rem;
  min-height: 560px;
}

.page-trade .trade-room__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.page-trade .trade-room__head h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.page-trade .trade-room__head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-trade .trade-room__pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
}

.page-trade .trade-room__pill.is-on {
  background: var(--trade-accent-soft);
  color: var(--trade-accent);
}

.page-trade .trade-shout {
  margin: 0.4rem 0 0;
}

.page-trade .trade-shout .shout__stream {
  height: 360px;
}

.page-trade .trade-room__lock {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--muted);
}

.page-trade .trade-escrow {
  display: grid;
  gap: 1.15rem;
}

.page-trade .trade-escrow__promo,
.page-trade .trade-escrow__form {
  padding: 1.15rem 1.1rem;
}

.page-trade .guarant-grid {
  gap: 1rem 0.85rem;
}

.page-trade .trade-escrow__facts {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}

.page-trade .trade-about {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem 0.8rem;
  border-radius: 14px;
  display: grid;
  gap: 0.65rem;
  background: rgba(7, 8, 7, 0.45);
  border: 1px solid rgba(244, 241, 232, 0.08);
}

.page-trade .trade-about__head h2 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
}

.page-trade .trade-about__head .kicker {
  margin: 0;
  font-size: 0.68rem;
}

.page-trade .trade-about__copy {
  display: grid;
  gap: 0.45rem;
}

.page-trade .trade-about__copy p {
  margin: 0;
  color: rgba(244, 241, 232, 0.78);
  line-height: 1.5;
  font-size: 0.84rem;
}

.page-trade .trade-about__notes {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(214, 255, 74, 0.04);
  border: 1px solid rgba(214, 255, 74, 0.12);
}

.page-trade .trade-about__notes dt {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-trade .trade-about__notes dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .page-trade .trade-about__notes {
    grid-template-columns: 1fr;
  }
}

.page-trade .trade-escrow__facts dt {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-trade .trade-escrow__facts dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
  font-size: 0.86rem;
}

.page-trade .trade-field--wide {
  grid-column: 1 / -1;
}

.page-trade .guarant-card .dm-field > span {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-trade .guarant-card .dm-field .input:not(textarea),
.page-trade .gdrop__btn {
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.85rem;
  line-height: 1;
}

@media (max-width: 1100px) {
  .page-trade .trade-console {
    grid-template-columns: 1fr;
  }

  .page-trade .trade-head__row {
    grid-template-columns: 1fr;
  }
}

.guarant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.7rem;
  align-items: end;
}

.guarant-money {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.4rem;
  gap: 0.55rem;
  align-items: end;
}

.page-guarantee .guarant-card .dm-field > span {
  min-height: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guarant-card .dm-field .input:not(textarea),
.gdrop__btn {
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  padding: 0 0.85rem;
  line-height: 1;
}

.gdrop {
  position: relative;
}

.gdrop__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  background: rgba(7, 8, 7, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.gdrop__btn span {
  display: block;
  line-height: 1;
}

.gdrop__btn svg {
  display: block;
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  margin: 0;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gdrop.is-open .gdrop__btn {
  border-color: rgba(214, 255, 74, 0.65);
  box-shadow: inset 0 0 0 1px rgba(214, 255, 74, 0.25);
}

.gdrop__menu {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% + 0.28rem);
  margin: 0;
  padding: 0.55rem 0.35rem 0.35rem;
  list-style: none;
  overflow: hidden;
  border: 1px solid rgba(214, 255, 74, 0.28);
  border-radius: 12px;
  background: #0c0e0b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.gdrop__menu[hidden] { display: none; }

.gdrop__menu li {
  margin: 0;
  padding: 0;
}

.gdrop__menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 74, 0.9) 18%, rgba(214, 255, 74, 0.9) 82%, transparent);
}

.gdrop__menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 2.15rem;
  margin: 0;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.gdrop__menu button::before {
  content: "";
  flex: none;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: rgba(244, 241, 232, 0.28);
}

.gdrop__menu button:hover,
.gdrop__menu button.is-on {
  background: rgba(214, 255, 74, 0.1);
  color: var(--lime);
}

.gdrop__menu button:hover::before,
.gdrop__menu button.is-on::before {
  background: var(--lime);
}

.guarant-text {
  width: 100%;
}

.guarant-text {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.45;
}

.guarant-card--view {
  display: grid;
  gap: 0.75rem;
}

.dm-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.guarant-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
}

.guarant-facts div {
  display: grid;
  gap: 0.12rem;
}

.guarant-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.guarant-facts dd {
  margin: 0;
  font-weight: 700;
}

.guarant-card__text,
.guarant-note,
.guarant-review__text {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.guarant-note {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(214, 255, 74, 0.08);
  color: var(--ink);
}

.guarant-status {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.guarant-status--pending {
  color: #f4f1e8;
  border-color: rgba(244, 241, 232, 0.28);
}

.guarant-status--accepted,
.guarant-status--done {
  color: var(--lime);
  border-color: rgba(214, 255, 74, 0.55);
}

.guarant-status--rejected {
  color: #ffb4a8;
  border-color: rgba(255, 140, 120, 0.45);
}

.inbox__who .guarant-status {
  background: transparent;
  min-width: 0;
  padding: 0.08rem 0.4rem;
}

.guarant-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.9rem;
}

.guarant-review {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(244, 241, 232, 0.12);
  border-radius: 14px;
  background: #10120e;
}

.guarant-review header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}

.guarant-review header time,
.guarant-review p {
  color: var(--muted);
  margin: 0;
}

.guarant-review__form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.guarant-review__form label {
  display: grid;
  gap: 0.25rem;
}

@media (max-width: 800px) {
  .guarant-grid,
  .guarant-facts,
  .guarant-money {
    grid-template-columns: 1fr;
  }
}

.page-thread .layout-wrap,
.page-thread .layout-wrap.is-open {
  grid-template-columns: 1fr;
}

.bb-rule {
  border: 0;
  border-top: 1px solid rgba(244, 241, 232, 0.16);
  margin: 0.7rem 0;
}

.author-card__badge.is-mod,
.author-pop__badge.is-mod {
  border-color: rgba(159, 212, 255, 0.7);
  color: #9fd4ff;
}

.reacts {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

.react-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(244, 241, 232, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
}

.react-picker[hidden],
.react-chosen[hidden] {
  display: none;
}

.react-picker {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 255, 74, 0.28);
  background: rgba(14, 16, 12, 0.98);
}

.react-picker .js-react {
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.28rem;
  border-radius: 8px;
}

.react-picker .js-react:hover,
.react-picker .js-react.is-on {
  background: rgba(214, 255, 74, 0.16);
}

.react-chosen {
  font-size: 1.2rem;
  line-height: 1;
}

.post__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.report--inline {
  margin-left: auto;
  flex: none;
}

.report--inline summary,
.report--pretty summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
}

.report--inline summary::-webkit-details-marker,
.report--pretty summary::-webkit-details-marker {
  display: none;
}

.report--inline summary {
  font-size: 0.82rem;
  padding-top: 0.35rem;
}

.report--pretty summary {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.report--pretty form,
.report--inline form {
  margin-top: 0.45rem;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.8rem;
}

.member-seen {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.member-handle {
  margin-top: 0.15rem;
}

.more {
  display: inline-flex;
  margin: 0 1.1rem 1rem;
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
}

.layout {
  display: grid;
  gap: 1rem;
}

.post {
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.58);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.7rem;
}

.post__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.post__meta a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.post__body {
  line-height: 1.65;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.post__body img {
  max-width: 100%;
  height: auto;
}

.post__body .bb-quote {
  margin: 0.75rem 0;
  padding: 0.55rem 0.85rem;
  border-left: 2px solid rgba(214, 255, 74, 0.5);
  color: var(--muted);
}

.post__body .bb-code {
  overflow: auto;
  margin: 0.7rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  white-space: pre-wrap;
}

.side {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.stat {
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.58);
  padding: 0.9rem 1rem;
}

a.stat {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.stat:hover {
  border-color: rgba(197, 217, 106, 0.45);
}

.stat h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--lime);
}

.stat__grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
}

.stat__grid dt {
  color: var(--muted);
}

.stat__grid dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.online-nicks {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  max-height: 16rem;
  overflow-y: auto;
}

.online-nicks:empty {
  display: none;
}

.online-nicks li {
  max-width: 100%;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.35;
}

.stat--promo {
  position: relative;
  overflow: hidden;
  background: rgba(10, 12, 10, 0.58);
  border-left: 2px solid var(--lime);
}

.stat--promo .stat__badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.stat--promo strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.stat--promo p {
  margin: 0.35rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.feed li {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(244, 241, 232, 0.07);
}

.feed li:first-child {
  border-top: none;
}

.feed a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed a:hover {
  color: var(--lime);
}

.feed span {
  color: var(--muted);
  font-size: 0.76rem;
}

.rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.rank li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.rank__pos {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(244, 241, 232, 0.16);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.rank a,
.rank__name {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank a:hover {
  color: var(--lime);
}

.rank__num {
  color: var(--muted);
  font-size: 0.78rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip--mini {
  padding: 0.28rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
}

.chat-box {
  max-height: 180px;
  overflow: auto;
  font-size: 0.85rem;
}

.chat-send {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.chat-line {
  padding: 0.3rem 0;
  border-top: 1px solid var(--line);
}

.chat-line strong {
  color: var(--lime);
  margin-right: 0.4rem;
}

.chat-empty {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.3rem 0;
}

/* верхний чат площадки */
.shout {
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.58);
  padding: 0.9rem 1rem;
  margin-bottom: 1.4rem;
}

.shout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.shout__head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
}

.shout__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.shout__online {
  color: var(--muted);
  font-size: 0.8rem;
}

.shout__stream {
  height: 292px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.86rem;
}

.shout__stage {
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(214, 255, 74, 0.05), transparent 28%),
    rgba(0, 0, 0, 0.28);
}

.shout__stream--ghost {
  height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  background: transparent;
  gap: 0.72rem;
  padding: 0.8rem 1rem 0.9rem 1.7rem;
}

.ghost-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-height: 1.35rem;
  animation: ghost-in 0.4s ease;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.ghost-nick {
  flex: none;
  color: rgba(214, 255, 74, 0.95);
  font-weight: 700;
}

.ghost-body {
  color: rgba(244, 241, 232, 0.82);
  white-space: nowrap;
  overflow: hidden;
}

.ghost-line.is-dim .ghost-body {
  color: rgba(244, 241, 232, 0.5);
}

.ghost-line.is-old {
  animation: none;
}

.ghost-line.is-mod .ghost-nick,
.ghost-line.is-mod .ghost-body {
  color: rgba(232, 146, 58, 0.96);
}

@keyframes ghost-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.shout__join {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.chat-wait {
  width: min(460px, 92vw);
}

.chat-wait .composer-header {
  align-items: center;
  min-height: 2rem;
}

.chat-wait .composer-header h3 {
  margin: 0;
  line-height: 1.2;
}

.chat-wait__x {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.chat-wait__x:hover {
  color: var(--lime);
}

.chat-wait__text {
  margin: 0.9rem 0 0.2rem;
  color: var(--ink);
  line-height: 1.5;
}

.shout__stream .chat-line {
  border-top: none;
  padding: 0.42rem 0;
}

.shout__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.shout__form .input {
  flex: 1;
}

.shout__guest {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.pager {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pager a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  background: rgba(10, 12, 10, 0.45);
}

.pager a.is-current {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}

.form {
  display: grid;
  gap: 0.75rem;
  max-width: 420px;
}

.input {
  width: 100%;
  border: 1px solid rgba(244, 241, 232, 0.16);
  background: rgba(7, 8, 7, 0.55);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 6, 0.72);
  display: grid;
  place-items: center;
  z-index: 20;
}

.overlay[hidden] {
  display: none;
}

.composer {
  width: min(640px, 92vw);
  background: #121412;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 10px;
  padding: 1.1rem;
}

.composer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-error {
  color: #ffb4b4;
  margin: 0 0 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 120, 120, 0.08);
  border: 1px solid rgba(255, 140, 140, 0.28);
}

.page-auth .menu-toggle,
.page-auth .railnav,
.page-auth .side,
.page-auth .footer {
  display: none;
}

.page-auth .layout-wrap,
.page-auth .layout-wrap.is-open {
  display: block;
  grid-template-columns: 1fr;
}

.page-auth .shell {
  display: block;
  grid-template-columns: 1fr;
}

.auth {
  width: min(820px, 100%);
  margin: 0.2rem auto 2.4rem;
}

.auth--login {
  width: min(560px, 100%);
}

.auth h1 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.xf-box {
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.62);
  padding: 0.15rem 1rem 1rem;
}

.xf-row {
  padding: 0.9rem 0 0.15rem;
}

.xf-row + .xf-row {
  border-top: 1px solid rgba(244, 241, 232, 0.08);
  margin-top: 0.75rem;
}

.xf-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.xf-row__head label {
  font-size: 0.95rem;
}

.xf-row__req,
.xf-hint {
  color: var(--muted);
  font-size: 0.8rem;
}

.xf-hint {
  margin: 0.4rem 0 0;
}

.xf-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field > span,
.field__pass + span {
  color: var(--muted);
  font-size: 0.82rem;
}

.field__pass {
  position: relative;
  display: block;
}

.field__pass .input {
  padding-right: 5.2rem;
}

.field__eye {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.field__eye:hover {
  color: var(--ink);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.check input {
  accent-color: #c5d96a;
  width: 16px;
  height: 16px;
}

.auth-submit {
  justify-content: center;
  min-width: 8.5rem;
}

.auth-switch {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-switch a {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .forum-grid {
    grid-template-columns: 1fr;
  }
  .top-pills {
    display: none;
  }
}

@media (min-width: 1100px) {
  .layout {
    grid-template-columns: 1fr 260px;
    align-items: start;
  }
}

.board__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.btn--nowrap {
  white-space: nowrap;
}

.flash {
  margin: 0 0 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 217, 106, 0.35);
  background: rgba(197, 217, 106, 0.08);
}

.flash--error {
  border-color: rgba(255, 140, 140, 0.35);
  background: rgba(255, 120, 120, 0.08);
  color: #ffb4b4;
}

.post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.vote {
  gap: 0.4rem;
  background: rgba(10, 12, 10, 0.72);
}

.vote svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote--like {
  color: #d6ff4a;
  border-color: rgba(214, 255, 74, 0.55);
}

.vote--dislike {
  color: #ff8b7a;
  border-color: rgba(255, 139, 122, 0.55);
}

.vote.is-on {
  background: currentColor;
}

.vote.is-on svg,
.vote.is-on .js-count {
  color: #14180a;
  stroke: #14180a;
}

.bb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0;
}

.bb-table td {
  border: 1px solid rgba(244, 241, 232, 0.16);
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.bb-attach {
  color: var(--muted);
}

.admin-row-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.admin-form {
  display: grid;
  gap: 0.7rem;
  max-width: 520px;
}

.report {
  margin: 0.2rem 0 1rem;
}

.report summary {
  cursor: pointer;
  color: var(--muted);
}

.report form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
  max-width: 460px;
}

.report--inline form {
  min-width: 220px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 1rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.admin-card {
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.58);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.admin-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

a.admin-card--link {
  display: grid;
  text-decoration: none;
  color: inherit;
}

a.admin-card--link:hover {
  border-color: rgba(197, 217, 106, 0.45);
}

#staffOnline {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.35rem;
  color: inherit;
}

#staffOnline .presence {
  display: flex;
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.presence.nick--mod {
  color: #ff9a3c;
}

.presence i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d7168;
}

.btn,
.pill,
button.pill {
  border-radius: 8px;
  box-shadow: none;
  background: rgba(244, 241, 232, 0.04);
  color: var(--ink);
  border: 1px solid rgba(244, 241, 232, 0.16);
  cursor: pointer;
  font: inherit;
}

button.pill:hover,
.pill:hover {
  background: rgba(214, 255, 74, 0.1);
  border-color: rgba(214, 255, 74, 0.4);
  color: var(--lime);
}

.page-admin .admin-nav {
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.page-admin .admin-nav .chip {
  border-color: rgba(244, 241, 232, 0.14);
  background: rgba(14, 16, 14, 0.55);
  padding: 0.5rem 0.8rem;
}

.page-admin .admin-nav .chip--lime {
  background: rgba(214, 255, 74, 0.14);
  border-color: rgba(214, 255, 74, 0.45);
  color: var(--lime);
}

.page-admin .input,
.page-admin select.input,
.page-admin textarea.input {
  background: rgba(8, 10, 8, 0.72);
  color: var(--ink);
  border: 1px solid rgba(244, 241, 232, 0.14);
}

.page-admin .admin-note {
  margin: -0.2rem 0 0.8rem;
  color: var(--muted);
}

.monitor-letter {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
}

.monitor-letter header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.35rem;
}

.monitor-letter header span,
.monitor-letter time,
.monitor-letter em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.monitor-letter p {
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.btn:hover {
  transform: none;
  box-shadow: none;
}

.brand__mark {
  box-shadow: none;
  border-radius: 50%;
}

.tag {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 650;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.tag--mute {
  color: var(--muted);
  border: 0;
  font-variant-numeric: tabular-nums;
}

.presence.is-on i {
  background: #c6e070;
  box-shadow: 0 0 0 3px rgba(198, 224, 112, 0.16);
}

.admin-stats .admin-card {
  display: grid;
  gap: 0.15rem;
}

.admin-stats strong {
  font-size: 1.5rem;
}

.admin-stats span,
.admin-table small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.funnel-bulk {
  margin: 0.2rem 0 0.4rem;
}

.funnel-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.funnel-item header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.funnel-item header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-form,
.banner-edit {
  display: grid;
  gap: 0.7rem;
}

.admin-form label,
.banner-edit label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
}

.banner-edit {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

.admin-table a {
  color: var(--ink);
  font-weight: 700;
}

.admin-ban {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-ban .input {
  width: 140px;
  padding: 0.4rem 0.55rem;
}

.admin-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.8rem;
}

.dm-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

.inbox {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.4rem;
  align-items: start;
}

.inbox__list,
.inbox__talk {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0e100e;
  padding: 0.7rem;
  min-height: 280px;
}

.inbox__item {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}

.inbox__item.is-on,
.inbox__item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.inbox__item small,
.inbox__empty,
.dm small {
  color: var(--muted);
  font-size: 0.78rem;
}

.inbox__log {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.dm {
  max-width: 80%;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.dm p {
  margin: 0 0 0.2rem;
}

.dm--mine {
  margin-left: auto;
  background: rgba(197, 217, 106, 0.12);
}

.inbox__form {
  display: grid;
  gap: 0.45rem;
}

.inbox__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.inbox__who {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.inbox__who em {
  min-width: 1.1rem;
  padding: 0.05rem 0.32rem;
  border-radius: 999px;
  background: var(--lime);
  color: #14180a;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
}

.inbox__subject {
  font-size: 0.82rem;
}

.inbox__item time,
.inbox__item small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.inbox__item.is-unread {
  background: rgba(214, 255, 74, 0.06);
}

.dm-card,
.dm-card--reply {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(214, 255, 74, 0.18);
  border-radius: 16px;
  background: #10120e;
}

.dm-card__head h2,
.dm-thread__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.dm-thread__head {
  margin-bottom: 0.8rem;
}

.dm-thread__head p,
.dm-field small,
.dm-checks small {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.dm-field {
  display: grid;
  gap: 0.28rem;
  position: relative;
}

.dm-label {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.dm-bar {
  display: flex;
  gap: 0.4rem;
}

.dm-icon-btn,
.dm-format-toggle {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(244, 241, 232, 0.16);
  background: #0c0e0b;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}

.dm-icon-btn svg,
.dm-format-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.dm-icon-btn[aria-expanded="true"],
.dm-icon-btn.is-on,
.dm-tools button.is-on {
  border-color: rgba(214, 255, 74, 0.75);
  color: var(--lime);
  background: rgba(214, 255, 74, 0.16);
  box-shadow: inset 0 0 0 1px rgba(214, 255, 74, 0.35);
}

.dm-format {
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}

.dm-format.is-open {
  max-height: 240px;
  opacity: 1;
  margin-bottom: 0.15rem;
}

.dm-tools,
.dm-inserts,
.dm-emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.dm-tool-gap {
  width: 1px;
  height: 1.2rem;
  background: rgba(244, 241, 232, 0.14);
  margin: 0 0.15rem;
}

.dm-tools button,
.dm-inserts button,
.dm-emoji button,
.dm-select {
  border: 1px solid rgba(244, 241, 232, 0.14);
  background: #0c0e0b;
  color: var(--ink);
  border-radius: 8px;
  min-height: 1.9rem;
  padding: 0.15rem 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.dm-inserts button {
  border-radius: 999px;
}

.dm-tools button:hover,
.dm-inserts button:hover,
.dm-emoji button:hover,
.dm-format-toggle:hover {
  border-color: rgba(214, 255, 74, 0.45);
}

.dm-tools button.is-on {
  border-color: rgba(214, 255, 74, 0.75);
  background: rgba(214, 255, 74, 0.16);
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(214, 255, 74, 0.35);
}

.dm-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-sizing: border-box;
  height: 2rem;
  padding: 0 0.4rem 0 0.15rem;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  background: #0c0e0b;
}

.dm-tools .dm-letter {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.dm-letter.is-on {
  color: var(--lime);
  background: transparent;
  box-shadow: none;
}

.dm-swatch input[type="color"] {
  display: block;
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.dm-swatch input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.dm-swatch input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(244, 241, 232, 0.35);
  border-radius: 50%;
}

.dm-editor {
  min-height: 140px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 12px;
  background: #0c0e0b;
  line-height: 1.5;
}

.dm-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.dm-emoji {
  padding: 0.35rem;
  border: 1px solid rgba(214, 255, 74, 0.2);
  border-radius: 12px;
  background: #0c0e0b;
}

.dm-emoji[hidden] { display: none; }

.dm-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.dm-hint[hidden] { display: none; }

.dm-refresh {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 232, 0.16);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.dm-refresh svg { width: 1rem; height: 1rem; }
.dm-refresh.is-spin svg { animation: dm-spin 0.7s linear infinite; }
.dm-refresh:hover { border-color: rgba(214, 255, 74, 0.5); color: var(--lime); }

@keyframes dm-spin { to { transform: rotate(-360deg); } }

.dm-refresh-note {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.dm-card__send {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
}

.dm-gear {
  position: relative;
}

.dm-gear-btn {
  position: relative;
}

.dm-gear__count {
  position: absolute;
  top: -0.32rem;
  right: -0.32rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.18rem;
  border-radius: 999px;
  background: var(--lime);
  color: #14180a;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 0.95rem;
  text-align: center;
}

.dm-gear__count[hidden] { display: none; }

.dm-gear__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 8;
  width: min(22.5rem, 78vw);
  padding: 0.55rem;
  border: 1px solid rgba(214, 255, 74, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(214, 255, 74, 0.05), transparent 42px),
    #0c0e0b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.dm-gear__panel[hidden] { display: none; }

.dm-gear__kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.15rem 0.4rem 0.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dm-gear__kicker::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  background: var(--lime);
}

.dm-opt {
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  gap: 0.55rem 0.6rem;
  align-items: center;
  margin: 0;
  padding: 0.48rem 0.5rem;
  border-radius: 10px;
  cursor: pointer;
}

.dm-opt + .dm-opt {
  margin-top: 0.15rem;
}

.dm-opt:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dm-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dm-opt__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 8px;
  color: var(--muted);
}

.dm-opt__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.dm-opt__copy strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.dm-opt__copy small {
  display: block;
  margin: 0.08rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.dm-opt__copy .dm-opt__note { display: none; }

.dm-opt__knob {
  position: relative;
  width: 1.85rem;
  height: 1.05rem;
  border: 1px solid rgba(244, 241, 232, 0.2);
  border-radius: 999px;
  background: #161910;
}

.dm-opt__knob::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.14rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #8d9186;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dm-opt:has(input:checked) {
  background: rgba(214, 255, 74, 0.08);
}

.dm-opt:has(input:checked) .dm-opt__icon {
  border-color: rgba(214, 255, 74, 0.5);
  color: var(--lime);
}

.dm-opt:has(input:checked) .dm-opt__knob {
  border-color: rgba(214, 255, 74, 0.65);
  background: rgba(214, 255, 74, 0.2);
}

.dm-opt:has(input:checked) .dm-opt__knob::after {
  transform: translateX(0.78rem);
  background: var(--lime);
}

.dm-opt:has(input:checked) .dm-opt__note {
  display: block;
  color: rgba(214, 255, 74, 0.78);
}

.dm-suggest {
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid rgba(214, 255, 74, 0.22);
  border-radius: 10px;
  background: #0c0e0b;
}

.dm-suggest button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  font: inherit;
}

.dm-suggest button:hover { color: var(--lime); }

.dm__subject { display: block; margin-bottom: 0.25rem; }
.dm__body { overflow-wrap: anywhere; }
.dm__body p { margin: 0.2rem 0; }
.dm__body img { max-width: 100%; height: auto; border-radius: 8px; }
.dm-blur { filter: blur(5px); cursor: pointer; }
.dm-blur:hover { filter: none; }
.dm-quote {
  margin: 0.35rem 0;
  padding: 0.35rem 0.6rem;
  border-left: 2px solid var(--lime);
  color: var(--muted);
}
.dm-code, .dm__body code, .dm__body pre {
  font-family: Consolas, monospace;
  background: #070807;
  border-radius: 6px;
  padding: 0.05rem 0.3rem;
}
.dm-spoiler { margin: 0.3rem 0; }
.dm__locked { color: var(--muted); }
.dm-invite {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 800px) {
  .inbox {
    grid-template-columns: 1fr;
  }
}

.post--split {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: visible;
}

.post.post--split:not(.post--comment) {
  position: relative;
  background: #10120e;
}

.post.post--split:not(.post--comment)::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  bottom: 0;
  width: 188px;
  pointer-events: none;
  border-right: 1px solid rgba(244, 241, 232, 0.08);
  background-color: #0c0e0b;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 26px,
    rgba(244, 241, 232, 0.045) 26px 27px
  );
}

.post.post--split:not(.post--comment) .author-card {
  position: relative;
  z-index: 1;
  align-self: start;
  background: #10120e;
  border-right: 0;
}

.post.post--split:not(.post--comment) .author-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 74, 0.9) 18%, rgba(214, 255, 74, 0.9) 82%, transparent);
}

.post.post--split:not(.post--comment) .post__main {
  position: relative;
  z-index: 1;
}

.limb-spoiler {
  margin: 0.75rem 0;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 12px;
  background: #0c0e0b;
}

.limb-spoiler > summary {
  cursor: pointer;
  padding: 0.62rem 0.85rem;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}

.limb-spoiler > summary::-webkit-details-marker {
  display: none;
}

.limb-spoiler > summary::before {
  content: "▸";
  margin-right: 0.45rem;
  color: var(--lime);
}

.limb-spoiler[open] > summary::before {
  content: "▾";
}

.limb-spoiler__body {
  max-height: 240px;
  overflow: auto;
  padding: 0.35rem 0.7rem 0.7rem;
  border-top: 1px solid rgba(244, 241, 232, 0.1);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #3a3e34 #0c0e0b;
}

.limb-spoiler__body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.limb-spoiler__body::-webkit-scrollbar-track {
  background: #0c0e0b;
}

.limb-spoiler__body::-webkit-scrollbar-thumb {
  background: #3a3e34;
  border-radius: 999px;
  border: 2px solid #0c0e0b;
}

.limb-spoiler__body::-webkit-scrollbar-thumb:hover {
  background: #4a5044;
}

.limb-spoiler__body .bb-code,
.limb-spoiler__body pre {
  margin: 0.35rem 0 0.15rem;
  max-height: none;
  overflow: visible;
  white-space: pre;
}

.post__main {
  min-width: 0;
  padding: 1rem 1.1rem 1rem 1rem;
}

.post--split .post__meta {
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.post--comment {
  grid-template-columns: 148px minmax(0, 1fr);
  margin-bottom: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 255, 74, 0.16);
  background:
    linear-gradient(165deg, rgba(34, 40, 26, 0.98) 0%, rgba(16, 18, 14, 0.97) 48%, rgba(20, 24, 16, 0.98) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.post--comment .author-card {
  padding: 0.75rem 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(214, 255, 74, 0.12);
}

.post--comment .author-card__stats {
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.post--comment .author-card__count {
  font-size: 1.05rem;
  color: var(--lime);
}

.post--comment .post__main {
  padding: 0.7rem 0.9rem 0.75rem;
}

.post--comment .post__body {
  font-size: 0.95rem;
  line-height: 1.5;
}

.post--comment .post__body a {
  color: var(--lime);
  text-decoration: none;
}

.post__body a {
  color: var(--lime);
}

.reply-ref {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.7rem 0.5rem 0.72rem;
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(214, 255, 74, 0.16);
  border-left: 3px solid var(--lime);
  background: rgba(8, 10, 7, 0.72);
}

.reply-ref__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.reply-ref__kicker {
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reply-ref__name {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
}

.reply-ref__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post--brief {
  width: fit-content;
  max-width: 100%;
  grid-template-columns: 188px max-content;
}

.post--brief .post__main {
  width: max-content;
  max-width: min(28rem, calc(100vw - 260px));
}

.post--brief .post__body {
  width: max-content;
  max-width: 26rem;
  padding: 0.5rem 0.8rem;
  border-radius: 14px 14px 14px 5px;
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.45;
}

.post--brief .post__actions {
  margin-top: 0.45rem;
}

.react-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 232, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  line-height: 1.2;
}

.react-pill b {
  font-size: 0.78rem;
  font-weight: 700;
}

.limb-media {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0.28rem 0;
  padding: 0.16rem 0.48rem;
  border-radius: 7px;
  border: 1px solid rgba(244, 241, 232, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #6d695e;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.limb-media--video {
  min-height: 0;
}

.limb-media--video::before {
  content: "▶";
  margin-right: 0.35rem;
  color: #6d695e;
  font-size: 0.62rem;
}

.thread-lead {
  color: var(--muted);
}

.thread-author,
.author-card__name,
.author-pop__name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.author-card {
  padding: 1rem 0.85rem 1rem 1rem;
  border-right: 1px solid rgba(244, 241, 232, 0.1);
}

.author-card__name {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nick--verified,
.author-card__name.nick--verified,
.thread-author.nick--verified,
.author-pop.is-verified .author-pop__name,
.online-nicks li.is-verified,
.rank__name.nick--verified,
.chip.nick--verified,
.presence.nick--verified {
  color: var(--lime);
}

.author-card__badge,
.author-pop__badge {
  display: inline-flex;
  white-space: nowrap;
  margin-top: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 255, 74, 0.55);
  color: var(--lime);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.author-card__badge.is-plain,
.author-pop__badge.is-plain {
  border-color: rgba(244, 241, 232, 0.18);
  color: var(--muted);
}

.author-card__badge.is-partner {
  margin-top: 0.65rem;
  padding: 0.28rem 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(214, 255, 74, 0.1);
}

.author-card__stats,
.author-pop__stats {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}

.author-card__stats div,
.author-pop__stats div {
  display: grid;
  gap: 0.05rem;
}

.author-card__stats dt,
.author-pop__stats dt,
.author-pop__meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.author-card__stats dd,
.author-pop__stats dd {
  margin: 0;
  font-weight: 700;
}

.author-card__react,
.author-card__emojis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.55rem;
}

.author-emoji {
  white-space: nowrap;
  font-weight: 650;
}

.author-emoji b {
  margin-left: 0.18rem;
  font-weight: 700;
}

.react {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  display: inline-block;
}

.react--like { background: var(--lime); }
.react--hot { background: #ff8b7a; }

.tick {
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
  margin-left: 0.42rem;
}

.tick circle { fill: var(--lime); }
.tick path {
  fill: none;
  stroke: #14180a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-pop {
  position: fixed;
  z-index: 80;
  display: none;
  width: min(332px, calc(100vw - 16px));
  padding: 0.9rem 0.95rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(214, 255, 74, 0.28);
  background: rgba(14, 16, 12, 0.97);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.author-pop.is-open { display: block; }

.author-pop.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.author-pop__head {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.author-pop__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #5c6154;
  box-shadow: 0 0 0 3px rgba(92, 97, 84, 0.25);
}

.author-pop.is-online .author-pop__dot {
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.author-pop__name {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 1.05rem;
}

.author-pop__name .tick { display: none; }
.author-pop.is-verified .author-pop__name .tick { display: inline; }

.author-pop__handle {
  color: var(--muted);
  font-size: 0.82rem;
}

.author-pop__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.15rem;
  border-top: 1px solid rgba(244, 241, 232, 0.08);
  border-bottom: 1px solid rgba(244, 241, 232, 0.08);
}

.author-pop__stats dd { font-size: 1.05rem; }

.author-pop__meta {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.7rem;
}

.author-pop__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.author-pop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.author-pop__actions .btn { flex: 1 1 auto; }

.js-pop-ignore.is-on {
  border-color: rgba(255, 139, 122, 0.7);
  color: #ff8b7a;
}

.member-layout,
.talk-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.35fr) minmax(220px, 280px);
  gap: 0.9rem;
  align-items: start;
}

.page-member .author-card {
  padding: 1.45rem 1.5rem 1.35rem;
  border-right: 0;
  border-radius: 18px;
}

.page-member .author-card__name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.page-member .author-card--sheet {
  position: relative;
  overflow: hidden;
  background: #070807;
}

.author-card__mark {
  position: absolute;
  z-index: 0;
  top: -12%;
  right: -6%;
  width: 62%;
  height: 124%;
  object-fit: cover;
  object-position: 58% center;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 84%, transparent 100%),
    linear-gradient(#000 0%, #000 10%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%, #000 84%, transparent 100%),
    linear-gradient(#000 0%, #000 10%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.page-member .author-card--sheet > *:not(.author-card__mark) {
  position: relative;
  z-index: 1;
}

.page-member .author-card--sheet .author-card__name,
.page-member .author-card--sheet .author-card__badge,
.page-member .author-card--sheet .author-card__stats--sheet {
  max-width: 58%;
}

.page-member .author-card__stats--sheet {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.page-member .author-card__stats--sheet > div:nth-child(1),
.page-member .author-card__stats--sheet > div:nth-child(2) {
  display: inline-grid;
}

.page-member .author-card__stats--sheet {
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: 2.4rem;
}

.author-card__stats .author-card__counts {
  grid-column: 1 / -1;
  display: flex;
  flex-flow: row nowrap;
  gap: 0.15rem 1.15rem;
  align-items: flex-end;
  margin-top: 0.2rem;
}

.author-card__counts > div {
  display: grid;
  gap: 0.08rem;
  min-width: 4.4rem;
}

.author-card__counts dd {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.author-card__reactline {
  grid-column: 1 / -1;
}

.member-panel {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.15rem 1rem 1.1rem;
  border: 1px solid rgba(244, 241, 232, 0.1);
  border-radius: 18px;
}

.member-panel .btn,
.member-panel .report--pretty,
.member-panel .admin-inline {
  width: 100%;
}

.member-panel .report--pretty summary {
  width: 100%;
  justify-content: center;
}

.member-panel .admin-inline {
  display: grid;
  gap: 0.45rem;
}

.member-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.member-layout .author-card,
.talk-layout .author-card {
  border: 1px solid rgba(244, 241, 232, 0.14);
  border-radius: 10px;
  background: rgba(10, 12, 10, 0.58);
}

.page-member .member-layout .author-card {
  border-radius: 18px;
  border-color: rgba(214, 255, 74, 0.16);
  background: #070807;
}

.member-handle {
  color: var(--muted);
  margin-top: 0;
}

@media (max-width: 800px) {
  .post--split,
  .post--brief,
  .post--comment,
  .member-layout,
  .talk-layout {
    grid-template-columns: 1fr;
  }

  .post.post--split:not(.post--comment)::before {
    display: none;
  }

  .post--comment .author-card {
    border-right: 0;
    border-bottom: 1px solid rgba(214, 255, 74, 0.12);
  }

  .post--brief,
  .post--brief .post__main,
  .post--brief .post__body {
    width: auto;
    max-width: 100%;
  }

  .author-card {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.1);
  }

  .author-pop__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
}
