.forum-page { max-width: 1440px; margin: 0 auto; padding: 20px 12px 48px; color: #1e293b; }
.forum-page *, .forum-page *::before, .forum-page *::after { box-sizing: border-box; }
.forum-page a { color: #075985; }
.forum-page a:hover { color: #0c4a6e; }
.forum-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 30px; margin: 0 0 24px; color: #e2e8f0; background: linear-gradient(125deg, #122033, #164e63); border-radius: 18px; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
.forum-hero h1 { margin: 5px 0 6px; color: #fff !important; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; }
.forum-hero p { margin: 0; color: #cbd5e1; }
.forum-eyebrow { color: #a5f3fc; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.forum-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.forum-layout { display: block; }
.forum-categories { padding: 17px; margin: 0 0 22px; border: 1px solid #dbe4ef; border-radius: 14px; background: #fff; }
.forum-categories h2 { margin: 0 0 12px; font-size: 18px; }
.forum-category-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.forum-category-list > a { display: flex; min-height: 48px; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 9px; color: #334155; text-decoration: none; }
.forum-category-list > a[aria-current="page"], .forum-category-list > a:hover { border-color: #bae6fd; background: #eff6ff; color: #075985; }
.forum-category-list > a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 #0284c7; }
.forum-categories small { color: #64748b; font-size: 11px; font-weight: 400; line-height: 1.4; }
.forum-content { min-width: 0; }
.forum-panel { padding: 22px; margin: 0 0 18px; border: 1px solid #dbe4ef; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(15, 23, 42, .035); }
.forum-panel h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.3; }
.forum-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid #0369a1; border-radius: 9px; background: #0369a1; color: #fff !important; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.forum-button:hover { border-color: #075985; background: #075985; color: #fff !important; }
.forum-button-light { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); }
.forum-button-light:hover { background: rgba(255,255,255,.2); }
.forum-button-muted { border-color: #cbd5e1; background: #f8fafc; color: #334155 !important; }
.forum-button-muted:hover { background: #e2e8f0; color: #0f172a !important; }
.forum-button-danger { border-color: #fecaca; background: #fff7f7; color: #b91c1c !important; }
.forum-button-danger:hover { border-color: #b91c1c; background: #b91c1c; color: #fff !important; }
.forum-alert { padding: 13px 16px; margin: 0 0 18px; border: 1px solid; border-radius: 10px; }
.forum-alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.forum-alert-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.forum-form { display: grid; gap: 9px; margin: 12px 0; }
.forum-form label, .forum-search label { margin: 2px 0 0; color: #334155; font-size: 13px; font-weight: 700; }
.forum-form input, .forum-form textarea, .forum-form select, .forum-search input { width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; margin: 0; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; }
.forum-form textarea { resize: vertical; line-height: 1.6; }
.forum-form input:focus, .forum-form textarea:focus, .forum-form select:focus, .forum-search input:focus { border-color: #0284c7; outline: 3px solid rgba(14, 165, 233, .16); }
.forum-form > button { justify-self: start; margin-top: 4px; }
.forum-category-form { grid-template-columns: minmax(90px, .35fr) minmax(0, 1fr); align-items: center; gap: 10px; }
.forum-category-form > button { grid-column: 2; justify-self: start; }
.forum-category-row { padding: 12px 0; border-top: 1px solid #e2e8f0; }
.forum-category-row > form:last-child { margin-top: 8px; }
.forum-muted { color: #64748b; font-size: 12px; line-height: 1.6; }
.forum-empty { padding: 25px; text-align: center; color: #64748b; }
.forum-empty h3 { margin: 0 0 8px; color: #334155; }
.forum-topic-modal { width: min(620px, calc(100% - 28px)); max-width: 620px; max-height: min(90vh, 820px); padding: 24px; overflow-y: auto; border: 1px solid #dbe4ef; border-radius: 18px; background: #fff; color: #1e293b; box-shadow: 0 24px 80px rgba(15, 23, 42, .3); }
.forum-topic-modal::backdrop { background: rgba(15, 23, 42, .66); backdrop-filter: blur(3px); }
.forum-topic-modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.forum-topic-modal-header h2 { margin: 6px 0 0; font-size: 23px; }
.forum-modal-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #cbd5e1; border-radius: 50%; background: #f8fafc; color: #334155; font-size: 25px; line-height: 1; cursor: pointer; }
.forum-topic-modal .forum-form { grid-template-columns: 1fr; margin-top: 18px; }
.forum-topic-modal .forum-alert { margin-top: 16px; }
.forum-topic-modal[open] { animation: forum-modal-in .16s ease-out; }
@keyframes forum-modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.forum-search { display: grid; gap: 7px; margin: 0 0 20px; }
.forum-search > div { display: flex; gap: 8px; }
.forum-search input { flex: 1; }
.forum-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.forum-section-heading h2 { margin: 0; font-size: 20px; }
.forum-count { padding: 3px 10px; border-radius: 99px; background: #eaf3fb; color: #075985; font-size: 12px; font-weight: 700; white-space: nowrap; }
.forum-topic-row { display: flex; align-items: center; gap: 16px; padding: 18px; margin: 0 0 10px; border: 1px solid #dbe4ef; border-radius: 12px; background: #fff; }
.forum-topic-row-closed { border-color: #b91c1c; background: linear-gradient(115deg, #ef4444 0%, #b91c1c 58%, #7f1d1d 100%); color: #fff; box-shadow: 0 8px 22px rgba(185, 28, 28, .16); }
.forum-topic-closed { border-color: #b91c1c; background: linear-gradient(115deg, #ef4444 0%, #b91c1c 58%, #7f1d1d 100%); color: #fff; }
.forum-topic-closed .forum-message, .forum-topic-closed .forum-topic-byline, .forum-topic-closed .forum-edit > summary { color: #fff; }
.forum-topic-closed .forum-author-identity strong { color: #fff; }
.forum-topic-closed .forum-category-badge { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.16); color: #fff !important; }
.forum-topic-row-main { flex: 1; min-width: 0; }
.forum-topic-flags, .forum-topic-heading .forum-category-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.forum-category-badge, .forum-status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px; background: #e0f2fe; color: #075985 !important; font-size: 11px; font-weight: 700; text-decoration: none; }
.forum-status-pinned { background: #fef3c7; color: #92400e !important; }
.forum-status-closed { background: #e2e8f0; color: #334155 !important; }
.forum-status-deleted { background: #fee2e2; color: #991b1b !important; }
.forum-topic-row h3 { margin: 8px 0 5px; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.forum-topic-row h3 a { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #0f172a; text-decoration: none; }
.forum-topic-row h3 a > span:last-child, .forum-topic-heading h2 > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.forum-topic-row h3 a:hover { color: #0369a1; }
.forum-topic-row p { margin: 0 0 9px; color: #475569; font-size: 13px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.forum-topic-row-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: #64748b; font-size: 11px; }
.forum-author-meta { display: inline-flex; align-items: center; gap: 6px; }
.forum-avatar { width: 25px; height: 25px; flex: 0 0 25px; border: 1px solid #dbe4ef; border-radius: 50%; object-fit: cover; background: #f1f5f9; }
.forum-avatar-large { width: 42px; height: 42px; flex-basis: 42px; }
.forum-topic-icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.forum-title-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.forum-title-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.forum-title-closed { background: #fee2e2; color: #991b1b; }
.forum-title-deleted { background: #e2e8f0; color: #334155; }
.forum-topic-row-count { display: flex; flex: 0 0 72px; flex-direction: column; align-items: center; color: #64748b; font-size: 11px; }
.forum-topic-row-count strong { color: #0f172a; font-size: 20px; }
.forum-topic-row-count span { text-align: center; }
.forum-moderation { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.forum-moderation form, .forum-inline-action { margin: 0; }
.forum-moderation .forum-button, .forum-inline-action .forum-button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.forum-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px; margin: 20px 0; color: #475569; font-size: 13px; }
.forum-pagination a, .forum-back { color: #075985; font-weight: 700; }
.forum-back { display: inline-block; margin: 0 0 14px; text-decoration: none; }
.forum-topic-heading { display: block; min-width: 0; }
.forum-topic-heading .forum-category-badge { display: inline-flex; }
.forum-topic-heading h2 { margin: 11px 0 0; font-size: clamp(22px, 3.5vw, 30px); overflow-wrap: anywhere; }
.forum-topic-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.forum-topic-byline { display: grid; gap: 4px; flex: 0 0 auto; color: #64748b; font-size: 12px; text-align: right; }
.forum-topic-byline { grid-template-columns: 42px minmax(0, 1fr); align-items: center; text-align: left; }
.forum-topic-byline .forum-avatar { grid-row: span 2; }
.forum-author-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.forum-author-identity strong { color: #0f172a; overflow-wrap: anywhere; }
.forum-rank-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid transparent; border-radius: 99px; font-size: 10px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.forum-rank-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.forum-rank-administrator { border-color: #c4b5fd; background: #ede9fe; color: #5b21b6; }
.forum-rank-vip { border-color: #fcd34d; background: #fef3c7; color: #854d0e; }
.forum-rank-moderator { border-color: #bfdbfe; background: #dbeafe; color: #1e40af; }
.forum-rank-member { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
.forum-message { margin: 18px 0; color: #334155; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-attachment { display: block; width: auto; max-width: 100%; height: auto; margin: 12px 0 18px; }
.forum-topic-views { color: #64748b; font-size: 11px; }
.forum-edit, .forum-reply { margin-top: 12px; }
.forum-edit > summary, .forum-reply > summary { display: inline-block; color: #075985; font-size: 12px; font-weight: 700; cursor: pointer; }
.forum-edit .forum-form, .forum-reply .forum-form { max-width: 760px; margin: 12px 0; }
.forum-comment { padding: 17px 0; border-top: 1px solid #e2e8f0; }
.forum-comment-reply { margin-left: clamp(12px, 3vw, 32px); padding-left: 15px; border-left: 3px solid #dbeafe; }
.forum-comment-header { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #64748b; font-size: 12px; }
.forum-comment-header strong { color: #0f172a; font-size: 13px; }
.forum-comment-header .forum-avatar { margin-right: 1px; }
.forum-comment-header time { margin-left: auto; }
.forum-comment .forum-message { margin: 10px 0; }
.forum-new-comment { padding-top: 20px; border-top: 1px solid #dbe4ef; }
.forum-access-note { padding: 13px 15px; border-radius: 9px; background: #eff6ff; }
.forum-page a:focus-visible, .forum-page button:focus-visible, .forum-page summary:focus-visible { outline: 3px solid #0ea5e9; outline-offset: 3px; }
@media (max-width: 900px) {
  .forum-category-list { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
}
@media (max-width: 600px) {
  .forum-page { padding: 12px 7px 30px; }
  .forum-hero { align-items: flex-start; flex-direction: column; padding: 21px; border-radius: 13px; }
  .forum-panel { padding: 16px; }
  .forum-topic-row { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .forum-topic-row-main { flex-basis: calc(100% - 72px); }
  .forum-topic-row-count { order: 1; }
  .forum-topic-row > .forum-moderation { flex-basis: 100%; order: 2; }
  .forum-topic-heading { flex-direction: column; gap: 10px; }
  .forum-topic-byline { display: flex; flex-wrap: wrap; text-align: left; }
  .forum-topic-byline time { margin-left: 5px; }
  .forum-category-form { grid-template-columns: 1fr; }
  .forum-category-form > button { grid-column: 1; }
  .forum-search > div { align-items: stretch; flex-direction: column; }
  .forum-topic-modal { padding: 19px; border-radius: 14px; }
}
.forum-topic-row-closed .forum-topic-row-main, .forum-topic-row-closed h3 a, .forum-topic-row-closed h3 a:hover, .forum-topic-row-closed p, .forum-topic-row-closed .forum-topic-row-meta, .forum-topic-row-closed .forum-topic-row-count, .forum-topic-row-closed .forum-topic-row-count strong { color: #fff; }
.forum-topic-row-closed .forum-category-badge { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.16); color: #fff !important; }
.forum-topic-row-closed .forum-title-status { background: rgba(255,255,255,.92); }
@media (prefers-reduced-motion: reduce) {
  .forum-topic-modal[open] { animation: none; }
}
.forum-page {
  --forum-ink: #172033;
  --forum-muted: #718096;
  --forum-line: #e6eaf0;
  --forum-accent: #5558e8;
  --forum-header-background: radial-gradient(ellipse at 86% 0%, rgba(119,111,255,.52), transparent 38%), linear-gradient(118deg, #171c37 0%, #292d61 58%, #4547a6 100%);
  max-width: 1500px;
  padding: 28px 20px 64px;
  color: var(--forum-ink);
}
.forum-page a { color: #4b50d7; }
.forum-page a:hover { color: #3338b5; }
.forum-hero {
  position: relative;
  min-height: 190px;
  padding: 36px 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: var(--forum-header-background);
  box-shadow: 0 20px 50px rgba(37, 40, 100, .2);
}
.forum-hero::after {
  position: absolute;
  right: 7%;
  bottom: -96px;
  width: 280px;
  height: 190px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025);
  pointer-events: none;
}
.forum-hero > div { position: relative; z-index: 1; }
.forum-hero h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.04em; }
.forum-hero p { color: #d3d5f1; }
.forum-eyebrow { color: #c4c6ff; }
.forum-button { min-height: 40px; border-color: var(--forum-accent); border-radius: 11px; background: var(--forum-accent); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.forum-button:hover { border-color: #4145ca; background: #4145ca; box-shadow: 0 6px 16px rgba(85,88,232,.2); transform: translateY(-1px); }
.forum-button-light { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.forum-button-light:hover { background: rgba(255,255,255,.2); }
.forum-button-muted { border-color: var(--forum-line); background: #f7f8fb; }
.forum-button-danger { border-color: #f4d0d5; background: #fff7f7; color: #b42335 !important; }
.forum-categories, .forum-panel, .forum-topic-row {
  border-color: var(--forum-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(26, 34, 65, .045);
}
.forum-categories { padding: 22px; }
.forum-category-list { gap: 10px; }
.forum-category-list > a { min-height: 56px; padding: 12px 14px; border-color: #edf0f5; border-radius: 12px; }
.forum-category-list > a[aria-current="page"], .forum-category-list > a:hover { border-color: #d9dafe; background: #f5f5ff; color: #4246c7; }
.forum-panel { padding: 26px; }
.forum-section-heading { margin-top: 28px; }
.forum-section-heading h2, .forum-panel h2 { letter-spacing: -.025em; }
.forum-count { background: #f0f0ff; color: #4a4dcc; }
.forum-search { gap: 9px; margin-bottom: 22px; }
.forum-search > div { gap: 10px; }
.forum-search input { min-height: 46px; border-color: var(--forum-line); border-radius: 12px; background: #fff; }
.forum-topic-row { gap: 20px; padding: 21px 22px; margin-bottom: 13px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.forum-topic-row:hover { border-color: #d4d5fb; box-shadow: 0 12px 30px rgba(35, 40, 90, .08); transform: translateY(-1px); }
.forum-topic-row-closed, .forum-topic-closed { border-color: #d9dce6; background: linear-gradient(115deg, #f8f8fb, #eff1f6); color: var(--forum-ink); box-shadow: none; }
.forum-topic-closed .forum-message, .forum-topic-closed .forum-topic-byline, .forum-topic-closed .forum-edit > summary, .forum-topic-closed .forum-author-identity strong { color: #526078; }
.forum-topic-closed .forum-category-badge { border-color: #e1e3ec; background: #fff; color: #5358cf !important; }
.forum-topic-row-closed .forum-topic-row-main, .forum-topic-row-closed h3 a, .forum-topic-row-closed h3 a:hover, .forum-topic-row-closed p, .forum-topic-row-closed .forum-topic-row-meta, .forum-topic-row-closed .forum-topic-row-count, .forum-topic-row-closed .forum-topic-row-count strong { color: #526078; }
.forum-topic-row-closed .forum-category-badge { border-color: #e1e3ec; background: #fff; color: #5358cf !important; }
.forum-topic-row-closed .forum-title-status { background: #e7e9ef; color: #515c70; }
.forum-category-badge { background: #f0f0ff; color: #4b50ca !important; }
.forum-topic-row h3 { margin-top: 10px; font-size: 18px; letter-spacing: -.015em; }
.forum-topic-row h3 a { color: #1b2540; }
.forum-topic-row p { margin-bottom: 13px; color: #647087; }
.forum-topic-row-meta { gap: 8px 15px; color: var(--forum-muted); }
.forum-topic-row-count { flex-basis: 152px; flex-direction: row; justify-content: flex-end; gap: 8px; }
.forum-topic-stat { display: flex; min-width: 65px; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border: 1px solid #eef0f5; border-radius: 12px; background: #fafbfe; }
.forum-topic-row-count .forum-topic-stat strong { color: #293451; font-size: 19px; line-height: 1.1; }
.forum-topic-row-count .forum-topic-stat span { color: #78839a; font-size: 10px; }
.forum-topic-heading { padding-bottom: 20px; border-bottom: 1px solid #edf0f5; }
.forum-topic-heading h2 { color: #1c2540; letter-spacing: -.035em; }
.forum-topic-byline { color: var(--forum-muted); }
.forum-topic-views { font-weight: 600; }
.forum-message { color: #39445b; }
.forum-attachment { border-radius: 12px; }
.forum-comment { padding: 22px 0; border-top-color: #edf0f5; }
.forum-comment-reply { border-left-color: #dadaff; }
.forum-comment-header { color: #7a8499; }
.forum-comment-header strong { color: #293451; }
.forum-edit > summary, .forum-reply > summary { padding: 5px 0; color: #4b50d7; }
.forum-helpful {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  margin: 0 0 18px;
  border: 1px solid #e3e4ff;
  border-radius: 18px;
  background: linear-gradient(110deg, #f7f7ff, #fff 75%);
  box-shadow: 0 7px 24px rgba(26, 34, 65, .04);
}
.forum-helpful-copy { min-width: 0; }
.forum-helpful-kicker { color: #6569db; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.forum-helpful h2 { margin: 4px 0 3px; color: #242d49; font-size: 17px; letter-spacing: -.02em; }
.forum-helpful p { margin: 0; color: #788198; font-size: 12px; }
.forum-helpful-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.forum-helpful-actions form { margin: 0; }
.forum-helpful-button {
  display: inline-flex;
  min-width: 104px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #e2e5ed;
  border-radius: 12px;
  background: #fff;
  color: #45516a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.forum-helpful-button:hover { border-color: #c9caff; background: #f9f9ff; transform: translateY(-1px); }
.forum-helpful-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.forum-helpful-button strong { min-width: 18px; padding: 2px 5px; border-radius: 99px; background: #f0f1f5; color: #59647a; font-size: 11px; text-align: center; }
.forum-helpful-yes.is-selected { border-color: #a7dfca; background: #effbf5; color: #18764f; }
.forum-helpful-yes.is-selected strong { background: #d9f3e7; color: #18764f; }
.forum-helpful-no.is-selected { border-color: #f0c1c5; background: #fff5f5; color: #b6404b; }
.forum-helpful-no.is-selected strong { background: #fde4e6; color: #a73541; }
.forum-helpful-login { margin: 0; color: #788198; font-size: 12px; white-space: nowrap; }
.forum-helpful-login a { font-weight: 700; }
.forum-helpful-totals { display: flex; gap: 8px; }
.forum-helpful-totals span { padding: 7px 10px; border: 1px solid #e5e7f2; border-radius: 10px; background: #fff; color: #59647a; font-size: 11px; font-weight: 700; }
.forum-topic-modal { border-color: #e4e6f0; border-radius: 20px; }
.forum-alert { border-radius: 12px; }
.forum-pagination a { padding: 8px 12px; border: 1px solid #e5e7f0; border-radius: 10px; text-decoration: none; }
.forum-page a:focus-visible, .forum-page button:focus-visible, .forum-page summary:focus-visible { outline-color: #777af1; }
@media (max-width: 700px) {
  .forum-page { padding: 14px 9px 36px; }
  .forum-hero { min-height: 0; padding: 25px 22px; border-radius: 19px; }
  .forum-hero::after { right: -120px; }
  .forum-topic-row { gap: 13px; padding: 16px; }
  .forum-topic-row-count { flex-basis: 100%; justify-content: flex-start; order: 1; }
  .forum-topic-row > .forum-moderation { order: 2; }
  .forum-topic-stat { min-width: 75px; padding: 8px 10px; }
  .forum-helpful { align-items: flex-start; flex-direction: column; gap: 15px; padding: 19px; }
  .forum-helpful-actions { width: 100%; }
  .forum-helpful-actions form { flex: 1; }
  .forum-helpful-button { width: 100%; }
  .forum-helpful-login { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .forum-button, .forum-topic-row, .forum-helpful-button { transition: none; }
  .forum-topic-row:hover, .forum-helpful-button:hover, .forum-button:hover { transform: none; }
}
.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  align-items: start;
  gap: 22px;
}
.forum-sidebar { display: grid; gap: 14px; min-width: 0; }
.forum-widget {
  padding: 18px;
  border: 1px solid #e6eaf0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(26, 34, 65, .045);
}
.forum-widget-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.forum-widget-heading > div { min-width: 0; }
.forum-widget-heading h2 { margin: 0; color: #242d49; font-size: 15px; letter-spacing: -.02em; }
.forum-widget-heading p { margin: 3px 0 0; color: #8992a5; font-size: 10px; }
.forum-widget-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 12px; }
.forum-widget-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.forum-widget-icon-violet { background: #f0efff; color: #6663d8; }
.forum-widget-icon-amber { background: #fff5df; color: #d09521; }
.forum-widget-icon-blue { background: #eaf3ff; color: #4a80d2; }
.forum-widget-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.forum-widget-stats > div { display: grid; gap: 3px; padding: 10px 6px; border: 1px solid #eef0f5; border-radius: 11px; background: #fafbfe; text-align: center; }
.forum-widget-stats strong { color: #26314f; font-size: 17px; line-height: 1.1; }
.forum-widget-stats span { color: #808ba0; font-size: 9px; }
.forum-user-list, .forum-recent-list { padding: 0; margin: 0; list-style: none; }
.forum-user-list { display: grid; gap: 4px; }
.forum-user-list li { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 8px 0; }
.forum-user-position { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 8px; background: #f1f3f7; color: #758096; font-size: 10px; font-weight: 800; }
.forum-user-position-1 { background: #fff0c8; color: #a76e0a; }
.forum-user-position-2 { background: #edf0f5; color: #5f6b7f; }
.forum-user-position-3 { background: #f8eadd; color: #9c6845; }
.forum-user-list li > img { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #e5e9f0; border-radius: 50%; object-fit: cover; }
.forum-user-info { display: grid; min-width: 0; flex: 1; gap: 2px; }
.forum-user-info strong { overflow: hidden; color: #303a54; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.forum-user-info span { color: #8a93a5; font-size: 10px; }
.forum-user-badge { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 9px; background: #f2f3f7; color: #737e93; }
.forum-user-badge svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.forum-user-badge.forum-rank-administrator { background: #f0ebff; color: #7856c7; }
.forum-user-badge.forum-rank-vip { background: #fff5dc; color: #bc8117; }
.forum-user-badge.forum-rank-moderator { background: #eaf2ff; color: #4879c1; }
.forum-widget-footnote { padding-top: 11px; margin: 10px 0 0; border-top: 1px solid #eff1f5; color: #959daf; font-size: 9px; line-height: 1.5; }
.forum-widget-empty { margin: 0; color: #8992a5; font-size: 11px; line-height: 1.5; }
.forum-recent-list li { padding: 10px 0; border-top: 1px solid #eff1f5; }
.forum-recent-list li:first-child { padding-top: 0; border-top: 0; }
.forum-recent-list a { display: block; overflow: hidden; color: #36415c; font-size: 11px; font-weight: 700; line-height: 1.45; text-decoration: none; text-overflow: ellipsis; }
.forum-recent-list a:hover { color: #4b50d7; }
.forum-recent-list span { display: block; padding-top: 4px; overflow: hidden; color: #929aac; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.forum-sidebar .forum-topic-row-count { flex-basis: 152px; }
@media (max-width: 980px) {
  .forum-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
}
@media (max-width: 760px) {
  .forum-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forum-sidebar .forum-widget-community { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .forum-sidebar { grid-template-columns: minmax(0, 1fr); }
  .forum-sidebar .forum-widget-community { grid-column: auto; }
  .forum-widget { padding: 16px; }
}
.forum-topic-category { overflow: hidden; margin: 0 0 20px; border: 1px solid #e3e7f2; border-radius: 15px; background: #fff; box-shadow: 0 7px 24px rgba(26, 34, 65, .05); }
.forum-topic-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: var(--forum-header-background); color: #fff; }
.forum-topic-category-heading > div { min-width: 0; }
.forum-topic-category-heading h3 { margin: 0; color: #fff !important; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.forum-topic-category-heading p { margin: 5px 0 0; color: #e4e6ff; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.forum-page .forum-topic-category-heading > a { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.forum-page .forum-topic-category-heading > a:hover { background: rgba(255,255,255,.15); color: #fff; }
.forum-topic-category-list .forum-topic-row { gap: 14px; padding: 13px 18px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.forum-topic-category-list .forum-topic-row + .forum-topic-row { border-top: 1px solid #edf0f5; }
.forum-topic-category-list .forum-topic-row:hover { background: #f8f9ff; box-shadow: none; transform: none; }
.forum-topic-category-list .forum-topic-row-closed { background: #f3f4f8; }
.forum-topic-category-list .forum-topic-row-closed:hover { background: #eaecf3; }
.forum-topic-category-list .forum-topic-row h3 { margin: 0 0 5px; font-size: 15px; }
.forum-topic-category-list .forum-topic-row p { margin: 0 0 7px; font-size: 12px; line-height: 1.45; }
.forum-topic-category-list .forum-topic-row-meta { gap: 5px 12px; }
.forum-topic-category-list .forum-topic-row-count { flex-basis: 135px; }
.forum-topic-category-list .forum-topic-stat { min-width: 60px; padding: 6px; border-radius: 9px; }
.forum-topic-category-list .forum-topic-row-count .forum-topic-stat strong { font-size: 15px; }
.forum-post-layout { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); align-items: stretch; gap: 22px; }
.forum-topic .forum-post-layout { padding-top: 20px; }
.forum-post-author { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; padding: 17px 14px; border: 1px solid #eef0f6; border-radius: 13px; background: #fafbfe; color: #7a8499; font-size: 11px; overflow-wrap: anywhere; }
.forum-post-author .forum-avatar { width: 76px; height: 76px; flex: 0 0 76px; align-self: center; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(26,34,65,.14); }
.forum-post-author .forum-author-identity { flex-direction: column; align-items: flex-start; }
.forum-author-details { display: grid; width: 100%; gap: 7px; padding-top: 10px; border-top: 1px solid #e8ebf3; color: #647087; font-size: 11px; line-height: 1.45; }
.forum-chat-rank { display: flex; align-items: flex-start; gap: 6px; color: #4b50a4; }
.forum-chat-rank > span:first-child { font-size: 16px; line-height: 1.2; }
.forum-chat-rank strong { color: #303a60; }
.forum-post-author time { color: #8992a5; font-size: 10px; line-height: 1.5; }
.forum-post-parent { color: #727d94; font-size: 10px; line-height: 1.5; }
.forum-post-content { min-width: 0; }
.forum-post-content > .forum-message { margin-top: 0; }
.forum-post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; margin-top: 14px; border-top: 1px solid #edf0f5; }
.forum-post-actions .forum-button, .forum-post-actions .forum-inline-action .forum-button { min-height: 33px; padding: 6px 10px; font-size: 11px; }
.forum-post-actions .forum-moderation { margin: 0; }
.forum-post-actions .forum-edit, .forum-post-actions .forum-reply { margin: 0; }
.forum-post-actions .forum-edit > summary, .forum-post-actions .forum-reply > summary { min-height: 33px; padding: 8px 10px; border: 1px solid #dfe3ef; border-radius: 9px; background: #fff; color: #4b50d7; font-size: 11px; line-height: 1.3; list-style: none; cursor: pointer; }
.forum-post-actions .forum-edit > summary::-webkit-details-marker, .forum-post-actions .forum-reply > summary::-webkit-details-marker { display: none; }
.forum-post-actions details[open] { flex: 1 0 100%; }
.forum-post-actions details .forum-form { max-width: 760px; margin: 10px 0 0; }
.forum-comment.forum-post-layout { padding: 20px 0; }
.forum-topic-closed .forum-post-author { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.35); }
.forum-topic-closed .forum-post-author, .forum-topic-closed .forum-post-author time, .forum-topic-closed .forum-post-parent, .forum-topic-closed .forum-post-content .forum-message { color: #526078; }
@media (max-width: 600px) {
  .forum-topic-category-heading { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
  .forum-topic-category-list .forum-topic-row { padding: 12px 14px; }
  .forum-topic-category-list .forum-topic-row-count { flex-basis: 100%; }
  .forum-post-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .forum-post-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; column-gap: 11px; padding: 11px 12px; }
  .forum-post-author .forum-avatar { width: 56px; height: 56px; grid-row: 1 / span 4; align-self: start; }
  .forum-post-author .forum-author-identity { flex-direction: row; align-items: center; }
  .forum-post-author time, .forum-post-parent, .forum-post-author > .forum-status, .forum-author-details, .forum-post-author > .forum-topic-views { grid-column: 2; }
  .forum-author-details { padding-top: 7px; }
  .forum-post-actions { gap: 6px; }
}
