body.site-dashboard {
  min-height: 100vh;
}

.forum-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 28px) var(--page-pad) 42px;
}

.forum-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.forum-head h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.forum-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.forum-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  padding: 5px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.forum-tab {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 15px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.forum-tab:hover,
.forum-tab.is-active {
  background: rgba(98, 217, 137, 0.13);
  color: var(--text-strong);
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 14px;
  align-items: start;
}

.forum-board,
.forum-side-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 24, 30, 0.74);
}

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

.board-toolbar h2,
.side-title strong {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
}

.board-toolbar span,
.side-title span,
.forum-meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.forum-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(98, 217, 137, 0.45);
  border-radius: 6px;
  background: rgba(98, 217, 137, 0.14);
  color: var(--text-strong);
  padding: 0 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.forum-action-btn:hover {
  border-color: rgba(98, 217, 137, 0.72);
  background: rgba(98, 217, 137, 0.22);
}

.forum-action-btn.full {
  width: 100%;
}

.forum-list {
  display: grid;
}

.forum-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 86px 82px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding: 10px 16px;
}

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

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

.forum-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border: 1px solid rgba(241, 186, 99, 0.38);
  border-radius: 999px;
  background: rgba(241, 186, 99, 0.11);
  color: #ffd98d;
  font-size: 0.78rem;
  font-weight: 900;
}

.forum-badge.normal {
  border-color: rgba(104, 199, 238, 0.36);
  background: rgba(104, 199, 238, 0.10);
  color: var(--accent-blue);
}

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

.forum-row-main strong {
  display: block;
  overflow: hidden;
  color: var(--text-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-row-main p {
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-sidebar {
  display: grid;
  gap: 12px;
}

.forum-side-section {
  padding: 13px;
}

.user-snapshot {
  display: flex;
  align-items: center;
  gap: 11px;
}

.user-snapshot strong {
  display: block;
  color: var(--text-strong);
}

.user-snapshot span:not(.app-avatar) {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.side-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  padding: 0 8px;
  color: var(--text);
  text-align: left;
}

.side-link-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.side-link-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link-row em {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.forum-side-section p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

html[data-theme="light"] .forum-board,
html[data-theme="light"] .forum-side-section {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .forum-tabs,
html[data-theme="light"] .forum-user-pill {
  background: rgba(255, 255, 255, 0.62);
}

@media (max-width: 940px) {
  .forum-layout {
    grid-template-columns: 1fr;
  }

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

  .forum-meta {
    display: none;
  }
}

@media (max-width: 700px) {
  .forum-shell {
    padding-top: 144px;
  }

  .forum-head,
  .board-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-action-btn {
    width: 100%;
  }
}
