@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Oswald:wght@400;500;600&display=swap");

:root {
  --bg: #020a10;
  --panel: rgba(5, 25, 35, 0.78);
  --panel2: rgba(7, 37, 48, 0.82);
  --line: rgba(54, 218, 238, 0.24);
  --text: #dffcff;
  --muted: #6f9da6;
  --acid: #65f58a;
  --amber: #34dced;
  --red: #ff5c70;
  --cyan: #34dced;
  --display: "Oswald", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  isolation: isolate;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
}
.keyart-background {
  --parallax-y: 0px;
  position: fixed;
  z-index: -2;
  inset: 0 -3vw -18vh;
  background: url("/stalzone-keyart-bg.png?v=4") center top / cover no-repeat;
  transform: translate3d(0, var(--parallax-y), 0) scale(1.04);
  will-change: transform;
  filter: saturate(0.82) contrast(1.08) brightness(0.62);
}
.keyart-shade {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 78% 3%,
      rgba(29, 226, 218, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 45% 82%,
      rgba(93, 255, 124, 0.06),
      transparent 28%
    ),
    linear-gradient(
      90deg,
      rgba(2, 10, 16, 0.78),
      rgba(2, 10, 16, 0.36) 48%,
      rgba(2, 10, 16, 0.66)
    ),
    linear-gradient(180deg, rgba(2, 10, 16, 0.25), rgba(2, 10, 16, 0.9) 88%);
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  background: rgba(2, 10, 16, 0.58);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(54, 218, 238, 0.28);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 18px rgba(52, 220, 237, 0.1),
    0 0 20px rgba(52, 220, 237, 0.1);
  overflow: hidden;
}
.brand-mark img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.brand b {
  font: 600 19px var(--display);
  letter-spacing: 0.12em;
}
.brand small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.system-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.top-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}
.top-action {
  align-items: center;
  border: 1px solid rgba(54, 218, 238, 0.22);
  color: var(--muted);
  display: inline-flex;
  font: 700 10px var(--mono);
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}
.top-action:hover,
.top-action.active {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(52, 220, 237, 0.08);
}
.top-action .notification-count {
  margin-left: 0;
  position: absolute;
  right: -7px;
  top: -7px;
}
.system-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}
.system-state b {
  border-left: 1px solid var(--line);
  padding-left: 8px;
  color: var(--text);
}
.system-user-stats {
  align-items: center;
  border-left: 1px solid var(--line);
  display: inline-flex;
  gap: 8px;
  margin-left: 2px;
  padding-left: 8px;
}
.system-user-stats span {
  display: inline-grid;
  gap: 1px;
  min-width: 34px;
}
.system-user-stats strong {
  color: var(--text);
  font: 700 10px var(--mono);
}
.system-user-stats small {
  color: var(--muted);
  font: 7px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.icon-button {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 20px;
}
.chat-button {
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(52, 220, 237, 0.96),
    rgba(101, 245, 138, 0.92)
  );
  border: 1px solid rgba(223, 252, 255, 0.38);
  bottom: 22px;
  box-shadow: 0 0 24px rgba(52, 220, 237, 0.24);
  color: #031015;
  display: inline-flex;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  position: fixed;
  right: 22px;
  text-decoration: none;
  z-index: 14;
}
.chat-button span {
  display: grid;
  font-size: 18px;
  place-items: center;
}
.chat-button b {
  font: 800 12px var(--mono);
  text-transform: uppercase;
}
.chat-button:hover {
  transform: translateY(-1px);
}
@media (max-width: 760px) {
  .topbar {
    gap: 12px;
    height: auto;
    min-height: 72px;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .system-state {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  .top-action {
    font-size: 0;
    min-width: 34px;
    padding: 0 8px;
  }
  .top-action::first-letter {
    font-size: 10px;
  }
  .top-action[href="/dashboard"]::before {
    content: "◉";
    font-size: 14px;
  }
  .top-action[href="/users"]::before {
    content: "◎";
    font-size: 14px;
  }
  .top-action[href="/notifications"]::before {
    content: "●";
    font-size: 14px;
  }
  .top-action[href="/account"]::before {
    content: "⚙";
    font-size: 14px;
  }
  .chat-button {
    bottom: 82px;
    right: 14px;
  }
}
.shell {
  display: block;
  flex: 1 0 auto;
  min-height: calc(100vh - 72px);
}
.rail {
  display: none;
}
.mobile-nav {
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 0;
  right: 0;
  height: 66px;
  background: #101410f5;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.news-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}
.news-filters {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  width: 100%;
}
.news-filters button,
.news-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.news-filters button {
  align-items: center;
  border: 1px solid var(--line);
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 104px;
  padding: 0 14px;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
  white-space: nowrap;
}
.news-filters button:hover,
.news-filters button:focus-visible {
  background: rgba(52, 220, 237, 0.08);
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(52, 220, 237, 0.18);
  color: var(--text);
  outline: 0;
}
.news-filters button.active {
  color: #11150c;
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: none;
}
.news-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 42px;
  min-width: 0;
  padding: 0 12px;
  color: var(--acid);
}
.news-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 10px var(--mono);
  padding-left: 9px;
}
.news-grid {
  display: grid;
  gap: 12px;
}
.news-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.news-card.featured {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(198, 239, 71, 0.13),
      transparent 36%
    ),
    linear-gradient(135deg, var(--panel), #111511);
}
.news-meta,
.news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.news-meta {
  color: var(--muted);
  font: 600 9px var(--mono);
  text-transform: uppercase;
}
.news-meta span {
  color: var(--acid);
}
.news-meta em {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
  padding-left: 8px;
}
.news-card.external-news {
  border-color: rgba(101, 245, 138, 0.34);
}
.news-number {
  position: absolute;
  right: 16px;
  top: 38px;
  color: rgba(229, 232, 220, 0.045);
  font: 600 76px var(--display);
}
.news-card h2 {
  max-width: 620px;
  margin: 42px 0 12px;
  font: 600 27px/1.16 var(--display);
  text-transform: uppercase;
}
.news-card > p,
.news-full {
  color: #b8d7dc;
  font-size: 13px;
  line-height: 1.75;
}
.news-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.news-foot small {
  color: var(--muted);
  font-size: 9px;
}
.news-link {
  color: var(--acid);
  padding: 8px 0;
}
.news-full {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
}
.comments {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.comments-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
  font: 500 11px var(--mono);
}
.comments-head span {
  color: var(--acid);
}
.comment {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.comment > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.comment b {
  color: var(--text);
  font-size: 9px;
}
.faction-name {
  font-weight: 700;
  letter-spacing: 0.025em;
}
.faction-name.faction-stalkers {
  color: #ffe45c;
  text-shadow:
    0 0 4px #ffe45c,
    0 0 10px rgba(255, 228, 92, 0.65);
}
.faction-name.faction-frontier {
  color: #ff4b4b;
  text-shadow:
    0 0 4px #ff2020,
    0 0 11px rgba(255, 32, 32, 0.8);
}
.faction-name.faction-rise {
  color: #48ff55;
  text-shadow:
    0 0 4px #14ff28,
    0 0 11px rgba(20, 255, 40, 0.8);
}
.faction-name.faction-bandits {
  color: #c0c5ca;
  text-shadow:
    0 0 4px #a6abb1,
    0 0 9px rgba(166, 171, 177, 0.55);
}
.faction-name.faction-mercenaries {
  color: #48baff;
  text-shadow:
    0 0 4px #159dff,
    0 0 11px rgba(21, 157, 255, 0.85);
}
.faction-name.faction-covenant {
  color: #c05cff;
  text-shadow:
    0 0 4px #a522ff,
    0 0 11px rgba(165, 34, 255, 0.85);
}
.faction-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.faction-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.faction-option:has(input:checked) {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.04);
}
.faction-option input {
  accent-color: currentColor;
}
.faction-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
}
.faction-icon-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed currentColor;
  font: 700 11px var(--mono);
}
.faction-icon-frontier {
  background-image: url("/factions/frontier.png");
}
.faction-icon-mercenaries {
  background-image: url("/factions/mercenaries.png");
}
.faction-icon-rise {
  background-image: url("/factions/rise.png");
}
.faction-icon-covenant {
  background-image: url("/factions/covenant.png");
}
.faction-icon-stalkers {
  background-image: url("/factions/stalkers.png?v=3");
}
.faction-icon-bandits {
  background-image: url("/factions/bandits.png?v=3");
}
.faction-icon-frontier,
.faction-icon-mercenaries,
.faction-icon-rise,
.faction-icon-covenant {
  background-size: contain;
  background-position: center;
}
.faction-icon-stalkers,
.faction-icon-bandits {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.faction-stalkers {
  color: #f2d34f;
}
.faction-frontier {
  color: #ef5350;
}
.faction-rise {
  color: #66c56c;
}
.faction-bandits {
  color: #a6abb1;
}
.faction-mercenaries {
  color: #4f9eea;
}
.faction-covenant {
  color: #b36de0;
}
@media (max-width: 700px) {
  .faction-options {
    grid-template-columns: 1fr 1fr;
  }
}
.comment time,
.comment-empty {
  color: var(--muted);
  font-size: 8px;
}
.comment p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.like-button {
  align-items: center;
  border: 1px solid rgba(102, 225, 204, 0.35);
  background: transparent;
  color: var(--muted, #8faeb2);
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}
.like-button:not(.comment-counter) {
  font-size: 0;
}
.like-button:not(.comment-counter)::before {
  background: currentColor;
  content: "";
  height: 16px;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 20.6 10.7 19.5C5.8 15.2 3 12.8 3 9.1 3 6.2 5.3 4 8.2 4c1.6 0 3.1.7 4.1 1.9A5.4 5.4 0 0 1 16.4 4C19.2 4 21.5 6.2 21.5 9.1c0 3.7-2.8 6.1-7.7 10.4L12 20.6Zm0-3.1.5-.4c4.3-3.8 6.8-5.9 6.8-8 0-1.6-1.2-2.9-3-2.9-1.3 0-2.5.8-3 1.9h-2.1a3.5 3.5 0 0 0-3-1.9c-1.7 0-3 1.3-3 2.9 0 2.1 2.5 4.2 6.8 8l.5.4Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 20.6 10.7 19.5C5.8 15.2 3 12.8 3 9.1 3 6.2 5.3 4 8.2 4c1.6 0 3.1.7 4.1 1.9A5.4 5.4 0 0 1 16.4 4C19.2 4 21.5 6.2 21.5 9.1c0 3.7-2.8 6.1-7.7 10.4L12 20.6Zm0-3.1.5-.4c4.3-3.8 6.8-5.9 6.8-8 0-1.6-1.2-2.9-3-2.9-1.3 0-2.5.8-3 1.9h-2.1a3.5 3.5 0 0 0-3-1.9c-1.7 0-3 1.3-3 2.9 0 2.1 2.5 4.2 6.8 8l.5.4Z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.like-button:not(.comment-counter).liked::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 20.6 10.7 19.5C5.8 15.2 3 12.8 3 9.1 3 6.2 5.3 4 8.2 4c1.6 0 3.1.7 4.1 1.9A5.4 5.4 0 0 1 16.4 4C19.2 4 21.5 6.2 21.5 9.1c0 3.7-2.8 6.1-7.7 10.4L12 20.6Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 20.6 10.7 19.5C5.8 15.2 3 12.8 3 9.1 3 6.2 5.3 4 8.2 4c1.6 0 3.1.7 4.1 1.9A5.4 5.4 0 0 1 16.4 4C19.2 4 21.5 6.2 21.5 9.1c0 3.7-2.8 6.1-7.7 10.4L12 20.6Z'/%3E%3C/svg%3E");
}
.like-button span {
  font: 700 10px var(--mono);
}

.like-button:hover,
.like-button.liked {
  border-color: #66e1cc;
  color: #66e1cc;
}

.like-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faction-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: 0 0 12px color-mix(in srgb, currentColor 55%, transparent);
}

.faction-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.faction-badge i {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.profile-faction-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.faction-surface {
  --faction-glow: rgba(102, 225, 204, 0.18);
  box-shadow:
    inset 0 0 28px var(--faction-glow),
    0 0 18px var(--faction-glow);
}

.faction-frontier {
  --faction-glow: rgba(84, 170, 255, 0.22);
  color: #79bdff;
}
.faction-rise {
  --faction-glow: rgba(255, 170, 55, 0.22);
  color: #ffb95f;
}
.faction-mercenaries {
  --faction-glow: rgba(92, 151, 255, 0.25);
  color: #83adff;
}
.faction-covenant {
  --faction-glow: rgba(221, 76, 76, 0.24);
  color: #f17b7b;
}
.faction-stalkers {
  --faction-glow: rgba(96, 210, 120, 0.2);
  color: #7ee294;
}
.faction-bandits {
  --faction-glow: rgba(190, 130, 74, 0.22);
  color: #dba46f;
}

.comment.faction-surface p,
.comment.faction-surface time {
  color: var(--text, #d7e8e8);
}

.demo-label {
  border: 1px solid currentColor;
  padding: 2px 5px;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.65;
}
.comment-author > .comment-avatar,
.comment-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-profile-link:has(.comment-avatar),
.comment-profile-link .comment-avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}
.comment-reply {
  margin-left: 38px;
  border-left: 2px solid var(--line);
}
.comment-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.reply-button,
.reply-target button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 9px var(--mono);
  cursor: pointer;
}
.reply-button:hover {
  color: var(--acid);
}
.reply-target {
  color: var(--muted);
  font-size: 9px;
}
.comment-counter {
  cursor: pointer;
  gap: 7px;
  position: relative;
}
.comment-counter i {
  background: currentColor;
  display: block;
  height: 17px;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v12H9.2L4 20V4Zm2.1 2.1v9.6l2.4-1.8h9.4V6.1H6.1Zm3 2.4h6.6v1.7H9.1V8.5Zm0 3.2h4.7v1.7H9.1v-1.7Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 17px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v12H9.2L4 20V4Zm2.1 2.1v9.6l2.4-1.8h9.4V6.1H6.1Zm3 2.4h6.6v1.7H9.1V8.5Zm0 3.2h4.7v1.7H9.1v-1.7Z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.comment-counter span {
  font: 600 9px var(--mono);
}
.comment-counter svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.article-image {
  margin: 18px 0;
}
.article-image img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}
.news-cover {
  width: calc(100% + 40px);
  height: 220px;
  margin: -20px -20px 20px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: rgba(2, 10, 16, 0.82);
  border-bottom: 1px solid var(--line);
}
.news-card[hidden],
.news-empty[hidden] {
  display: none !important;
}
.list-row.unread {
  border-left: 3px solid var(--accent);
}
.notification-count {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--acid);
  color: #031015;
  font-size: 11px;
  font-weight: 800;
}
.admin-event-count {
  color: var(--acid);
  font: 700 11px var(--mono);
  margin-left: 6px;
}
.admin-event-series {
  margin-top: 8px;
}
.admin-event-series summary {
  color: var(--cyan);
  cursor: pointer;
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.admin-event-series div {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 10px;
}
.admin-event-series span {
  color: var(--muted);
  font: 10px var(--mono);
}
.rail nav a,
.rail nav button {
  align-items: center;
  display: flex;
}
.rail nav button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  min-height: 58px;
  padding: 0 20px;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}
.rail nav button::before {
  color: var(--cyan);
  content: attr(data-icon);
  flex: 0 0 32px;
  font-size: 18px;
}
.rail nav button:hover,
.rail nav button.active {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(52, 220, 237, 0.12), transparent);
  border-color: var(--cyan);
}
.rail-admin-panel[hidden],
.rail-admin-list[hidden],
.rail nav a[hidden],
[data-editor-link][hidden],
[data-admin-link][hidden],
[data-admin-contest-link][hidden],
[data-admin-tickets-link][hidden],
[data-forum-moderation-link][hidden] {
  display: none !important;
}
.rail-admin-list {
  display: grid;
  gap: 4px;
  padding: 4px 0 10px 18px;
}
.rail-admin-list a {
  min-height: 44px;
  opacity: 0.86;
}
.rail nav .notification-count {
  flex: 0 0 auto;
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(198, 239, 71, 0.65);
  border-radius: 11px;
  background: var(--acid);
  color: #071006;
  box-shadow: 0 0 12px rgba(198, 239, 71, 0.28);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.notification-feed {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.notification-toolbar {
  align-items: center;
  background: linear-gradient(
    105deg,
    rgba(7, 32, 40, 0.88),
    rgba(2, 15, 22, 0.68)
  );
  border: 1px solid rgba(69, 213, 225, 0.26);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  min-width: 0;
  padding: 12px 14px;
}
.notification-toolbar span {
  color: var(--muted);
  font: 700 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notification-toolbar .button {
  min-height: 38px;
}
.notification-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(69, 213, 225, 0.22);
  background: linear-gradient(
    105deg,
    rgba(7, 32, 40, 0.92),
    rgba(2, 15, 22, 0.72)
  );
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
}
.notification-item:hover {
  color: var(--text);
  border-color: var(--accent);
  background: linear-gradient(
    105deg,
    rgba(12, 48, 57, 0.96),
    rgba(3, 22, 29, 0.86)
  );
  transform: translateX(3px);
}
.notification-item.unread {
  border-left: 3px solid var(--accent);
}
.notification-item.is-read {
  opacity: 0.68;
}
.notification-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid rgba(95, 240, 119, 0.48);
  background: rgba(95, 240, 119, 0.07);
  font-size: 20px;
}
.notification-content {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.notification-title {
  color: #e7fbff;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.notification-body {
  overflow: hidden;
  color: var(--muted);
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6e9aa3;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.notification-meta i {
  padding: 3px 7px;
  color: #07150c;
  background: var(--accent);
  font-style: normal;
  font-weight: 800;
}
.notification-arrow {
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.2s;
}
.notification-item:hover .notification-arrow {
  transform: translateX(3px);
}
.comment-highlight {
  animation: comment-focus 2.4s ease;
}
@keyframes comment-focus {
  0%,
  35% {
    border-color: var(--accent);
    box-shadow:
      0 0 0 2px rgba(95, 240, 119, 0.22),
      0 0 28px rgba(95, 240, 119, 0.18);
  }
  100% {
    box-shadow: none;
  }
}
.notification-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.notification-empty span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
}
.notification-empty b {
  color: var(--text);
  font-size: 18px;
}
.notification-empty p {
  margin: 0;
}
@media (max-width: 860px) {
  .notification-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }
  .notification-icon {
    width: 38px;
    height: 38px;
  }
  .notification-arrow {
    display: none;
  }
}
[data-admin-reply] {
  display: grid;
  gap: 8px;
  min-width: 280px;
}
[data-admin-reply] textarea,
[data-admin-reply] select {
  width: 100%;
}
.ticket {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.ticket-section + .ticket-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.ticket-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ticket-section-head h2 {
  margin: 5px 0 0;
}
.ticket-total {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #06140b;
  background: var(--accent);
  font-size: 18px;
}
.ticket-users {
  display: grid;
  gap: 12px;
}
.ticket-user {
  border: 1px solid rgba(69, 213, 225, 0.24);
  background: rgba(2, 16, 23, 0.55);
}
.ticket-user summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.ticket-user summary::-webkit-details-marker {
  display: none;
}
.ticket-user summary span:first-child {
  display: grid;
  gap: 4px;
}
.ticket-user summary small {
  color: var(--muted);
}
.ticket-user-items {
  padding: 0 18px 8px;
  border-top: 1px solid rgba(69, 213, 225, 0.16);
}
.widget-state.compact {
  min-height: 90px;
}
.ticket-archive {
  margin-top: 30px;
  border: 1px dashed rgba(110, 154, 163, 0.36);
  background: rgba(2, 11, 16, 0.45);
}
.ticket-archive > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}
.ticket-archive > summary::-webkit-details-marker {
  display: none;
}
.ticket-archive > summary span:first-child {
  display: grid;
  gap: 4px;
}
.ticket-archive > summary small {
  font-size: 10px;
}
.ticket-archive-items {
  padding: 0 18px 8px;
  border-top: 1px dashed rgba(110, 154, 163, 0.28);
}
.ticket:first-of-type {
  border-top: 0;
}
.ticket-head,
.ticket-status,
.ticket-reply {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.ticket-thread {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.ticket-message {
  max-width: 78%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: rgba(2, 14, 20, 0.78);
}
.ticket-message.admin {
  margin-left: auto;
  border-color: var(--accent);
}
.ticket-message p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.ticket-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.ticket-attachments a {
  display: grid;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}
.ticket-attachments img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.ticket-attachments span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.ticket-reply textarea {
  flex: 1;
  min-height: 76px;
}
.ticket-status {
  justify-content: flex-end;
  margin-top: 10px;
}
.ticket-chat-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  min-height: min(720px, calc(100vh - 220px));
  border: 1px solid rgba(69, 213, 225, 0.32);
  background: rgba(2, 13, 18, 0.64);
}
.ticket-chat-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  border-right: 1px solid rgba(69, 213, 225, 0.26);
}
.ticket-chat-layout-user .ticket-chat-sidebar {
  grid-template-rows: auto minmax(0, 1fr);
}
.ticket-chat-search {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(69, 213, 225, 0.2);
  background: rgba(3, 22, 29, 0.72);
}
.ticket-chat-search input {
  width: 100%;
  border: 0;
  background: transparent;
}
.ticket-chat-list {
  min-height: 0;
  overflow: auto;
}
.ticket-chat-filters {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(69, 213, 225, 0.12);
}
.ticket-chat-filter-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}
.ticket-chat-more-filters {
  display: grid;
  gap: 8px;
}
.ticket-chat-more-filters summary {
  cursor: pointer;
  color: var(--muted);
  font: 700 10px/1.2 var(--mono);
  list-style: none;
  padding: 6px 0 2px;
  text-transform: uppercase;
}
.ticket-chat-more-filters summary::-webkit-details-marker {
  display: none;
}
.ticket-chat-more-filters summary::before {
  content: "+";
  color: var(--cyan);
  margin-right: 8px;
}
.ticket-chat-more-filters[open] summary::before {
  content: "-";
}
.ticket-chat-filters button {
  flex: 0 0 auto;
  border: 1px solid rgba(52, 220, 237, 0.32);
  background: rgba(3, 19, 27, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: 700 10px/1 var(--mono);
  min-height: 30px;
  padding: 8px 10px;
  text-transform: uppercase;
}
.ticket-chat-filters button:hover,
.ticket-chat-filters button.active {
  border-color: var(--acid);
  color: var(--acid);
}
.ticket-chat-filters button span {
  margin-left: 6px;
  color: rgba(221, 247, 248, 0.55);
}
.ticket-new-button {
  width: calc(100% - 24px);
  margin: 12px;
}
.ticket-new-button.active {
  box-shadow: 0 0 0 1px rgba(86, 255, 145, 0.55) inset;
}
.ticket-chat-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid rgba(69, 213, 225, 0.14);
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.ticket-chat-item:hover,
.ticket-chat-item.active {
  background: rgba(61, 239, 188, 0.12);
}
.ticket-chat-item.overdue {
  border-left: 2px solid rgba(255, 97, 97, 0.86);
  background: rgba(255, 97, 97, 0.055);
}
.ticket-chat-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 255, 145, 0.55);
  color: var(--acid);
  background: rgba(22, 82, 62, 0.45);
  font: 700 18px var(--mono);
}
.ticket-chat-preview {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.ticket-chat-preview b,
.ticket-chat-preview small,
.ticket-chat-preview em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-chat-preview small {
  color: var(--muted);
}
.ticket-chat-preview em {
  color: rgba(221, 247, 248, 0.72);
  font-style: normal;
}
.ticket-chat-preview mark {
  display: inline-flex;
  width: fit-content;
  margin-top: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(86, 255, 145, 0.38);
  background: rgba(86, 255, 145, 0.1);
  color: var(--acid);
  font: 700 9px/1 var(--mono);
  text-transform: uppercase;
}
.ticket-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ticket-category,
.ticket-priority {
  display: inline-flex;
  width: fit-content;
  padding: 3px 6px;
  border: 1px solid rgba(69, 213, 225, 0.32);
  color: var(--muted);
  font: 700 9px/1 var(--mono);
  text-transform: uppercase;
}
.ticket-priority.priority-high {
  border-color: rgba(255, 224, 102, 0.6);
  color: #ffe066;
}
.ticket-priority.priority-critical {
  border-color: rgba(255, 97, 97, 0.7);
  color: #ffb3b3;
}
.ticket-chat-preview mark.overdue {
  border-color: rgba(255, 97, 97, 0.7);
  background: rgba(255, 97, 97, 0.12);
  color: #ffb3b3;
}
.ticket-chat-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font: 600 10px var(--mono);
}
.ticket-chat-meta i {
  padding: 3px 6px;
  border: 1px solid rgba(110, 154, 163, 0.35);
  font-style: normal;
  text-transform: uppercase;
}
.ticket-chat-meta strong {
  min-width: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(86, 255, 145, 0.7);
  color: var(--acid);
  text-align: center;
  background: rgba(17, 78, 52, 0.72);
}
.ticket-chat-meta i.online {
  border-color: rgba(86, 255, 145, 0.55);
  color: var(--acid);
}
.ticket-chat-room {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.ticket-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(69, 213, 225, 0.22);
  background: rgba(1, 18, 24, 0.74);
}
.ticket-chat-header h2 {
  margin: 4px 0;
  font-size: 22px;
}
.ticket-chat-events {
  border-bottom: 1px solid rgba(69, 213, 225, 0.2);
  padding: 12px 18px;
}
.ticket-chat-events summary {
  color: var(--muted);
  cursor: pointer;
  font: 700 11px/1.2 var(--mono);
  text-transform: uppercase;
}
.ticket-chat-events summary span {
  border: 1px solid rgba(86, 255, 145, 0.45);
  color: var(--acid);
  margin-left: 8px;
  padding: 2px 6px;
}
.ticket-chat-events ol {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.ticket-chat-events li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-left: 2px solid rgba(86, 255, 145, 0.45);
  padding-left: 10px;
}
.ticket-chat-events b {
  color: var(--text);
  font-size: 12px;
}
.ticket-chat-events small {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.ticket-chat-status {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ticket-chat-status input {
  width: min(260px, 28vw);
}
.ticket-chat-assignment {
  display: flex;
  justify-content: flex-end;
}
.ticket-chat-reason {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border: 1px solid rgba(86, 255, 145, 0.38);
  background: rgba(20, 68, 49, 0.38);
}
.ticket-chat-reason b {
  display: block;
  margin-bottom: 6px;
  color: var(--acid);
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
}
.ticket-chat-reason p {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}
.ticket-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background:
    linear-gradient(rgba(2, 15, 18, 0.74), rgba(2, 15, 18, 0.74)),
    radial-gradient(
      circle at 20% 20%,
      rgba(86, 255, 145, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(69, 213, 225, 0.12),
      transparent 36%
    );
}
.ticket-chat-bubble {
  width: fit-content;
  max-width: min(680px, 78%);
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(69, 213, 225, 0.32);
  background: rgba(4, 24, 31, 0.9);
}
.ticket-chat-bubble.mine {
  margin-left: auto;
  border-color: rgba(86, 255, 145, 0.58);
  background: rgba(20, 68, 49, 0.86);
}
.ticket-chat-bubble p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.ticket-chat-composer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(140px, 190px);
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(69, 213, 225, 0.22);
  background: rgba(1, 18, 24, 0.8);
}
.ticket-chat-composer textarea {
  grid-row: span 2;
  min-height: 52px;
  resize: vertical;
}
.ticket-chat-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid rgba(52, 220, 237, 0.32);
  color: var(--muted);
  cursor: pointer;
  font: 700 11px/1 var(--mono);
  padding: 0 14px;
  text-transform: uppercase;
}
.ticket-chat-file:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.ticket-chat-file input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.ticket-chat-composer .button {
  min-height: 52px;
}
.ticket-chat-closed {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid rgba(69, 213, 225, 0.22);
  color: var(--muted);
}
@media (max-width: 720px) {
  .ticket-reply,
  .ticket-status {
    align-items: stretch;
    flex-direction: column;
  }
  .ticket-message {
    max-width: 92%;
  }
  .ticket-chat-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ticket-chat-sidebar {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(69, 213, 225, 0.26);
  }
  .ticket-chat-filters {
    max-height: 180px;
    overflow-y: auto;
  }
  .ticket-chat-header,
  .ticket-chat-status,
  .ticket-chat-composer {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .ticket-chat-status input {
    width: 100%;
  }
  .ticket-chat-assignment {
    justify-content: stretch;
  }
  .ticket-chat-assignment .button {
    width: 100%;
  }
  .ticket-chat-closed {
    align-items: stretch;
    flex-direction: column;
  }
  .ticket-chat-bubble {
    max-width: 92%;
  }
}
.editor-image-button {
  border: 1px solid var(--line);
  padding: 7px 10px;
  cursor: pointer;
  color: var(--text);
  font: 600 9px var(--mono);
}
.editor-image-button:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.engagement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.engagement .like-button {
  width: 60px;
  min-width: 60px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.like-button-error {
  border-color: rgba(255, 111, 111, 0.8);
  color: #ff7f7f;
}
.engagement-error {
  color: #ff9a9a;
  display: block;
  flex-basis: 100%;
  font: 700 8px var(--mono);
  letter-spacing: 0;
  margin-top: 6px;
  max-width: 220px;
  text-transform: none;
}
.comment-profile-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.comment-profile-link:hover {
  color: var(--acid);
}
.comment-avatar-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
}
.avatar-settings {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  font: 700 22px var(--mono);
  box-shadow: 0 0 16px rgba(198, 239, 71, 0.2);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-lock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.profile-lock strong {
  color: var(--text);
  font-size: 1.05rem;
}
.profile-lock span {
  border: 1px solid rgba(111, 240, 255, 0.34);
  color: var(--muted);
  padding: 6px 10px;
  text-transform: uppercase;
}
.avatar-settings form {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.comment-login {
  display: block;
  margin-top: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--acid);
  text-decoration: none;
  font-size: 9px;
}
.comment-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.comment-form textarea {
  min-height: 90px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #0d110d;
  color: var(--text);
  padding: 12px;
  font: 10px/1.5 var(--mono);
}
.comment-form > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comment-form small {
  color: var(--muted);
  font-size: 8px;
}
.news-empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 40px;
  text-align: center;
  font-size: 10px;
}
.editor-layout {
  display: grid;
  gap: 12px;
}
.article-form {
  display: grid;
  gap: 14px;
}
.article-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-form input,
.article-form textarea,
.article-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
}
.article-form textarea {
  resize: vertical;
  line-height: 1.6;
}
.feedback-checklist {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feedback-checklist legend {
  padding: 0 6px;
  color: var(--text);
  font: 700 12px var(--mono);
}
.feedback-check-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: start;
}
.feedback-check-row label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
  font: 12px var(--font);
  letter-spacing: 0;
  text-transform: none;
}
.feedback-check-row input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
}
.feedback-check-row textarea {
  min-height: 46px;
}
@media (max-width: 620px) {
  .avatar-settings {
    align-items: flex-start;
    flex-direction: column;
  }
  .avatar-settings form,
  .avatar-actions,
  .avatar-actions button {
    width: 100%;
  }
  .feedback-check-row {
    grid-template-columns: 1fr;
  }
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.editor-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(7, 35, 46, 0.9);
  color: var(--text);
  font: 600 9px var(--mono);
  cursor: pointer;
}
.editor-toolbar button:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.article-body p {
  white-space: pre-wrap;
  line-height: 1.7;
}
.article-size-small {
  font-size: 0.8em;
}
.article-size-large {
  font-size: 1.25em;
}
.article-size-xlarge {
  font-size: 1.6em;
}
.editor-actions {
  display: flex;
  gap: 8px;
}
.article-list {
  display: grid;
  gap: 6px;
}
.article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.article-list-item:hover {
  border-color: var(--acid);
}
.article-list-item span:first-child {
  display: grid;
  gap: 4px;
}
.article-list-item small {
  color: var(--muted);
}
@media (min-width: 900px) {
  .editor-layout {
    grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
    align-items: start;
  }
}
@media (min-width: 760px) {
  .news-toolbar {
    grid-template-columns: 1fr 280px;
    align-items: center;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-grid.single-result .news-card:not([hidden]) {
    grid-column: 1 / -1;
  }
  .news-card.featured {
    grid-column: 1 / -1;
    min-height: 360px;
  }
  .news-card.featured h2 {
    font-size: 38px;
  }
}

.blacklist-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.blacklist-notice {
  border-left: 3px solid var(--acid);
  margin-bottom: 12px;
}
.blacklist-notice p {
  margin: 4px 0;
}
.blacklist-notice a {
  color: var(--acid);
  font-weight: 700;
}
.blacklist-search {
  align-items: center;
  background: rgba(3, 18, 27, 0.72);
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 14px;
}
.blacklist-search span {
  color: var(--acid);
  font-size: 20px;
}
.blacklist-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-height: 46px;
  outline: 0;
  width: 100%;
}
.user-directory {
  display: grid;
  gap: 12px;
}
.user-stats {
  display: grid;
  gap: 12px;
}
.user-stats .card {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
}
.user-stats b {
  color: #e7fbff;
  font: 500 30px var(--display);
}
.user-stats small {
  color: var(--muted);
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.user-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.user-grid.compact {
  margin-top: 12px;
}
.user-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s,
    background 0.2s;
}
.user-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.user-card.staff {
  border-color: rgba(198, 239, 71, 0.34);
  background: linear-gradient(
    145deg,
    rgba(35, 46, 12, 0.52),
    rgba(3, 18, 27, 0.48)
  );
}
.user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--muted);
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.online-badge i {
  flex: 0 0 auto;
}
.online-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53636a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.online-badge.is-online {
  color: var(--acid);
}
.online-badge.is-online i {
  background: var(--acid);
  box-shadow:
    0 0 0 1px rgba(198, 239, 71, 0.55),
    0 0 10px rgba(198, 239, 71, 0.85),
    0 0 22px rgba(95, 240, 119, 0.45);
}
.blacklist-form {
  display: grid;
  gap: 12px;
}
.blacklist-form label {
  color: var(--muted);
  display: grid;
  font: 8px var(--mono);
  gap: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blacklist-form input,
.blacklist-form select {
  background: #07151b;
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
}
.blacklist-entry h2 {
  margin: 0;
}
.blacklist-identity {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.blacklist-identity .tag {
  flex: 0 0 auto;
}
.blacklist-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.blacklist-reasons {
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px;
}
.blacklist-reasons legend {
  color: var(--muted);
  font: 8px var(--mono);
  letter-spacing: 0.1em;
  padding: 0 5px;
  text-transform: uppercase;
}
.blacklist-reasons label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 6px;
}
.blacklist-reasons input {
  min-height: auto;
  width: auto;
}
.blacklist-clan {
  border-left: 2px solid var(--acid);
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding-left: 12px;
}
.blacklist-discord {
  display: grid;
  gap: 4px;
}
.blacklist-discord small {
  color: var(--muted);
  font: 8px var(--mono);
}
.blacklist-actions {
  display: flex;
  float: right;
  gap: 14px;
}
.blacklist-clan small {
  color: var(--muted);
  font: 8px var(--mono);
}
.tag.danger {
  background: rgba(203, 55, 55, 0.15);
  color: #ff7777;
}
.danger-link {
  color: #ff7777;
  float: right;
}
@media (min-width: 760px) {
  .blacklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blacklist-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 760px) {
  .user-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 760px) and (max-width: 900px) {
  .user-grid,
  .user-grid.compact {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 9px var(--mono);
  line-height: 1.6;
  margin: 0;
  padding: 24px 18px 88px;
  text-align: center;
}
.site-footer p {
  margin: 2px 0;
}
.site-footer .site-version {
  color: var(--text);
  font-weight: 700;
  margin-top: 16px;
}
.site-footer a,
.terms-document a,
.auth-card .legal a {
  color: var(--acid);
}
.site-footer a + a {
  margin-left: 14px;
}
.changelog-list {
  display: grid;
  gap: 14px;
}
.changelog-entry h2 {
  margin: 0;
}
.changelog-entry ul {
  display: grid;
  gap: 10px;
  line-height: 1.65;
  margin: 16px 0 0;
  padding-left: 20px;
}
.changelog-entry li {
  color: #b8d7dc;
}
.terms-document {
  line-height: 1.7;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.terms-document h2 {
  margin-top: 28px;
}
.terms-document h2:first-child {
  margin-top: 0;
}
.terms-document li {
  margin: 7px 0;
}
.terms-note {
  border-left: 2px solid var(--acid);
  color: var(--muted);
  margin-top: 28px;
  padding-left: 14px;
}
@media (max-width: 759px) {
  .page-head h1 {
    font-size: clamp(38px, 13vw, 56px);
    overflow-wrap: anywhere;
  }
  .terms-document {
    font-size: 12px;
    padding: 22px;
  }
  .terms-document h2 {
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.12;
  }
}
@media (min-width: 760px) and (max-width: 900px) {
  .page-head h1 {
    font-size: 46px;
    line-height: 1;
  }
}
@media (min-width: 760px) {
  .site-footer {
    margin-left: 210px;
    padding-bottom: 28px;
  }
}
.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
}
.mobile-nav span {
  font-size: 18px;
}
.mobile-nav a.active {
  color: var(--acid);
  background: linear-gradient(0deg, rgba(198, 239, 71, 0.08), transparent);
}
main {
  padding: 24px 16px 100px;
  max-width: 1400px;
  margin: auto;
  min-width: 0;
}
main:has(.forum-index),
main:has(.forum-topic-page) {
  max-width: none;
  margin: 0;
  width: 100%;
}
.eyebrow {
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 8px 0 24px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding-bottom: 18px;
}
.page-head > div {
  min-width: 0;
}
.page-head h1,
.hero h1 {
  font: 500 clamp(32px, 8vw, 72px)/0.95 var(--display);
  overflow-wrap: anywhere;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 5px 0;
}
.page-head p,
.hero p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 590px;
  margin: 0;
}
.timestamp {
  font-size: 9px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.timestamp::before {
  content: "↻";
  color: var(--acid);
  margin-right: 6px;
}
.grid {
  display: grid;
  gap: 12px;
}
.card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(8, 35, 46, 0.58),
    rgba(3, 18, 27, 0.46)
  );
  border: 1px solid var(--line);
  padding: 18px;
  min-width: 0;
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px rgba(176, 252, 255, 0.035),
    0 18px 50px rgba(0, 0, 0, 0.18);
}
.card::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}
.card-head h2 {
  font: 500 18px var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.card-head small {
  font-size: 8px;
  color: var(--muted);
}
.metric {
  font: 500 38px var(--display);
  letter-spacing: -0.02em;
}
.metric small {
  font: 400 12px var(--mono);
  color: var(--muted);
}
.delta {
  font-size: 10px;
  color: var(--acid);
}
.delta.down {
  color: var(--red);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #03130f;
  text-decoration: none;
  text-transform: uppercase;
  font: 600 11px var(--mono);
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(101, 245, 138, 0.14);
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.companion-download {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(3 13 19 / 88%);
}
.companion-download-main {
  min-height: 430px;
  padding: clamp(32px, 6vw, 72px);
  background:
    radial-gradient(circle at 90% 0, rgb(60 207 204 / 20%), transparent 34%),
    linear-gradient(145deg, rgb(8 31 40 / 90%), rgb(3 12 18 / 96%));
}
.companion-download-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.companion-download-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.companion-download-brand div {
  display: grid;
  gap: 2px;
}
.companion-download-brand span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.companion-download-brand strong {
  font-size: 16px;
}
.companion-download-main h2 {
  margin: 38px 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.companion-download-main > p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}
.companion-download-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.companion-download-actions span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.companion-download-facts {
  display: grid;
  align-content: center;
  padding: 24px;
  border-left: 1px solid var(--line);
}
.companion-download-facts div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 5px 12px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.companion-download-facts div:last-child {
  border-bottom: 0;
}
.companion-download-facts b {
  grid-row: span 2;
  color: var(--accent);
  font:
    700 11px/1 Consolas,
    monospace;
}
.companion-download-facts strong {
  font-size: 14px;
}
.companion-download-facts p,
.companion-download-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.companion-download-note {
  margin-top: 14px;
}
@media (max-width: 860px) {
  .companion-download {
    grid-template-columns: 1fr;
  }
  .companion-download-main {
    min-height: auto;
  }
  .companion-download-facts {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
.hero {
  min-height: calc(100vh - 196px);
  display: grid;
  align-content: center;
  padding: 8vh 0;
}
.hero h1 span {
  color: var(--acid);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-readout {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.hero-readout div {
  padding: 15px 8px;
  border-right: 1px solid var(--line);
}
.hero-readout b {
  display: block;
  font: 500 22px var(--display);
}
.hero-readout small {
  color: var(--muted);
  font-size: 7px;
}
.login-layout {
  display: grid;
  min-height: calc(100vh - 190px);
  align-items: center;
  gap: 35px;
}
.test-key-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.test-key-form input {
  width: 100%;
}
.companion-devices {
  margin-top: 18px;
}
.companion-device-list {
  display: grid;
}
.companion-device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.companion-device-row input {
  width: 100%;
}
.companion-device-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.companion-device-actions {
  display: flex;
  gap: 8px;
}
.companion-device-actions .button {
  min-height: 40px;
}
@media (max-width: 620px) {
  .companion-device-row {
    grid-template-columns: 1fr;
  }
  .companion-device-actions .button {
    flex: 1;
  }
}
.test-key-admin-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  margin: 12px 0;
}
.test-key-admin-form input {
  width: 100%;
}
.admin-action-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-action-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.admin-action-filters input,
.admin-action-filters select {
  width: 100%;
}
.closed-test-gate .rail,
.closed-test-gate .top-actions,
.closed-test-gate .global-emission,
.closed-test-gate .chat-button,
.closed-test-gate .mobile-nav,
.closed-test-gate .site-footer {
  display: none;
}
.closed-test-gate .shell {
  display: block;
}
.closed-test-gate #app {
  width: min(1480px, calc(100vw - 64px));
  margin: 0 auto;
}
.auth-card {
  max-width: 460px;
  width: 100%;
  margin: auto;
}
.auth-card .seal {
  width: 68px;
  height: 68px;
  border: 1px dashed var(--acid);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--acid);
  font: 500 22px var(--display);
  margin-bottom: 24px;
}
.auth-card h1 {
  font: 500 38px var(--display);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.auth-card p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.auth-card .button {
  width: 100%;
  margin: 18px 0;
}
.legal {
  font-size: 8px !important;
}
.scan-lines {
  height: 220px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(198, 239, 71, 0.04) 8px
    ),
    radial-gradient(circle, var(--acid) 1px, transparent 2px);
  background-size:
    auto,
    24px 24px;
  opacity: 0.7;
  position: relative;
}
.scan-lines::after {
  content: "ЗАЩИЩЁННЫЙ КАНАЛ";
  position: absolute;
  inset: 50% 0 auto;
  text-align: center;
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.25em;
}
.status-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #59492b;
  background: #211c12;
  padding: 12px;
  margin-bottom: 12px;
  color: #e7c277;
  font-size: 10px;
}
.status-banner b {
  font-size: 18px;
}
.profile-strip {
  display: flex;
  gap: 15px;
  align-items: center;
  min-width: 0;
}
.profile-strip > div:last-child {
  min-width: 0;
}
.avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #20281d;
  color: var(--acid);
  font: 500 22px var(--display);
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-strip h2 {
  margin: 0;
  font: 500 24px var(--display);
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.profile-strip p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 18px;
}
.stats-row div,
.stats-row button {
  background: var(--panel);
  border: 0;
  color: var(--text);
  padding: 12px;
  text-align: left;
}
.stats-row button {
  cursor: pointer;
}
.stats-row button:hover {
  background: rgba(54, 218, 238, 0.08);
}
.stats-row b {
  font: 500 20px var(--display);
  display: block;
}
.stats-row small {
  font-size: 7px;
  color: var(--muted);
}
.emission {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(228, 96, 72, 0.18),
      transparent 28%
    ),
    var(--panel);
}
.emission .metric {
  color: var(--red);
}
.global-emission {
  position: fixed;
  z-index: 20;
  right: 18px;
  top: 72px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(20, 25, 18, 0.96);
  font-size: 10px;
}
.global-emission b {
  color: var(--red);
  text-transform: uppercase;
}
.global-emission small {
  color: var(--muted);
}
.global-emission .button {
  padding: 5px 8px;
}
.operation-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.operation-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.operation-filters input,
.operation-filters select {
  min-width: 0;
}
@media (max-width: 900px) {
  .operation-filters {
    grid-template-columns: 1fr 1fr;
  }
  .global-emission {
    left: 10px;
    right: 10px;
    top: 62px;
  }
}
.bars {
  display: flex;
  gap: 5px;
  align-items: end;
  height: 85px;
  border-bottom: 1px solid var(--line);
  margin: 15px 0;
}
.bars i {
  flex: 1;
  background: var(--acid);
  opacity: 0.55;
  min-height: 10px;
}
.bars i:last-child {
  opacity: 1;
}
.list {
  display: grid;
  gap: 0;
}
.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.list-row b {
  font-size: 11px;
}
.list-row small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.list-row strong {
  font: 500 15px var(--display);
}
.tag {
  font-size: 8px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag.online {
  border-color: #465d2c;
  color: var(--acid);
}
.admin-event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.admin-events {
  width: 100%;
  min-width: 0;
}
.admin-event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.admin-event-summary span {
  border: 1px solid var(--line);
  background: rgba(5, 26, 34, 0.62);
  padding: 10px 12px;
}
.admin-event-summary b {
  display: block;
  color: var(--text);
  font: 700 18px var(--mono);
}
.admin-event-summary small {
  color: var(--muted);
  font: 700 9px var(--mono);
  text-transform: uppercase;
}
.admin-event-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.admin-event-presets button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: rgba(7, 28, 38, 0.55);
  color: var(--muted);
  font: 700 10px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.admin-event-presets button.active {
  border-color: var(--acid);
  color: var(--acid);
  background: rgba(90, 245, 143, 0.08);
}
.admin-event-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.admin-event-active-filters small {
  color: var(--muted);
  font: 700 8px var(--mono);
  text-transform: uppercase;
}
.admin-event-active-filters span {
  max-width: min(100%, 260px);
  border: 1px solid rgba(90, 245, 143, 0.45);
  background: rgba(90, 245, 143, 0.08);
  color: var(--text);
  font: 700 10px var(--mono);
  padding: 7px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-event-active-filters b {
  color: var(--acid);
  margin-right: 6px;
}
.admin-event-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
  margin: 0 0 12px;
}
.admin-event-filters label {
  display: grid;
  gap: 5px;
}
.admin-event-filters label b {
  color: var(--muted);
  font: 700 8px var(--mono);
  text-transform: uppercase;
}
.admin-event-filters input,
.admin-event-filters select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(4, 18, 25, 0.78);
  color: var(--text);
  font: 700 10px var(--mono);
  padding: 0 10px;
}
.admin-event-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-event-filters button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: rgba(7, 28, 38, 0.55);
  color: var(--muted);
  font: 600 10px var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.admin-event-filters button.active {
  border-color: var(--acid);
  color: var(--acid);
}
.admin-event-row {
  border-left: 3px solid transparent;
  padding-left: 10px;
}
.admin-event-row summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.admin-event-row summary::-webkit-details-marker {
  display: none;
}
.admin-event-row[open] {
  background: rgba(2, 18, 25, 0.48);
  padding-right: 10px;
}
.admin-event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.admin-event-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 260px;
  border: 1px solid rgba(91, 209, 214, 0.28);
  color: var(--muted);
  padding: 4px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-event-chip small {
  color: var(--cyan);
  font-size: 7px;
  margin: 0;
}
.admin-event-error {
  border-left-color: var(--red);
  background: rgba(255, 68, 68, 0.045);
}
.admin-event-error .tag {
  border-color: rgba(255, 99, 99, 0.72);
  background: rgba(255, 68, 68, 0.1);
  color: #ff8a8a;
}
.admin-event-warning {
  border-left-color: #ffd866;
  background: rgba(255, 216, 102, 0.045);
}
.admin-event-warning .tag {
  border-color: rgba(255, 216, 102, 0.72);
  background: rgba(255, 216, 102, 0.1);
  color: #ffd866;
}
.admin-event-info {
  border-left-color: var(--cyan);
  background: rgba(91, 209, 214, 0.035);
}
.admin-event-info .tag {
  border-color: rgba(91, 209, 214, 0.66);
  background: rgba(91, 209, 214, 0.08);
  color: var(--cyan);
}
.admin-event-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.admin-event-details span,
.admin-event-details pre {
  border: 1px solid var(--line);
  background: rgba(1, 12, 18, 0.72);
  padding: 8px 10px;
}
.admin-event-details span small {
  color: var(--muted);
  font: 700 8px var(--mono);
  text-transform: uppercase;
}
.admin-event-details span b {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.admin-event-details pre {
  grid-column: 1 / -1;
  max-height: 220px;
  overflow: auto;
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  white-space: pre-wrap;
}
@media (max-width: 900px) {
  .admin-event-summary,
  .admin-event-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-event-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-event-filter-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .admin-event-summary,
  .admin-event-details,
  .admin-event-filters {
    grid-template-columns: 1fr;
  }
  .admin-event-filter-actions {
    display: grid;
  }
  .admin-event-row summary {
    grid-template-columns: 1fr;
  }
}
.clan-hero {
  padding: 24px;
  background: linear-gradient(115deg, #20291b, #111511);
  border: 1px solid var(--line);
}
.clan-hero h1 {
  font: 500 42px var(--display);
  margin: 8px 0;
  text-transform: uppercase;
}
.clan-emblem {
  width: 70px;
  height: 70px;
  border: 1px solid var(--acid);
  clip-path: polygon(50% 0, 100% 22%, 88% 82%, 50% 100%, 12% 82%, 0 22%);
  display: grid;
  place-items: center;
  color: var(--acid);
  float: right;
}
.search {
  display: flex;
  border: 1px solid var(--line);
  background: var(--panel);
  height: 48px;
  margin-bottom: 12px;
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0 14px;
  font: 11px var(--mono);
  outline: none;
}
.search button {
  width: 48px;
  background: none;
  color: var(--acid);
  border: 0;
  font-size: 18px;
}
.chart {
  width: 100%;
  height: 130px;
  margin: 10px 0;
  overflow: visible;
}
.chart path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(101, 245, 138, 0.55));
}
.chart .fill {
  fill: url(#area);
  stroke: none;
}
.chart line {
  stroke: var(--line);
  stroke-width: 1;
}
.lot {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #20261e;
  border: 1px solid var(--line);
  color: var(--acid);
}
.lot h3 {
  font-size: 10px;
  margin: 0;
}
.lot small {
  font-size: 8px;
  color: var(--muted);
}
.lot strong {
  font: 500 16px var(--display);
}
.state-lab {
  position: fixed;
  right: 12px;
  bottom: 78px;
  z-index: 18;
}
.state-lab > button {
  background: var(--amber);
  color: #151009;
  border: 0;
  padding: 9px 12px;
  font: 600 9px var(--mono);
  text-transform: uppercase;
}
.lab-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 220px;
  background: #171b16;
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: 0 15px 50px #000;
}
.state-lab.open .lab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.lab-panel b {
  grid-column: 1/-1;
  font-size: 8px;
  color: var(--muted);
  padding: 5px;
}
.lab-panel button {
  background: #222820;
  color: var(--text);
  border: 1px solid var(--line);
  font: 8px var(--mono);
  padding: 8px;
}
.widget-state {
  min-height: 185px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.widget-state .state-icon {
  font: 500 30px var(--display);
  color: var(--amber);
  margin-bottom: 8px;
}
.widget-state .button {
  margin-top: 12px;
}
.clan-catalog-controls,
.member-filters {
  display: grid;
  gap: 12px;
}
.clan-catalog-controls label,
.member-filters {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.clan-catalog-controls input,
.clan-catalog-controls select,
.member-filters input,
.member-filters select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  background: #0d110d;
  color: var(--text);
  padding: 0 12px;
  font: 500 12px var(--mono);
}
.clan-catalog-status,
.clan-members {
  margin-top: 12px;
}
.clan-cards {
  display: grid;
  gap: 10px;
}
.clan-card {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 18px;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.clan-card:hover {
  border-color: var(--acid);
  transform: translateY(-1px);
}
.clan-card h2 {
  margin: 12px 0 0;
  font: 500 22px var(--display);
  text-transform: uppercase;
}
.clan-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.clan-card-meta b {
  color: var(--text);
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.catalog-pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.button:disabled {
  opacity: 0.35;
  cursor: default;
}
.back-link {
  color: var(--acid);
  display: inline-block;
  margin-bottom: 18px;
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
}
.clan-hero .profile-fields {
  margin-top: 24px;
}
.member-list {
  margin-top: 14px;
}
.skeleton {
  width: 100%;
  height: 12px;
  margin: 7px 0;
  background: linear-gradient(90deg, #242a22 25%, #31382e 50%, #242a22 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton:nth-child(2) {
  width: 65%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 760px) {
  .topbar {
    padding: 0 30px;
  }
  .icon-button {
    display: none;
  }
  .shell {
    display: block;
    min-height: auto;
    padding-left: 210px;
  }
  .rail {
    display: flex;
    bottom: 0;
    left: 0;
    position: fixed;
    top: 72px;
    width: 210px;
    border-right: 1px solid var(--line);
    padding: 30px 16px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 9;
  }
  .rail nav {
    display: grid;
    gap: 5px;
  }
  .rail nav a,
  .rail nav button {
    color: var(--muted);
    text-decoration: none;
    padding: 13px 12px;
    font-size: 10px;
    text-transform: uppercase;
  }
  .rail nav a::before,
  .rail nav button::before {
    content: attr(data-icon);
    font-size: 17px;
    margin-right: 12px;
  }
  .rail nav a[href="/news"]::before,
  .rail nav a[href="/squads"]::before,
  .rail nav a[href="/forum"]::before,
  .rail nav a[href="/contest"]::before,
  .rail nav a[href="/blacklist"]::before,
  .rail nav a[href="/editor"]::before,
  .rail nav a[href="/admin"]::before,
  .rail nav a[href="/admin-contest"]::before,
  .rail nav a[href="/admin-tickets"]::before,
  .rail nav a[href="/admin-actions"]::before {
    background: currentColor;
    content: "";
    flex: 0 0 auto;
    height: 20px;
    margin-right: 12px;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 20px;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
  }
  .rail nav a[href="/news"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1.8 2.2v13.6h12.4V5.2H5.8Zm2.2 3h3v3H8v-3Zm5.1.2h3.4v1.7h-3.4V8.4Zm0 4.1h3.4v1.7h-3.4v-1.7ZM8 15.8h8.5v1.7H8v-1.7Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm1.8 2.2v13.6h12.4V5.2H5.8Zm2.2 3h3v3H8v-3Zm5.1.2h3.4v1.7h-3.4V8.4Zm0 4.1h3.4v1.7h-3.4v-1.7ZM8 15.8h8.5v1.7H8v-1.7Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/squads"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.2 4.2a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4Zm0 2a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Zm7.6 1.1a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0 1.9a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2ZM8.2 14c3.2 0 5.9 1.6 6.4 4.3.1.7-.4 1.3-1.1 1.3H2.9c-.7 0-1.2-.6-1.1-1.3C2.3 15.6 5 14 8.2 14Zm7.6 1.1c2.5 0 4.6 1.2 5 3.3.2.7-.4 1.2-1.1 1.2h-3.5c.2-.5.3-1.1.2-1.7a6.2 6.2 0 0 0-1.1-2.7l.5-.1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.2 4.2a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4Zm0 2a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Zm7.6 1.1a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0 1.9a1.6 1.6 0 1 0 0 3.2 1.6 1.6 0 0 0 0-3.2ZM8.2 14c3.2 0 5.9 1.6 6.4 4.3.1.7-.4 1.3-1.1 1.3H2.9c-.7 0-1.2-.6-1.1-1.3C2.3 15.6 5 14 8.2 14Zm7.6 1.1c2.5 0 4.6 1.2 5 3.3.2.7-.4 1.2-1.1 1.2h-3.5c.2-.5.3-1.1.2-1.7a6.2 6.2 0 0 0-1.1-2.7l.5-.1Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/forum"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4.5 4h15A2.5 2.5 0 0 1 22 6.5v8.2a2.5 2.5 0 0 1-2.5 2.5H9.3l-4.5 3.2c-.7.5-1.7 0-1.7-.9v-13A2.5 2.5 0 0 1 5.6 4h-1.1Zm1 2.2a.3.3 0 0 0-.3.3v10.7l3-2.1h11.3a.3.3 0 0 0 .3-.3V6.5a.3.3 0 0 0-.3-.3h-14Zm3.1 3h6.8v1.9H8.6V9.2Zm0 3.5h4.6v1.9H8.6v-1.9Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4.5 4h15A2.5 2.5 0 0 1 22 6.5v8.2a2.5 2.5 0 0 1-2.5 2.5H9.3l-4.5 3.2c-.7.5-1.7 0-1.7-.9v-13A2.5 2.5 0 0 1 5.6 4h-1.1Zm1 2.2a.3.3 0 0 0-.3.3v10.7l3-2.1h11.3a.3.3 0 0 0 .3-.3V6.5a.3.3 0 0 0-.3-.3h-14Zm3.1 3h6.8v1.9H8.6V9.2Zm0 3.5h4.6v1.9H8.6v-1.9Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/contest"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 2.6 2.7 5.4 6 .9-4.4 4.2 1.1 6-5.4-2.9-5.4 2.9 1.1-6-4.4-4.2 6-.9L12 2.6Zm0 4.9-1.3 2.6-2.8.4 2 1.9-.5 2.8 2.6-1.4 2.6 1.4-.5-2.8 2-1.9-2.8-.4L12 7.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 2.6 2.7 5.4 6 .9-4.4 4.2 1.1 6-5.4-2.9-5.4 2.9 1.1-6-4.4-4.2 6-.9L12 2.6Zm0 4.9-1.3 2.6-2.8.4 2 1.9-.5 2.8 2.6-1.4 2.6 1.4-.5-2.8 2-1.9-2.8-.4L12 7.5Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/blacklist"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.8 22 20H2L12 2.8Zm0 4.4L5.8 17.9h12.4L12 7.2Zm-1.1 3.3h2.2v4.3h-2.2v-4.3Zm0 5.5h2.2v2h-2.2v-2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.8 22 20H2L12 2.8Zm0 4.4L5.8 17.9h12.4L12 7.2Zm-1.1 3.3h2.2v4.3h-2.2v-4.3Zm0 5.5h2.2v2h-2.2v-2Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/editor"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17.8 2.8 21.2 6l-11 11H6.9v-3.3l10.9-10.9ZM5 4h8.2l-2.1 2.1H6.2v11.7h11.7v-4.9L20 10.8V20H4V4h1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M17.8 2.8 21.2 6l-11 11H6.9v-3.3l10.9-10.9ZM5 4h8.2l-2.1 2.1H6.2v11.7h11.7v-4.9L20 10.8V20H4V4h1Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/admin"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5 20.5 6v5.6c0 5.1-3.5 8.4-8.5 10-5-1.6-8.5-4.9-8.5-10V6L12 2.5Zm0 2.3L5.7 7.3v4.3c0 3.7 2.4 6.2 6.3 7.7 3.9-1.5 6.3-4 6.3-7.7V7.3L12 4.8Zm-1 4h2v3.1h3.1v2H13V17h-2v-3.1H7.9v-2H11V8.8Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2.5 20.5 6v5.6c0 5.1-3.5 8.4-8.5 10-5-1.6-8.5-4.9-8.5-10V6L12 2.5Zm0 2.3L5.7 7.3v4.3c0 3.7 2.4 6.2 6.3 7.7 3.9-1.5 6.3-4 6.3-7.7V7.3L12 4.8Zm-1 4h2v3.1h3.1v2H13V17h-2v-3.1H7.9v-2H11V8.8Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/admin-contest"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 3h10v3h3v3a5 5 0 0 1-5 5h-.4A5 5 0 0 1 13 15.5V18h3v2H8v-2h3v-2.5A5 5 0 0 1 9.4 14H9a5 5 0 0 1-5-5V6h3V3Zm2 2v5a3 3 0 0 0 6 0V5H9ZM6 8v1a3 3 0 0 0 1.4 2.5A5.7 5.7 0 0 1 7 10V8H6Zm11 0v2c0 .5-.1 1-.2 1.5A3 3 0 0 0 18 9V8h-1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 3h10v3h3v3a5 5 0 0 1-5 5h-.4A5 5 0 0 1 13 15.5V18h3v2H8v-2h3v-2.5A5 5 0 0 1 9.4 14H9a5 5 0 0 1-5-5V6h3V3Zm2 2v5a3 3 0 0 0 6 0V5H9ZM6 8v1a3 3 0 0 0 1.4 2.5A5.7 5.7 0 0 1 7 10V8H6Zm11 0v2c0 .5-.1 1-.2 1.5A3 3 0 0 0 18 9V8h-1Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/admin-tickets"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5h16v4a3 3 0 0 0 0 6v4H4v-4a3 3 0 0 0 0-6V5Zm2 2v1.1a5 5 0 0 1 0 7.8V17h12v-1.1a5 5 0 0 1 0-7.8V7H6Zm4 2h4v2h-4V9Zm0 4h4v2h-4v-2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5h16v4a3 3 0 0 0 0 6v4H4v-4a3 3 0 0 0 0-6V5Zm2 2v1.1a5 5 0 0 1 0 7.8V17h12v-1.1a5 5 0 0 1 0-7.8V7H6Zm4 2h4v2h-4V9Zm0 4h4v2h-4v-2Z'/%3E%3C/svg%3E");
  }
  .rail nav a[href="/admin-actions"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 4h14v2H5V4Zm0 4h14v2H5V8Zm0 4h9v2H5v-2Zm0 4h7v2H5v-2Zm12.8-3.2 1.4 1.4-3.6 3.6-2.1-2.1 1.4-1.4.7.7 2.2-2.2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 4h14v2H5V4Zm0 4h14v2H5V8Zm0 4h9v2H5v-2Zm0 4h7v2H5v-2Zm12.8-3.2 1.4 1.4-3.6 3.6-2.1-2.1 1.4-1.4.7.7 2.2-2.2Z'/%3E%3C/svg%3E");
  }
  .rail nav a.active,
  .rail nav button.active {
    color: var(--acid);
    background: rgba(198, 239, 71, 0.06);
    border-left: 1px solid var(--acid);
  }
  .rail-foot {
    border-top: 1px solid var(--line);
    padding: 15px 10px;
  }
  .rail-foot span,
  .rail-foot small {
    font-size: 7px;
    color: var(--muted);
    display: block;
  }
  .rail-foot b {
    font: 500 15px var(--display);
    display: block;
    margin: 6px 0;
  }
  .rail-foot .session-button {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 8px;
  }
  .mobile-nav {
    display: none;
  }
  main {
    min-height: calc(100vh - 72px - 132px);
    padding: 42px 36px 72px;
  }
  .state-lab {
    bottom: 15px;
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .span-2 {
    grid-column: span 2;
  }
  .login-layout {
    grid-template-columns: 1fr 1fr;
  }
  .scan-lines {
    height: 480px;
  }
  .hero-readout {
    max-width: 650px;
  }
  .clan-hero {
    padding: 36px;
  }
  .clan-hero h1 {
    font-size: 58px;
  }
  .clan-catalog-controls {
    grid-template-columns: 130px minmax(240px, 1fr) auto;
    align-items: end;
  }
  .clan-card {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
  }
  .member-filters {
    grid-template-columns: minmax(200px, 1fr) 220px;
  }
}
@media (min-width: 1150px) {
  .shell {
    grid-template-columns: 235px 1fr;
  }
  .grid.dashboard {
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
  }
  .dashboard .wide {
    grid-column: span 2;
  }
  .grid.profile-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .grid.clan-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .grid.auction-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .keyart-background {
    transform: scale(1.04);
  }
}

@media (max-width: 759px) {
  .keyart-background {
    background-position: 54% top;
    filter: saturate(0.76) contrast(1.08) brightness(0.5);
  }
  .keyart-shade {
    background: linear-gradient(
      180deg,
      rgba(2, 10, 16, 0.42),
      rgba(2, 10, 16, 0.92) 72%
    );
  }
}

/* Anomaly Glow theme */
.noise {
  opacity: 0.08;
  mix-blend-mode: screen;
}
.topbar,
.rail,
.mobile-nav {
  box-shadow: 0 0 35px rgba(0, 205, 226, 0.05);
}
.rail {
  background: rgba(2, 10, 16, 0.28);
  backdrop-filter: blur(9px);
}
.mobile-nav {
  background: rgba(2, 10, 16, 0.68);
  backdrop-filter: blur(12px);
}
.brand b,
.page-head h1,
.hero h1 {
  text-shadow: 0 0 24px rgba(52, 220, 237, 0.16);
}
.brand-mark,
.eyebrow,
.back-link,
.news-link {
  color: var(--cyan);
}
.brand-mark {
  border-color: var(--cyan);
}
.system-state i {
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}
.rail nav a.active,
.rail nav button.active,
.mobile-nav a.active {
  color: var(--cyan);
  background: linear-gradient(90deg, rgba(52, 220, 237, 0.12), transparent);
  border-color: var(--cyan);
}
.card::before {
  border-color: var(--cyan);
  filter: drop-shadow(0 0 5px var(--cyan));
}
.search,
.news-search,
input,
select,
textarea {
  background-color: rgba(2, 14, 22, 0.42) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
  caret-color: var(--acid);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.rich-editor-status {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font: 600 10px var(--mono);
}
textarea.rich-editor-drop {
  border-color: var(--acid) !important;
  box-shadow:
    0 0 0 1px rgba(91, 245, 126, 0.55),
    0 0 24px rgba(91, 245, 126, 0.18);
}
.item-icon,
.avatar {
  background: rgba(15, 67, 74, 0.38);
  box-shadow: inset 0 0 18px rgba(52, 220, 237, 0.08);
}
.clan-hero,
.news-card.featured {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(52, 220, 237, 0.12),
      transparent 36%
    ),
    linear-gradient(135deg, rgba(7, 35, 46, 0.58), rgba(2, 13, 21, 0.46));
}
.scan-lines {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      rgba(52, 220, 237, 0.045) 8px
    ),
    radial-gradient(circle, var(--cyan) 1px, transparent 2px);
  background-size:
    auto,
    24px 24px;
}
.scan-lines::after {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}
.global-emission {
  background: rgba(3, 17, 25, 0.58);
  backdrop-filter: blur(12px);
}
.status-banner {
  background: rgba(33, 28, 18, 0.58);
  backdrop-filter: blur(10px);
}
.stats-row div,
.profile-facts > div,
.profile-fields > div {
  background: rgba(4, 27, 36, 0.42);
}
.bars i {
  background: linear-gradient(180deg, var(--acid), var(--cyan));
  box-shadow: 0 0 8px rgba(52, 220, 237, 0.18);
}
.state-lab > button {
  background: var(--cyan);
  color: #021015;
}
.lab-panel {
  background: rgba(3, 18, 27, 0.72);
  backdrop-filter: blur(14px);
}
.lab-panel button {
  background: rgba(10, 48, 58, 0.7);
}
.skeleton {
  background: linear-gradient(90deg, #08212b 25%, #0d3a47 50%, #08212b 75%);
  background-size: 200% 100%;
}

.profile-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}
.profile-controls label {
  color: var(--muted);
  display: grid;
  font: 8px var(--mono);
  gap: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-controls select {
  background: #171b16;
  border: 1px solid var(--line);
  color: var(--text);
  font: 11px var(--mono);
  min-height: 42px;
  padding: 0 12px;
}
.profile-facts,
.profile-fields {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  min-width: 0;
}
.profile-facts > div,
.profile-fields > div {
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
}
.profile-facts small,
.profile-fields small,
.clan-summary small {
  color: var(--muted);
  font: 8px var(--mono);
}
.profile-facts strong,
.profile-fields strong {
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
.clan-summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}
.clan-summary strong,
.clan-summary small {
  display: block;
}
.sync-meta {
  color: var(--muted);
  font: 8px var(--mono);
  padding: 8px 2px;
  text-align: right;
}
.forum-index {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  min-width: 0;
  width: 100%;
}
.forum-main-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.forum-top-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.forum-search {
  align-items: center;
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
}
.forum-search span {
  color: var(--cyan);
  font: 700 16px var(--mono);
}
.forum-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  flex: 1;
  font: 13px var(--mono);
  min-width: 0;
  outline: 0;
}
.forum-rules-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  font: 700 16px var(--display);
  justify-content: space-between;
  min-height: 56px;
}
.forum-rules-strip b {
  color: var(--cyan);
  font-size: 28px;
  line-height: 1;
}
.forum-board {
  min-width: 0;
  width: 100%;
}
.forum-board-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 80px 92px minmax(150px, 0.34fr);
  margin: -2px 0 0;
  padding: 0 0 12px;
}
.forum-board-head h2 {
  font: 700 25px var(--display);
  margin: 0;
}
.forum-board-head span {
  color: var(--muted);
  font: 9px var(--mono);
  text-align: center;
  text-transform: uppercase;
}
.forum-board-head span:last-child {
  text-align: left;
}
.forum-categories {
  display: grid;
}
.forum-category-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) 80px 92px minmax(150px, 0.34fr);
  min-height: 88px;
  padding: 14px 0;
  text-align: left;
  width: 100%;
}
.forum-category-row.active,
.forum-category-row:hover {
  background: rgba(52, 220, 237, 0.08);
}
.forum-category-row.active {
  box-shadow: inset 3px 0 0 var(--cyan);
}
.forum-category-icon {
  align-self: center;
  border: 1px solid var(--line);
  color: var(--cyan);
  display: grid;
  font-size: 0;
  height: 46px;
  place-items: center;
  width: 46px;
}
.forum-category-icon::before {
  background: currentColor;
  content: "";
  height: 22px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 22px;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}
.forum-category-row[data-forum-category="important"]
  .forum-category-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v12H9.2L4 20V4Zm2.2 2.2v9.3L8.5 14h9.3V6.2H6.2ZM11 8h2v4h-2V8Zm0 5h2v2h-2v-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v12H9.2L4 20V4Zm2.2 2.2v9.3L8.5 14h9.3V6.2H6.2ZM11 8h2v4h-2V8Zm0 5h2v2h-2v-2Z'/%3E%3C/svg%3E");
}
.forum-category-row[data-forum-category="game"] .forum-category-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5h8l5 5v4l-3 5h-3l-2-3h-2l-2 3H6l-3-5v-4l5-5Zm.9 2L5 10.9v2.6L7.1 17h.8l2-3h4.2l2 3h.8l2.1-3.5v-2.6L15.1 7H8.9ZM8 10h2v2h2v2h-2v2H8v-2H6v-2h2v-2Zm7.5 1.1a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2Zm2.4 2.7a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 5h8l5 5v4l-3 5h-3l-2-3h-2l-2 3H6l-3-5v-4l5-5Zm.9 2L5 10.9v2.6L7.1 17h.8l2-3h4.2l2 3h.8l2.1-3.5v-2.6L15.1 7H8.9ZM8 10h2v2h2v2h-2v2H8v-2H6v-2h2v-2Zm7.5 1.1a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2Zm2.4 2.7a1.1 1.1 0 1 1-2.2 0 1.1 1.1 0 0 1 2.2 0Z'/%3E%3C/svg%3E");
}
.forum-category-row[data-forum-category="feedback"]
  .forum-category-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a7 7 0 0 1 7 7c0 3.6-2.5 5.4-5.2 6v2.1h-3.6v-4h1.6c2.7 0 5-1.2 5-4.1A4.8 4.8 0 1 0 8 12H5.8A7 7 0 0 1 12 3Zm-1.8 16.2h3.6V22h-3.6v-2.8Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 3a7 7 0 0 1 7 7c0 3.6-2.5 5.4-5.2 6v2.1h-3.6v-4h1.6c2.7 0 5-1.2 5-4.1A4.8 4.8 0 1 0 8 12H5.8A7 7 0 0 1 12 3Zm-1.8 16.2h3.6V22h-3.6v-2.8Z'/%3E%3C/svg%3E");
}
.forum-category-row[data-forum-category="offtopic"]
  .forum-category-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.6 3h2l-.7 5h4.2l.7-5h2l-.7 5H21v2h-4.2l-.6 4H20v2h-4.1l-.7 5h-2l.7-5H9.7L9 21H7l.7-5H3v-2h5l.6-4H4V8h4.9l.7-5Zm1 7-.6 4h4.2l.6-4h-4.2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M9.6 3h2l-.7 5h4.2l.7-5h2l-.7 5H21v2h-4.2l-.6 4H20v2h-4.1l-.7 5h-2l.7-5H9.7L9 21H7l.7-5H3v-2h5l.6-4H4V8h4.9l.7-5Zm1 7-.6 4h4.2l.6-4h-4.2Z'/%3E%3C/svg%3E");
}
.forum-category-row[data-forum-category="archive"]
  .forum-category-icon::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v5H4V4Zm2 2v1h12V6H6Zm0 4h12v10H6V10Zm2 2v6h8v-6H8Zm2 1.5h4v2h-4v-2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v5H4V4Zm2 2v1h12V6H6Zm0 4h12v10H6V10Zm2 2v6h8v-6H8Zm2 1.5h4v2h-4v-2Z'/%3E%3C/svg%3E");
}
.forum-category-copy {
  align-content: center;
  display: grid;
  gap: 5px;
  min-width: 0;
}
.forum-category-copy b {
  font: 700 17px var(--display);
}
.forum-category-copy small,
.forum-category-copy em,
.forum-category-count,
.forum-category-last,
.forum-thread-meta,
.forum-topic-meta,
.forum-message time {
  color: var(--muted);
  font: 10px var(--mono);
}
.forum-category-copy em {
  font-style: normal;
}
.forum-category-count,
.forum-category-last {
  display: grid;
  gap: 6px;
  justify-items: center;
}
.forum-category-last {
  justify-items: start;
}
.forum-category-count b,
.forum-category-last b {
  color: var(--text);
  font: 700 12px var(--mono);
}
.forum-content-grid {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  min-width: 0;
  width: 100%;
}
.forum-content,
.forum-thread-list,
.forum-messages,
.forum-topic {
  display: grid;
  gap: 12px;
}
.forum-topic-page {
  display: grid;
  gap: 16px;
  width: 100%;
}
.forum-pagination {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font: 11px var(--mono);
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}
.forum-pagination > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.forum-pagination b {
  color: var(--text);
  font: 700 12px var(--display);
}
.forum-pagination .disabled {
  opacity: 0.45;
  pointer-events: none;
}
.forum-topic {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 170px);
  margin: 0 auto;
  max-width: 1680px;
  width: 100%;
}
.forum-topic > :not(.forum-progress) {
  grid-column: 1;
}
.forum-progress {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-row: 1 / span 20;
  grid-template-columns: 8px minmax(0, 1fr);
  position: sticky;
  top: 118px;
}
.forum-progress-range {
  --progress: 0%;
  appearance: slider-vertical;
  accent-color: #5af2a0;
  background: linear-gradient(
    to bottom,
    #5af2a0 var(--progress),
    rgba(90, 242, 160, 0.16) var(--progress)
  );
  border-radius: 999px;
  cursor: pointer;
  height: 50px;
  width: 8px;
  writing-mode: vertical-lr;
}
.forum-progress b,
.forum-progress small {
  display: block;
}
.forum-progress b {
  color: #dcfff0;
  font: 700 16px var(--display);
  line-height: 1.2;
}
.forum-progress small {
  color: #9feec8;
  font: 12px var(--display);
  margin-top: 6px;
  white-space: nowrap;
}
.forum-latest {
  display: grid;
  gap: 0;
  padding: 16px;
  position: sticky;
  top: 112px;
}
.forum-latest-head {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 0 0 14px;
}
.forum-latest h2 {
  font: 700 20px var(--display);
  margin: 0;
}
.forum-latest-head small {
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.forum-latest > h2 {
  border-bottom: 1px solid var(--line);
  font: 700 20px var(--display);
  margin: 0;
  padding: 0 0 14px;
}
.forum-latest-list {
  display: grid;
}
.forum-latest-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  min-height: 78px;
  padding: 12px 0;
  text-decoration: none;
}
.forum-latest-row span {
  min-width: 0;
}
.forum-latest-row:hover {
  background: rgba(52, 220, 237, 0.06);
}
.forum-latest-row img,
.forum-latest-avatar {
  border: 1px solid var(--line);
  display: grid;
  height: 34px;
  object-fit: cover;
  overflow: hidden;
  place-items: center;
  width: 34px;
}
.forum-latest-avatar {
  color: var(--muted);
  font: 700 16px var(--display);
}
.forum-latest-row b,
.forum-latest-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.forum-latest-row b {
  font: 700 13px var(--display);
  line-height: 1.25;
}
.forum-latest-row small {
  color: var(--muted);
  font: 9px var(--mono);
  line-height: 1.45;
  margin-top: 4px;
}
.forum-latest-row em {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  display: flex;
  font: 700 11px var(--mono);
  font-style: normal;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.forum-breadcrumbs,
.forum-topic-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.forum-breadcrumbs {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  justify-content: flex-start;
  padding: 4px 0 14px;
  text-transform: uppercase;
}
.forum-breadcrumbs a,
.forum-breadcrumbs b {
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.forum-topic-toolbar {
  min-height: 58px;
}
.forum-topic-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.forum-topic-reply-link {
  justify-self: end;
}
.forum-topic-watch.active {
  border-color: rgba(90, 242, 160, 0.75);
  color: #7dffad;
}
.forum-topic-title {
  align-items: center;
  border-color: rgba(90, 242, 160, 0.45);
  display: flex;
  gap: 14px;
  justify-content: space-between;
}
.forum-topic-title h2 {
  font: 700 clamp(26px, 5vw, 48px) var(--display);
  margin: 0;
  overflow-wrap: anywhere;
}
.forum-topic-title p {
  color: var(--muted);
  font: 12px/1.6 var(--mono);
  margin: 12px 0 0;
  max-width: 920px;
}
.forum-post-stack {
  display: grid;
  gap: 14px;
}
.forum-moderation-log {
  padding: 0;
}
.forum-moderation-log summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 14px 18px;
}
.forum-moderation-log summary::-webkit-details-marker {
  display: none;
}
.forum-moderation-log summary span {
  color: var(--text);
  font: 700 13px var(--mono);
  text-transform: uppercase;
}
.forum-moderation-log summary b {
  border: 1px solid var(--line);
  color: var(--accent);
  font: 700 12px var(--mono);
  padding: 5px 9px;
}
.forum-moderation-list {
  border-top: 1px solid var(--line);
  display: grid;
}
.forum-moderation-item {
  border-bottom: 1px solid rgba(80, 242, 255, 0.12);
  display: grid;
  gap: 5px;
  padding: 13px 18px;
}
.forum-moderation-item:last-child {
  border-bottom: 0;
}
.forum-moderation-item b {
  color: var(--text);
  font: 700 13px var(--mono);
}
.forum-moderation-item span,
.forum-moderation-item small {
  color: var(--muted);
  font: 12px/1.5 var(--mono);
}
.forum-moderation-admin {
  display: grid;
  gap: 14px;
}
.forum-moderation-admin-list {
  display: grid;
  gap: 8px;
}
.forum-moderation-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}
.forum-moderation-filters label {
  display: grid;
  gap: 6px;
}
.forum-moderation-filters b {
  color: var(--muted);
  font: 700 9px var(--mono);
  text-transform: uppercase;
}
.forum-moderation-filters input,
.forum-moderation-filters select {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(4, 22, 30, 0.58);
  color: var(--text);
  padding: 0 10px;
  font: 12px var(--display);
}
.forum-moderation-admin-row {
  display: grid;
  grid-template-columns: 120px 90px 160px minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(69, 213, 225, 0.22);
  background: rgba(4, 22, 30, 0.62);
  color: var(--text);
  text-decoration: none;
}
.forum-moderation-admin-row:hover {
  border-color: var(--cyan);
}
.forum-moderation-admin-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.forum-moderation-admin-row small {
  color: var(--muted);
  font: 700 9px var(--mono);
  text-transform: uppercase;
}
.forum-moderation-admin-row b,
.forum-moderation-admin-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-moderation-admin-row b {
  font: 700 12px var(--display);
}
.forum-moderation-admin-row em {
  color: var(--muted);
  font: 11px var(--display);
  font-style: normal;
}
.forum-admin-pagination {
  background: rgba(4, 22, 30, 0.45);
}
.forum-post {
  display: grid;
  gap: 18px;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  padding: 22px;
  scroll-margin-top: 120px;
}
.forum-post:target,
.forum-post.link-target {
  border-color: rgba(90, 242, 160, 0.8);
  box-shadow:
    0 0 0 1px rgba(90, 242, 160, 0.22),
    0 0 36px rgba(90, 242, 160, 0.16);
}
.forum-post.link-target {
  animation: forum-target-pulse 1.2s ease-in-out 2;
}
@keyframes forum-target-pulse {
  0%,
  100% {
    background: rgba(0, 24, 30, 0.58);
  }
  50% {
    background: rgba(31, 116, 88, 0.28);
  }
}
.forum-post-profile {
  align-content: start;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  justify-items: center;
  padding-right: 18px;
  text-align: center;
}
.forum-profile-name {
  color: var(--text);
  font: 700 18px var(--display);
  text-decoration: none;
}
.forum-profile-name.role-admin {
  color: #ff5656;
}
.forum-profile-name.role-moderator {
  color: #ffad4d;
}
.forum-profile-name.role-editor {
  color: #6ff58a;
}
.forum-role-badge {
  border: 1px solid currentColor;
  font: 700 9px var(--mono);
  padding: 3px 6px;
  text-transform: uppercase;
}
.forum-role-badge.role-admin {
  color: #ff5656;
}
.forum-role-badge.role-moderator {
  color: #ffad4d;
}
.forum-role-badge.role-editor {
  color: #6ff58a;
}
.forum-profile-avatar {
  border: 1px solid var(--line);
  display: grid;
  height: 96px;
  margin: 8px 0;
  overflow: hidden;
  place-items: center;
  width: 96px;
}
.forum-profile-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.forum-profile-avatar span {
  font: 700 34px var(--display);
}
.forum-post-profile small,
.forum-post-profile span {
  color: var(--muted);
  font: 10px var(--mono);
}
.forum-post-main {
  display: grid;
  gap: 18px;
  min-height: 210px;
  min-width: 0;
  padding-bottom: 48px;
  position: relative;
}
.forum-post-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font: 10px var(--mono);
  gap: 10px;
  justify-content: space-between;
}
.forum-post-actions {
  align-items: center;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  position: absolute;
  right: 0;
  z-index: 3;
}
.forum-post-actions .like-button,
.forum-post-actions .reply-button {
  pointer-events: auto;
}
.forum-post-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.forum-post-body a,
.reply-target a {
  border-bottom: 1px solid rgba(52, 220, 237, 0.45);
  color: var(--cyan);
  font: inherit;
  text-decoration: none;
}
.forum-post-body a:hover,
.reply-target a:hover {
  border-bottom-color: currentColor;
  color: var(--green);
}
.reply-target a strong {
  color: inherit;
  font: inherit;
}
.forum-post.deleted {
  opacity: 0.82;
}
.forum-post-deleted {
  border: 1px dashed rgba(255, 109, 109, 0.45);
  color: #ff8b8b;
  display: grid;
  gap: 5px;
  padding: 14px;
}
.forum-post-deleted b {
  font: 700 13px var(--display);
}
.forum-post-deleted small {
  color: var(--muted);
  font: 11px var(--mono);
}
.forum-deleted-original {
  border: 1px dashed rgba(255, 86, 86, 0.35);
  margin-top: 14px;
  padding: 14px;
}
.forum-deleted-original > b {
  color: #ff9b9b;
  display: block;
  font: 700 12px var(--mono);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.forum-mention {
  border: 1px solid rgba(90, 242, 160, 0.55);
  color: #7dffad;
  display: inline-block;
  font: 700 0.9em var(--mono);
  padding: 1px 5px;
  text-decoration: none;
  white-space: nowrap;
}
.forum-mention:hover {
  border-color: currentColor;
  color: var(--green);
}
.forum-mention-suggest {
  background: rgba(0, 18, 24, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  margin-top: -1px;
  max-width: 360px;
  padding: 6px;
  z-index: 6;
}
.forum-mention-suggest[hidden] {
  display: none !important;
}
.forum-mention-suggest button {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  padding: 8px 10px;
  text-align: left;
}
.forum-mention-suggest button:hover {
  border-color: rgba(90, 242, 160, 0.65);
}
.forum-mention-suggest img,
.forum-mention-suggest button > span:first-child {
  align-items: center;
  background: rgba(90, 242, 160, 0.1);
  border: 1px solid rgba(90, 242, 160, 0.35);
  color: #7dffad;
  display: inline-flex;
  font: 700 12px var(--mono);
  height: 30px;
  justify-content: center;
  object-fit: cover;
  width: 30px;
}
.forum-mention-suggest button > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.forum-mention-suggest b {
  color: #7dffad;
  font: 700 12px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-mention-suggest small {
  color: var(--muted);
  font: 10px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-mention-loading {
  color: var(--muted);
  font: 10px var(--mono);
  padding: 10px;
  text-transform: uppercase;
}
.forum-post-body img,
.forum-post-body video,
.forum-post-body iframe {
  border: 1px solid var(--line);
  box-sizing: border-box;
  display: block;
  height: auto !important;
  margin: 10px 0;
  max-height: min(70vh, 720px);
  max-width: 100% !important;
  object-fit: contain;
  width: auto !important;
}
.forum-post-body iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
}
.rich-editor-toolbar {
  align-items: center;
  border: 1px solid var(--line);
  border-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
}
.rich-editor-toolbar button {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text);
  display: inline-flex;
  justify-content: center;
  min-height: 30px;
  min-width: 32px;
}
.rich-editor-toolbar button:hover {
  border-color: var(--cyan);
}
.rich-toolbar-sticker {
  height: 20px;
  object-fit: contain;
  width: 20px;
}
.sticker-picker {
  background: rgba(0, 16, 22, 0.94);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  max-height: 220px;
  overflow: auto;
  padding: 8px;
}
.sticker-picker[hidden] {
  display: none !important;
}
.sticker-picker button {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 2px;
}
.sticker-picker button:hover {
  border-color: var(--cyan);
}
.sticker-picker img {
  height: 36px;
  object-fit: contain;
  width: 36px;
}
.sticker-emoji,
.forum-post-body img.sticker-emoji,
.article-body img.sticker-emoji,
.comment img.sticker-emoji {
  border: 0;
  display: inline-block;
  height: 42px !important;
  margin: 0 2px;
  max-height: 42px;
  max-width: 42px !important;
  object-fit: contain;
  vertical-align: middle;
  width: 42px !important;
}
.forum-post-edited {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  margin: 4px 0 0;
  padding-top: 10px;
}
.forum-reply-quote {
  background:
    linear-gradient(90deg, rgba(90, 242, 160, 0.12), transparent),
    rgba(1, 14, 18, 0.55);
  border: 1px solid rgba(90, 242, 160, 0.28);
  border-left: 3px solid #5af2a0;
  color: var(--muted);
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  max-width: 780px;
  padding: 10px 12px;
  text-decoration: none;
}
.forum-reply-quote:hover {
  border-color: rgba(90, 242, 160, 0.65);
  color: var(--text);
}
.forum-reply-quote span {
  color: #7dffad;
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.forum-reply-quote b {
  color: var(--text);
  font: 700 13px var(--display);
}
.forum-reply-quote small {
  color: var(--muted);
  font: 12px/1.5 var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-locked-notice {
  border-color: rgba(255, 82, 82, 0.65);
  color: #ff6d6d;
  font: 700 13px var(--display);
  min-height: 74px;
}
.forum-locked-notice b,
.forum-locked-notice small {
  display: block;
}
.forum-locked-notice small {
  color: var(--muted);
  font: 12px/1.5 var(--mono);
  margin-top: 8px;
}
.forum-form {
  display: grid;
  gap: 12px;
}
.forum-form[hidden] {
  display: none !important;
}
.forum-form textarea {
  min-height: 104px;
  resize: vertical;
}
.forum-form label {
  display: grid;
  gap: 7px;
}
.forum-draft-prompt {
  align-items: center;
  background: rgba(90, 242, 160, 0.08);
  border: 1px solid rgba(90, 242, 160, 0.42);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}
.forum-draft-prompt[hidden] {
  display: none !important;
}
.forum-draft-prompt > div {
  display: grid;
  gap: 4px;
}
.forum-draft-prompt b {
  color: #7dffad;
  font: 700 13px var(--display);
}
.forum-draft-prompt small {
  color: var(--muted);
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .forum-topic {
    grid-template-columns: 1fr;
  }
  .forum-topic > :not(.forum-progress),
  .forum-progress {
    grid-column: 1;
  }
  .forum-progress {
    grid-row: auto;
    position: static;
  }
  .forum-progress-range {
    height: 40px;
  }
}
.forum-actions,
.forum-thread-meta,
.forum-topic-meta,
.forum-message-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.forum-thread > a {
  color: inherit;
  display: grid;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}
.forum-thread {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px) minmax(
      180px,
      220px
    );
  min-width: 0;
  padding: 18px 20px;
  position: relative;
}
.forum-thread.pinned {
  background:
    linear-gradient(90deg, rgba(90, 242, 160, 0.11), transparent 44%),
    rgba(100, 255, 125, 0.04);
  border-color: rgba(100, 255, 125, 0.58);
}
.forum-thread.unread {
  border-color: rgba(52, 220, 237, 0.65);
  box-shadow:
    inset 3px 0 0 var(--cyan),
    0 0 18px rgba(52, 220, 237, 0.08);
}
.forum-thread.unread h2 {
  color: #e8ffff;
}
.forum-thread-replies {
  color: var(--muted);
  font: 11px var(--mono);
  white-space: nowrap;
}
.forum-thread-side {
  align-items: center;
  color: var(--muted);
  display: grid;
  font: 10px var(--mono);
  gap: 6px;
  justify-items: end;
  text-align: right;
}
.forum-thread-main {
  color: inherit;
  display: grid;
  gap: 7px;
  min-width: 0;
  text-decoration: none;
}
.forum-thread-main p {
  color: var(--muted);
  font: 11px var(--mono);
  line-height: 1.5;
  margin: 0;
}
.forum-thread-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 18px;
}
.forum-thread-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.forum-thread-stats span {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  min-height: 52px;
  place-items: center;
}
.forum-thread-stats b {
  color: var(--text);
  font: 700 16px var(--display);
}
.forum-thread-stats small {
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.forum-thread-last {
  align-items: center;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-width: 0;
  text-decoration: none;
}
.forum-thread-last img,
.forum-thread-last .forum-latest-avatar {
  border: 1px solid var(--line);
  height: 38px;
  object-fit: cover;
  width: 38px;
}
.forum-thread-last b,
.forum-thread-last small,
.forum-thread-last em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-thread-last em {
  color: #7dffad;
  font: 700 8px var(--mono);
  font-style: normal;
  text-transform: uppercase;
}
.forum-thread-last b {
  font: 700 12px var(--display);
}
.forum-thread-last small {
  color: var(--muted);
  font: 9px var(--mono);
  margin-top: 4px;
}
.forum-thread-side .forum-author {
  justify-content: end;
}
.forum-unread-dot {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(52, 220, 237, 0.75);
  display: inline-block;
  height: 8px;
  width: 8px;
}
.forum-unread-mark {
  align-items: center;
  border: 1px solid rgba(52, 220, 237, 0.68);
  color: var(--cyan);
  display: inline-flex;
  font: 700 10px var(--mono);
  gap: 6px;
  padding: 4px 7px;
  text-transform: uppercase;
}
.forum-pin-mark {
  border: 1px solid rgba(100, 255, 125, 0.75);
  color: #6ff58a;
  display: inline-block;
  font: 700 10px var(--mono);
  margin-right: 10px;
  padding: 4px 7px;
  text-transform: uppercase;
  vertical-align: middle;
}
.forum-thread img,
.forum-thread picture,
.forum-thread video {
  display: none !important;
}
.forum-thread .forum-thread-last img {
  display: block !important;
}
.forum-thread h2,
.forum-topic-head h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 760px) {
  body:has(.forum-index) .chat-button {
    display: none;
  }
  .forum-index {
    grid-template-columns: 1fr;
  }
  .forum-latest {
    position: static;
  }
  .forum-content-grid {
    grid-template-columns: 1fr;
  }
  .forum-thread {
    grid-template-columns: 1fr;
  }
  .forum-thread-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .forum-thread-last {
    align-items: start;
  }
  .forum-thread-side {
    justify-items: start;
    text-align: left;
  }
  .forum-thread-side .forum-author {
    justify-content: start;
  }
}
.forum-thread p,
.forum-topic-head p,
.forum-message p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.forum-topic-head img,
.forum-message img,
.forum-topic-head video,
.forum-message video,
.forum-topic-head iframe,
.forum-message iframe {
  border: 1px solid var(--line);
  display: block;
  height: auto;
  margin: 10px 0;
  max-height: min(70vh, 720px);
  max-width: 100%;
  object-fit: contain;
}
.forum-topic-head iframe,
.forum-message iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.forum-topic-head,
.forum-message {
  max-width: 100%;
  overflow: hidden;
}

.contest-shell,
.contest-admin {
  display: grid;
  gap: 14px;
}
.contest-status {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 64px;
}
.contest-status b {
  color: var(--acid);
  font: 700 13px var(--mono);
}
.contest-status span {
  color: var(--muted);
  font: 700 12px var(--mono);
  text-transform: uppercase;
}
.contest-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 0;
}
.contest-submit {
  display: grid;
  gap: 18px;
}
.contest-submission-state {
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px;
}
.contest-submission-state b,
.contest-submission-state small {
  display: block;
}
.contest-submission-state small {
  color: var(--muted);
  font: 10px var(--mono);
}
.contest-submission-state img {
  border: 1px solid var(--line);
  height: auto;
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
}
.contest-shot {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.36);
  display: flex;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}
.contest-shot img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.contest-author {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 18px 0;
}
.contest-author span {
  color: var(--muted);
  font: 9px var(--mono);
  text-transform: uppercase;
}
.contest-author b {
  font: 700 18px var(--display);
}
.contest-vote {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 0 18px 20px;
}
.contest-vote p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.contest-stars {
  display: flex;
  gap: 6px;
}
.contest-stars button {
  background: transparent;
  border: 1px solid rgba(52, 220, 237, 0.26);
  color: var(--muted);
  cursor: pointer;
  font-size: 30px;
  height: 48px;
  line-height: 1;
  width: 48px;
}
.contest-stars button:hover,
.contest-stars button.active {
  border-color: var(--acid);
  color: var(--acid);
  text-shadow: 0 0 12px rgba(101, 245, 138, 0.4);
}
.contest-stars button:disabled {
  cursor: default;
  opacity: 0.7;
}
.contest-nav,
.contest-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}
.contest-nav {
  justify-content: center;
}
.contest-nav .button {
  min-width: 48px;
  padding: 0;
}
.contest-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: min(520px, 60vw);
}
.contest-dots button {
  background: rgba(111, 157, 166, 0.42);
  border: 0;
  cursor: pointer;
  height: 8px;
  width: 22px;
}
.contest-dots button.active {
  background: var(--acid);
}
.contest-modal {
  align-items: center;
  background: rgba(2, 10, 16, 0.76);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 40;
}
.contest-modal-card {
  background: rgba(3, 18, 27, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(52, 220, 237, 0.16);
  max-width: 420px;
  padding: 22px;
  width: 100%;
}
.contest-modal-card h2 {
  font: 700 24px var(--display);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.contest-modal-card p {
  color: var(--muted);
  line-height: 1.6;
}
.contest-toast {
  background: var(--acid);
  bottom: 92px;
  color: #03130f;
  font: 800 12px var(--mono);
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 45;
}
.contest-admin-form {
  display: grid;
  gap: 12px;
}
.contest-admin-form label {
  color: var(--muted);
  display: grid;
  font: 9px var(--mono);
  gap: 6px;
  text-transform: uppercase;
}
.contest-image-button {
  justify-self: start;
  margin-top: -2px;
}
.contest-admin-form input.contest-image-drop {
  border-color: var(--acid) !important;
  box-shadow:
    0 0 0 1px rgba(91, 245, 126, 0.55),
    0 0 24px rgba(91, 245, 126, 0.18);
}
.contest-admin-form .contest-check {
  align-items: center;
  display: flex;
  gap: 8px;
}
.contest-work-grid {
  display: grid;
  gap: 12px;
}
.contest-admin-work {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  padding: 12px 0;
}
.contest-admin-work > a {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  display: block;
  overflow: hidden;
}
.contest-admin-work img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.contest-admin-work b,
.contest-admin-work small,
.contest-admin-work p {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.contest-admin-work small {
  color: var(--muted);
  font: 10px var(--mono);
  margin-top: 5px;
}
.contest-admin-work p {
  color: var(--muted);
  margin: 8px 0 0;
}
.contest-results {
  margin-top: 4px;
}
@media (min-width: 860px) {
  .contest-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contest-admin > .card:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .contest-status {
    align-items: start;
    display: grid;
  }
  .contest-shot {
    min-height: 180px;
  }
  .contest-stars button {
    font-size: 24px;
    height: 42px;
    width: 42px;
  }
  .contest-dots {
    max-width: 48vw;
  }
}
.forum-author {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.squad-shell,
.squad-board,
.squad-wizard form {
  display: grid;
  gap: 14px;
}
.squad-actions {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
}
.squad-actions > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.squad-actions .news-filters {
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
}
.squad-actions .news-filters button {
  flex: 1 1 118px;
  min-width: 0;
}
.squad-actions > .button {
  align-self: stretch;
  min-width: 140px;
}
.squad-status-filters {
  justify-content: flex-start;
}
.squad-grid {
  display: grid;
  gap: 12px;
}
.squad-card {
  display: grid;
  gap: 14px;
}
.squad-card-live {
  border-color: rgba(101, 245, 138, 0.65);
  box-shadow: inset 0 0 0 1px rgba(101, 245, 138, 0.14);
}
.squad-card-closed {
  border-color: rgba(111, 157, 166, 0.34);
}
.squad-card .card-head {
  align-items: start;
}
.squad-count {
  display: grid;
  justify-items: end;
  gap: 3px;
}
.squad-count small {
  color: var(--muted);
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.squad-meta,
.loadout-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.squad-members {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 560px));
}
.squad-meta span {
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 10px var(--mono);
  padding: 6px 8px;
  text-transform: uppercase;
}
.squad-live-badge,
.squad-search-badge,
.squad-closed-badge {
  border: 1px solid rgba(54, 218, 238, 0.35);
  display: inline-flex;
  font: 800 10px var(--mono);
  margin-top: 8px;
  padding: 6px 9px;
  text-transform: uppercase;
}
.squad-live-badge {
  border-color: rgba(101, 245, 138, 0.75);
  color: var(--acid);
}
.squad-search-badge {
  color: var(--muted);
}
.squad-closed-badge {
  border-color: rgba(111, 157, 166, 0.42);
  color: var(--muted);
}
.squad-detail-lines {
  border: 1px solid rgba(54, 218, 238, 0.24);
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}
.squad-detail-lines div {
  display: grid;
  gap: 4px;
}
.squad-detail-lines b {
  color: var(--muted);
  font: 800 9px var(--mono);
  text-transform: uppercase;
}
.squad-detail-lines span {
  color: var(--text);
  font: 700 12px var(--mono);
  line-height: 1.45;
}
.squad-contact-line {
  align-items: center;
  border: 1px solid rgba(101, 245, 138, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
}
.squad-contact-line b {
  color: var(--muted);
  font: 800 10px var(--mono);
  text-transform: uppercase;
}
.squad-contact-line b::after {
  content: ":";
}
.squad-contact-line span {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 800 13px var(--mono);
  overflow-wrap: anywhere;
}
.squad-contact-line em {
  border: 1px solid rgba(54, 218, 238, 0.35);
  color: var(--acid);
  font-style: normal;
  padding: 3px 6px;
  text-transform: uppercase;
}
.squad-member,
.squad-application {
  box-sizing: border-box;
  border: 1px solid rgba(54, 218, 238, 0.22);
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 212px;
  padding: 12px;
  width: min(100%, 560px);
}
.squad-member-head {
  align-items: center;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}
.squad-member-head > div {
  display: grid;
  min-width: 0;
}
.squad-member-head b,
.squad-profile-link {
  color: var(--text);
  font: 800 17px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}
.squad-profile-link:hover {
  color: var(--acid);
}
.squad-member-head small {
  color: var(--muted);
  font: 700 9px var(--mono);
  text-transform: uppercase;
}
.squad-member-stats {
  display: grid;
  gap: 6px;
  margin-left: auto;
  width: 68px;
}
.squad-member-stats span {
  border: 1px solid rgba(54, 218, 238, 0.22);
  display: grid;
  min-width: 54px;
  padding: 5px 6px;
  text-align: right;
}
.squad-member-stats b {
  color: var(--text);
  font: 800 13px var(--mono);
}
.squad-member-stats small,
.squad-member-badge {
  color: var(--muted);
  font: 700 8px var(--mono);
  text-transform: uppercase;
}
.squad-member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.squad-member-badge {
  border: 1px solid rgba(101, 245, 138, 0.35);
  color: var(--acid);
  padding: 2px 5px;
}
.squad-member > span {
  color: var(--acid);
  font: 700 10px var(--mono);
  text-transform: uppercase;
}
.squad-member-actions,
.squad-applications {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.squad-my-application {
  border: 1px solid rgba(101, 245, 138, 0.35);
  display: grid;
  gap: 6px;
  padding: 10px;
}
.squad-my-application > b {
  color: var(--acid);
  font: 800 10px var(--mono);
  text-transform: uppercase;
}
.squad-my-application > span {
  color: var(--muted);
  font: 700 10px var(--mono);
}
.squad-my-application div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.squad-applications {
  border: 1px solid rgba(255, 184, 77, 0.28);
  display: grid;
  gap: 10px;
  padding: 10px;
}
.squad-applications > b {
  color: #ffcf77;
  font: 800 10px var(--mono);
  text-transform: uppercase;
}
.squad-application {
  border-color: rgba(255, 184, 77, 0.24);
}
.squad-application-details {
  border-top: 1px solid rgba(255, 184, 77, 0.18);
  padding-top: 8px;
}
.squad-application-details summary {
  color: var(--accent);
  cursor: pointer;
  font: 800 10px var(--mono);
  text-transform: uppercase;
}
.squad-application-details > div {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}
.squad-application-details p {
  display: grid;
  gap: 4px;
  margin: 0;
}
.squad-application-details p > b {
  color: var(--muted);
  font: 800 9px var(--mono);
  text-transform: uppercase;
}
.squad-application-details p > span {
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font: 700 11px var(--mono);
}
.squad-step-head {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
}
.squad-step-head h2 {
  font: 700 24px var(--display);
  margin: 0;
  text-transform: uppercase;
}
.squad-step-head span {
  color: var(--acid);
  font: 800 12px var(--mono);
}
.squad-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.squad-options label {
  cursor: pointer;
}
.squad-options input {
  position: absolute;
  opacity: 0;
}
.squad-options span {
  border: 1px solid var(--line);
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px 10px;
  text-align: center;
}
.squad-options input:checked + span {
  background: rgba(101, 245, 138, 0.14);
  border-color: var(--acid);
  color: var(--acid);
}
.squad-form-grid,
.squad-loadout-tools {
  display: grid;
  gap: 12px;
}
.squad-preset-manager {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
}
.squad-preset-heading {
  display: grid;
  gap: 3px;
}
.squad-preset-heading h3 {
  color: var(--text);
  font: 800 14px var(--display);
  margin: 0;
  text-transform: uppercase;
}
.squad-preset-heading small,
.squad-preset-status {
  color: var(--muted);
  font: 700 9px var(--mono);
}
.squad-preset-controls {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr) auto auto;
}
.squad-preset-controls .news-link {
  min-height: 42px;
  padding: 9px 12px;
}
.squad-preset-controls button:disabled {
  cursor: default;
  opacity: 0.45;
}
.squad-wizard label {
  color: var(--muted);
  display: grid;
  gap: 7px;
  font: 9px var(--mono);
  text-transform: uppercase;
}
.squad-wizard input,
.squad-wizard select,
.squad-wizard textarea {
  background: #071923;
  border: 1px solid var(--line);
  color: var(--text);
  font: 12px var(--mono);
  min-height: 42px;
  padding: 10px 12px;
}
.squad-wizard textarea {
  min-height: 92px;
  resize: vertical;
}
.squad-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 860px) {
  .squad-preset-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .squad-preset-name {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .squad-preset-controls {
    align-items: stretch;
    grid-template-columns: 1fr 1fr;
  }
  .squad-preset-select,
  .squad-preset-name {
    grid-column: 1 / -1;
  }
  .squad-preset-controls .news-link {
    white-space: normal;
  }
}
.squad-hint {
  border: 1px solid rgba(54, 218, 238, 0.22);
  color: var(--muted);
  font: 700 10px var(--mono);
  margin: 0;
  padding: 12px;
  text-transform: uppercase;
}
.profile-squad-history {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
}
.profile-squad-history h2 {
  font: 800 14px var(--display);
  margin: 0;
  text-transform: uppercase;
}
.squad-history-entry {
  border: 1px solid rgba(54, 218, 238, 0.22);
  display: grid;
  gap: 4px;
  padding: 10px;
}
.squad-history-entry summary {
  cursor: pointer;
  list-style: none;
}
.squad-history-entry summary::-webkit-details-marker {
  display: none;
}
.squad-history-entry summary > span {
  display: grid;
  gap: 4px;
}
.squad-history-entry summary em,
.squad-history-entry summary small {
  color: var(--muted);
  font: 700 10px var(--mono);
}
.squad-history-entry summary em {
  font-style: normal;
}
.squad-history-detail {
  border-top: 1px solid rgba(54, 218, 238, 0.18);
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
}
.squad-history-detail h3 {
  color: var(--muted);
  font: 800 11px var(--mono);
  margin: 0;
  text-transform: uppercase;
}
.squad-history-members {
  display: grid;
  gap: 10px;
}
.squad-history-member {
  border: 1px solid rgba(54, 218, 238, 0.18);
  display: grid;
  gap: 10px;
  padding: 10px;
}
.squad-rating-list {
  border: 0 !important;
  display: grid;
  gap: 8px;
  padding: 0 !important;
}
.squad-rating-list section {
  border-top: 1px solid rgba(54, 218, 238, 0.16);
  display: grid;
  gap: 6px;
  padding-top: 8px;
}
.squad-rating-list section > span {
  align-items: center;
  display: flex;
  gap: 8px;
}
.squad-rating-list p {
  display: flex;
  gap: 6px;
  margin: 0;
}
.squad-rating-list button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font: 800 11px var(--mono);
  height: 30px;
  width: 30px;
}
.squad-rating-list button.active,
.squad-rating-list button:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.squad-rating-list button:disabled {
  cursor: default;
  opacity: 0.45;
}
.squad-rating-list button.active:disabled {
  opacity: 1;
}
.squad-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.squad-ready-badge,
.squad-ready-summary,
.squad-chat-toggle [data-squad-chat-unread] {
  border: 1px solid rgba(255, 184, 77, 0.52);
  color: #ffcf77;
  font: 800 9px var(--mono);
  padding: 3px 6px;
  text-transform: uppercase;
}
.squad-ready-badge.is-ready,
.squad-ready-action.is-ready,
.squad-ready-summary.is-ready {
  border-color: rgba(101, 245, 138, 0.55);
  color: var(--acid);
}
.squad-ready-summary {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
}
.squad-not-ready {
  border-left: 2px solid rgba(255, 184, 77, 0.65);
  color: var(--muted);
  font: 700 11px var(--mono);
  margin: 12px 0 0;
  padding: 6px 10px;
}
.squad-not-ready b {
  color: #ffcf77;
}
.squad-chat-toggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}
.squad-chat-toggle [data-squad-chat-unread] {
  background: rgba(255, 184, 77, 0.14);
  min-width: 18px;
  text-align: center;
}
.squad-chat {
  border-top: 1px solid rgba(54, 218, 238, 0.28);
  display: grid;
  gap: 12px;
  padding-top: 14px;
  scroll-margin-top: 112px;
}
.squad-chat[hidden] {
  display: none;
}
body:has(.squad-chat:not([hidden])) .chat-button {
  display: none;
}
.squad-chat-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.squad-chat-head > div {
  display: grid;
  gap: 3px;
}
.squad-chat-head small {
  color: var(--acid);
  font: 800 9px var(--mono);
  text-transform: uppercase;
}
.squad-chat-head h3 {
  color: var(--text);
  font: 700 20px var(--display);
  margin: 0;
  text-transform: uppercase;
}
.squad-chat-messages {
  background: rgba(3, 17, 24, 0.44);
  border: 1px solid rgba(54, 218, 238, 0.2);
  display: grid;
  gap: 8px;
  max-height: 360px;
  min-height: 112px;
  overflow-y: auto;
  padding: 12px;
}
.squad-chat-message {
  background: rgba(9, 32, 42, 0.88);
  border: 1px solid rgba(54, 218, 238, 0.25);
  display: grid;
  gap: 8px;
  max-width: min(78%, 680px);
  padding: 10px 12px;
}
.squad-chat-message.is-own {
  background: rgba(15, 65, 49, 0.62);
  border-color: rgba(101, 245, 138, 0.42);
  justify-self: end;
}
.squad-chat-author {
  align-items: center;
  display: flex;
  gap: 8px;
}
.squad-chat-author > div {
  display: grid;
  gap: 2px;
}
.squad-chat-author a {
  color: var(--text);
  font: 800 11px var(--mono);
  text-decoration: none;
}
.squad-chat-author a:hover {
  color: var(--acid);
}
.squad-chat-author time {
  color: var(--muted);
  font: 700 8px var(--mono);
  text-transform: uppercase;
}
.squad-chat-avatar {
  align-items: center;
  border: 1px solid rgba(101, 245, 138, 0.42);
  color: var(--acid);
  display: inline-flex;
  font: 800 12px var(--mono);
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}
.squad-chat-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.squad-chat-message > p {
  color: var(--text);
  font: 500 12px/1.55 var(--mono);
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.squad-chat-compose {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.squad-chat-compose label {
  display: block;
}
.squad-chat-compose textarea {
  background: #071923;
  border: 1px solid var(--line);
  box-sizing: border-box;
  color: var(--text);
  font: 12px/1.5 var(--mono);
  height: 100%;
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}
.squad-chat-compose .button {
  min-width: 132px;
}
.squad-chat-state {
  margin: 0;
  min-height: 1em;
}
.squad-chat-state[data-kind="error"] {
  color: #ff7a86;
}
.squad-chat-archive,
.squad-chat-empty {
  border: 1px solid rgba(111, 157, 166, 0.28);
  color: var(--muted);
  font: 700 10px var(--mono);
  margin: 0;
  padding: 10px 12px;
  text-transform: uppercase;
}
.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.danger-button {
  border-color: rgba(255, 79, 95, 0.65);
  color: #ff7a86;
}
@media (max-width: 700px) {
  body:has(.squad-shell) .global-emission {
    margin: 10px 10px 0;
    max-width: none;
    position: static;
  }
  body:has(.squad-chat:not([hidden])) .global-emission {
    display: none;
  }
  .squad-chat {
    scroll-margin-top: 118px;
  }
  .squad-chat-message {
    max-width: 94%;
  }
  .squad-chat-compose {
    grid-template-columns: 1fr;
  }
  .squad-chat-compose .button {
    width: 100%;
  }
}
.item-results {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.item-results button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.loadout-slot {
  border: 1px solid rgba(54, 218, 238, 0.26);
  container-type: inline-size;
  display: grid;
  gap: 10px;
  padding: 12px;
}
.slot-selected {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  padding-top: 10px;
}
.slot-empty {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  padding-top: 10px;
}
.slot-artifacts {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
}
.slot-artifact {
  grid-template-columns: minmax(0, 1fr) 110px 150px auto;
}
.slot-artifact button {
  height: auto;
  width: auto;
}
@container (max-width: 480px) {
  .slot-artifact {
    grid-template-areas:
      "item item item"
      "upgrade rarity remove";
    grid-template-columns: minmax(76px, 0.65fr) minmax(120px, 1fr) auto;
  }
  .slot-artifact > .item-chip {
    grid-area: item;
    width: 100%;
  }
  .slot-artifact > label:first-of-type {
    grid-area: upgrade;
  }
  .slot-artifact > label:nth-of-type(2) {
    grid-area: rarity;
  }
  .slot-artifact > button {
    align-self: end;
    grid-area: remove;
  }
  .slot-artifact input,
  .slot-artifact select {
    min-width: 0;
    width: 100%;
  }
}
.member-loadout {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.item-chip {
  align-items: center;
  border: 1px solid rgba(111, 157, 166, 0.4);
  color: var(--text);
  display: inline-flex;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
}
.member-loadout .item-chip {
  width: 100%;
}
.item-chip img {
  flex: 0 0 auto;
  height: 24px;
  object-fit: contain;
  width: 24px;
}
.item-chip b {
  font: 700 11px var(--mono);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-chip small {
  color: var(--acid);
  font: 800 10px var(--mono);
}
.artifact-rarity-common {
  border-color: #f2f5f6;
}
.artifact-rarity-uncommon {
  border-color: #73d26f;
}
.artifact-rarity-special {
  border-color: #4aa3ff;
}
.artifact-rarity-rare {
  border-color: #c56dff;
}
.artifact-rarity-exceptional {
  border-color: #ff4f5f;
}
.artifact-rarity-legendary {
  border-color: #ffd24a;
}
.artifact-rarity-common small {
  color: #f2f5f6;
}
.artifact-rarity-uncommon small {
  color: #73d26f;
}
.artifact-rarity-special small {
  color: #4aa3ff;
}
.artifact-rarity-rare small {
  color: #c56dff;
}
.artifact-rarity-exceptional small {
  color: #ff4f5f;
}
.artifact-rarity-legendary small {
  color: #ffd24a;
}
.item-RANK_NEWBIE {
  border-color: #7e8a91;
}
.item-RANK_STALKER {
  border-color: #73d26f;
}
.item-RANK_VETERAN {
  border-color: #c56dff;
}
.item-RANK_MASTER {
  border-color: #ff4f5f;
}
.item-RANK_LEGEND {
  border-color: #ffb84d;
}
@media (min-width: 860px) {
  .squad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .squad-card:has(.squad-chat:not([hidden])) {
    grid-column: 1 / -1;
  }
  .squad-form-grid,
  .squad-loadout-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .squad-actions {
    grid-template-columns: 1fr;
  }
  .squad-actions > .button {
    min-height: 54px;
    width: 100%;
  }
}
@media (max-width: 700px) {
  .squad-actions {
    display: grid;
  }
  .slot-selected {
    grid-template-columns: 1fr;
  }
}
.forum-author a {
  color: var(--text);
}
.forum-topic-head {
  display: grid;
  gap: 14px;
}
.forum-message-head > div {
  display: grid;
  gap: 5px;
}
@media (min-width: 760px) {
  .profile-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-facts,
  .profile-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  body:has(.forum-index),
  body:has(.forum-topic-page),
  body:has(.forum-moderation-admin) {
    padding-bottom: 92px;
  }
  body:has(.forum-index) .chat-button,
  body:has(.forum-topic-page) .chat-button,
  body:has(.forum-moderation-admin) .chat-button {
    display: none;
  }
  body:has(.forum-index) .keyart-background,
  body:has(.forum-topic-page) .keyart-background,
  body:has(.forum-moderation-admin) .keyart-background {
    inset: 0;
    left: 0;
    transform: translate3d(0, var(--parallax-y), 0);
    width: 100%;
  }
  .forum-board-head {
    grid-template-columns: 1fr;
  }
  .forum-board-head span {
    display: none;
  }
  .forum-category-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .forum-category-count,
  .forum-category-last {
    align-items: center;
    display: flex;
    gap: 7px;
    grid-column: 2;
    justify-items: start;
  }
  .forum-topic-title {
    align-items: stretch;
    display: grid;
  }
  .forum-post {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .forum-post-profile {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: start;
    padding: 0 0 12px;
    text-align: left;
  }
  .forum-post-profile small,
  .forum-post-profile span {
    display: none;
  }
  .forum-profile-avatar {
    grid-row: 1 / span 3;
    height: 48px;
    margin: 0;
    width: 48px;
  }
  .forum-post-head,
  .forum-post-actions,
  .forum-topic-toolbar,
  .forum-topic-toolbar-actions,
  .forum-pagination {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }
  .forum-post-actions .like-button,
  .forum-post-actions .reply-button,
  .forum-topic-toolbar-actions .button,
  .forum-topic-toolbar-actions .forum-topic-reply-link,
  .forum-topic-toolbar-actions .forum-topic-watch,
  .forum-pagination .button {
    justify-content: center;
    width: 100%;
  }
  .forum-post-body,
  .forum-reply-quote,
  .forum-topic-title p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .forum-post-body img,
  .forum-post-body video,
  .forum-post-body iframe {
    height: auto;
    max-width: 100%;
  }
  .forum-moderation-admin-row {
    grid-template-columns: 1fr;
  }
  .forum-moderation-filters {
    grid-template-columns: 1fr;
  }
  .forum-moderation-admin-row b,
  .forum-moderation-admin-row em {
    white-space: normal;
  }
}

/* Design 01: tactical terminal polish. */
:root {
  --bg: #020a10;
  --panel: rgba(3, 17, 22, 0.86);
  --panel2: rgba(5, 29, 38, 0.82);
  --line: rgba(69, 230, 240, 0.3);
  --text: #dffcff;
  --muted: #78aab2;
  --acid: #78f08a;
  --amber: #45e6f0;
  --cyan: #45e6f0;
}

.keyart-background {
  filter: saturate(0.78) contrast(1.14) brightness(0.52);
}

.keyart-shade {
  background:
    radial-gradient(
      circle at 78% 3%,
      rgba(69, 230, 240, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 38% 78%,
      rgba(120, 240, 138, 0.1),
      transparent 32%
    ),
    linear-gradient(
      90deg,
      rgba(2, 10, 16, 0.88),
      rgba(2, 10, 16, 0.34) 48%,
      rgba(2, 10, 16, 0.78)
    ),
    linear-gradient(180deg, rgba(2, 10, 16, 0.2), rgba(2, 10, 16, 0.94) 88%);
}

.topbar {
  background: rgba(2, 10, 16, 0.66);
  border-bottom-color: rgba(69, 230, 240, 0.28);
}

.rail,
.card,
.forum-board,
.forum-latest,
.news-search,
.blacklist-search,
.forum-search,
.squad-card,
.forum-post,
.forum-topic-title {
  background:
    linear-gradient(
      180deg,
      rgba(69, 230, 240, 0.055),
      rgba(120, 240, 138, 0.025)
    ),
    rgba(3, 17, 22, 0.82);
  backdrop-filter: blur(13px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 22px 70px rgba(0, 0, 0, 0.34);
}

.brand-mark,
.top-action,
.rail,
.rail nav a,
.rail nav button,
.card,
.forum-board,
.forum-latest,
.news-search,
.blacklist-search,
.forum-search,
.news-filters button,
.button.secondary,
.profile-fields > div,
.stats-row > div,
.stats-row > button,
.list-row,
.squad-card,
.forum-post,
.forum-topic-title {
  border-color: rgba(69, 230, 240, 0.26);
}

.brand b,
.page-head h1,
.hero h1,
.card-head h2,
.news-card h2,
.forum-board h2,
.forum-latest h2,
.profile-faction-name,
.clan-hero h1,
.squad-card h2,
.forum-topic-title h2 {
  color: #dffcff;
  letter-spacing: 0.08em;
}

.brand small,
.system-state,
.top-action,
.rail-foot,
.page-head p,
.news-card p,
.card-head small,
.forum-latest small,
.sync-meta,
.site-footer,
.news-meta,
.profile-fields small,
.stats-row small {
  color: #78aab2;
}

.button,
.chat-button {
  background: linear-gradient(
    135deg,
    rgba(69, 230, 240, 0.96),
    rgba(120, 240, 138, 0.92)
  );
  border-color: rgba(223, 252, 255, 0.46);
  box-shadow: 0 0 30px rgba(69, 230, 240, 0.22);
  color: #041116;
}

.button.secondary {
  background: rgba(69, 230, 240, 0.08);
  color: #dffcff;
}

@media (min-width: 760px) and (max-width: 900px) {
  .page-head h1,
  .hero h1 {
    font-size: 38px;
    letter-spacing: 0.04em;
    line-height: 1.05;
  }
}

.news-link,
.back-link,
.like-button {
  background: rgba(69, 230, 240, 0.1);
  border-color: rgba(69, 230, 240, 0.34);
  color: #45e6f0;
}

.top-action:hover,
.top-action.active,
.rail nav a:hover,
.rail nav button:hover,
.rail nav a.active,
.rail nav button.active {
  background: rgba(69, 230, 240, 0.12);
  color: #dffcff;
}

.news-card {
  overflow: hidden;
  position: relative;
}

.news-card::after {
  background:
    linear-gradient(180deg, transparent, rgba(2, 10, 16, 0.88)),
    url("/stalzone-keyart-bg.png?v=design01") center / cover;
  content: "";
  inset: auto 0 0;
  height: 122px;
  opacity: 0.28;
  pointer-events: none;
  position: absolute;
}

.news-card > * {
  position: relative;
  z-index: 1;
}

.news-number,
.eyebrow,
.tag,
.notification-count {
  color: #78f08a;
}

.system-state i {
  background: #78f08a;
  box-shadow: 0 0 12px rgba(120, 240, 138, 0.8);
}

.news-filters button.active,
.news-filters button:hover {
  background: rgba(69, 230, 240, 0.14);
  color: #dffcff;
}

input,
textarea,
select {
  background: rgba(2, 10, 16, 0.76);
  border-color: rgba(69, 230, 240, 0.24);
  color: #dffcff;
}

::placeholder {
  color: rgba(223, 252, 255, 0.42);
}

.site-footer {
  border-top-color: rgba(69, 230, 240, 0.16);
}

.chat-button {
  background:
    linear-gradient(
      180deg,
      rgba(69, 230, 240, 0.12),
      rgba(120, 240, 138, 0.05)
    ),
    rgba(3, 17, 22, 0.88);
  border: 1px solid rgba(69, 230, 240, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(223, 252, 255, 0.035),
    0 0 24px rgba(69, 230, 240, 0.18),
    0 18px 48px rgba(0, 0, 0, 0.34);
  color: #dffcff;
  gap: 10px;
  min-height: 48px;
  padding: 0 15px 0 13px;
}

.chat-button::before {
  background: #78f08a;
  content: "";
  height: 7px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  box-shadow: 0 0 12px rgba(120, 240, 138, 0.72);
}

.chat-button span {
  background: currentColor;
  font-size: 0;
  height: 20px;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 5h18v14H3V5Zm2.2 2v.6l6.8 4.6 6.8-4.6V7H5.2Zm13.6 3-6.2 4.2a1.1 1.1 0 0 1-1.2 0L5.2 10v7h13.6v-7Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 20px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M3 5h18v14H3V5Zm2.2 2v.6l6.8 4.6 6.8-4.6V7H5.2Zm13.6 3-6.2 4.2a1.1 1.1 0 0 1-1.2 0L5.2 10v7h13.6v-7Z'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.chat-button b {
  color: #dffcff;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.chat-button:hover {
  background:
    linear-gradient(
      180deg,
      rgba(69, 230, 240, 0.18),
      rgba(120, 240, 138, 0.09)
    ),
    rgba(4, 24, 31, 0.94);
  border-color: rgba(120, 240, 138, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(223, 252, 255, 0.055),
    0 0 34px rgba(69, 230, 240, 0.26),
    0 20px 54px rgba(0, 0, 0, 0.38);
}
