:root {
  --purple-950: #171126;
  --purple-900: #211832;
  --purple-850: #2a1d3d;
  --purple-800: #35234d;
  --purple-700: #51387b;
  --purple-600: #6749a1;
  --purple-500: #7958bc;
  --gold-500: #d3ad68;
  --gold-400: #e2c485;
  --teal-500: #27a9b6;
  --ink-950: #1b1c24;
  --ink-900: #292a33;
  --ink-700: #555765;
  --ink-600: #6d6f7b;
  --ink-500: #858793;
  --line: #e3e1e8;
  --line-strong: #d4d1db;
  --surface: #ffffff;
  --surface-soft: #f7f6f9;
  --surface-muted: #f0eef4;
  --success: #2f9461;
  --danger: #c54e5d;
  --warning: #b87b2f;
  --shadow-sm: 0 2px 10px rgba(32, 24, 47, 0.06);
  --shadow-md: 0 14px 36px rgba(32, 24, 47, 0.1);
  --shadow-lg: 0 24px 68px rgba(21, 15, 33, 0.18);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --page: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f3f6;
  color: var(--ink-900);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(39, 169, 182, 0.28);
  outline-offset: 2px;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background:
    radial-gradient(circle at 15% -20%, rgba(121, 88, 188, 0.3), transparent 34%),
    linear-gradient(100deg, var(--purple-950), var(--purple-900) 52%, #1a1426);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(16, 11, 25, 0.2);
}

.header-inner {
  width: min(var(--page), calc(100% - 36px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-block;
  transform: skewX(-12deg);
}

.brand-mark i {
  position: absolute;
  left: 5px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), #fff1bd);
  box-shadow: 0 0 20px rgba(226, 196, 133, 0.2);
}

.brand-mark i:nth-child(1) {
  width: 32px;
  top: 7px;
}

.brand-mark i:nth-child(2) {
  width: 25px;
  top: 18px;
  left: 10px;
}

.brand-mark i:nth-child(3) {
  width: 32px;
  top: 29px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.brand-text small {
  margin-top: 5px;
  color: var(--gold-400);
  font-size: 8px;
  letter-spacing: 0.24em;
  font-weight: 800;
}

.main-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 17px;
  color: #c7c0d0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.main-nav a::after {
  position: absolute;
  right: 17px;
  bottom: 0;
  left: 17px;
  height: 3px;
  content: "";
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-actions a {
  padding: 9px 12px;
  color: #ddd7e4;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.guest-actions .header-register {
  padding-inline: 16px;
  color: #20172d;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-radius: 7px;
}

.icon-button {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #d7d1df;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 21px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #e85d71;
  border: 2px solid var(--purple-900);
  border-radius: 50%;
}

.header-popover-wrap {
  position: relative;
}

.member-trigger {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  cursor: pointer;
}

.member-trigger > span:nth-child(2) {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 750;
}

.header-popover {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  width: 265px;
  overflow: hidden;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.header-popover::before {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 11px;
  height: 11px;
  content: "";
  background: #fff;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}

.account-popover {
  padding: 8px;
}

.popover-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -8px -8px 8px;
  padding: 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.popover-profile div {
  display: flex;
  flex-direction: column;
}

.popover-profile small {
  color: var(--purple-600);
  font-size: 11px;
  font-weight: 700;
}

.account-popover > a,
.account-popover > button {
  width: 100%;
  display: block;
  padding: 10px 11px;
  text-align: left;
  color: var(--ink-700);
  background: transparent;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}

.account-popover > a:hover,
.account-popover > button:hover {
  color: var(--purple-700);
  background: var(--surface-soft);
}

.alerts-popover {
  width: 340px;
}

.popover-title {
  padding: 13px 15px;
  color: var(--purple-800);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alerts-popover > button {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px;
  text-align: left;
  background: #fff;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.alerts-popover > button:hover {
  background: var(--surface-soft);
}

.alerts-popover strong {
  font-size: 12px;
}

.alerts-popover small {
  color: var(--ink-600);
  font-size: 11px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.mobile-menu-button span {
  height: 2px;
  display: block;
  margin: 4px 0;
  background: #fff;
}

.sub-navigation {
  color: #e1dbe7;
  background: var(--purple-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-navigation-inner {
  width: min(var(--page), calc(100% - 36px));
  min-height: 45px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-navigation-inner > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-navigation a,
.sub-navigation button {
  padding: 8px 12px;
  color: #d6cfde;
  background: transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.sub-navigation a:hover,
.sub-navigation button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sub-navigation .sub-post-button {
  color: #22172f;
  background: var(--gold-400);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.forum-hero {
  position: relative;
  min-height: 262px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 17, 36, 0.94) 0%, rgba(35, 23, 53, 0.87) 48%, rgba(45, 28, 67, 0.72) 100%),
    linear-gradient(135deg, #2b1e41, #5a3b7b);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, black 35%, black);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.hero-glow-one {
  width: 410px;
  height: 410px;
  right: 4%;
  bottom: -250px;
  background: rgba(39, 169, 182, 0.23);
}

.hero-glow-two {
  width: 260px;
  height: 260px;
  top: -170px;
  left: 38%;
  background: rgba(226, 196, 133, 0.17);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--page), calc(100% - 36px));
  min-height: 262px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 50px;
}

.hero-copy {
  max-width: 650px;
  padding: 36px 0;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-400);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-copy p {
  max-width: 590px;
  margin-bottom: 0;
  color: #d4cede;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.primary-button,
.secondary-button,
.hero-secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  color: #24182f;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 8px 20px rgba(211, 173, 104, 0.17);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 25px rgba(211, 173, 104, 0.24);
}

.secondary-button {
  color: var(--purple-700);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.hero-secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-art {
  position: relative;
  align-self: stretch;
}

.city {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: repeat-x;
}

.city-back {
  height: 115px;
  opacity: 0.23;
  background:
    linear-gradient(90deg,
      transparent 0 3%, #c8b7dc 3% 10%, transparent 10% 13%,
      #b8a3d1 13% 21%, transparent 21% 24%, #c8b7dc 24% 29%,
      transparent 29% 33%, #b8a3d1 33% 43%, transparent 43% 47%,
      #c8b7dc 47% 52%, transparent 52% 56%, #b8a3d1 56% 68%,
      transparent 68% 72%, #c8b7dc 72% 78%, transparent 78% 82%,
      #b8a3d1 82% 94%, transparent 94%);
  clip-path: polygon(0 100%, 0 54%, 7% 54%, 7% 20%, 15% 20%, 15% 48%, 26% 48%, 26% 8%, 34% 8%, 34% 58%, 48% 58%, 48% 28%, 58% 28%, 58% 49%, 72% 49%, 72% 14%, 83% 14%, 83% 43%, 100% 43%, 100% 100%);
}

.city-front {
  height: 78px;
  opacity: 0.32;
  background: #171122;
  clip-path: polygon(0 100%, 0 48%, 11% 48%, 11% 21%, 21% 21%, 21% 57%, 34% 57%, 34% 12%, 47% 12%, 47% 62%, 60% 62%, 60% 31%, 68% 31%, 68% 52%, 82% 52%, 82% 3%, 94% 3%, 94% 43%, 100% 43%, 100% 100%);
}

.hero-badge {
  position: absolute;
  top: 47px;
  right: 58px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 13, 28, 0.46);
  border: 1px solid rgba(226, 196, 133, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.018), 0 0 0 11px rgba(255, 255, 255, 0.06);
}

.hero-badge span {
  color: var(--gold-400);
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.hero-badge small {
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-lines {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 9px;
  right: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero-lines::before,
.hero-lines::after {
  position: absolute;
  inset: 20px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
}

.hero-lines::after {
  inset: 40px;
}

.page-wrap {
  width: min(var(--page), calc(100% - 36px));
  min-height: 600px;
  margin: 0 auto;
  padding: 24px 0 58px;
}

.rules-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.rules-link-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-500);
  border-radius: 9px;
  font-size: 20px;
}

.rules-banner > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.rules-banner strong {
  color: var(--purple-800);
  font-size: 13px;
}

.rules-banner small {
  color: var(--ink-600);
  font-size: 11px;
}

.rules-banner > span:last-child {
  color: var(--purple-500);
  font-size: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  align-items: start;
  gap: 18px;
}

.primary-column,
.sidebar {
  min-width: 0;
}

.forum-category {
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(226, 196, 133, 0.1), transparent 42%),
    linear-gradient(115deg, var(--purple-800), var(--purple-700));
}

.category-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.category-header p {
  margin: 2px 0 0;
  color: #cfc6d9;
  font-size: 10px;
}

.category-header > button {
  width: 34px;
  height: 34px;
  color: #e6e0eb;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  cursor: pointer;
}

.forum-row {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 86px 225px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.forum-row:last-child {
  border-bottom: 0;
}

.forum-row:hover {
  background: #fbfafc;
}

.forum-row-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
}

.forum-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--purple-600);
  background: #f0ecf7;
  border: 1px solid #e4ddef;
  border-radius: 11px;
  font-size: 20px;
}

.forum-icon-link {
  color: var(--teal-500);
  background: #eaf8f9;
  border-color: #d5eff1;
}

.forum-row-copy {
  min-width: 0;
}

.forum-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--purple-700);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

button.forum-name {
  cursor: pointer;
}

.forum-name:hover {
  color: var(--purple-500);
}

.new-tag {
  display: inline-flex;
  padding: 2px 5px;
  color: #fff;
  background: var(--teal-500);
  border-radius: 3px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.forum-row-copy > p {
  margin: 3px 0 0;
  color: var(--ink-600);
  font-size: 10.5px;
}

.subforum-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 9px;
}

.subforum-list > span:first-child {
  color: var(--ink-700);
  font-weight: 700;
}

.subforum-list a {
  color: var(--purple-600);
}

.subforum-list a:hover {
  text-decoration: underline;
}

.forum-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 10px;
  border-left: 1px solid var(--line);
}

.forum-stat strong {
  color: var(--ink-700);
  font-size: 12px;
}

.forum-stat small {
  color: var(--ink-500);
  font-size: 8px;
  text-transform: uppercase;
}

.forum-latest {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-left: 1px solid var(--line);
}

.forum-latest > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.forum-latest a {
  overflow: hidden;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-latest small {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  --avatar-color: #7659b2;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.28), transparent 32%),
    var(--avatar-color);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(27, 22, 37, 0.18);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.avatar-tiny {
  width: 32px;
  height: 32px;
  font-size: 8px;
}

.avatar-small {
  width: 36px;
  height: 36px;
}

.avatar-medium {
  width: 46px;
  height: 46px;
  font-size: 12px;
}

.avatar-large {
  width: 62px;
  height: 62px;
  font-size: 16px;
}

.avatar-xlarge {
  width: 92px;
  height: 92px;
  border-width: 3px;
  font-size: 22px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.welcome-card {
  padding: 22px;
  text-align: center;
}

.welcome-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--purple-600), var(--purple-800));
  border: 4px solid #eee9f5;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.welcome-card h3 {
  margin-bottom: 4px;
  color: var(--purple-800);
  font-size: 17px;
}

.welcome-card p {
  margin-bottom: 15px;
  color: var(--ink-600);
  font-size: 11px;
}

.welcome-card .primary-button {
  width: 100%;
}

.member-card {
  padding: 18px;
}

.member-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.member-card-top h3 {
  margin: 0 0 2px;
  color: var(--purple-800);
  font-size: 15px;
}

.member-card-top p {
  margin: 0;
  color: var(--purple-500);
  font-size: 10px;
  font-weight: 700;
}

.member-card-stats {
  margin: 17px 0 13px;
}

.member-card-stats > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.member-card-stats dt {
  color: var(--ink-600);
}

.member-card-stats dd {
  margin: 0;
  color: var(--ink-900);
  font-weight: 750;
}

.sidebar-outline-button {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-700);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.sidebar-title {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.sidebar-title h3 {
  margin: 0;
  color: var(--purple-800);
  font-size: 12px;
}

.sidebar-title a {
  color: var(--purple-500);
  font-size: 9px;
  font-weight: 750;
}

.latest-list {
  padding: 3px 14px;
}

.latest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.latest-item:last-child {
  border-bottom: 0;
}

.latest-item > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.latest-item strong,
.latest-item small,
.latest-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-item strong {
  color: var(--ink-700);
  font-size: 10px;
}

.latest-item small {
  color: var(--ink-500);
  font-size: 8px;
}

.latest-item em {
  color: var(--purple-500);
  font-size: 8px;
  font-style: normal;
}

.forum-statistics dl {
  margin: 0;
  padding: 8px 14px;
}

.forum-statistics dl > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  color: var(--ink-600);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.forum-statistics dl > div:last-child {
  border-bottom: 0;
}

.forum-statistics dd {
  margin: 0;
  color: var(--ink-900);
  font-weight: 750;
}

.online-card {
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.online-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-pulse {
  width: 13px;
  height: 13px;
  background: #42b876;
  border: 3px solid #d9f2e4;
  border-radius: 50%;
}

.online-heading h3 {
  margin: 0;
  color: var(--purple-800);
  font-size: 13px;
}

.online-heading p {
  margin: 1px 0 0;
  color: var(--ink-500);
  font-size: 9px;
}

.online-members {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-top: 10px;
}

.online-members a {
  color: var(--purple-600);
  font-size: 9px;
  font-weight: 650;
}

.breadcrumbs {
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
  color: var(--ink-500);
  font-size: 10px;
}

.breadcrumbs > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumbs i {
  color: #aaa6b2;
  font-size: 14px;
  font-style: normal;
}

.breadcrumbs a:hover {
  color: var(--purple-600);
}

.breadcrumbs b {
  color: var(--ink-700);
  font-weight: 650;
}

.forum-page-title,
.thread-title-card,
.post-thread-heading,
.account-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.forum-page-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--purple-600);
  background: #efeaf6;
  border-radius: 14px;
  font-size: 28px;
}

.forum-page-title > div:nth-child(2) {
  min-width: 0;
}

.forum-page-title h1,
.thread-title-card h1,
.page-heading h1,
.post-thread-heading h1,
.account-header h1 {
  margin-bottom: 5px;
  color: var(--purple-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.forum-page-title p,
.thread-title-card p,
.page-heading p,
.post-thread-heading p,
.account-header p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 11px;
}

.page-post-button {
  margin-left: auto;
  flex: 0 0 auto;
}

.forum-children {
  margin-bottom: 18px;
}

.thread-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.thread-panel-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.thread-search {
  min-width: 220px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.thread-search span {
  color: var(--ink-500);
  font-size: 17px;
}

.thread-search input {
  width: 100%;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.thread-panel-toolbar select,
.thread-panel-toolbar > button {
  height: 37px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 9px;
  cursor: pointer;
}

.thread-panel-toolbar > button {
  color: var(--purple-600);
  font-weight: 750;
  text-transform: uppercase;
}

.thread-table-head {
  height: 35px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 68px 180px;
  align-items: center;
  color: var(--ink-500);
  background: #fcfbfd;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-table-head span:first-child {
  padding-left: 16px;
}

.thread-table-head span:not(:first-child) {
  text-align: center;
}

.thread-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 68px 180px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease;
}

.thread-row:last-child {
  border-bottom: 0;
}

.thread-row:hover {
  background: #fbfafc;
}

.thread-row-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 23px 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.thread-state {
  color: #aaa5b3;
  text-align: center;
}

.thread-state.is-pinned {
  color: var(--gold-500);
}

.thread-row-main > div:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.thread-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-800);
  font-size: 10.5px;
  font-weight: 750;
}

.thread-link > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-link:hover > span:nth-child(2) {
  color: var(--purple-600);
}

.thread-row-main small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 18px;
  padding: 2px 6px;
  color: #5d5b64;
  background: #ecebef;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.prefix-important {
  color: #fff;
  background: #a94050;
}

.prefix-approved {
  color: #fff;
  background: var(--success);
}

.prefix-rejected {
  color: #fff;
  background: var(--danger);
}

.prefix-interview {
  color: #fff;
  background: #5466b4;
}

.prefix-consideration {
  color: #fff;
  background: #b57b2e;
}

.prefix-review {
  color: #fff;
  background: #3b82a1;
}

.prefix-event {
  color: #fff;
  background: #7a4ca1;
}

.lock-mark {
  color: var(--ink-500);
  font-size: 9px;
}

.thread-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border-left: 1px solid var(--line);
}

.thread-number strong {
  font-size: 10px;
}

.thread-number small {
  color: var(--ink-500);
  font-size: 7.5px;
  text-transform: uppercase;
}

.thread-latest {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-left: 1px solid var(--line);
}

.thread-latest > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.thread-latest strong,
.thread-latest small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-latest strong {
  color: var(--ink-700);
  font-size: 8.5px;
}

.thread-latest small {
  color: var(--ink-500);
  font-size: 8px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 55px 24px;
  text-align: center;
}

.empty-state > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--purple-500);
  background: #f0ebf6;
  border-radius: 50%;
  font-size: 22px;
}

.empty-state h2 {
  margin-bottom: 4px;
  color: var(--purple-800);
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.empty-state.compact {
  padding: 28px;
}

.forum-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.forum-bottom-actions button,
.forum-bottom-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--purple-600);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  cursor: pointer;
}

.thread-title-card {
  align-items: flex-start;
  justify-content: space-between;
}

.thread-title-card > div:first-child {
  min-width: 0;
}

.thread-title-prefix {
  margin-bottom: 7px;
}

.thread-title-card h1 {
  font-size: clamp(23px, 3vw, 32px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tag-list span {
  padding: 3px 7px;
  color: var(--purple-600);
  background: #f0ebf6;
  border-radius: 4px;
  font-size: 8px;
}

.thread-title-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.thread-title-actions button {
  height: 35px;
  padding: 0 12px;
  color: var(--purple-700);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  cursor: pointer;
}

.complaint-summary {
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.complaint-summary header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: var(--purple-800);
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.complaint-summary dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.complaint-summary dl > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.complaint-summary dl > div:last-child {
  border-right: 0;
}

.complaint-summary dt {
  margin-bottom: 3px;
  color: var(--ink-500);
  font-size: 7.5px;
  font-weight: 750;
  text-transform: uppercase;
}

.complaint-summary dd {
  overflow: hidden;
  margin: 0;
  color: var(--ink-800);
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-post-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.post-card {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.post-card.staff-post {
  border-color: #ddc99f;
  box-shadow: inset 4px 0 0 var(--gold-500), var(--shadow-sm);
}

.post-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 21px 16px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(103, 73, 161, 0.04), transparent 60%),
    var(--surface-soft);
  border-right: 1px solid var(--line);
}

.post-author > a {
  margin-top: 9px;
  color: var(--purple-700);
  font-size: 11px;
  font-weight: 850;
}

.role-badge {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 8px;
  font-weight: 700;
}

.post-author dl {
  width: 100%;
  margin: 14px 0 0;
}

.post-author dl > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--ink-500);
  font-size: 8px;
}

.post-author dd {
  margin: 0;
  color: var(--ink-700);
  font-weight: 700;
}

.post-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.post-meta {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--ink-500);
  background: #fcfbfd;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}

.post-meta a {
  color: var(--purple-600);
  font-weight: 750;
}

.post-content {
  min-height: 150px;
  flex: 1;
  padding: 22px;
  color: #34343c;
  font-size: 11.5px;
  line-height: 1.75;
}

.post-content h3 {
  margin-bottom: 8px;
  color: var(--purple-800);
  font-size: 16px;
}

.post-content p {
  margin-bottom: 13px;
}

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

.post-content ol,
.post-content ul {
  padding-left: 20px;
}

.post-content blockquote {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: var(--ink-600);
  background: var(--surface-soft);
  border-left: 3px solid var(--purple-500);
  border-radius: 0 8px 8px 0;
  font-size: 10px;
}

.post-content blockquote strong {
  color: var(--purple-700);
}

.post-content blockquote p {
  margin: 3px 0 0;
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.attachment-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.attachment-card > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--purple-600);
  border-radius: 8px;
}

.attachment-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.attachment-card strong {
  font-size: 9px;
}

.attachment-card small {
  color: var(--ink-500);
  font-size: 8px;
}

.attachment-card button {
  padding: 7px 10px;
  color: var(--purple-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8px;
  cursor: pointer;
}

.post-actions {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
}

.post-actions button {
  padding: 7px 10px;
  color: var(--ink-600);
  background: transparent;
  border-radius: 6px;
  font-size: 9px;
  cursor: pointer;
}

.post-actions button:hover {
  color: var(--purple-600);
  background: var(--surface-soft);
}

.post-actions button span {
  margin-left: 3px;
  color: var(--purple-600);
  font-weight: 750;
}

.reply-composer {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  margin-top: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.reply-composer > aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 19px 12px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
}

.reply-composer > aside strong {
  margin-top: 7px;
  color: var(--purple-700);
  font-size: 10px;
}

.reply-composer > aside small {
  color: var(--ink-500);
  font-size: 8px;
}

.reply-editor > header {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  background: #fcfbfd;
  border-bottom: 1px solid var(--line);
}

.reply-editor > header strong {
  color: var(--purple-800);
  font-size: 10px;
}

.reply-editor > header span {
  color: var(--ink-500);
  font-size: 8px;
}

.active-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: var(--ink-600);
  background: #f4f0f9;
  border-bottom: 1px solid #e4dbee;
  font-size: 9px;
}

.active-quote button {
  width: 25px;
  height: 25px;
  color: var(--purple-700);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
}

.editor-toolbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 9px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.editor-toolbar button {
  width: 30px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--ink-700);
  background: transparent;
  border-radius: 5px;
  font-size: 10px;
  cursor: pointer;
}

.editor-toolbar button:hover {
  color: var(--purple-700);
  background: #eae6ef;
}

.editor-toolbar > span {
  width: 1px;
  height: 19px;
  margin: 0 4px;
  background: var(--line-strong);
}

.reply-editor textarea {
  width: 100%;
  min-height: 145px;
  display: block;
  resize: vertical;
  padding: 16px;
  background: #fff;
  border: 0;
  outline: 0;
  font-size: 11px;
  line-height: 1.65;
}

.reply-editor textarea:disabled {
  color: var(--ink-500);
  background: #fbfafc;
}

.reply-editor > footer {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  background: #fcfbfd;
  border-top: 1px solid var(--line);
}

.reply-editor > footer > div {
  display: flex;
  gap: 4px;
}

.reply-editor > footer > div button {
  height: 32px;
  padding: 0 10px;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8px;
  cursor: pointer;
}

.reply-editor > footer .primary-button {
  min-height: 34px;
}

.locked-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.locked-notice > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--purple-600);
  background: #f0ebf6;
  border-radius: 50%;
}

.locked-notice h2 {
  margin: 0;
  color: var(--purple-800);
  font-size: 14px;
}

.locked-notice p {
  margin: 2px 0 0;
  color: var(--ink-500);
  font-size: 9px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 8px 2px;
}

.tab-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.tab-bar button {
  height: 36px;
  padding: 0 14px;
  color: var(--ink-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.tab-bar button.active {
  color: #fff;
  background: var(--purple-700);
  border-color: var(--purple-700);
}

.activity-feed {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.activity-feed article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.activity-feed article:last-child {
  border-bottom: 0;
}

.activity-feed p {
  margin: 0;
  color: var(--ink-700);
  font-size: 10px;
}

.activity-feed p a {
  color: var(--purple-600);
  font-weight: 750;
}

.activity-feed small {
  color: var(--ink-500);
  font-size: 8px;
}

.members-heading label {
  width: 270px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.members-heading input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 10px;
}

.newest-members,
.ranking-card,
.member-results,
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.newest-members {
  margin-bottom: 18px;
  padding: 18px;
}

.newest-members > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.newest-members h2,
.ranking-card h2,
.profile-card h2 {
  margin: 0;
  color: var(--purple-800);
  font-size: 13px;
}

.newest-members header span,
.ranking-card header span {
  color: var(--ink-500);
  font-size: 8px;
  text-transform: uppercase;
}

.newest-members > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.newest-members > div > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px 8px;
  background: var(--surface-soft);
  border-radius: 9px;
  text-align: center;
}

.newest-members strong {
  margin-top: 7px;
  font-size: 9px;
}

.newest-members small {
  color: var(--ink-500);
  font-size: 7.5px;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ranking-card {
  overflow: hidden;
}

.ranking-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.ranking-card > a {
  display: grid;
  grid-template-columns: 22px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.ranking-card > a:last-child {
  border-bottom: 0;
}

.rank-number {
  color: var(--gold-500);
  font-size: 12px;
  font-weight: 900;
}

.ranking-card > a > span:nth-child(3) {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ranking-card strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card small {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-card > a > b {
  color: var(--purple-700);
  font-size: 10px;
}

.member-results {
  overflow: hidden;
}

.member-results > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.member-results > a > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.member-results small {
  color: var(--ink-500);
  font-size: 9px;
}

.profile-hero {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-cover {
  height: 145px;
  background:
    radial-gradient(circle at 75% 30%, rgba(39, 169, 182, 0.28), transparent 32%),
    linear-gradient(120deg, var(--purple-900), var(--purple-600));
}

.profile-cover::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 38px 38px;
}

.profile-main {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px 10px;
}

.profile-main .avatar {
  margin-top: -38px;
}

.profile-main h1 {
  margin: 0;
  color: var(--purple-900);
  font-size: 24px;
}

.profile-main p {
  margin: 1px 0;
  color: var(--purple-600);
  font-size: 10px;
  font-weight: 700;
}

.profile-main button {
  margin-left: auto;
  height: 36px;
  padding: 0 13px;
  color: var(--purple-700);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.online-label {
  color: var(--success);
  font-size: 8px;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.profile-card {
  padding: 17px;
}

.profile-card > h2 {
  margin-bottom: 12px;
}

.profile-card dl {
  margin: 0;
}

.profile-card dl > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.profile-card dt {
  color: var(--ink-500);
}

.profile-card dd {
  margin: 0;
  font-weight: 700;
}

.recent-profile-posts {
  padding: 0;
  overflow: hidden;
}

.recent-profile-posts > h2 {
  padding: 15px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.recent-profile-posts .thread-row {
  grid-template-columns: minmax(0, 1fr) 60px 60px 155px;
}

.auth-main {
  background:
    radial-gradient(circle at 12% 12%, rgba(121, 88, 188, 0.12), transparent 33%),
    #f4f3f6;
}

.auth-layout {
  width: min(1120px, calc(100% - 36px));
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  margin: 0 auto;
  padding: 48px 0 62px;
}

.auth-side {
  position: relative;
  overflow: hidden;
  padding: 64px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 70%, rgba(39, 169, 182, 0.24), transparent 32%),
    linear-gradient(145deg, var(--purple-950), var(--purple-700));
  border-radius: 18px 0 0 18px;
  box-shadow: var(--shadow-lg);
}

.auth-side::after {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.025), 0 0 0 60px rgba(255, 255, 255, 0.018);
}

.auth-side h1 {
  max-width: 420px;
  margin: 15px 0;
  font-size: 39px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.auth-side > p {
  color: #d2cbdc;
  font-size: 12px;
}

.auth-side ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.auth-side li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #e8e2ed;
  font-size: 11px;
}

.auth-side li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.auth-quote {
  position: absolute;
  right: 42px;
  bottom: 42px;
  left: 52px;
  z-index: 1;
  padding-left: 14px;
  border-left: 2px solid var(--gold-400);
}

.auth-quote p {
  margin-bottom: 5px;
  color: #eee9f2;
  font-size: 11px;
  font-style: italic;
}

.auth-quote span {
  color: var(--gold-400);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-card {
  position: relative;
  padding: 40px 52px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: none;
}

.auth-heading {
  margin-bottom: 23px;
}

.auth-heading > span {
  color: var(--purple-500);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-heading h2 {
  margin: 4px 0;
  color: var(--purple-900);
  font-size: 28px;
  letter-spacing: -0.025em;
}

.auth-heading p {
  margin: 0;
  color: var(--ink-500);
  font-size: 10px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label,
.form-grid-two label,
.tag-field,
.advanced-search label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-form label > span:first-child,
.form-grid-two label > span:first-child,
.tag-field > span,
.advanced-search label > span:first-child {
  color: var(--ink-700);
  font-size: 9px;
  font-weight: 750;
}

.auth-form input,
.auth-form select,
.form-grid-two input,
.form-grid-two select,
.tag-field input,
.advanced-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  font-size: 10px;
  transition: border 150ms ease, box-shadow 150ms ease;
}

.auth-form input:focus,
.form-grid-two input:focus,
.form-grid-two select:focus,
.tag-field input:focus,
.advanced-search input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(121, 88, 188, 0.1);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 60px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 7px;
  padding: 6px 8px;
  color: var(--purple-600);
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  color: var(--ink-600);
  font-size: 9px;
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--purple-600);
}

.text-button {
  padding: 0;
  color: var(--purple-600);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  min-height: 45px;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.demo-credentials {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 8px;
  padding: 10px;
  color: var(--ink-600);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  font-size: 8px;
}

.demo-credentials strong {
  color: var(--purple-700);
}

.auth-switch {
  margin: 1px 0 0;
  color: var(--ink-500);
  font-size: 9px;
  text-align: center;
}

.auth-switch a,
.terms-check a {
  color: var(--purple-600);
  font-weight: 750;
}

.backend-note {
  margin: 18px 0 0;
  color: #aaa6b1;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.register-form .form-grid-two {
  gap: 11px 13px;
}

.register-form .auth-submit {
  margin-top: 2px;
}

.field-error,
.form-error {
  color: var(--danger) !important;
  font-size: 8px !important;
}

.form-error-wide {
  padding: 10px 11px;
  background: #fff0f2;
  border: 1px solid #f1cdd3;
  border-radius: 7px;
}

.terms-check {
  margin-top: 2px;
}

.signin-required,
.not-found {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.signin-lock {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--purple-600);
  background: #ece6f5;
  border-radius: 50%;
  font-size: 29px;
}

.signin-required h1,
.not-found h1 {
  margin: 0 0 7px;
  color: var(--purple-900);
  font-size: 31px;
}

.signin-required p,
.not-found p {
  max-width: 480px;
  color: var(--ink-600);
  font-size: 11px;
}

.signin-required > div,
.not-found > div {
  display: flex;
  gap: 9px;
  margin-top: 11px;
}

.not-found > span {
  color: #ded9e6;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
}

.post-thread-heading {
  justify-content: space-between;
}

.draft-state {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  color: var(--success);
  background: #eef8f2;
  border: 1px solid #d5eadc;
  border-radius: 8px;
}

.draft-state > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 9px;
}

.draft-state > div {
  display: flex;
  flex-direction: column;
}

.draft-state strong {
  font-size: 9px;
}

.draft-state small {
  color: #6b8c76;
  font-size: 7.5px;
}

.post-thread-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.composer-card {
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.composer-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: -19px -19px 18px;
  padding: 14px 19px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.composer-card > header > span {
  width: 29px;
  height: 29px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--purple-600);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
}

.composer-card > header h2 {
  margin: 0;
  color: var(--purple-800);
  font-size: 13px;
}

.composer-card > header p {
  margin: 1px 0 0;
  color: var(--ink-500);
  font-size: 8.5px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-grid-two label span b {
  color: var(--danger);
}

.thread-editor {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.thread-editor textarea {
  width: 100%;
  min-height: 230px;
  display: block;
  resize: vertical;
  padding: 17px;
  border: 0;
  outline: 0;
  font-size: 11px;
  line-height: 1.65;
}

.thread-editor > footer {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--ink-500);
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  font-size: 7.5px;
}

.block-error {
  display: block;
  margin-top: 5px;
}

.attachment-drop {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
}

.attachment-drop-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--purple-600);
  background: #ebe6f2;
  border-radius: 8px;
  font-size: 18px;
}

.attachment-drop > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.attachment-drop strong {
  font-size: 9px;
}

.attachment-drop small {
  color: var(--ink-500);
  font-size: 8px;
}

.attachment-drop label {
  position: relative;
  overflow: hidden;
  padding: 8px 11px;
  color: var(--purple-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}

.attachment-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.selected-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.selected-files > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  color: var(--ink-600);
  background: #f0edf4;
  border-radius: 5px;
  font-size: 8px;
}

.selected-files button {
  padding: 0;
  color: var(--danger);
  background: transparent;
  cursor: pointer;
}

.tag-field {
  margin-top: 13px;
}

.preview-card .post-card {
  box-shadow: none;
}

.publish-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 17px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.publish-bar > div:first-child {
  display: flex;
  flex-direction: column;
}

.publish-bar strong {
  color: var(--purple-800);
  font-size: 10px;
}

.publish-bar small {
  color: var(--ink-500);
  font-size: 8px;
}

.publish-bar > div:last-child {
  display: flex;
  gap: 7px;
}

.publish-bar button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--purple-700);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 8.5px;
  font-weight: 750;
  text-transform: uppercase;
  cursor: pointer;
}

.publish-bar .primary-button {
  color: #24182f;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-color: var(--gold-500);
}

.search-page {
  max-width: 930px;
  margin: 0 auto;
}

.advanced-search,
.search-results-panel {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-tabs {
  display: flex;
  gap: 3px;
  margin: -20px -20px 18px;
  padding: 0 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.search-tabs button {
  position: relative;
  height: 45px;
  padding: 0 11px;
  color: var(--ink-600);
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.search-tabs button.active {
  color: var(--purple-700);
}

.search-tabs button.active::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  content: "";
  background: var(--purple-600);
}

.advanced-search {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.advanced-search label > small {
  color: var(--ink-500);
  font-size: 8px;
}

.advanced-search > .primary-button {
  align-self: flex-end;
  min-width: 120px;
}

.search-results-panel {
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}

.search-results-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.search-results-panel h2 {
  margin: 0;
  color: var(--purple-800);
  font-size: 13px;
}

.search-results-panel header span {
  color: var(--ink-500);
  font-size: 8px;
}

.rules-heading {
  align-items: center;
}

.rules-version {
  padding: 7px 10px;
  color: var(--purple-600);
  background: #ece8f2;
  border-radius: 6px;
  font-size: 8px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.rules-toc {
  position: sticky;
  top: 142px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rules-toc h2 {
  margin: 0 0 8px;
  color: var(--purple-800);
  font-size: 12px;
}

.rules-toc a {
  padding: 8px 9px;
  color: var(--ink-600);
  border-radius: 6px;
  font-size: 9px;
}

.rules-toc a:hover {
  color: var(--purple-700);
  background: var(--surface-soft);
}

.rules-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-callout,
.rule-section {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.rules-callout {
  display: flex;
  gap: 12px;
  background: #fffbf2;
  border-color: #ead8b4;
}

.rules-callout > span {
  width: 33px;
  height: 33px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--warning);
  border-radius: 50%;
  font-weight: 850;
}

.rules-callout strong {
  color: #765427;
  font-size: 10px;
}

.rules-callout p {
  margin: 2px 0 0;
  color: #806c51;
  font-size: 9px;
}

.rule-section {
  scroll-margin-top: 145px;
}

.rule-section h2 {
  color: var(--purple-800);
  font-size: 18px;
}

.rule-section ol {
  margin: 0;
  padding-left: 19px;
}

.rule-section li,
.rule-section p {
  margin: 8px 0;
  color: var(--ink-700);
  font-size: 10.5px;
  line-height: 1.7;
}

.account-header .avatar {
  flex: 0 0 auto;
}

.account-header > div {
  min-width: 0;
  flex: 1;
}

.account-header button {
  height: 37px;
  padding: 0 13px;
  color: var(--purple-700);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.account-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.account-nav {
  position: sticky;
  top: 142px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-nav a {
  padding: 10px;
  color: var(--ink-600);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.account-nav a:hover,
.account-nav a.active {
  color: var(--purple-700);
  background: var(--surface-soft);
}

.account-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 145px;
}

.account-card > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.account-card h2 {
  margin: 0;
  color: var(--purple-800);
  font-size: 12px;
}

.account-card header a {
  color: var(--purple-600);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.verified-pill {
  padding: 4px 7px;
  color: var(--success);
  background: #e7f6ed;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 750;
}

.account-card > dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 8px 15px 15px;
}

.account-card > dl > div {
  display: flex;
  flex-direction: column;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.account-card dt {
  color: var(--ink-500);
  font-size: 8px;
  text-transform: uppercase;
}

.account-card dd {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 700;
}

.account-card .thread-row {
  grid-template-columns: minmax(0, 1fr) 60px 60px 160px;
}

.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.security-row:last-child {
  border-bottom: 0;
}

.security-row > div {
  display: flex;
  flex-direction: column;
}

.security-row strong {
  font-size: 9px;
}

.security-row small {
  color: var(--ink-500);
  font-size: 8px;
}

.security-row button {
  height: 31px;
  padding: 0 10px;
  color: var(--purple-600);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8px;
  cursor: pointer;
}

.staff-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.staff-summary > div {
  display: flex;
  flex-direction: column;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.staff-summary b {
  color: var(--purple-700);
  font-size: 26px;
}

.staff-summary span {
  color: var(--ink-500);
  font-size: 8px;
  text-transform: uppercase;
}

.moderation-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moderation-table > header,
.moderation-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 150px 70px;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.moderation-table > header {
  color: var(--ink-500);
  background: var(--surface-soft);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.moderation-table > div:last-child {
  border-bottom: 0;
}

.moderation-table > div > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.moderation-table strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderation-table small {
  color: var(--ink-500);
  font-size: 8px;
}

.moderation-table > div > span:nth-child(3) {
  font-size: 9px;
}

.moderation-table a {
  color: var(--purple-600);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.site-footer {
  color: #d2ccda;
  background:
    radial-gradient(circle at 10% 120%, rgba(121, 88, 188, 0.22), transparent 34%),
    var(--purple-950);
}

.footer-main {
  width: min(var(--page), calc(100% - 36px));
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 540px;
  align-items: start;
  gap: 38px;
  margin: 0 auto;
  padding: 44px 0 35px;
}

.footer-main > p {
  max-width: 330px;
  margin: 1px 0 0;
  color: #9e96a8;
  font-size: 10px;
  line-height: 1.75;
}

.footer-main > nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.footer-main nav > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-main nav strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
}

.footer-main nav a {
  color: #a9a1b2;
  font-size: 9px;
}

.footer-main nav a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  width: min(var(--page), calc(100% - 36px));
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  color: #7e7588;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 8px;
}

.footer-bottom > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-bottom button {
  padding: 0;
  color: #9c93a5;
  background: transparent;
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(340px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  font-size: 10px;
  animation: toast-in 220ms ease both;
}

.toast > span {
  width: 23px;
  height: 23px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 850;
}

.toast-error {
  border-left-color: var(--danger);
}

.toast-error > span {
  background: var(--danger);
}

.toast-info {
  border-left-color: var(--teal-500);
}

.toast-info > span {
  background: var(--teal-500);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1060px) {
  .header-inner {
    gap: 15px;
  }

  .main-nav a {
    padding-inline: 11px;
    font-size: 10px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .forum-row {
    grid-template-columns: minmax(0, 1fr) 65px 70px;
  }

  .forum-latest {
    display: none;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card > a {
    grid-template-columns: 25px 46px minmax(0, 1fr) auto;
  }

  .footer-main {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .footer-main > nav {
    grid-column: 1 / -1;
  }

  .auth-card {
    padding-inline: 35px;
  }

  .auth-side {
    padding-inline: 38px;
  }

  .complaint-summary dl {
    grid-template-columns: repeat(3, 1fr);
  }

  .complaint-summary dl > div:nth-child(3) {
    border-right: 0;
  }

  .complaint-summary dl > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 66px;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 8px 18px 14px;
    background: var(--purple-900);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
  }

  .main-nav a {
    min-height: 42px;
    border-radius: 7px;
  }

  .main-nav a::after {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .guest-actions a:first-child {
    display: none;
  }

  .sub-navigation-inner > div {
    display: none;
  }

  .sub-navigation-inner {
    min-height: 40px;
    justify-content: flex-end;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    position: absolute;
    inset: 0 0 0 55%;
    opacity: 0.45;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 72%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-card:last-child {
    grid-column: 1 / -1;
  }

  .forum-row {
    grid-template-columns: minmax(0, 1fr) 64px 68px;
  }

  .thread-table-head,
  .thread-row,
  .recent-profile-posts .thread-row,
  .account-card .thread-row {
    grid-template-columns: minmax(0, 1fr) 64px 68px;
  }

  .thread-table-head span:last-child,
  .thread-latest {
    display: none;
  }

  .complaint-summary dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .complaint-summary dl > div,
  .complaint-summary dl > div:nth-child(3) {
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .complaint-summary dl > div:nth-child(odd) {
    border-left: 0;
  }

  .complaint-summary dl > div:nth-child(even) {
    border-right: 0;
  }

  .post-card,
  .reply-composer {
    grid-template-columns: 135px minmax(0, 1fr);
  }

  .post-author,
  .reply-composer > aside {
    padding-inline: 10px;
  }

  .profile-grid,
  .account-grid,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .profile-card:first-child {
    display: none;
  }

  .account-nav,
  .rules-toc {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .account-nav a,
  .rules-toc a {
    flex: 0 0 auto;
  }

  .newest-members > div {
    grid-template-columns: repeat(3, 1fr);
  }

  .auth-layout {
    grid-template-columns: 1fr;
    padding-block: 30px;
  }

  .auth-side {
    min-height: 300px;
    padding: 42px;
    border-radius: 18px 18px 0 0;
  }

  .auth-side h1 {
    max-width: 570px;
  }

  .auth-quote {
    display: none;
  }

  .auth-card {
    border-top: 0;
    border-left: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main > nav {
    grid-column: auto;
  }

  .moderation-table > header,
  .moderation-table > div {
    grid-template-columns: minmax(0, 1fr) 110px 65px;
  }

  .moderation-table > header span:nth-child(3),
  .moderation-table > div > span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .sub-navigation-inner,
  .hero-inner,
  .page-wrap,
  .footer-main,
  .footer-bottom,
  .auth-layout {
    width: min(100% - 22px, var(--page));
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    font-size: 6px;
  }

  .brand-mark {
    width: 35px;
    transform: scale(0.84) skewX(-12deg);
    transform-origin: left center;
  }

  .guest-actions {
    display: none;
  }

  .member-trigger > span:nth-child(2),
  .member-trigger > span:last-child {
    display: none;
  }

  .member-trigger {
    width: 40px;
    padding: 4px;
  }

  .icon-button {
    width: 37px;
    height: 37px;
  }

  .forum-hero,
  .hero-inner {
    min-height: 285px;
  }

  .hero-copy {
    max-width: 100%;
    padding-block: 34px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    max-width: 92%;
    font-size: 12px;
  }

  .hero-art {
    inset: 0;
    opacity: 0.17;
  }

  .hero-badge {
    right: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-wrap {
    padding-top: 14px;
  }

  .rules-banner small {
    display: none;
  }

  .forum-row {
    min-height: 86px;
    grid-template-columns: minmax(0, 1fr);
  }

  .forum-stat {
    display: none;
  }

  .forum-row-main {
    padding: 13px;
  }

  .forum-icon {
    width: 38px;
    height: 38px;
  }

  .subforum-list {
    display: none;
  }

  .sidebar {
    display: flex;
  }

  .forum-page-title,
  .thread-title-card,
  .post-thread-heading,
  .account-header {
    align-items: flex-start;
    padding: 17px;
  }

  .forum-page-icon {
    display: none;
  }

  .forum-page-title,
  .post-thread-heading,
  .thread-title-card {
    flex-direction: column;
  }

  .page-post-button {
    width: 100%;
    margin-left: 0;
  }

  .thread-title-actions {
    width: 100%;
  }

  .thread-title-actions button {
    flex: 1;
  }

  .thread-panel-toolbar {
    flex-wrap: wrap;
  }

  .thread-search {
    min-width: 100%;
  }

  .thread-panel-toolbar select {
    min-width: 0;
    flex: 1;
  }

  .thread-table-head {
    display: none;
  }

  .thread-row,
  .recent-profile-posts .thread-row,
  .account-card .thread-row {
    grid-template-columns: minmax(0, 1fr) 55px;
  }

  .thread-number:nth-of-type(3) {
    display: none;
  }

  .thread-row-main {
    grid-template-columns: 17px 32px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 10px;
  }

  .thread-row-main .avatar {
    width: 32px;
    height: 32px;
  }

  .prefix {
    display: none;
  }

  .thread-link {
    font-size: 9.5px;
  }

  .complaint-summary dl {
    grid-template-columns: 1fr;
  }

  .complaint-summary dl > div,
  .complaint-summary dl > div:nth-child(n) {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-author {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .post-author .avatar {
    width: 46px;
    height: 46px;
    margin-right: 3px;
    font-size: 12px;
  }

  .post-author > a {
    margin: 0;
  }

  .post-author dl {
    display: none;
  }

  .post-author .role-badge {
    margin: 0 0 0 auto;
  }

  .post-content {
    padding: 17px;
  }

  .reply-composer {
    grid-template-columns: 1fr;
  }

  .reply-composer > aside {
    flex-direction: row;
    gap: 8px;
    padding: 10px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reply-composer > aside .avatar {
    width: 42px;
    height: 42px;
    font-size: 10px;
  }

  .reply-composer > aside strong {
    margin: 0;
  }

  .reply-composer > aside small {
    margin-left: auto;
  }

  .editor-toolbar {
    overflow-x: auto;
  }

  .newest-members > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .members-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .members-heading label {
    width: 100%;
  }

  .profile-cover {
    height: 115px;
  }

  .profile-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-main button {
    width: 100%;
    margin-left: 0;
  }

  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }

  .auth-side {
    min-height: 255px;
    padding: 30px 25px;
  }

  .auth-side h1 {
    font-size: 30px;
  }

  .auth-side ul {
    display: none;
  }

  .auth-card {
    padding: 30px 23px;
  }

  .auth-heading h2 {
    font-size: 24px;
  }

  .demo-credentials {
    grid-template-columns: 1fr;
  }

  .attachment-drop {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .attachment-drop > div {
    min-width: calc(100% - 55px);
  }

  .attachment-drop label {
    margin-left: 51px;
  }

  .publish-bar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .publish-bar > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .publish-bar .primary-button {
    grid-column: 1 / -1;
  }

  .draft-state {
    width: 100%;
  }

  .rules-version {
    display: none;
  }

  .account-header {
    flex-direction: column;
  }

  .account-header button {
    width: 100%;
  }

  .account-card > dl {
    grid-template-columns: 1fr;
  }

  .staff-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .moderation-table > header,
  .moderation-table > div {
    grid-template-columns: minmax(0, 1fr) 65px;
  }

  .moderation-table > header span:nth-child(2),
  .moderation-table > div > span:nth-child(2) {
    display: none;
  }

  .footer-main {
    padding-block: 34px 25px;
  }

  .footer-main > nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Static multi-page delivery additions */
:root{--page:1320px}
body{background:#f4f6f8;color:#111827}
.page-wrap{min-height:650px}
.static-subnav{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 3px 12px rgba(22,18,32,.05)}
.static-subnav .sub-navigation-inner{min-height:54px}
.static-subnav a,.static-subnav button{color:#3f4250}
.static-subnav a:hover,.static-subnav button:hover{color:#51387b;background:#f2eff8}
.static-subnav .sub-post-button{color:#18120b;background:#ffc400;box-shadow:0 6px 16px rgba(188,137,0,.18)}
.site-header{background:linear-gradient(100deg,#4a368e 0 28%,#fff 28% 100%);color:#17233a;border-bottom:0}
.header-inner{height:72px}
.brand{color:#fff}.brand-text small{color:#ffe331}.brand-mark i{background:#fff}.main-nav{margin-left:32px}.main-nav a{color:#29354b}.main-nav a:hover,.main-nav a.active{color:#4b2fa1;background:transparent}.main-nav a.active:after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:3px;background:#5b3bb2}
.header-actions{color:#29354b}.member-trigger,.icon-button{color:#33405a}.guest-actions a{color:#33405a}.header-register{background:#5b3bb2!important;color:#fff!important}
.forum-hero{min-height:215px;background:linear-gradient(90deg,rgba(20,21,46,.96),rgba(47,35,101,.88)),linear-gradient(135deg,#14213c,#51387b)}
.hero-inner{min-height:215px}.hero-copy{padding:28px 0}.hero-copy h1{font-size:38px}.hero-badge{width:126px;height:126px;top:33px}.hero-badge span{font-size:42px}
.forum-category,.sidebar-card,.rules-banner,.forum-panel,.thread-view-header,.post-card,.composer-panel,.archive-summary,.page-heading,.breadcrumbs,.auth-card,.account-card,.search-panel,.members-panel,.staff-panel{box-shadow:0 2px 10px rgba(30,36,50,.045)}
.category-header{color:#111827;background:#fff;border-bottom:1px solid var(--line)}.category-header h2{font-size:20px}.category-header p{color:#667085}.category-header>button{color:#334155;background:#f3f4f6}.forum-row{min-height:88px}.forum-name{color:#111827;font-size:14px}.forum-row-copy p,.subforum-list{color:#64748b}.forum-icon{color:#5a42b3;background:#f0ecff}.forum-stat strong,.forum-latest a{color:#111827}.thread-link{color:#111827}.thread-row{background:#fff}.thread-row:hover{background:#fafbfc}
.prefix{font-weight:750}.prefix-review,.prefix-consideration{background:#ffd000!important;color:#171717!important;border:1px solid #e2b800}.prefix-rejected{background:#7a7f87!important;color:#fff!important}.prefix-approved{background:#2f9461!important;color:#fff!important}.prefix-important{background:#d84343!important;color:#fff!important}.prefix-interview{background:#7452a6!important;color:#fff!important}
.primary-button,.sub-post-button,.post-reply-button,.gold-button{background:#ffc400!important;color:#151515!important;border:1px solid #e0ad00!important}
.archive-live-card{display:grid;grid-template-columns:minmax(0,1fr) 95px 95px 360px;align-items:center;gap:0;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;overflow:hidden}.archive-live-main{display:flex;align-items:center;gap:14px;padding:20px}.archive-live-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:#eee9ff;color:#5b3bb2;font-size:22px}.archive-live-main h3{margin:0 0 3px;font-size:15px}.archive-live-main p{margin:0;color:#667085;font-size:11px}.archive-live-stat{height:54px;border-left:1px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center}.archive-live-stat strong{font-size:13px}.archive-live-stat small{color:#7c8798;font-size:10px}.archive-live-latest{min-width:0;border-left:1px solid var(--line);padding:12px 16px;display:flex;align-items:center;gap:10px}.archive-live-latest>div{min-width:0}.archive-live-latest a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}.archive-live-latest small{display:block;color:#697386;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thread-view-header{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px 24px;margin-bottom:14px}.thread-view-header h1{display:flex;align-items:center;gap:8px;margin:0;font-size:25px;color:#101828}.thread-view-header p{margin:7px 0 0;color:#778196;font-size:12px}.case-details{background:#f8fafc;border:1px solid #dfe5ec;border-left:4px solid #5b3bb2;border-radius:9px;padding:12px 18px;margin-bottom:12px}.case-details dl{margin:0;display:grid;gap:3px}.case-details div{display:grid;grid-template-columns:210px minmax(0,1fr);gap:12px}.case-details dt{color:#718096}.case-details dd{margin:0;color:#334155}.post-stack{display:grid;gap:14px}.post-card{display:grid;grid-template-columns:165px minmax(0,1fr);background:#fff;border:1px solid #dce3eb;border-radius:9px;overflow:hidden}.post-author{background:#f8fafc;border-right:1px solid #dce3eb;text-align:center;padding:18px 14px}.post-author .avatar{margin:0 auto 10px}.post-author h3{margin:0 0 5px;color:#2452ad;font-size:13px}.role-badge{display:block;width:100%;padding:4px 6px;border-radius:3px;background:#c9c9c9;color:#17202d;font-size:10px}.role-badge.staff{background:#3a73dc;color:#fff}.role-badge.owner{background:#7a3cb2;color:#fff}.post-author dl{font-size:10px;color:#728096;text-align:left;margin:12px 0 0}.post-author dl div{display:flex;justify-content:space-between}.post-author dd{margin:0;color:#334155}.post-content-wrap{min-width:0}.post-meta{height:42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e8f0;padding:0 16px;color:#728096;font-size:11px}.post-body{min-height:145px;padding:18px;color:#111827;line-height:1.55}.post-body blockquote{border-left:4px solid #14aaf5;background:#f5f8fb;margin:0 0 14px;padding:9px 12px}.post-actions{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;border-top:1px solid #e5eaf0}.post-actions button{background:#f1f4f7;color:#526176;border-radius:4px;padding:6px 9px;cursor:pointer}.post-actions-right{display:flex;gap:7px}
.locked-thread-notice{display:flex;align-items:center;gap:8px;min-height:36px;margin:14px 0;padding:8px 13px;border:1px solid #e1e6ed;border-left:3px solid #ffd400;border-radius:7px;background:#fbfcfe;color:#65758a;font-size:12px}.locked-thread-notice b{color:#f23c79}.staff-reply-note{display:none}
.composer-panel{background:#fff;border:1px solid #d8e0e9;border-radius:9px;padding:18px;margin-top:14px;overflow:visible}.composer-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px}.composer-avatar{background:#f8fafc;border:1px solid #dce3eb;border-radius:7px;display:flex;justify-content:center;align-items:flex-start;padding:17px}.editor-shell{position:relative;border:1px solid #cbd5e1;border-radius:5px;background:#fff;overflow:visible}.editor-toolbar{min-height:38px;display:flex;align-items:center;gap:1px;padding:4px 7px;border-bottom:1px solid #e4e9ef;flex-wrap:nowrap}.editor-toolbar button{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#95a0ad;border-radius:3px;cursor:pointer}.editor-toolbar button:hover{background:#eef2f6;color:#526071}.editor-toolbar-secondary{min-height:32px;background:#f7f7f7}.editor-toolbar-secondary.is-hidden{display:none}.editor-sep{width:1px;height:20px;background:#dce2e9;margin:0 4px}.reply-editor{min-height:112px;padding:13px 16px;outline:none;color:#172033}.reply-editor:empty:before{content:attr(data-placeholder);color:#a6b0bd}.editor-menu-host{position:absolute;inset:0;pointer-events:none;z-index:20}.editor-popup{position:absolute;pointer-events:auto;background:#fff;border:1px solid #d2dae4;border-radius:5px;box-shadow:0 10px 25px rgba(15,23,42,.17);padding:5px 0;min-width:145px}.editor-popup button{display:block;width:100%;padding:8px 13px;text-align:left;background:#fff;color:#27364a;cursor:pointer}.editor-popup button:hover{background:#eef5fb}.editor-popup.color-popup{padding:12px;min-width:232px}.color-grid{display:grid;grid-template-columns:repeat(6,28px);gap:0}.color-grid button{width:28px;height:28px;padding:0;border-radius:0}.hex-row{margin-top:10px}.hex-row label{display:block;font-size:10px;color:#8792a1}.hex-row input{width:100%;height:34px;border:1px solid #d7dfe8;border-radius:4px;padding:0 8px}.hex-row button{margin:8px 0 0 auto;width:auto;background:#ffc400;font-weight:750;border-radius:5px}.composer-actions{display:flex;justify-content:flex-end;margin-top:10px}.post-reply-button{min-width:130px;height:40px;border-radius:14px;font-weight:800;cursor:pointer}
.post-body [style*="text-align:center"],.post-body [style*="text-align: center"]{text-align:center!important}.post-body [style*="text-align:right"],.post-body [style*="text-align: right"]{text-align:right!important}.post-body [style*="text-align:justify"],.post-body [style*="text-align: justify"]{text-align:justify!important}
.filter-strip{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px}.filter-strip input,.filter-strip select{height:40px;border:1px solid #d7dce5;border-radius:6px;padding:0 12px;background:#fff}.filter-strip input{flex:1}.empty-state{background:#fff;border:1px solid var(--line);border-radius:12px;padding:42px;text-align:center}.pagination-static{display:flex;gap:4px;margin:16px 0}.pagination-static button{height:38px;min-width:38px;background:#17a5db;color:#fff}.pagination-static button.active{background:#f03d78}
.auth-main{min-height:calc(100vh - 72px);background:#f4f3f6;padding:48px 18px}.auth-card{max-width:520px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px}.auth-card h1{margin-bottom:6px}.form-field{display:grid;gap:6px;margin-bottom:14px}.form-field label{font-weight:700;font-size:12px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #d6dce5;border-radius:7px;padding:11px 12px;background:#fff}.form-field textarea{min-height:140px}.form-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-error{color:#c33;font-size:11px}.toolbar-page{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.toolbar-page h1{margin:0}.toolbar-page-actions{display:flex;gap:8px}.outline-button{height:40px;padding:0 15px;border:1px solid #d6dde6;border-radius:7px;background:#fff;cursor:pointer}.danger-button{height:40px;padding:0 15px;border-radius:7px;background:#b7434f;color:#fff;cursor:pointer}.moderation-bar{display:flex;gap:8px;align-items:center;background:#f8f4ff;border:1px solid #dacdfa;border-radius:8px;padding:9px;margin-bottom:12px}.moderation-bar select{height:40px;border:1px solid #d4dce6;border-radius:6px;background:#fff;padding:0 10px}
.toast-stack-static{position:fixed;right:18px;bottom:18px;z-index:300;display:grid;gap:8px}.toast-static{min-width:260px;background:#20242d;color:#fff;border-left:4px solid #2f9461;padding:11px 14px;border-radius:6px;box-shadow:0 12px 30px rgba(0,0,0,.18)}.toast-static.error{border-left-color:#d94f5f}.toast-static.info{border-left-color:#29a3d0}
@media(max-width:900px){.site-header{background:linear-gradient(100deg,#4a368e 0 42%,#fff 42% 100%)}.archive-live-card{grid-template-columns:1fr 80px 80px}.archive-live-latest{grid-column:1/-1;border-left:0;border-top:1px solid var(--line)}.post-card{grid-template-columns:1fr}.post-author{border-right:0;border-bottom:1px solid #dce3eb;display:grid;grid-template-columns:80px minmax(0,1fr);text-align:left}.post-author .avatar{grid-row:1/5}.composer-grid{grid-template-columns:1fr}.composer-avatar{display:none}.editor-toolbar{flex-wrap:wrap}.form-grid-two{grid-template-columns:1fr}}

/* GRP-style front page and restored classic forum typography */
:root{
  --page:1320px;
}
body,
button,
input,
select,
textarea{
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
}
body{
  font-size:15px;
  line-height:1.45;
  color:#152238;
}
.header-inner{height:70px}
.brand-text strong{font-size:21px}
.main-nav a{font-size:12px;font-weight:700;letter-spacing:.015em;padding-inline:18px}
.member-trigger>span:nth-child(2),.guest-actions a{font-size:12px}
.static-subnav .sub-navigation-inner{min-height:57px}
.static-subnav a,.static-subnav button{font-size:13px}
.page-wrap{padding-top:20px}
.rules-banner{min-height:62px;padding:13px 18px;border-left:1px solid var(--line);border-radius:8px;box-shadow:none}
.rules-link-icon{width:30px;height:30px;color:#8093ad;background:transparent;border-radius:0;font-size:25px}
.rules-banner strong{font-size:16px;font-weight:500;color:#24344c}
.rules-banner small{font-size:11px}
.content-grid{grid-template-columns:minmax(0,1fr) 300px;gap:20px}
.category-header h2{font-size:23px;font-weight:700;letter-spacing:0;color:#28354a}
.category-header p{font-size:11px}
.category-header>button{width:28px;height:28px;border:1px solid #243650;border-radius:50%;background:#fff;color:#243650;font-size:16px}
.forum-row{min-height:78px;grid-template-columns:minmax(0,1fr) 78px 82px 280px}
.forum-row-main{padding:13px 17px;align-items:center}
.forum-icon{width:34px;height:34px;background:transparent;border:0;border-radius:0;color:#7185a1}
.forum-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.forum-icon-server{color:#4f35a5}
.forum-name{font-size:15px;font-weight:600;color:#1c2c45}
.forum-name:hover{color:#4e34a4}
.new-tag{font-size:8px;padding:3px 6px;background:#ed3b78}
.forum-row-copy>p{font-size:11px;margin-top:2px}
.subforum-list{margin-top:4px;font-size:10px;gap:4px;color:#71829a}
.subforum-list>span:first-child{font-weight:400;color:#71829a}
.subforum-caret{font-size:9px;color:#71829a}
.forum-stat{height:48px;padding:6px;border-left:1px solid #dce3ec}
.forum-stat strong{font-size:13px;font-weight:500;color:#25344b}
.forum-stat small{font-size:10px;text-transform:none;color:#7888a0}
.forum-latest{padding:10px 13px;gap:9px;border-left:1px solid #dce3ec}
.forum-latest a{font-size:11px;font-weight:500;color:#293a55}
.forum-latest small{font-size:10px;color:#7a8aa1}
.forum-latest small b{color:#214fbe}
.avatar-small{width:32px;height:32px;font-size:9px}
.prefix{font-size:8px;min-height:17px;padding:1px 5px}
.sidebar-title h3{font-size:18px}
.latest-item strong{font-size:11px}
.latest-item small,.latest-item em{font-size:9px}

/* On the landing page, category titles sit outside the boxed forum rows just like GRP. */
body[data-view="home"] .forum-category{
  overflow:visible;
  margin-bottom:20px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
body[data-view="home"] .category-header{
  min-height:56px;
  padding:7px 9px 8px;
  background:transparent;
  border:0;
}
body[data-view="home"] .category-header p{display:none}
body[data-view="home"] .category-body{
  overflow:hidden;
  background:#fff;
  border:1px solid #dbe2eb;
  border-radius:8px;
}
body[data-view="home"] .forum-row-copy>p{display:none}
body[data-view="home"] .forum-row{min-height:70px}
body[data-view="home"] .rules-banner small,
body[data-view="home"] .rules-banner>span:last-child{display:none}
body[data-view="home"] .rules-banner{grid-template-columns:auto 1fr;margin-bottom:14px}
body[data-view="home"] .forum-category:first-of-type .forum-row:nth-child(1) .new-tag,
body[data-view="home"] .forum-category:first-of-type .forum-row:nth-child(2) .new-tag,
body[data-view="home"] .forum-category:first-of-type .forum-row:nth-child(3) .new-tag{display:none}
body[data-view="home"] .forum-row-server .forum-name{font-weight:700}
body[data-view="home"] .forum-row-server .forum-row-main{padding-block:15px}

/* Larger, clearer internal forum pages while retaining all existing functions. */
.toolbar-page h1,.page-heading h1{font-size:28px}
.toolbar-page p,.page-heading p{font-size:13px}
.breadcrumbs{font-size:12px}
.thread-link{font-size:14px}
.thread-row-main>div>small{font-size:10px}
.thread-number strong{font-size:13px}
.thread-number small,.thread-latest small{font-size:9px}
.thread-view-header h1{font-size:27px}
.post-body{font-size:14px}
.post-author h3{font-size:14px}
.reply-editor{font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:14px}

@media(max-width:1050px){
  .content-grid{grid-template-columns:minmax(0,1fr) 270px}
  .forum-row{grid-template-columns:minmax(0,1fr) 68px 72px 235px}
}
@media(max-width:820px){
  .content-grid{grid-template-columns:1fr}
  .forum-row{grid-template-columns:minmax(0,1fr) 62px 62px}
  .forum-latest{display:none}
}
@media(max-width:600px){
  body{font-size:14px}
  .category-header h2{font-size:20px}
  .forum-name{font-size:14px}
  .forum-row{grid-template-columns:1fr}
  .forum-stat{display:none}
}

/* v3 header alignment: keep desktop navigation clear of the purple brand panel */
@media (min-width: 821px) {
  .main-nav {
    margin-left: 28px;
  }
}

/* =========================================================
   FINAL ZENX ROLE / SIGNATURE / STAFF refinements
   ========================================================= */
body,
button,
input,
select,
textarea {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

.brand {
  min-width: 205px;
  gap: 10px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 50px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.22));
}

.brand-mark { display: none !important; }
.brand-text strong { font-size: 22px; }
.brand-text small { font-size: 8px; }

.member-trigger {
  min-width: 0;
  gap: 10px;
  padding-left: 5px;
  padding-right: 10px;
}

.member-trigger .avatar-tiny {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.member-trigger > span:nth-child(2) {
  min-width: 0;
  max-width: 92px;
  white-space: nowrap;
  margin-left: 1px;
}

.alert-button { font-size: 16px; }
.notification-dot { top: 5px; right: 5px; }

.avatar {
  overflow: hidden;
  line-height: 1;
}
.avatar-photo { background: #e7eaf0 !important; }
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Player is grey. Every official forum-staff title is black. */
.role-badge.player {
  background: #c9c9c9 !important;
  color: #161616 !important;
  border: 1px solid #ababab;
}
.role-badge.staff {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #000;
}
.role-player-pill {
  background: #d2d2d2 !important;
  color: #161616 !important;
}
.role-staff-pill {
  background: #111 !important;
  color: #fff !important;
}

/* Signatures */
.post-signature {
  margin: 2px 18px 0;
  padding: 18px 0 14px;
  border-top: 1px solid #e4e8ee;
  color: #202936;
  overflow-wrap: anywhere;
}
.post-signature img {
  display: block;
  max-width: min(100%, 760px);
  max-height: 330px;
  width: auto;
  height: auto;
  margin: 8px auto;
  object-fit: contain;
}
.post-signature p:last-child { margin-bottom: 0; }
.post-signature a { color: #315bb6; text-decoration: underline; }

.signature-settings header span {
  color: #758196;
  font-size: 12px;
}
.signature-editor-shell {
  border: 1px solid #cfd8e4;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.signature-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  padding: 5px 8px;
  border-bottom: 1px solid #e0e6ed;
  background: #f8fafc;
}
.signature-toolbar button {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border-radius: 4px;
  background: transparent;
  color: #66758a;
  cursor: pointer;
}
.signature-toolbar button:hover { background: #e9eef5; color: #17243a; }
.signature-editor {
  min-height: 180px;
  padding: 16px;
  outline: 0;
  color: #17243a;
  background: #fff;
}
.signature-editor:empty::before {
  content: attr(data-placeholder);
  color: #a1acba;
  pointer-events: none;
}
.signature-editor img,
.signature-preview img {
  display: block;
  max-width: min(100%, 760px);
  max-height: 330px;
  width: auto;
  height: auto;
  margin: 8px auto;
  object-fit: contain;
}
.signature-preview-label {
  margin-top: 18px;
  color: #7a8798;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.signature-preview {
  min-height: 72px;
  margin-top: 7px;
  padding: 16px;
  border: 1px dashed #cfd8e4;
  border-radius: 8px;
  background: #fbfcfe;
}
.signature-preview > span { color: #8b96a5; }
.account-save-row { display: flex; justify-content: flex-end; margin-top: 14px; }
.profile-picture-setting {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e4e8ee;
}
.profile-picture-setting > label { display: block; margin-bottom: 7px; font-weight: 700; }
.profile-picture-setting > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.profile-picture-setting input { height: 42px; padding: 0 12px; border: 1px solid #cfd8e4; border-radius: 7px; }
.profile-picture-setting small { display: block; margin-top: 6px; color: #7b8797; }
.forum-banned-pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #8a333e;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.forum-ban-notice { border-left-color: #b53a48 !important; }

/* Staff user directory */
.staff-current-rank {
  align-self: center;
  padding: 7px 11px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.staff-users-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.staff-users-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}
.staff-users-panel h2 { margin: 0; font-size: 18px; }
.staff-users-panel header p { margin: 3px 0 0; color: #7d8795; font-size: 11px; }
.staff-users-panel header input {
  width: min(380px, 46%);
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd8e4;
  border-radius: 7px;
}
.staff-user-head,
.staff-user-row {
  display: grid;
  grid-template-columns: minmax(260px,1.5fr) 100px minmax(190px,1fr) 90px 112px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.staff-user-head {
  background: #f5f7fa;
  border-bottom: 1px solid var(--line);
  color: #69768a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.staff-user-row { min-height: 64px; border-bottom: 1px solid #edf0f4; }
.staff-user-row:last-child { border-bottom: 0; }
.staff-user-row[hidden] { display: none; }
.staff-user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.staff-user-identity > span { min-width: 0; display: flex; flex-direction: column; }
.staff-user-identity strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-user-identity small { color: #7a8798; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-passport { font-weight: 800; }
.staff-role-select {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #cfd8e4;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}
.staff-role-static { display: inline-flex; padding: 5px 8px; border-radius: 4px; background: #111; color: #fff; font-size: 10px; }
.staff-user-status { color: #318259; font-weight: 800; }
.staff-user-status.is-banned { color: #a73543; }
.ban-button,.unban-button {
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.ban-button { background: #a53c49; }
.unban-button { background: #2f8b5c; }
.protected-user { color: #9099a6; font-size: 10px; }
.staff-users-panel footer { padding: 11px 16px; border-top: 1px solid var(--line); background: #fafbfd; color: #737e8e; }

/* Keep child forums visually contained inside their department. */
.server-forum-list {
  margin-bottom: 18px;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(27,28,36,.04);
}
.server-forum-list + .forum-panel { margin-top: 0; }

@media (max-width: 980px) {
  .staff-user-head { display: none; }
  .staff-user-row { grid-template-columns: 1fr 90px; }
  .staff-user-row > span:nth-child(2),
  .staff-user-row > span:nth-child(3),
  .staff-user-row > span:nth-child(4) { grid-column: 1; }
  .staff-user-action { grid-column: 2; grid-row: 1 / span 4; }
  .staff-users-panel > header { align-items: stretch; flex-direction: column; }
  .staff-users-panel header input { width: 100%; }
}

@media (max-width: 760px) {
  .brand { min-width: auto; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-text { display: none; }
  .profile-picture-setting > div { grid-template-columns: 1fr; }
  .post-signature { margin-inline: 12px; }
}

/* =========================================================
   FINAL V5 polish and modal/application updates
   ========================================================= */
.prefix {
  margin-right: 6px;
}

.member-card-top p {
  color: #c89b19 !important;
}

.pagination-static {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.pagination-static .page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #17a5db;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.pagination-static .page-btn.active {
  background: #f03d78;
}

.forum-latest a,
.latest-item strong,
.thread-link {
  line-height: 1.35;
}

.application-post-shell {
  margin-top: 4px;
}
.application-page-heading {
  margin-bottom: 14px;
}
.grp-post-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.thread-composer-card {
  background: #fff;
}
.thread-composer-top {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid #dde3ed;
}
.thread-prefix-select,
.thread-title-input {
  border: 0;
  min-height: 58px;
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
}
.thread-prefix-select {
  border-right: 1px solid #dde3ed;
  font-weight: 700;
  border-radius: 0;
}
.thread-title-input:focus,
.thread-prefix-select:focus {
  outline: none;
}
.post-editor-shell {
  border: 0;
  border-radius: 0;
}
.thread-rich-editor {
  min-height: 300px;
  border-top: 1px solid #eef1f5;
}
.thread-options-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #e4e9f0;
  font-size: 13px;
  flex-wrap: wrap;
}
.thread-options-row span {
  font-weight: 700;
}
.thread-options-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.thread-submit-row {
  padding: 16px 18px;
  background: #344256;
  display: flex;
  justify-content: center;
}
.preview-inline-button {
  margin-left: auto;
  height: 32px;
  padding: 0 12px;
}

#zenxModalHost {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}
#zenxModalHost.is-open {
  pointer-events: auto;
}
.zenx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 32, 0.58);
}
.zenx-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(20, 26, 40, 0.28);
  border: 1px solid #e1e6ef;
  overflow: hidden;
}
.zenx-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid #e9edf3;
}
.zenx-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #17243a;
}
.zenx-modal-close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #41506a;
}
.zenx-modal-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.zenx-modal-body p {
  margin: 0;
  color: #44536d;
  line-height: 1.55;
}
.zenx-modal-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #17243a;
}
.zenx-modal-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dfe9;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
}
.zenx-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 18px 18px;
}

@media (max-width: 760px) {
  .thread-composer-top {
    grid-template-columns: 1fr;
  }
  .thread-prefix-select {
    border-right: 0;
    border-bottom: 1px solid #dde3ed;
  }
  .thread-options-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* FINAL V6: one contained archive row only */
.archive-live-card {
  text-decoration: none;
}
.archive-live-main {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.archive-live-main:hover h3,
.archive-latest-title:hover {
  color: #5c3eb5;
}
.archive-live-latest {
  min-width: 0;
  overflow: hidden;
}
.archive-live-latest > div {
  min-width: 0;
}
.archive-latest-title {
  display: block;
  min-width: 0;
  color: #17243a;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-latest-title .prefix {
  vertical-align: middle;
}

/* Administrator complaint posting form */
.admin-complaint-post-shell{
  margin-top:4px;
}
.admin-complaint-form{
  max-width:1020px;
  margin:0 auto 30px;
}
.admin-complaint-editor{
  min-height:250px;
}
.admin-complaint-fields{
  border-top:1px solid #e3e8ef;
  background:#fff;
}
.admin-complaint-field{
  display:grid;
  grid-template-columns:265px minmax(0,1fr);
  min-height:86px;
  border-bottom:1px solid #e5eaf1;
}
.admin-complaint-field>label{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:2px;
  padding:16px 18px;
  background:#fafbfc;
  border-right:1px solid #e2e7ef;
  color:#263750;
  font-weight:700;
  text-align:right;
}
.admin-complaint-field>label small{
  color:#9aa7ba;
  font-size:10px;
  font-weight:600;
}
.admin-complaint-field>div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  padding:14px 16px;
}
.admin-complaint-field input,
.admin-complaint-field select,
.admin-complaint-field textarea{
  width:100%;
  border:1px solid #d8e0ea;
  border-radius:6px;
  background:#fff;
  color:#17243a;
  padding:10px 12px;
  font:inherit;
}
.admin-complaint-field input,
.admin-complaint-field select{
  height:42px;
}
.admin-complaint-field textarea{
  min-height:84px;
  resize:vertical;
}
.admin-complaint-field>div>small{
  color:#8a98ad;
  font-size:11px;
}
.admin-complaint-field input:focus,
.admin-complaint-field select:focus,
.admin-complaint-field textarea:focus{
  outline:none;
  border-color:#7861c7;
  box-shadow:0 0 0 2px rgba(120,97,199,.12);
}

@media(max-width:760px){
  .admin-complaint-field{
    grid-template-columns:1fr;
  }
  .admin-complaint-field>label{
    align-items:flex-start;
    text-align:left;
    border-right:0;
    border-bottom:1px solid #edf0f5;
    padding-bottom:10px;
  }
}

/* FINAL V11: cleaner readable typography */
body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep headings clean and only lightly bold. */
h1,
h2,
h3,
h4,
.page-heading h1,
.toolbar-page h1,
.category-header h2,
.forum-name,
.archive-live-main h3,
.account-card h2,
.member-card-top h3 {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  font-weight: 600 !important;
}

/* Forum thread titles: clearer capital I, medium weight, no heavy bold. */
.thread-link,
.thread-link > span:nth-child(2),
.archive-latest-title,
.forum-latest a,
.latest-item strong,
.thread-latest strong {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.01px;
}

.thread-link {
  font-size: 14px !important;
  line-height: 1.35;
}

/* Supporting details remain normal and easy to read. */
.thread-row-main small,
.thread-latest small,
.forum-row-copy p,
.forum-latest small,
.latest-item small,
.post-body,
.post-meta,
.case-details,
.reply-editor {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  font-weight: 400 !important;
}

/* Avoid overly heavy synthetic bold inside normal forum content. */
.post-body strong,
.case-details strong,
.thread-row strong:not(.thread-link),
.forum-row strong {
  font-weight: 600;
}

/* V13: application prefixes are assigned by the forum, not by applicants */
.thread-prefix-fixed-wrap {
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-right: 1px solid #dde3ed;
  background: #fff;
}
.thread-prefix-fixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #ffd000;
  border: 1px solid #e2b600;
  color: #151515;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .thread-prefix-fixed-wrap {
    border-right: 0;
    border-bottom: 1px solid #dde3ed;
  }
}

/* V14 pre-Supabase authentication cleanup */
.auth-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.forgot-password-link{
  border:0;
  background:transparent;
  padding:0;
  color:#5a38ad;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.forgot-password-link:hover{
  text-decoration:underline;
}

/* Supabase final layout */
.staff-user-row-compact,
.staff-user-head-compact {
  grid-template-columns: minmax(250px, 1.7fr) minmax(170px, .9fr) 90px 120px !important;
}
.setup-error b { color: #5a3ab2; }
.setup-error div { margin-top: 12px; }
@media (max-width: 850px) {
  .staff-user-row-compact,
  .staff-user-head-compact { grid-template-columns: 1fr !important; }
}

/* Supabase V3: staff-only prefix selector and empty archive polish */
.thread-prefix-staff-wrap {
  padding: 0;
}
.thread-prefix-staff-select {
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 0 38px 0 14px;
  background: #ffd000;
  color: #151515;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}
.thread-prefix-staff-select:focus {
  box-shadow: inset 0 0 0 2px rgba(92, 59, 178, .35);
}
.admin-complaint-fields[hidden] {
  display: none !important;
}
.archive-empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.archive-empty-state h2 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 600;
}
.archive-empty-state p {
  margin: 0;
  color: #77849a;
}

/* =========================================================
   Supabase Final V5: requested banner, navigation and signature tools
   ========================================================= */
.main-nav {
  gap: 12px;
}

.forum-hero.forum-hero-banner {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.16) 42%, rgba(0,0,0,.05) 100%),
    url("zenx-forum-banner.png") center center / cover no-repeat;
}
.forum-hero-banner .hero-inner {
  min-height: 300px;
  grid-template-columns: minmax(0, 720px);
}
.forum-hero-banner .hero-copy {
  padding: 42px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.72);
}
.forum-hero-banner .hero-copy p {
  color: #f0e8d2;
}

.signature-toolbar-rich {
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
}
.signature-toolbar-rich button {
  min-width: 31px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
}
.signature-toolbar-rich select {
  height: 30px;
  min-width: 76px;
  max-width: 142px;
  padding: 0 24px 0 8px;
  border: 1px solid #d9e0e9;
  border-radius: 4px;
  background: #fff;
  color: #526176;
  font-size: 12px;
}
.signature-toolbar-rich #signatureSize {
  min-width: 64px;
}
.signature-toolbar-rich #signatureAlign {
  min-width: 78px;
}
.signature-toolbar-rich #signatureBlock {
  min-width: 92px;
}
.signature-toolbar-sep {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: #dce3eb;
}
.signature-color-control {
  position: relative;
  width: 32px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  color: #66758a;
  cursor: pointer;
}
.signature-color-control:hover {
  background: #e9eef5;
}
.signature-color-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.signature-editor a,
.post-signature a {
  color: #315bb6;
  text-decoration: underline;
  cursor: pointer;
}
.signature-editor h1,
.signature-editor h2,
.signature-editor h3 {
  margin: .45em 0;
  line-height: 1.2;
}
.signature-editor blockquote {
  margin: 10px 0;
  padding: 9px 12px;
  border-left: 4px solid #5b3bb2;
  background: #f5f7fb;
}

@media (max-width: 900px) {
  .forum-hero.forum-hero-banner,
  .forum-hero-banner .hero-inner {
    min-height: 250px;
  }
  .forum-hero.forum-hero-banner {
    background-position: 58% center;
  }
  .signature-toolbar-rich select {
    min-width: 70px;
  }
}

/* =========================================================
   Supabase Final V6: black-and-gold header branding + linked text
   ========================================================= */
.site-header {
  background:
    linear-gradient(101deg, rgba(0,0,0,0) 0 29.1%, #ffffff 29.25% 100%),
    linear-gradient(90deg, rgba(3,3,3,.16), rgba(25,17,0,.06)),
    url("zenx-forum-banner.png") left 49% center / 48% auto no-repeat,
    #ffffff !important;
  color: #17233a;
  border-bottom: 1px solid rgba(20,26,36,.08);
  overflow: hidden;
}
.site-header .brand {
  position: relative;
  min-width: 225px;
  height: 100%;
  padding-right: 22px;
  color: #fff;
}
.site-header .brand-logo {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.45));
}
.site-header .brand-text strong {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.site-header .brand-text small {
  color: #ffd24a;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}

.reply-editor a,
.thread-rich-editor a,
.signature-editor a,
.post-body a,
.post-signature a {
  color: #2765c5 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  cursor: pointer;
}
.reply-editor a:hover,
.thread-rich-editor a:hover,
.signature-editor a:hover,
.post-body a:hover,
.post-signature a:hover {
  color: #164994 !important;
}

@media (max-width: 1100px) {
  .site-header {
    background:
      linear-gradient(101deg, rgba(0,0,0,0) 0 37%, #ffffff 37.2% 100%),
      linear-gradient(90deg, rgba(3,3,3,.16), rgba(25,17,0,.06)),
      url("zenx-forum-banner.png") left center / 62% auto no-repeat,
      #ffffff !important;
  }
}
@media (max-width: 820px) {
  .site-header {
    background:
      linear-gradient(101deg, rgba(0,0,0,0) 0 48%, #ffffff 48.3% 100%),
      linear-gradient(90deg, rgba(3,3,3,.18), rgba(25,17,0,.08)),
      url("zenx-forum-banner.png") left center / 78% auto no-repeat,
      #ffffff !important;
  }
  .site-header .brand { min-width: 190px; }
}

/* =========================================================
   Supabase Final V7: clean white top navigation
   ========================================================= */
.site-header {
  background: #ffffff !important;
}
@media (max-width: 1100px) {
  .site-header { background: #ffffff !important; }
}
@media (max-width: 820px) {
  .site-header { background: #ffffff !important; }
}
.site-header {
  background-image: none !important;
  background-color: #ffffff !important;
  color: #17233a !important;
  border-bottom: 1px solid rgba(20,26,36,.10) !important;
  box-shadow: 0 4px 16px rgba(18,26,42,.08);
}
.site-header .brand {
  color: #17233a !important;
  background: transparent !important;
}
.site-header .brand-logo {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)) !important;
}
.site-header .brand-text strong {
  color: #17233a !important;
  text-shadow: none !important;
}
.site-header .brand-text small {
  color: #c58a00 !important;
  text-shadow: none !important;
}


/* =========================================================
   Supabase Final V8: account dropdown above hero/banner
   ========================================================= */
.site-header {
  overflow: visible;
  isolation: isolate;
}
.header-inner {
  overflow: visible;
}
.header-actions,
.header-popover-wrap {
  position: relative;
  z-index: 1200;
}
.header-popover {
  z-index: 1300;
}


/* Supabase Final V9: reliable selected-text links and SigmaWire helper */
.thread-rich-editor a,
.reply-editor a,
.signature-editor a,
.post-body a,
.post-signature a {
  color: #1565d8;
  text-decoration: underline;
  cursor: pointer;
}
.proof-upload-help {
  line-height: 1.55;
}
.proof-upload-help a {
  color: #1565d8;
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   Supabase Final V10: XenForo-style alerts and clean lock icon
   ========================================================= */
.ui-bell-icon,
.ui-lock-icon {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alert-button {
  color: #4e3aa8;
  background: transparent;
}
.alert-button:hover {
  color: #38267f;
  background: #f5f2fb;
}
.alert-popover-wrap {
  z-index: 1400;
}
.alerts-popover {
  width: min(370px, calc(100vw - 28px));
  top: calc(100% + 10px);
  right: -56px;
  padding: 10px;
  overflow: visible;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(20, 25, 38, .24);
}
.alerts-popover::before {
  right: 72px;
}
.alerts-heading {
  padding: 10px 12px;
  color: #18253a;
  background: #f7f8fb;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 500;
}
.alerts-list {
  max-height: 390px;
  overflow-y: auto;
}
.alert-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  padding: 12px 10px;
  color: #24324a;
  border-bottom: 1px solid #e9edf3;
  font-size: 12px;
  line-height: 1.42;
}
.alert-item:hover {
  background: #fafbfe;
}
.alert-item > span {
  min-width: 0;
}
.alert-item b {
  color: #6a3c9e;
  font-weight: 600;
}
.alert-thread-title {
  color: #111827;
  font-weight: 500;
}
.alert-item .prefix {
  margin: 0 4px 0 0;
  vertical-align: 1px;
}
.alert-item small {
  display: block;
  margin-top: 3px;
  color: #8090a8;
  font-size: 11px;
}
.alerts-empty {
  padding: 28px 16px;
  text-align: center;
  color: #7a8799;
  font-size: 12px;
}
.alerts-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px 4px;
  color: #3f4b60;
  background: #f8f9fb;
  border-radius: 0 0 7px 7px;
  font-size: 11px;
}
.alerts-footer a,
.alerts-footer button {
  padding: 0;
  color: #3f4b60;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.alerts-footer a:hover,
.alerts-footer button:hover {
  color: #5b3bb2;
}
.alerts-footer > * + *::before {
  content: "·";
  margin-right: 6px;
  color: #8d97a7;
}
.notification-dot {
  top: 5px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-color: #fff;
}
.lock-mark {
  display: inline-flex;
  align-items: center;
  color: #f33c7a;
}
.lock-mark .ui-lock-icon {
  width: 13px;
  height: 13px;
}
.locked-thread-notice b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f43f7d;
}
.locked-thread-notice b .ui-lock-icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 680px) {
  .alerts-popover {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    width: auto;
  }
  .alerts-popover::before {
    display: none;
  }
}

/* =========================================================
   Supabase Final V11: persistent signature fonts and forum rules
   ========================================================= */
.signature-editor font[style*="font-family"],
.post-signature font[style*="font-family"],
.signature-editor span[style*="font-family"],
.post-signature span[style*="font-family"],
.signature-editor p[style*="font-family"],
.post-signature p[style*="font-family"],
.signature-editor div[style*="font-family"],
.post-signature div[style*="font-family"] {
  font-family: revert;
}

.forum-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.forum-rule-list > li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  line-height: 1.55;
  color: #27364a;
}
.forum-rule-list > li > strong {
  color: #9a6b00;
  font-weight: 700;
}
.forum-rule-sublist {
  grid-column: 2;
  margin: 8px 0 0 18px;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  list-style: disc;
}
.forum-rule-sublist li {
  color: #44536d;
}
@media (max-width: 640px) {
  .forum-rule-list > li {
    grid-template-columns: 40px minmax(0, 1fr);
  }
}


/* =========================================================
   Supabase Final V13: password recovery code flow
   ========================================================= */
.reset-password-card{max-width:650px}
.recovery-email-row{display:grid;grid-template-columns:minmax(0,1fr) 135px;gap:9px}
.recovery-email-row input{min-width:0}
.recovery-send-button{height:auto;min-height:44px;font-weight:800;color:#7a5c00;border-color:#d8bf68;background:#fff9e4}
.recovery-code-notice{display:flex;flex-direction:column;gap:4px;margin:2px 0 15px;padding:13px 15px;border-left:4px solid #f6bd00;border-radius:8px;background:#fff9e3;color:#5b4800}
.recovery-code-notice strong{font-size:13px}
.recovery-code-notice span{font-size:12px;line-height:1.5}
.recovery-code-input{font-size:24px!important;font-weight:800!important;letter-spacing:10px;text-align:center;font-variant-numeric:tabular-nums}
.reset-method-divider{display:flex;align-items:center;gap:12px;margin:21px 0 14px;color:#9299a8;font-size:11px;text-transform:uppercase;letter-spacing:1px}
.reset-method-divider:before,.reset-method-divider:after{content:"";height:1px;flex:1;background:#e0e5ec}
.reset-help-text{color:#6f7a8c;font-size:12px;line-height:1.6}
.reset-login-link{margin:14px 0 0;text-align:center;font-size:12px}
.reset-login-link a{color:#4a36a0;font-weight:700}
@media(max-width:620px){.recovery-email-row{grid-template-columns:1fr}.recovery-code-input{letter-spacing:7px}.reset-password-card .form-grid-two{grid-template-columns:1fr}}


/* =========================================================
   Supabase Final V15: Chief Administrator locked-thread exception
   ========================================================= */
.chief-access-button.is-active {
  border-color: #d89f00;
  background: #fff7d6;
  color: #7a5500;
}
.locked-thread-notice.chief-reply-access {
  border-left-color: #d89f00;
  background: #fffaf0;
  color: #5e4600;
}
.profile-image-host-link {
  color: #2456b8;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-image-host-link:hover {
  color: #173f91;
}


/* V17: player-routed Curator complaint prefix */
.prefix-curator {
  background: #e00000 !important;
  color: #ffffff !important;
  border: 1px solid #bb0000 !important;
  font-weight: 800;
}
.player-admin-complaint-prefix option[value="For curator of the project"] {
  color: #b00000;
  font-weight: 800;
}


/* =========================================================
   Supabase Final V18: rank colors and matching member names
   ========================================================= */
.role-badge,
.role-pill,
.staff-role-static {
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  text-align: center;
}

.role-badge.role-player,
.role-pill.role-player,
.staff-role-static.role-player {
  background: #bfbfbf !important;
  color: #171717 !important;
  border-color: #9f9f9f !important;
}
.role-badge.role-game-assistant,
.role-pill.role-game-assistant,
.staff-role-static.role-game-assistant {
  background: #f0a414 !important;
  color: #ffffff !important;
  border-color: #ce8500 !important;
}
.role-badge.role-server-administrator,
.role-pill.role-server-administrator,
.staff-role-static.role-server-administrator {
  background: #3975dd !important;
  color: #ffffff !important;
  border-color: #2459b8 !important;
}
.role-badge.role-senior-administrator,
.role-pill.role-senior-administrator,
.staff-role-static.role-senior-administrator {
  background: #f3168d !important;
  color: #ffffff !important;
  border-color: #c90d70 !important;
}
.role-badge.role-curator-administration,
.role-pill.role-curator-administration,
.staff-role-static.role-curator-administration {
  background: #79d8e7 !important;
  color: #ffffff !important;
  border-color: #31b8cf !important;
}
.role-badge.role-deputy-chief-administrator,
.role-pill.role-deputy-chief-administrator,
.staff-role-static.role-deputy-chief-administrator {
  background: #008000 !important;
  color: #ffffff !important;
  border-color: #006600 !important;
}
.role-badge.role-chief-administrator,
.role-pill.role-chief-administrator,
.staff-role-static.role-chief-administrator {
  background: #cff5d1 !important;
  color: #12351b !important;
  border-color: #a8dfa9 !important;
}
.role-badge.role-curator-project,
.role-pill.role-curator-project,
.staff-role-static.role-curator-project {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

.role-name.role-player,
.member-role-text.role-player { color: #777777 !important; }
.role-name.role-game-assistant,
.member-role-text.role-game-assistant { color: #d38d08 !important; }
.role-name.role-server-administrator,
.member-role-text.role-server-administrator { color: #3269cd !important; }
.role-name.role-senior-administrator,
.member-role-text.role-senior-administrator { color: #e41282 !important; }
.role-name.role-curator-administration,
.member-role-text.role-curator-administration { color: #24b5cc !important; }
.role-name.role-deputy-chief-administrator,
.member-role-text.role-deputy-chief-administrator { color: #008000 !important; }
.role-name.role-chief-administrator,
.member-role-text.role-chief-administrator { color: #299343 !important; }
.role-name.role-curator-project,
.member-role-text.role-curator-project { color: #111111 !important; }

.post-author .role-badge {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
}


/* =========================================================
   Supabase Final V20: complete application editor + locked reply grants
   ========================================================= */
.post-editor-shell .editor-toolbar {
  flex-wrap: wrap;
}
.moderation-bar {
  flex-wrap: wrap;
}
.moderation-bar .chief-access-button {
  white-space: nowrap;
}


/* =========================================================
   V23: instant avatar delivery and visible loading fallback
   ========================================================= */
.avatar {
  position: relative;
}
.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.28), transparent 32%),
    var(--avatar-color);
  border-radius: inherit;
  font: inherit;
  font-weight: 850;
}
.avatar-photo img {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity .12s linear;
  background: transparent;
}
.avatar-photo.avatar-image-ready img {
  opacity: 1;
}
.avatar-photo.avatar-image-ready .avatar-fallback {
  visibility: hidden;
}


/* =========================================================
   V24: direct drag-and-drop profile picture uploads
   ========================================================= */
.avatar-upload-setting {
  padding: 18px 0 4px;
}
.avatar-upload-setting > label {
  display: block;
  margin-bottom: 9px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}
.avatar-dropzone {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 2px dashed #c9d3df;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.avatar-dropzone:hover,
.avatar-dropzone:focus-visible,
.avatar-dropzone.is-dragging {
  border-color: #f1b900;
  background: #fffaf0;
}
.avatar-dropzone.is-dragging {
  transform: translateY(-1px);
}
.avatar-dropzone.is-uploading {
  cursor: wait;
  opacity: .72;
}
.avatar-upload-preview {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: grid;
  place-items: center;
}
.avatar-upload-preview .avatar {
  width: 82px;
  height: 82px;
  font-size: 27px;
}
.avatar-upload-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.avatar-upload-copy strong {
  color: #172033;
  font-size: 14px;
}
.avatar-upload-copy span {
  color: #526176;
  font-size: 12px;
}
.avatar-upload-copy small {
  color: #8994a4;
  font-size: 10px;
}
.avatar-upload-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.avatar-upload-actions button {
  min-height: 38px;
}
.avatar-remove-button {
  color: #b42335;
}
.avatar-upload-status {
  min-height: 18px;
  margin-left: 3px;
  color: #778196;
  font-size: 11px;
  font-weight: 700;
}
.avatar-upload-status.is-working { color: #8b6a00; }
.avatar-upload-status.is-success { color: #21884a; }
.avatar-upload-status.is-error { color: #c2394d; }
@media (max-width: 620px) {
  .avatar-dropzone {
    align-items: flex-start;
    padding: 16px;
  }
  .avatar-upload-preview {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }
  .avatar-upload-preview .avatar {
    width: 64px;
    height: 64px;
  }
}
