@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* Reset minimal (forum.php charge style.css ; salon/sujet/etc. non → marge body navigateur = « rebord ») */
html {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

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

html body.forum-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}

/* Forum Uniora — aligné sur la vitrine (Space Grotesk, or / navy) */
body.forum-page {
  --forum-bg: #e8eef2;
  --forum-surface: #ffffff;
  --forum-surface-muted: #f4f7f9;
  --forum-border: #d4dee6;
  --forum-ink: #162633;
  --forum-muted: #5f6f78;
  --forum-navy: #122330;
  --forum-gold: #e8bc52;
  --forum-gold-dark: #c9a33b;
  --forum-discord: #5865f2;
  --forum-radius: 14px;
  --forum-shadow: 0 10px 32px rgba(18, 35, 48, 0.08);

  background:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(232, 188, 82, 0.08), transparent 55%),
    var(--forum-bg) !important;
  color: var(--forum-ink) !important;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-variant-ligatures: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}

/* Toutes les pages : main bord à bord, pas de bande grise sur les côtés */
body.forum-page main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px 28px 72px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

body.forum-page .forum-page-inner,
body.forum-page .forum-thread-inner {
  width: min(1280px, 100%) !important;
  margin: 0 auto !important;
}

@media (max-width: 720px) {
  body.forum-page main {
    padding: 16px 16px 64px !important;
  }
}

body.forum-page *,
body.forum-page input,
body.forum-page textarea,
body.forum-page select,
body.forum-page button {
  font-family: inherit !important;
}

body.forum-page .forum-maintenance-bar {
  padding: 10px 16px !important;
  background: #fff4cf !important;
  color: #5f4813 !important;
  text-align: center !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
}

body.forum-page .crumb {
  margin: 0 0 6px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

body.forum-page .crumb.crumb-trail {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  color: #8b99a1 !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.4 !important;
}

body.forum-page .crumb.crumb-trail a {
  color: #4d6670 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.forum-page .crumb.crumb-trail a:hover {
  color: #1a2e38 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

body.forum-page .crumb-sep {
  opacity: 0.35 !important;
  font-weight: 400 !important;
  user-select: none !important;
}

body.forum-page .crumb-current {
  color: #5a6d75 !important;
  font-weight: 600 !important;
}

body.forum-page .modern-panel,
body.forum-page .panel,
body.forum-page .forum-category,
body.forum-page .forum-side-card,
body.forum-page .topic-head,
body.forum-page .post,
body.forum-page .reply {
  border: 1px solid var(--forum-border) !important;
  border-radius: var(--forum-radius) !important;
  background: var(--forum-surface) !important;
  box-shadow: var(--forum-shadow) !important;
}

body.forum-page .modern-panel-head,
body.forum-page .panel-head,
body.forum-page .reply h2,
body.forum-page .topic-head-row,
body.forum-page .post-meta {
  border-bottom: 1px solid #e2e8ef !important;
  background: #f6f8fa !important;
  color: #1e2a32 !important;
}

body.forum-page .modern-btn,
body.forum-page .salon-btn,
body.forum-page .btn,
body.forum-page button {
  border-radius: 5px !important;
  font-weight: 700 !important;
}

body.forum-page .modern-btn.primary,
body.forum-page .salon-btn.primary,
body.forum-page .publish,
body.forum-page .reply-body > button[type="submit"],
body.forum-page form.layout button[type="submit"],
body.forum-page .login-call button[type="submit"] {
  background: linear-gradient(145deg, #f4d06f, var(--forum-gold)) !important;
  color: var(--forum-ink) !important;
  border: 1px solid var(--forum-gold-dark) !important;
  box-shadow: 0 4px 0 rgba(201, 163, 59, 0.35) !important;
}

body.forum-page .crumb:not(.crumb-trail) a {
  color: #2b5d72 !important;
}

body.forum-page .crumb:not(.crumb-trail) a:hover {
  color: var(--forum-ink) !important;
}

body.forum-page .err {
  margin: 0 0 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: rgba(248, 113, 113, 0.14) !important;
  border: 1px solid rgba(248, 113, 113, 0.28) !important;
  color: #9f2f2f !important;
  font-weight: 700 !important;
}

/* Recherche, notifications, paramètres */
body.forum-page .search-form-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
}

body.forum-page .search-checks {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  grid-column: 1 / -1 !important;
}

body.forum-page .search-checks label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}

body.forum-page .search-result {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 100px 100px !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  border-top: 1px solid #e4eaf0 !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}

body.forum-page .search-result:hover {
  background: #f8fbfc !important;
}

body.forum-page .search-result strong {
  display: block !important;
  margin-bottom: 4px !important;
}

body.forum-page .muted {
  color: var(--forum-muted) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
}

body.forum-page .notif-item,
body.forum-page .panel .item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 13px 14px !important;
  border-top: 1px solid #e4eaf0 !important;
  color: inherit !important;
  text-decoration: none !important;
  align-items: center !important;
}

body.forum-page .notif-item.unread,
body.forum-page .panel .item.unread {
  background: rgba(232, 188, 82, 0.1) !important;
}

body.forum-page .panel .head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px !important;
  border-bottom: 1px solid var(--forum-border) !important;
  background: var(--forum-surface-muted) !important;
}

body.forum-page .panel .head h1 {
  margin: 0 0 4px !important;
  font-size: 1.2rem !important;
}

@media (max-width: 760px) {
  body.forum-page .search-form-grid,
  body.forum-page .search-result {
    grid-template-columns: 1fr !important;
  }
}

body.forum-page input,
body.forum-page textarea,
body.forum-page select {
  border-color: #c7d3dc !important;
  border-radius: 5px !important;
}

body.forum-page input:focus,
body.forum-page textarea:focus,
body.forum-page select:focus {
  border-color: #7aa8bd !important;
  outline: 2px solid rgba(122,168,189,.18) !important;
  outline-offset: 0 !important;
}

.forum-editor {
  border-radius: 6px !important;
  box-shadow: none !important;
}

.forum-editor-toolbar {
  border-bottom-color: #d9e2e8 !important;
  background: #f5f7f9 !important;
}

.forum-editor-toolbar button {
  border-radius: 4px !important;
  background: #fff !important;
}

/* Board */
body.forum-page .forum-section {
  padding-top: 18px !important;
}

body.forum-page .forum-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 310px !important;
  gap: 14px !important;
}

body.forum-page .forum-board-tools {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  border-radius: 6px !important;
  padding: 11px 13px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.forum-page .forum-board-tools h1 {
  font-size: 1.05rem !important;
}

body.forum-page .forum-board-tools p {
  font-size: .78rem !important;
}

body.forum-page .board-strip {
  margin-bottom: 10px !important;
  border: 1px solid #cfd9e2 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
}

body.forum-page .board-stat {
  padding: 8px 11px !important;
}

body.forum-page .board-stat strong {
  font-size: .94rem !important;
}

body.forum-page .board-stat span {
  font-size: .7rem !important;
}

body.forum-page .forum-category {
  margin-bottom: 12px !important;
  overflow: hidden !important;
}

body.forum-page .forum-category-head {
  min-height: 40px !important;
  padding: 10px 13px !important;
  background: #233a49 !important;
}

body.forum-page .forum-category-head::after {
  height: 1px !important;
}

body.forum-page .forum-category-head h2 {
  font-size: .84rem !important;
  letter-spacing: .02em !important;
}

body.forum-page .forum-category-head p {
  margin-top: 2px !important;
  font-size: .72rem !important;
  opacity: .76 !important;
}

body.forum-page .forum-row {
  grid-template-columns: 38px minmax(0, 1fr) 96px minmax(210px, .82fr) !important;
  min-height: 72px !important;
  padding: 12px 13px !important;
  border-bottom: 1px solid #e2e8ee !important;
}

body.forum-page .forum-row:last-child {
  border-bottom: 0 !important;
}

body.forum-page .forum-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  font-size: .86rem !important;
}

body.forum-page .forum-title {
  font-size: .95rem !important;
  font-weight: 700 !important;
}

body.forum-page .forum-desc {
  margin-top: 3px !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
}

body.forum-page .forum-activity {
  align-self: center !important;
  color: #5e6e78 !important;
  font-size: .76rem !important;
}

body.forum-page .forum-activity strong {
  font-size: .88rem !important;
}

body.forum-page .forum-last {
  align-self: center !important;
  min-width: 0 !important;
}

body.forum-page .forum-last strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #243641 !important;
  font-size: .84rem !important;
}

body.forum-page .forum-last span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #6b7982 !important;
  font-size: .74rem !important;
}

body.forum-page .forum-side {
  display: grid !important;
  gap: 12px !important;
  align-content: start !important;
}

body.forum-page .forum-side-card {
  overflow: hidden !important;
}

body.forum-page .forum-side-card h3 {
  min-height: 38px !important;
  padding: 0 12px !important;
  background: #f5f7f9 !important;
  border-bottom: 1px solid #d9e2e8 !important;
  color: #243641 !important;
  font-size: .85rem !important;
}

body.forum-page .latest-item {
  padding: 10px 12px !important;
  border-bottom: 1px solid #edf1f4 !important;
}

body.forum-page .latest-item:last-child {
  border-bottom: 0 !important;
}

body.forum-page .latest-item strong {
  font-size: .84rem !important;
}

body.forum-page .latest-item span {
  font-size: .73rem !important;
}

@media (max-width: 900px) {
  body.forum-page .forum-shell {
    grid-template-columns: 1fr !important;
  }

  body.forum-page .forum-row {
    grid-template-columns: 38px minmax(0, 1fr) !important;
  }
}

/* Topic list */
body.forum-page .topic-head-row {
  grid-template-columns: 34px minmax(0, 1fr) 78px 78px 176px !important;
  gap: 12px !important;
  padding: 8px 12px !important;
}

body.forum-page .topic {
  grid-template-columns: 34px minmax(0, 1fr) 78px 78px 176px !important;
  gap: 12px !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
}

body.forum-page .topic-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  font-size: .78rem !important;
  box-shadow: none !important;
}

body.forum-page .topic strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: .92rem !important;
}

body.forum-page .topic span {
  margin-top: 3px !important;
  font-size: .75rem !important;
}

body.forum-page .prefix {
  border-radius: 4px !important;
  padding: 2px 5px !important;
  background: #edf3f7 !important;
  font-size: .66rem !important;
}

body.forum-page .topic-flags {
  gap: 4px !important;
  margin-left: 5px !important;
  color: #7f6518 !important;
  font-size: .66rem !important;
}

body.forum-page .count {
  color: #53636d !important;
  font-size: .8rem !important;
}

body.forum-page .last-activity {
  overflow: hidden !important;
  color: #5f6d76 !important;
  font-size: .76rem !important;
  line-height: 1.35 !important;
}

@media (max-width: 850px) {
  body.forum-page .topic {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }
}

/* Topic view (fil de discussion) */
body.forum-page .topic-head {
  margin-bottom: 12px !important;
  border: 1px solid var(--forum-border) !important;
  border-radius: var(--forum-radius) !important;
  background: var(--forum-surface) !important;
  box-shadow: var(--forum-shadow) !important;
  overflow: hidden !important;
}

body.forum-page .topic-titlebar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px 16px !important;
  min-height: 0 !important;
  padding: 14px 16px !important;
  border-bottom: none !important;
  background: #fff !important;
}

body.forum-page .topic-titlebar h1 {
  font-size: 1.12rem !important;
  font-weight: 720 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

body.forum-page .topic-kicker {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 6px !important;
}

body.forum-page .topic-meta-line {
  margin-top: 6px !important;
  color: #667680 !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
}

body.forum-page .topic-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 20px !important;
  border-radius: 6px !important;
  padding: 0 7px !important;
  background: #edf3f7 !important;
  color: #3d525d !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
}

body.forum-page .topic-badge.gold {
  background: #fff4cf !important;
  color: #6f5816 !important;
}

body.forum-page .topic-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body.forum-page .topic-actions form {
  display: inline-flex !important;
  margin: 0 !important;
}

body.forum-page .topic-actions button,
body.forum-page .topic-actions summary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid #d6e0e7 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #162633 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.forum-page .topic-actions button.primary-action {
  border: none !important;
  background: #f0c85f !important;
  color: #162633 !important;
  font-weight: 900 !important;
}

body.forum-page .topic-actions button:hover,
body.forum-page .topic-actions summary:hover {
  border-color: #c5d4de !important;
  background: #f8fafb !important;
}

body.forum-page .topic-actions button.primary-action:hover {
  background: #f5d47a !important;
}

body.forum-page .posts {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

body.forum-page .post {
  display: grid !important;
  grid-template-columns: 156px minmax(0, 1fr) !important;
  border: 1px solid var(--forum-border) !important;
  border-radius: var(--forum-radius) !important;
  background: var(--forum-surface) !important;
  box-shadow: var(--forum-shadow) !important;
  overflow: visible !important;
}

body.forum-page .post-main {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 100% !important;
  overflow: visible !important;
  border-left: 1px solid #eef2f5 !important;
}

body.forum-page .post-message {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: var(--forum-surface) !important;
}

body.forum-page .post-author,
body.forum-page .reply-user {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 18px 14px !important;
  text-align: center !important;
  background: #f7f9fb !important;
  border-right: none !important;
}

body.forum-page a.author-name,
body.forum-page .post-author .author-name,
body.forum-page .reply-user .author-name {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #122330 !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  word-break: break-word !important;
}

body.forum-page a.author-name:hover {
  color: #0e4a66 !important;
}

body.forum-page .reply-user .author-name {
  color: #122330 !important;
}

body.forum-page .avatar {
  display: grid !important;
  place-items: center !important;
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #f4d06f, var(--forum-gold)) !important;
  box-shadow: 0 2px 10px rgba(18, 35, 48, 0.1) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  font-size: 1.2rem !important;
}

body.forum-page .avatar:has(img) {
  border: 2px solid #e2e8ef !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.forum-page .avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.forum-page .avatar span {
  color: #162633 !important;
  font-weight: 800 !important;
}

body.forum-page .author-topic-owner {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(232, 188, 82, 0.28) !important;
  color: #5f4813 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

body.forum-page .rank {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: #e8eef2 !important;
  color: #4d6670 !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

body.forum-page .rank.admin,
body.forum-page .rank.moderator {
  background: rgba(240, 200, 95, 0.28) !important;
  color: #5f4813 !important;
}

body.forum-page .author-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid rgba(22, 38, 51, 0.07) !important;
}

body.forum-page .post-author .author-stat:first-of-type,
body.forum-page .reply-user .author-stat:first-of-type {
  margin-top: 4px !important;
}

body.forum-page .author-stat-label {
  color: #7d8c95 !important;
  font-size: 0.62rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

body.forum-page .author-stat-value {
  color: #162633 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

body.forum-page .author-mini {
  margin: 0 !important;
  padding-top: 6px !important;
  color: #6a7a82 !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

body.forum-page .post-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 12px !important;
  min-height: 38px !important;
  padding: 9px 14px !important;
  font-size: 0.76rem !important;
}

body.forum-page .post-meta-left,
body.forum-page .post-meta-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body.forum-page .post-number {
  border-radius: 999px !important;
  color: #425560 !important;
  background: #fff !important;
}

body.forum-page .post-permalink {
  color: #6a7982 !important;
  font-size: .72rem !important;
}

body.forum-page .post-content {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  padding: 18px 18px 20px !important;
  font-size: 0.93rem !important;
  line-height: 1.68 !important;
}

body.forum-page .edited-note {
  display: block !important;
  margin: 0 18px 4px !important;
  padding: 0 0 8px !important;
  color: #8b99a1 !important;
  font-size: 0.72rem !important;
  font-style: italic !important;
}

body.forum-page .post-signature {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 2px solid #d4dee6 !important;
  border-radius: 0 0 calc(var(--forum-radius) - 1px) 0 !important;
  background: #eef2f5 !important;
}

body.forum-page .post-signature-kicker {
  display: block !important;
  margin: 0 !important;
  padding: 10px 18px 0 !important;
  color: #7d8c95 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.forum-page .post-signature-content {
  margin: 0 !important;
  padding: 6px 18px 14px !important;
  color: #5f6f78 !important;
  font-size: 0.78rem !important;
  font-style: normal !important;
  line-height: 1.55 !important;
}

body.forum-page .post-signature-content p {
  margin: 0 !important;
}

body.forum-page .post-signature-content p + p {
  margin-top: 6px !important;
}

body.forum-page .reaction-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 18px 12px !important;
}

body.forum-page .reaction-summary form {
  display: inline-flex !important;
  margin: 0 !important;
}

body.forum-page .reaction-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #dce4ea !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #2a3f4d !important;
  font-size: 0.82rem !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.forum-page .reaction-chip.active {
  border-color: #f0c85f !important;
  background: #fff4cf !important;
}

body.forum-page .post-message .message-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 14px !important;
  margin-top: auto !important;
  padding: 10px 18px !important;
  border-top: 1px solid #e8edf1 !important;
  background: #f7f9fb !important;
}

body.forum-page .message-footer-actions {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

body.forum-page .reaction-picker {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: 30 !important;
}

body.forum-page .reaction-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  min-height: 32px !important;
  border: 1px solid #d6e0e7 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: #fff !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.forum-page .reaction-trigger:hover {
  border-color: #f0c85f !important;
  background: #fff7da !important;
}

body.forum-page .reaction-options {
  display: none !important;
  position: absolute !important;
  bottom: calc(100% + 6px) !important;
  left: 0 !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: max-content !important;
  padding: 6px 8px !important;
  border: 1px solid #d6e0e7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}

body.forum-page .reaction-picker.is-open .reaction-options,
body.forum-page .reaction-picker:hover .reaction-options,
body.forum-page .reaction-picker:focus-within .reaction-options {
  display: flex !important;
}

body.forum-page .reaction-options form {
  display: inline-flex !important;
  margin: 0 !important;
}

body.forum-page .reaction-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.forum-page .reaction-btn:hover {
  background: #f3f6f8 !important;
  border-color: #dce4ea !important;
}

body.forum-page .reaction-btn.active {
  border-color: #f0c85f !important;
  background: #fff4cf !important;
}

body.forum-page .reaction-btn,
body.forum-page .reaction-chip,
body.forum-page .message-action {
  min-height: 28px !important;
  font-size: 0.72rem !important;
}

body.forum-page .post-edit-menu {
  position: relative !important;
  display: inline-flex !important;
}

body.forum-page .post-edit-menu > summary.post-edit-trigger {
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #d6e0e7 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #526572 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

body.forum-page .post-edit-menu > summary.post-edit-trigger::-webkit-details-marker {
  display: none !important;
}

body.forum-page .post-edit-menu > summary.post-edit-trigger::marker {
  content: "" !important;
}

body.forum-page .post-edit-menu > summary.post-edit-trigger::after {
  content: "▾" !important;
  font-size: 0.62rem !important;
  opacity: 0.65 !important;
}

body.forum-page .post-edit-menu[open] > summary.post-edit-trigger {
  border-color: #f0c85f !important;
  background: #fff8e6 !important;
  color: #162633 !important;
}

body.forum-page .message-action {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 10px !important;
  border: 1px solid #d6e0e7 !important;
  background: #fff !important;
  color: #526572 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.forum-page .message-action:hover {
  border-color: #c5d4de !important;
  background: #f8fafb !important;
  color: #1e3644 !important;
}

body.forum-page .post-report {
  display: inline-flex !important;
}

body.forum-page .post-report form {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 8px !important;
  padding: 10px !important;
  min-width: 220px !important;
}

body.forum-page .post-edit-panel {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  z-index: 120 !important;
  margin: 0 !important;
  border: 1px solid #d6e0e7 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14) !important;
}

body.forum-page .post-report form,
body.forum-page .topic-staff-panel {
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1) !important;
}

body.forum-page .reply {
  display: block !important;
  margin-top: 14px !important;
  border: 1px solid var(--forum-border) !important;
  border-radius: var(--forum-radius) !important;
  background: var(--forum-surface) !important;
  box-shadow: var(--forum-shadow) !important;
  overflow: hidden !important;
}

body.forum-page .reply h2 {
  margin: 0 !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #e2e8ef !important;
  background: #f6f8fa !important;
  font-size: 0.92rem !important;
}

body.forum-page .reply-form {
  display: grid !important;
  grid-template-columns: 185px minmax(0, 1fr) !important;
}

body.forum-page .pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 12px 0 16px !important;
}

body.forum-page .pagination a,
body.forum-page .pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #dce4ea !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #2a3f4d !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.forum-page .reply-body {
  padding: 14px !important;
}

@media (max-width: 760px) {
  body.forum-page .post,
  body.forum-page .reply-form {
    grid-template-columns: 1fr !important;
  }

  body.forum-page .post-author,
  body.forum-page .reply-user {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px 12px !important;
    padding: 12px 14px !important;
    text-align: left !important;
    border-bottom: 1px solid #e8edf1 !important;
  }

  body.forum-page .post-author .avatar,
  body.forum-page .reply-user .avatar {
    width: 48px !important;
    height: 48px !important;
    font-size: 1rem !important;
  }

  body.forum-page .post-author .author-stat,
  body.forum-page .reply-user .author-stat {
    flex: 1 1 calc(50% - 36px) !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid rgba(22, 38, 51, 0.07) !important;
  }

  body.forum-page .post-author .author-stat:first-of-type,
  body.forum-page .reply-user .author-stat:first-of-type {
    flex-basis: 100% !important;
    margin-top: 6px !important;
  }

  body.forum-page .post-main {
    border-left: none !important;
  }
}

/* New topic */
body.forum-page .head {
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.forum-page .head h1 {
  font-size: 1.18rem !important;
}

body.forum-page .head p {
  font-size: .8rem !important;
}

body.forum-page form.layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
}

body.forum-page .form-main,
body.forum-page .options {
  padding: 12px !important;
}

body.forum-page .title-row {
  grid-template-columns: 150px minmax(0, 1fr) !important;
}

body.forum-page .form-main textarea {
  min-height: 250px !important;
}

body.forum-page .editor-preview {
  box-shadow: none !important;
}

body.forum-page .option {
  padding-bottom: 10px !important;
  border-bottom: 1px solid #edf1f4 !important;
  font-size: .82rem !important;
}

body.forum-page .option:last-of-type {
  border-bottom: 0 !important;
}

@media (max-width: 850px) {
  body.forum-page form.layout,
  body.forum-page .title-row {
    grid-template-columns: 1fr !important;
  }
}

/* Final board correction: centered XenForo-like table layout. */
body.forum-page main.forum-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 32px 28px 84px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

body.forum-page main.forum-section .forum-shell {
  width: min(1280px, 100%) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

body.forum-page .forum-main {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.forum-page .forum-board-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 0 !important;
  margin-bottom: 14px !important;
  border: 1px solid #d8dfe6 !important;
  border-radius: 6px !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.forum-page .forum-board-tools h1 {
  color: #182a36 !important;
  font-size: 1.14rem !important;
  letter-spacing: 0 !important;
}

body.forum-page .forum-board-tools p {
  margin-top: 4px !important;
  color: #687780 !important;
  font-size: .82rem !important;
}

body.forum-page .forum-empty-board {
  margin: 12px 0 0;
  padding: 28px 24px;
  border-radius: var(--forum-radius);
  border: 1px dashed var(--forum-border);
  background: var(--forum-surface-muted);
  text-align: center;
}

body.forum-page .forum-empty-board h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--forum-ink);
}

body.forum-page .forum-empty-board p {
  margin: 0 0 18px;
  color: var(--forum-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

body.forum-page .forum-empty-board .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--forum-gold);
  color: var(--forum-navy);
  font-weight: 700;
  text-decoration: none;
}

body.forum-page .forum-board-actions a {
  min-height: 34px !important;
  border-radius: 7px !important;
  padding: 0 11px !important;
  font-size: .8rem !important;
}

body.forum-page .board-strip {
  display: none !important;
}

body.forum-page .forum-table-head {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 92px 102px minmax(245px, .66fr) !important;
  gap: 14px !important;
  align-items: center !important;
  min-height: 38px !important;
  margin-bottom: 0 !important;
  border: 1px solid #d8dfe6 !important;
  border-bottom: 0 !important;
  border-radius: 6px 6px 0 0 !important;
  padding: 0 16px !important;
  background: #f6f8fa !important;
  color: #5c6b74 !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body.forum-page .forum-category {
  margin: 0 0 16px !important;
  border: 1px solid #d8dfe6 !important;
  border-radius: 0 0 6px 6px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
}

body.forum-page .forum-category + .forum-category {
  border-radius: 6px !important;
}

body.forum-page .forum-category-head {
  min-height: 44px !important;
  padding: 11px 16px !important;
  background: #152a38 !important;
  border-bottom: 1px solid #d8dfe6 !important;
}

body.forum-page .forum-category-head::after {
  display: none !important;
}

body.forum-page .forum-category-head h2 {
  color: #fff !important;
  font-size: .86rem !important;
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
}

body.forum-page .forum-category-head p {
  display: block !important;
  margin-top: 3px !important;
  color: rgba(255,255,255,.62) !important;
  font-size: .72rem !important;
}

body.forum-page .forum-row {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 92px 102px minmax(245px, .66fr) !important;
  gap: 14px !important;
  align-items: center !important;
  min-height: 82px !important;
  padding: 15px 16px !important;
  border-bottom: 1px solid #e1e7ec !important;
  background: #fff !important;
}

body.forum-page .forum-row:hover {
  background: #f7fafc !important;
}

body.forum-page .forum-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  background: #152a38 !important;
  box-shadow: none !important;
  font-size: .9rem !important;
}

body.forum-page .forum-title {
  margin: 0 0 5px !important;
  color: #182a36 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

body.forum-page .forum-desc {
  max-width: 760px !important;
  color: #687780 !important;
  font-size: .82rem !important;
  font-weight: 650 !important;
  line-height: 1.48 !important;
}

body.forum-page .forum-activity {
  display: contents !important;
}

body.forum-page .forum-activity span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  color: #6a7982 !important;
  font-size: 0 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

body.forum-page .forum-activity span strong {
  color: #1e303b !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
}

body.forum-page .forum-last {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding-left: 16px !important;
  border-left: 1px solid #e1e7ec !important;
}

body.forum-page .forum-last small {
  color: #7d8b94 !important;
  font-size: .68rem !important;
  letter-spacing: .04em !important;
}

body.forum-page .forum-last strong {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #203440 !important;
  font-size: .86rem !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.forum-page .forum-last span {
  max-width: 100% !important;
  overflow: hidden !important;
  color: #6b7982 !important;
  font-size: .74rem !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.forum-page .forum-side {
  gap: 14px !important;
}

body.forum-page .forum-side-card {
  border: 1px solid #d8dfe6 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.forum-page .forum-side-card h3 {
  min-height: 42px !important;
  padding: 0 14px !important;
  background: #f4f7f9 !important;
  border-bottom: 1px solid #dce4ea !important;
  color: #1e303b !important;
  font-size: .82rem !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}

body.forum-page .latest-item {
  padding: 12px 14px !important;
  border-bottom: 1px solid #edf1f4 !important;
  background: #fff !important;
}

body.forum-page .latest-item strong {
  color: #203440 !important;
  font-size: .84rem !important;
}

body.forum-page .latest-item span {
  color: #6b7982 !important;
  font-size: .74rem !important;
}

@media (max-width: 980px) {
  body.forum-page main.forum-section {
    padding: 16px 14px 56px !important;
  }

  body.forum-page main.forum-section .forum-shell {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body.forum-page .forum-table-head {
    display: none !important;
  }

  body.forum-page .forum-category,
  body.forum-page .forum-category + .forum-category {
    border-radius: 5px !important;
  }

  body.forum-page .forum-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  body.forum-page .forum-activity {
    display: none !important;
  }

  body.forum-page .forum-last {
    grid-column: 2 !important;
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}

/* Airier board pass: less bold, less compressed, still structured. */
body.forum-page main.forum-section {
  padding: 38px 32px 92px !important;
}

body.forum-page main.forum-section .forum-shell {
  width: min(1280px, 100%) !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 22px !important;
}

body.forum-page .forum-board-tools {
  margin-bottom: 18px !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
}

body.forum-page .forum-board-tools h1 {
  font-size: 1.22rem !important;
  font-weight: 750 !important;
}

body.forum-page .forum-board-tools p {
  font-size: .88rem !important;
  font-weight: 500 !important;
}

body.forum-page .forum-board-actions a {
  min-height: 36px !important;
  border-radius: 8px !important;
  padding: 0 13px !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
}

body.forum-page .forum-table-head {
  grid-template-columns: 48px minmax(0, 1fr) 96px 106px minmax(270px, .7fr) !important;
  min-height: 42px !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 0 18px !important;
  color: #71808a !important;
  font-size: .7rem !important;
  font-weight: 750 !important;
}

body.forum-page .forum-category {
  margin-bottom: 20px !important;
  border-radius: 0 0 10px 10px !important;
}

body.forum-page .forum-category + .forum-category {
  border-radius: 10px !important;
}

body.forum-page .forum-category-head {
  min-height: 52px !important;
  padding: 14px 18px !important;
  background: #203b4d !important;
}

body.forum-page .forum-category-head h2 {
  font-size: .88rem !important;
  font-weight: 750 !important;
  text-transform: none !important;
}

body.forum-page .forum-category-head p {
  margin-top: 4px !important;
  font-size: .78rem !important;
  font-weight: 450 !important;
}

body.forum-page .forum-row {
  grid-template-columns: 48px minmax(0, 1fr) 96px 106px minmax(270px, .7fr) !important;
  gap: 16px !important;
  min-height: 96px !important;
  padding: 20px 18px !important;
}

body.forum-page .forum-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  font-size: .94rem !important;
  font-weight: 750 !important;
}

body.forum-page .forum-title {
  margin-bottom: 6px !important;
  font-size: 1.04rem !important;
  font-weight: 760 !important;
}

body.forum-page .forum-desc {
  max-width: 820px !important;
  color: #5f6f79 !important;
  font-size: .88rem !important;
  font-weight: 450 !important;
  line-height: 1.55 !important;
}

body.forum-page .forum-activity span strong {
  font-size: 1rem !important;
  font-weight: 760 !important;
}

body.forum-page .forum-last {
  gap: 5px !important;
  padding-left: 18px !important;
}

body.forum-page .forum-last small {
  font-size: .68rem !important;
  font-weight: 700 !important;
}

body.forum-page .forum-last strong {
  font-size: .9rem !important;
  font-weight: 720 !important;
}

body.forum-page .forum-last span {
  font-size: .78rem !important;
  font-weight: 450 !important;
}

body.forum-page .forum-side {
  gap: 18px !important;
}

body.forum-page .forum-side-card {
  border-radius: 10px !important;
}

body.forum-page .forum-side-card h3 {
  min-height: 46px !important;
  padding: 0 16px !important;
  font-size: .78rem !important;
  font-weight: 750 !important;
}

body.forum-page .latest-item {
  padding: 15px 16px !important;
}

body.forum-page .latest-item strong {
  font-size: .9rem !important;
  font-weight: 720 !important;
  line-height: 1.35 !important;
}

body.forum-page .latest-item span {
  margin-top: 5px !important;
  font-size: .78rem !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
}

body.forum-page .online-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 14px 16px !important;
}

body.forum-page .online-list a,
body.forum-page .online-list span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  margin: 0 !important;
  border: 1px solid #d7e1e8 !important;
  border-radius: 999px !important;
  padding: 0 10px !important;
  background: #f7fafc !important;
  color: #243947 !important;
  font-size: .8rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.forum-page .online-list a:hover {
  border-color: #b8c8d2 !important;
  background: #eef4f7 !important;
  color: #142a38 !important;
}

body.forum-page .forum-user-chip,
body.forum-page .forum-tabs a,
body.forum-page .forum-auth-link,
body.forum-page .forum-return {
  font-weight: 700 !important;
}

@media (max-width: 980px) {
  body.forum-page main.forum-section {
    padding: 22px 16px 64px !important;
  }

  body.forum-page main.forum-section .forum-shell {
    grid-template-columns: 1fr !important;
  }
}

/* Modern composer pages */
body.forum-page .head {
  border-radius: 14px !important;
  padding: 20px 22px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%) !important;
}

body.forum-page .head h1 {
  font-size: 1.35rem !important;
  font-weight: 760 !important;
}

body.forum-page .head p {
  font-size: .92rem !important;
  font-weight: 450 !important;
}

body.forum-page form.layout {
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 18px !important;
}

body.forum-page form.layout .panel {
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(29,51,66,.07) !important;
}

body.forum-page .panel-head {
  padding: 14px 18px !important;
  background: #f7fafc !important;
  font-size: .86rem !important;
  font-weight: 760 !important;
  letter-spacing: .02em !important;
}

body.forum-page .form-main {
  gap: 16px !important;
  padding: 18px !important;
}

body.forum-page .title-row {
  grid-template-columns: 170px minmax(0, 1fr) !important;
  gap: 12px !important;
}

body.forum-page .title-row input,
body.forum-page .title-row select {
  min-height: 44px !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  background: #fbfcfd !important;
  font-size: .95rem !important;
}

body.forum-page .title-row input {
  font-size: 1rem !important;
}

body.forum-page .form-main textarea {
  min-height: 300px !important;
}

body.forum-page .editor-preview {
  border-radius: 12px !important;
  background: #fbfcfd !important;
}

body.forum-page .editor-preview strong {
  padding: 11px 14px !important;
  font-size: .76rem !important;
  font-weight: 760 !important;
}

body.forum-page .preview-body {
  min-height: 96px !important;
  padding: 15px 16px !important;
  font-size: .92rem !important;
}

body.forum-page .options {
  gap: 0 !important;
  padding: 0 !important;
}

body.forum-page .option {
  gap: 11px !important;
  padding: 15px 16px !important;
  border-bottom: 1px solid #edf1f4 !important;
  color: #253845 !important;
  font-weight: 650 !important;
}

body.forum-page .option input {
  width: 17px !important;
  height: 17px !important;
  margin-top: 1px !important;
}

body.forum-page .option span {
  font-size: .78rem !important;
  font-weight: 450 !important;
  line-height: 1.45 !important;
}

body.forum-page .publish {
  min-height: 44px !important;
  margin: 16px !important;
  width: calc(100% - 32px) !important;
  border-radius: 10px !important;
  font-size: .92rem !important;
  font-weight: 760 !important;
}

body.forum-page .reply-body {
  gap: 16px !important;
  padding: 18px !important;
}

body.forum-page .reply-body > button[type="submit"] {
  min-height: 42px !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-size: .9rem !important;
  font-weight: 760 !important;
}

body.forum-page .post-edit-panel {
  width: min(720px, 76vw) !important;
  padding: 14px !important;
  border-radius: 14px !important;
}

body.forum-page .post-edit-panel .forum-editor textarea {
  min-height: 210px !important;
}

@media (max-width: 850px) {
  body.forum-page form.layout,
  body.forum-page .title-row {
    grid-template-columns: 1fr !important;
  }
}

/* ── Listes « discussions » : index salons (forum.php) + sujets (salon.php) ── */
body.forum-page .forum-main {
  min-width: 0 !important;
}

body.forum-page .forum-stat {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  padding: 4px 6px !important;
  border-radius: 8px !important;
  background: rgba(249, 251, 252, 0.9) !important;
  border: 1px solid #e8edf0 !important;
}

body.forum-page .forum-stat-value {
  color: #152a38 !important;
  font-size: 0.95rem !important;
  font-weight: 720 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

body.forum-page .forum-stat-label {
  color: #8899a3 !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.forum-page .forum-last-kicker {
  display: block !important;
  color: #7d8b94 !important;
  font-size: 0.66rem !important;
  font-weight: 780 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

body.forum-page .forum-last-title {
  display: block !important;
  overflow: hidden !important;
  color: #182a36 !important;
  font-size: 0.9rem !important;
  font-weight: 740 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.forum-page .forum-last-meta {
  display: block !important;
  overflow: hidden !important;
  margin-top: 2px !important;
  color: #6b7982 !important;
  font-size: 0.76rem !important;
  font-weight: 560 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.forum-page .forum-row:hover .forum-stat {
  background: #eef6fb !important;
  border-color: #d5e4ee !important;
}

body.forum-page .panel.topic-board {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 18px rgba(18, 35, 48, 0.05) !important;
}

body.forum-page .topic-board .topic-head-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 78px minmax(148px, 0.38fr) !important;
  gap: 10px 12px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #e8edf1 !important;
  border-radius: 0 !important;
  background: #f9fafb !important;
  color: #7d8c95 !important;
  font-size: 0.62rem !important;
  font-weight: 680 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

body.forum-page .topic-board a.topic.topic-row {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 78px minmax(148px, 0.38fr) !important;
  gap: 10px 12px !important;
  align-items: center !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 10px 12px !important;
  border-top: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid #eef2f5 !important;
  background: #fff !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: background 0.12s ease, box-shadow 0.12s ease !important;
}

body.forum-page .topic-board a.topic.topic-row:last-of-type {
  border-bottom: 0 !important;
}

body.forum-page .topic-board a.topic.topic-row:hover {
  background: #fafcfd !important;
  box-shadow: inset 2px 0 0 rgba(232, 188, 82, 0.5) !important;
}

body.forum-page .topic-board a.topic.topic-row.unread {
  background: linear-gradient(
    90deg,
    rgba(232, 188, 82, 0.2) 0,
    rgba(232, 188, 82, 0.2) 3px,
    #fff 3px,
    #fff 100%
  ) !important;
}

body.forum-page .topic-board a.topic.topic-row.unread:hover {
  background: linear-gradient(
    90deg,
    rgba(232, 188, 82, 0.28) 0,
    rgba(232, 188, 82, 0.28) 3px,
    #fffbf0 3px,
    #fffbf0 100%
  ) !important;
}

body.forum-page .topic-board .topic-avatar {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: #1f3644 !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  box-shadow: none !important;
}

body.forum-page .topic-board .topic-main {
  min-width: 0 !important;
}

body.forum-page .topic-board .topic-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-bottom: 4px !important;
}

body.forum-page .topic-board .topic-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  font-size: 0.58rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

body.forum-page .topic-board .topic-badge--pin {
  background: rgba(232, 188, 82, 0.22) !important;
  border: 1px solid rgba(201, 163, 59, 0.35) !important;
  color: #7a5e12 !important;
}

body.forum-page .topic-board .topic-badge--lock {
  background: rgba(248, 113, 113, 0.12) !important;
  border: 1px solid rgba(248, 113, 113, 0.28) !important;
  color: #a53434 !important;
}

body.forum-page .topic-board .topic-badge--resolved {
  background: rgba(52, 211, 153, 0.14) !important;
  border: 1px solid rgba(45, 212, 191, 0.35) !important;
  color: #137a52 !important;
}

body.forum-page .topic-board .topic-title-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 6px 8px !important;
}

body.forum-page .topic-board .topic-prefix {
  flex: 0 0 auto !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: #edf2f7 !important;
  color: #3d4f5c !important;
  font-size: 0.65rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.forum-page .topic-board .topic-title {
  flex: 1 1 180px !important;
  min-width: 0 !important;
  color: #122330 !important;
  font-size: 0.9rem !important;
  font-weight: 680 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}

body.forum-page .topic-board .topic-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 3px !important;
  color: #6f7e87 !important;
  font-size: 0.72rem !important;
  font-weight: 560 !important;
}

body.forum-page .topic-board .topic-meta-dot {
  opacity: 0.55 !important;
}

body.forum-page .topic-board .topic-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 4px 6px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 0.72rem !important;
  font-weight: 560 !important;
  color: #7a8b94 !important;
  text-align: right !important;
}

body.forum-page .topic-board a.topic.topic-row:hover .topic-metrics {
  color: #5d6e78 !important;
}

body.forum-page .topic-board .topic-metric-val {
  color: #2f4552 !important;
  font-weight: 720 !important;
  font-size: 0.78rem !important;
}

body.forum-page .topic-board .topic-metric-sep {
  opacity: 0.45 !important;
  font-weight: 400 !important;
}

body.forum-page .topic-board .topic-last {
  display: block !important;
  min-width: 0 !important;
  padding-left: 12px !important;
  border-left: 1px solid #eceff2 !important;
}

body.forum-page .topic-board .topic-last-time {
  display: block !important;
  color: #3d525d !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

body.forum-page .topic-empty {
  display: grid !important;
  place-items: center !important;
  gap: 6px !important;
  padding: 32px 20px !important;
  text-align: center !important;
  background: #fafbfb !important;
  border-top: 1px solid #edf1f4 !important;
}

body.forum-page .topic-empty-icon {
  display: grid !important;
  place-items: center !important;
  width: 52px !important;
  height: 52px !important;
  margin-bottom: 4px !important;
  border-radius: 14px !important;
  background: rgba(21, 42, 56, 0.08) !important;
  color: #152a38 !important;
  font-size: 1.45rem !important;
}

body.forum-page .topic-empty strong {
  color: #122330 !important;
  font-size: 1.05rem !important;
  font-weight: 780 !important;
}

body.forum-page .topic-empty p {
  max-width: 360px !important;
  margin: 0 !important;
  color: #6b7982 !important;
  font-size: 0.86rem !important;
  font-weight: 560 !important;
  line-height: 1.5 !important;
}

body.forum-page .topic-empty-cta {
  margin-top: 8px !important;
}

body.forum-page .topic-board nav.topic-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 12px !important;
  border-top: 1px solid #e8edf1 !important;
  background: #fafbfc !important;
}

body.forum-page .topic-board .topic-pagination a,
body.forum-page .topic-board .topic-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 32px !important;
  height: 32px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  border: 1px solid #dce4ea !important;
  background: #fff !important;
  color: #2a3f4d !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
}

body.forum-page .topic-board .topic-pagination a:hover {
  background: #eef6fb !important;
  border-color: #c5d8e6 !important;
}

body.forum-page .topic-board .topic-pagination .page-current {
  border-color: rgba(232, 188, 82, 0.55) !important;
  background: linear-gradient(145deg, #fff6d9, #ffe9a8) !important;
  color: #3d2f08 !important;
  font-weight: 820 !important;
}

body.forum-page .salon-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px 14px !important;
  margin-bottom: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid #e2e8ef !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.forum-page .salon-head h1 {
  font-size: 1.06rem !important;
  font-weight: 720 !important;
  letter-spacing: -0.02em !important;
}

body.forum-page .salon-head p {
  max-width: 56ch !important;
  margin-top: 4px !important;
  color: #6a7a82 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body.forum-page .salon-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

body.forum-page .salon-back {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: #5c7582 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.forum-page .salon-back:hover {
  color: #1e3644 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

/* .salon-new : apparence dans header.css (html body.forum-page — même couche que .forum-tabs) */

@media (max-width: 900px) {
  body.forum-page .topic-board .topic-head-row {
    display: none !important;
  }

  body.forum-page .topic-board a.topic.topic-row {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    gap: 8px 10px !important;
  }

  body.forum-page .topic-board .topic-avatar {
    grid-row: 1 / span 2 !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 0.76rem !important;
  }

  body.forum-page .topic-board .topic-main {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
  }

  body.forum-page .topic-board .topic-metrics {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-content: flex-start !important;
    padding-top: 8px !important;
    margin-top: 2px !important;
    border-top: 1px dashed #e6edf1 !important;
    text-align: left !important;
  }

  body.forum-page .topic-board .topic-last {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    padding: 8px 0 0 !important;
    margin-top: 2px !important;
    border-left: 0 !important;
    border-top: 1px solid #eef2f5 !important;
  }
}

@media (max-width: 720px) {
  body.forum-page .forum-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 12px 14px !important;
    padding: 16px !important;
  }

  body.forum-page .forum-main {
    flex: 1 1 220px !important;
    min-width: 0 !important;
  }

  body.forum-page .forum-stat {
    flex: 1 1 calc(50% - 28px) !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
  }

  body.forum-page .forum-stat-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.03em !important;
    text-transform: none !important;
    font-weight: 650 !important;
  }

  body.forum-page .forum-last {
    flex: 1 1 100% !important;
    padding: 14px 0 0 !important;
    margin-top: 4px !important;
    border-left: 0 !important;
    border-top: 1px dashed #dfe7ee !important;
  }
}

/* Pagination intelligente */
body.forum-page .forum-pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 16px 0 4px !important;
  padding: 0 12px 12px !important;
}

body.forum-page .forum-pagination a,
body.forum-page .forum-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border: 1px solid #d4dee6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #425560 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.forum-page .forum-pagination .page-current {
  border-color: rgba(232, 188, 82, 0.55) !important;
  background: linear-gradient(145deg, #fff4cf, #ffe9a8) !important;
  color: #3d2f08 !important;
}

body.forum-page .forum-pagination .page-ellipsis {
  border: 0 !important;
  background: transparent !important;
  min-width: auto !important;
  padding: 0 4px !important;
}

body.forum-page .forum-pagination .page-prev,
body.forum-page .forum-pagination .page-next {
  min-width: auto !important;
  padding: 0 12px !important;
}

/* Recherche — extraits messages */
body.forum-page .search-result-post {
  display: block !important;
}

body.forum-page .search-excerpt {
  margin: 6px 0 0 !important;
  color: #5f6f78 !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

/* Modération fil */
body.forum-page .topic-staff-panel .staff-form {
  display: grid !important;
  gap: 8px !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #e2e8ef !important;
}

body.forum-page .topic-staff-panel .staff-form label {
  display: grid !important;
  gap: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #526572 !important;
}

body.forum-page .topic-staff-panel .staff-form select,
body.forum-page .topic-staff-panel .staff-form input {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #d4dee6 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font: inherit !important;
}

/* Paramètres — préférences */
body.forum-page .prefs-form {
  display: grid !important;
  gap: 10px !important;
  padding: 14px !important;
}

body.forum-page .pref-check {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #425560 !important;
}

/* Profil public */
body.forum-page.forum-profile-page .profile {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body.forum-page.forum-profile-page .showcase {
  grid-column: 1 / -1 !important;
  border: 1px solid var(--forum-border) !important;
  border-radius: var(--forum-radius) !important;
  background: var(--forum-surface) !important;
  overflow: hidden !important;
}

body.forum-page.forum-profile-page .showcase-cover {
  min-height: 150px !important;
  background: linear-gradient(135deg, #162b3a 0%, #24495f 58%, var(--forum-gold) 58%, var(--forum-gold) 100%) !important;
  background-size: cover !important;
  background-position: center !important;
}

body.forum-page.forum-profile-page .showcase-body {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: end !important;
  padding: 0 18px 18px !important;
  margin-top: -58px !important;
}

body.forum-page.forum-profile-page .showcase-avatar,
body.forum-page.forum-profile-page .profile-card .avatar {
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #f4d06f, var(--forum-gold)) !important;
  color: #162633 !important;
  font-weight: 800 !important;
}

body.forum-page.forum-profile-page .showcase-avatar {
  width: 116px !important;
  height: 116px !important;
  border: 5px solid #fff !important;
  font-size: 2.4rem !important;
  box-shadow: 0 12px 28px rgba(22, 43, 58, 0.18) !important;
}

body.forum-page.forum-profile-page .profile-card .avatar {
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 12px !important;
  font-size: 2rem !important;
}

body.forum-page.forum-profile-page .showcase-avatar img,
body.forum-page.forum-profile-page .profile-card .avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.forum-page.forum-profile-page .signature-box {
  margin-top: 12px !important;
  padding: 12px !important;
  border-left: 3px solid var(--forum-gold) !important;
  background: #f4f7f9 !important;
  color: #53636d !important;
  font-style: italic !important;
}

@media (max-width: 820px) {
  body.forum-page.forum-profile-page .profile,
  body.forum-page.forum-profile-page .showcase-body {
    grid-template-columns: 1fr !important;
  }
}

body.forum-page .post-unread .post-message {
  box-shadow: inset 0 0 0 2px rgba(232, 188, 82, 0.45) !important;
  border-radius: 10px !important;
}

@media (max-width: 760px) {
  body.forum-page .post {
    grid-template-columns: 1fr !important;
  }

  body.forum-page .post-author {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border-bottom: 1px solid #e8edf1 !important;
    border-right: none !important;
  }

  body.forum-page .post-signature {
    border-radius: 0 !important;
  }
}

