:root {
  --forum-bg: #0f0f0f;
  --forum-accent: #dad1ff;
  --forum-muted: rgba(255, 255, 255, 0.38);
  --forum-border: rgba(255, 255, 255, 0.07);
  --forum-card: rgba(255, 255, 255, 0.03);
}

.forum-page,
.forum-page *,
.forum-page *::before,
.forum-page *::after {
  box-sizing: border-box;
}

.forum-page {
  margin: 0;
  background: var(--forum-bg);
  color: #fff;
  font-family: "Geist", Arial, sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.forum-page a {
  text-decoration: none;
  color: inherit;
}

.forum-page nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--forum-border);
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(14px);
}

.forum-page .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.forum-page .nav-links li {
  margin: 0;
  padding: 0;
}

.forum-page .nav-login {
  color: var(--forum-muted);
  font-size: 0.82rem;
}

.forum-page .nav-login:hover,
.forum-page .nav-login.active {
  color: #fff;
}

.forum-page main {
  flex: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 5.75rem 2rem 3rem;
  animation: forum-fade-up 0.45s ease both;
}

.forum-page main.forum-main--thread {
  max-width: 1120px;
}

.forum-crumb {
  font-size: 0.74rem;
  color: var(--forum-muted);
  margin-bottom: 1rem;
}

.forum-crumb a:hover {
  color: #fff;
}

.forum-crumb-sep {
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.28);
}

.forum-crumb-current {
  color: rgba(255, 255, 255, 0.62);
}

.forum-btn--outline {
  border-color: var(--forum-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.forum-btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.forum-btn--no-accent:hover {
  border-color: var(--forum-border);
  background: rgba(255, 255, 255, 0.02);
}

.forum-btn--outline.forum-btn--no-accent {
  border-radius: 12px;
  border-color: var(--forum-border);
}

.forum-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.forum-head--board {
  align-items: flex-end;
  margin-bottom: 0.65rem;
}

.forum-head--board .forum-head-copy {
  flex: 1;
  min-width: 0;
}

.forum-head--board #newThreadBtn {
  flex-shrink: 0;
  align-self: flex-end;
  border-radius: 12px;
}

.forum-head--board #newThreadBtn[hidden] {
  display: none !important;
}

.forum-head h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.forum-head .forum-desc {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--forum-muted);
  max-width: 36rem;
  line-height: 1.45;
}

.forum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.forum-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.forum-btn.forum-btn--no-accent:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--forum-border);
}

.forum-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.forum-thread-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.forum-thread-item {
  list-style: none;
}

.forum-thread-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.forum-thread-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.forum-thread-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}

.forum-thread-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.forum-thread-title-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

.forum-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--forum-border);
  flex-shrink: 0;
}

.forum-thread-aside {
  position: relative;
  flex-shrink: 0;
  text-align: right;
  align-self: center;
  max-width: 42%;
}

.forum-thread-when {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.25;
}

.forum-thread-last {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.forum-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.forum-tag--discussion {
  background: rgba(100, 175, 235, 0.52);
  color: #fff;
}

.forum-tag--question {
  background: rgba(235, 175, 75, 0.58);
  color: #fff;
}

.forum-tag--guide {
  background: rgba(85, 185, 115, 0.52);
  color: #fff;
}

.forum-tag--community {
  background: rgba(124, 107, 255, 0.55);
  color: #fff;
}

.forum-tag--software {
  background: rgba(70, 140, 210, 0.55);
  color: #fff;
}

.forum-tag--free,
.forum-tag--legit {
  background: rgba(75, 175, 95, 0.58);
  color: #fff;
}

.forum-tag--paid {
  background: rgba(70, 130, 220, 0.58);
  color: #fff;
}

.forum-tag--rage {
  background: rgba(220, 75, 75, 0.58);
  color: #fff;
}

.forum-tag--semi-rage {
  background: rgba(230, 130, 55, 0.62);
  color: #fff;
}

.forum-tag--semi-legit {
  background: rgba(220, 190, 55, 0.62);
  color: #1a1a1a;
}

.forum-tag--icon {
  padding: 0.12rem 0.35rem;
  background: rgba(255, 255, 255, 0.08);
}

.forum-tag-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.forum-thread-page-title {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  line-height: 1.25;
}

.forum-thread-title-wrap {
  margin-bottom: 1.1rem;
}

.forum-thread-title-wrap .forum-thread-title-row {
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.forum-thread-title-wrap h1 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.forum-thread-title {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}

.forum-thread-title:hover {
  color: var(--forum-accent);
}

.forum-thread-meta {
  font-size: 0.78rem;
  color: var(--forum-muted);
  margin-top: 0;
  line-height: 1.35;
}

.forum-thread-meta .profile-name-link {
  text-decoration: none;
}

.forum-thread-stat {
  text-align: right;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.forum-thread-stat .lbl {
  display: block;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 0.1rem;
}

.forum-empty,
.forum-loading,
.forum-error {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.84rem;
  color: var(--forum-muted);
}

.forum-error {
  color: #ff8a8a;
}

.forum-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--forum-muted);
}

.forum-pager[hidden] {
  display: none !important;
}

.forum-text-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
}

.forum-text-btn:hover {
  color: #fff;
}

.forum-text-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.forum-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
}

.forum-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forum-muted);
}

.forum-form input,
.forum-form textarea {
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 300;
  padding: 0.75rem 0.85rem;
  outline: none;
  resize: vertical;
}

.forum-form input:focus,
.forum-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.forum-form textarea {
  min-height: 160px;
}

.forum-form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.forum-post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.forum-post-card {
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.forum-post-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--forum-border);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.forum-post-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-width: 0;
}

.forum-thread-pin {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.55);
}

.forum-thread-mod {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.forum-thread-row--has-mod .forum-thread-mod {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  margin-bottom: 0.12rem;
}

.forum-thread-row--has-mod .forum-thread-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 5.5rem;
  padding-top: 0;
}

.forum-thread-row--has-mod .forum-thread-main {
  padding-right: 0.65rem;
}

.forum-thread-row--has-mod .forum-thread-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.forum-thread-mod-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  border-radius: 4px;
}

.forum-thread-mod-btn:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.forum-thread-mod-pop {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.15rem;
  min-width: 7.5rem;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--forum-border);
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: none;
}

.forum-thread-mod.is-open .forum-thread-mod-pop {
  display: block;
}

.forum-thread-mod-pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.forum-thread-mod-pop button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.forum-thread-mod-pop button.is-danger {
  color: #ff8a8a;
}

.forum-post-date {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}

.forum-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: rgba(255, 255, 255, 0.35);
}

.forum-stat-icon {
  flex-shrink: 0;
  opacity: 0.55;
  color: rgba(255, 255, 255, 0.45);
}

.forum-post-index {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.forum-post-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.forum-post-main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.forum-post-user {
  padding: 1rem 0.75rem 1rem;
  border-right: 1px solid var(--forum-border);
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  align-self: stretch;
}

.forum-post-user-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--forum-border);
  margin: 0 auto 0.55rem;
  display: block;
}

.forum-post-user-name {
  margin-bottom: 0.4rem;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.forum-post-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.forum-post-badge img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  display: block;
}

.forum-post-badge {
  --badge-color: #dad1ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 7px;
  color: var(--badge-color);
  background: color-mix(in oklab, var(--badge-color) 14%, transparent);
  font-size: 0.78rem;
  line-height: 1;
  transition: background 0.15s;
}

.forum-post-badge:hover {
  background: color-mix(in oklab, var(--badge-color) 22%, transparent);
}

.forum-post-badge svg {
  display: block;
}

/* Badges stay simple, flat colored icons — name effects (glow/pulse/shimmer)
   only apply to the role name text itself, not the small badge chips. */
.profile-name-text.is-role-effect-glow { filter: drop-shadow(0 0 7px currentColor); }
.profile-name-text.is-role-effect-pulse { animation: role-name-pulse 1.8s ease-in-out infinite; }
.profile-name-text.is-role-effect-shimmer { background-size: 200% 100% !important; animation: role-name-shimmer 2.4s linear infinite; }
@keyframes role-name-pulse { 50% { opacity: .68; filter: drop-shadow(0 0 8px currentColor); } }
@keyframes role-name-shimmer { to { background-position: -200% 0; } }

.forum-reply-quote {
  display: block;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid rgba(218, 209, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.forum-reply-quote:hover {
  color: rgba(255, 255, 255, 0.75);
}

.forum-reply-quote strong {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.forum-post-card.is-highlight {
  border-color: rgba(255, 255, 255, 0.16);
}

.forum-post-card:focus,
.forum-post-card:focus-within {
  outline: none;
}

.forum-post-user-name .profile-name-link {
  text-decoration: none;
}

.forum-post-user-name .profile-name-text {
  font-size: 0.92rem;
  font-weight: 500;
}

.forum-user-stats {
  margin: 0;
  width: 100%;
  text-align: left;
  font-size: 0.72rem;
  padding-top: 0.15rem;
}

.forum-user-stats div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-user-stats div:last-child {
  border-bottom: none;
}

.forum-user-stats dt {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 300;
}

.forum-user-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.forum-post-content {
  padding: 1rem 1.15rem 0.65rem;
  min-width: 0;
  flex: 1;
}

.forum-post-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.forum-post-text.is-editing {
  display: none;
}

.forum-post-edit-area {
  display: none;
  flex: 1;
  margin-bottom: 0.75rem;
}

.forum-post-edit-area.is-open {
  display: block;
}

.forum-post-edit-area textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  outline: none;
}

.forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 1.15rem 0.75rem;
  border-top: none;
  background: transparent;
  margin-top: auto;
}

.forum-pill-btn--danger:hover {
  border-color: rgba(255, 120, 120, 0.45);
  background: rgba(255, 80, 80, 0.12);
}

a.forum-pill-btn {
  text-decoration: none;
  color: #fff;
}

.forum-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.forum-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

.forum-pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.forum-compose {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.forum-compose #standardFields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forum-compose-top {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.forum-compose--no-prefix .forum-compose-top {
  grid-template-columns: 1fr;
}

.forum-compose-prefix {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.forum-compose-prefix-required {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.forum-compose-prefix-required[hidden] {
  display: none !important;
}

.forum-compose-prefix .forum-select {
  flex: 1;
  min-width: 0;
}

.forum-compose-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.forum-compose-actions .forum-btn--outline {
  border-color: var(--forum-border);
  border-radius: 10px;
}

.forum-compose-actions .forum-btn--no-accent:hover {
  border-color: var(--forum-border);
  background: rgba(255, 255, 255, 0.02);
}

.forum-head--compose {
  margin-bottom: 1rem;
}

.forum-prefix-multi {
  position: relative;
  flex-shrink: 0;
}

.forum-prefix-trigger {
  min-width: 148px;
  height: 100%;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--forum-border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
}

.forum-prefix-placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.forum-prefix-chip {
  display: inline-flex;
  margin: 0.12rem 0.2rem 0.12rem 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-prefix-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 20;
  min-width: 180px;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid var(--forum-border);
  background: #141414;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.forum-prefix-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.forum-prefix-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.forum-compose-title {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.65rem 0.85rem;
  outline: none;
}

.forum-compose-title:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.forum-compose-body {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
  padding: 0.85rem 0.9rem;
  resize: vertical;
  outline: none;
}

.forum-compose-body:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.forum-compose-title--full {
  width: 100%;
}

.forum-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.forum-field-label {
  font-size: 0.72rem;
  color: var(--forum-muted);
  letter-spacing: 0.02em;
}

.forum-field-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
}

.forum-field-note {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
}

.forum-file-upload {
  position: relative;
  width: 100%;
}

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

.forum-file-upload-ui {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.38);
}

.forum-file-upload-ui.has-file,
.forum-file-upload-ui:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.forum-file-upload-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-changelog-editor {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.forum-changelog-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.forum-changelog-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.forum-changelog-kinds {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 8px;
  border: 1px solid var(--forum-border);
  background: rgba(255, 255, 255, 0.02);
}

.forum-changelog-kind {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-family: inherit;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

.forum-changelog-kind.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.forum-changelog-kind[data-kind="+"].is-active {
  background: rgba(75, 175, 95, 0.35);
}

.forum-changelog-kind[data-kind="/"].is-active {
  background: rgba(220, 190, 55, 0.35);
  color: #1a1a1a;
}

.forum-changelog-kind[data-kind="-"].is-active {
  background: rgba(220, 75, 75, 0.35);
}

.forum-changelog-row .forum-changelog-text {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}

.forum-changelog-remove {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  cursor: pointer;
  border-radius: 6px;
}

.forum-changelog-remove:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.forum-changelog-add {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.forum-changelog-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.forum-changelog-line {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.forum-changelog-sym {
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.55);
}

.forum-changelog-line .forum-changelog-sym {
  margin-right: 0.15rem;
}

.forum-changelog-sym--add {
  color: rgba(120, 210, 140, 0.98);
}

.forum-changelog-sym--change {
  color: rgba(230, 200, 90, 0.98);
}

.forum-changelog-sym--fix {
  color: rgba(255, 120, 120, 0.98);
}

.forum-quick-reply {
  margin-top: 0.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--forum-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.forum-quick-reply textarea {
  width: 100%;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  outline: none;
  margin-bottom: 0.55rem;
}

.forum-quick-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.forum-status {
  font-size: 0.78rem;
  color: var(--forum-muted);
  min-height: 1.1rem;
}

.forum-status.is-error {
  color: #ff8a8a;
}

.forum-status.is-ok {
  color: rgba(140, 220, 160, 0.85);
}

.forum-select {
  position: relative;
  min-width: 0;
  width: 100%;
}

.forum-select-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--forum-border);
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.forum-select-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.forum-select-label.is-muted {
  flex: 0 1 auto;
  color: rgba(255, 255, 255, 0.38);
}

.forum-select-label--chips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.forum-select-chip {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  color: #fff;
}

.forum-select-caret {
  flex-shrink: 0;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
}

.forum-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  border: 1px solid var(--forum-border);
  border-radius: 10px;
  background: #141414;
  padding: 0.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 240px;
  overflow-y: auto;
}

.forum-select.is-open .forum-select-menu {
  display: block;
}

.forum-select-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
}

.forum-select-option:hover,
.forum-select-option.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.forum-select-option--multi .forum-select-check {
  margin-left: auto;
  font-size: 0.75rem;
  color: #dad1ff;
  opacity: 0;
}

.forum-select-option--multi.is-active .forum-select-check {
  opacity: 1;
}

@keyframes forum-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .forum-page nav {
    padding: 1rem 1.25rem;
  }
  .forum-page main {
    padding: 5.5rem 1.15rem 2.5rem;
  }
  .forum-thread-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .forum-thread-when {
    margin-left: auto;
    font-size: 0.92rem;
  }
  .forum-compose-top {
    grid-template-columns: 1fr;
  }
  .forum-post-layout {
    grid-template-columns: 148px minmax(0, 1fr);
  }
  .forum-post-user-avatar {
    width: 72px;
    height: 72px;
  }
  .forum-post-user {
    padding: 0.85rem 0.55rem;
  }
  .forum-user-stats {
    font-size: 0.68rem;
  }
  .forum-post-text {
    font-size: 0.94rem;
  }
}
