:root {
  color-scheme: light;
  --page: #f2f5f7;
  --surface: #fff;
  --ink: #172936;
  --muted: #50636f;
  --line: #d7e1e6;
  --brand: #145579;
  --brand-dark: #103c56;
  --brand-soft: #e8f2f6;
  --amber: #8d5413;
  --panel-radius: 12px;
  --control-radius: 8px;
  --panel-line: #d7e3ed;
  --panel-tint: linear-gradient(110deg, #edf5fd, #f3f9f8);
  --panel-shadow: 0 8px 24px rgba(23, 50, 77, .05);
  font-family: "Microsoft YaHei UI", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid #176a92; outline-offset: 3px; }
img, svg { display: block; }
input, button, select { font: inherit; }
h1, h2, p, dl, dd { margin: 0; }
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 3; left: 16px; top: 16px; background: var(--surface); padding: 10px 16px; }
.top { background: var(--surface); border-bottom: 1px solid #e8e8e8; }
.masthead { position: relative; display: flex; align-items: center; gap: 24px; min-height: 72px; anchor-name: --forum-masthead; }
.logo { flex: 0 0 auto; }
.logo img { width: 170px; height: 60px; object-fit: contain; }
.main-nav { min-width: 0; display: flex; gap: 28px; align-items: center; margin-inline-start: auto; overflow-x: auto; scrollbar-width: thin; }
.main-nav a { display: grid; min-height: 44px; align-items: center; color: var(--ink); font-size: .875rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: #1763b8; text-decoration: none; }
.masthead-search { flex: 0 0 auto; }
.search-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: #444; background: transparent; cursor: pointer; }
.search-toggle:hover, .masthead-search:has(.nav-search-form:popover-open) .search-toggle { color: #1763b8; }
.search-toggle svg { width: 21px; height: 21px; stroke-linecap: round; }
.search-fallback { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
.nav-search-form { display: none; margin: 0; inset: 78px max(20px, calc((100% - 1200px) / 2)) auto auto; width: min(calc(100% - 40px), 384px); grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--panel-line); border-radius: var(--panel-radius); box-shadow: var(--panel-shadow); }
@supports selector(:popover-open) {
  .search-toggle, .nav-search-form:popover-open { display: grid; }
  .search-fallback { display: none; }
}
@supports (top: anchor(bottom)) {
  .nav-search-form { position-anchor: --forum-masthead; top: calc(anchor(bottom) + 6px); right: anchor(right); }
}
.nav-search-modes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; min-width: 0; padding: 3px; margin: 0; border: 0; border-radius: var(--control-radius); background: var(--page); }
.nav-search-modes span { display: grid; place-items: center; min-height: 36px; border-radius: 6px; cursor: pointer; }
.nav-search-modes input:checked + span { background: var(--surface); color: var(--brand); font-weight: 700; }
.nav-search-modes input:focus-visible + span { outline: 2px solid #176a92; outline-offset: -2px; }
.forum-tools { display: flex; justify-content: flex-end; margin-inline-start: auto; }
.page > .forum-tools { margin-bottom: 16px; }
.member-link { display: inline-grid; place-items: center; min-width: 110px; min-height: 43px; white-space: nowrap; padding-inline: 8px; font-size: .94rem; }
.page { flex: 1; padding-block: 27px 42px; }
.overview, .heading-panel, .board-section, .topic-section, .post-list {
  background: var(--surface);
  border: 1px solid var(--panel-line);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
}
.overview, .heading-panel { padding: 22px 24px; }
.overview { background: var(--panel-tint); }
.forum-page-heading { margin-bottom: 16px; }
.overview-main { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.overview-main > * { min-width: 0; }
h1, .forum-name { font-size: 1.65rem; line-height: 1.42; font-weight: 750; overflow-wrap: anywhere; }
.forum-name a { color: inherit; }
.archive-label { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: .84rem; margin-top: 6px; }
.site-announcement { flex: 2 1 0; min-width: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #36876c; }
.overview-summary { display: flex; align-items: center; gap: 24px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.stats { flex: 1 1 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; gap: 12px; }
.stats > div { display: grid; gap: 4px; }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { font-variant-numeric: tabular-nums; font-size: 1.28rem; font-weight: 700; }
.full-search { display: flex; gap: 6px; align-items: stretch; }
input[type=search], select { min-width: 0; min-height: 43px; border: 1px solid #aebec8; color: var(--ink); background: var(--surface); border-radius: var(--control-radius); padding: 7px 10px; }
input[type=search] { flex: 1; }
.button { display: inline-grid; place-items: center; min-height: 43px; border: 1px solid transparent; border-radius: var(--control-radius); padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.primary { background: var(--brand); color: #fff; }
.primary:hover { background: var(--brand-dark); }
.secondary { background: var(--brand-soft); color: var(--brand-dark); }
.icon-button { min-width: 44px; padding: 0; }
.icon-button svg { width: 19px; height: 19px; }
.forum-list { margin-top: 24px; display: grid; gap: 19px; }
.forum-ad { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: 16px; overflow-wrap: anywhere; }
.forum-ad span { color: var(--muted); font-size: .82rem; }
.forum-text-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); container: forum-text-ads / inline-size; margin-block: 12px; border: 1px solid #dce5ed; border-radius: var(--panel-radius); overflow: clip; background: var(--surface); }
.forum-text-ads > a { display: block; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #edf2f7; text-align: center; font-size: .8125rem; font-weight: 650; line-height: 22px; color: #155482; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-text-ads > a:focus-visible { outline-offset: -3px; }
@container forum-text-ads (max-width: 15rem) { .forum-text-ads > a { font-size: .75rem; padding-inline: 4px; } }
@container forum-text-ads (max-width: 14rem) { .forum-text-ads > a { font-size: .6875rem; } }
.forum-text-ads > a:nth-child(odd), .ad-post-bottom > a { color: #b51c21; }
.post-signature { margin-top: 12px; overflow-wrap: anywhere; font-size: .875rem; }
.post-signature .signature-divider { display: block; max-width: 100%; height: 7px; margin-bottom: 6px; object-fit: none; object-position: left center; }
.ad-placement { align-items: center; padding: 8px 12px; margin-block: 12px; border: 1px solid #dce5ed; border-radius: 8px; background: var(--surface); }
.ad-placement > a { min-width: 0; max-width: 100%; }
.ad-placement img { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.ad-placement .ad-marker { display: inline-block; flex: none; width: 16px; height: 11px; vertical-align: middle; }
.ad-topic-row .ad-placement { margin-block: 0; }
.ad-placement:is(details) { display: block; }
.ad-placement summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.ad-placement summary + a { display: block; margin-top: 6px; }
.foot .ad-placement { margin-block: 2px; color: var(--ink); }
.foot .ad-placement a { color: #155482; }
@media (min-width: 720px) {
  .ad-post-right { float: inline-end; width: min(32%, 170px); margin: 0 0 8px 12px; }
}
@media (min-width: 1480px) {
  .ad-placement:is(.ad-float-left,.ad-float-right,.ad-couple-left,.ad-couple-right,.ad-corner) {
    position: fixed; z-index: 4; width: 120px; max-height: 22vh; overflow: auto; margin: 0;
  }
  .ad-float-left, .ad-couple-left { inset-inline-start: 10px; }
  .ad-float-right, .ad-couple-right, .ad-corner { inset-inline-end: 10px; }
  .ad-couple-left, .ad-couple-right { inset-block-start: 16vh; }
  .ad-float-left, .ad-float-right { inset-block-start: 41vh; }
  .ad-corner { inset-block-end: 12px; }
}
.board-section, .topic-section, .post-list { overflow: clip; }
.section-bar { padding: 10px 17px; background: var(--panel-tint); border-bottom: 1px solid var(--line); }
.section-bar h2 { font-size: 1.02rem; line-height: 1.5; color: var(--brand-dark); overflow-wrap: anywhere; }
.section-bar a { color: inherit; }
.author-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.author-result-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.author-result-filters a { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 12px; border-radius: var(--control-radius); }
.author-result-filters a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.board-columns, .board-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 100px; align-items: center; gap: 12px; padding: 8px 18px; }
.board-columns { color: var(--muted); font-size: .78rem; min-height: 34px; background: #f8fafb; }
.board-columns :not(:first-child) { text-align: right; }
.boards { margin: 0; padding: 0; list-style: none; }
.board-row { min-height: 51px; border-top: 1px solid #e8eef1; }
.board-row:hover { background: #f7fbfd; }
.board-row.is-sub .board-name { padding-left: 22px; }
.board-row.is-sub .board-name a { font-weight: 500; }
.board-name, .topic-title { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.board-name a { font-weight: 700; }
.board-icon, .topic-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; background: #eaf3f7; border-radius: 4px; color: var(--brand); }
.board-icon svg, .topic-icon svg { width: 19px; height: 19px; }
.is-sub .board-icon { background: #f0f4f6; color: #5b7788; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; padding: 0 0 14px; overflow-wrap: anywhere; }
.metrics { margin-top: 8px; font-size: .87rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.board-description { color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .89rem; line-height: 1.6; }
.heading-panel:has(> .board-description) { padding-block: 10px; }
.heading-panel > .board-description { margin-top: 0; }
.child-links { display: flex; flex-wrap: wrap; gap: 10px 18px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; font-size: .91rem; }
.topic-section, .post-list { margin-top: 18px; }
.topics { width: 100%; table-layout: fixed; border-collapse: collapse; }
.topics th { font-size: .81rem; color: var(--muted); background: #f6f9fa; text-align: left; }
.topics th, .topics td { padding: 9px 16px; border-bottom: 1px solid #e5ecef; }
.topics tr:last-child td { border-bottom: 0; }
.topics tbody tr:hover { background: #f8fbfc; }
.topics th.author-col { width: 132px; }
.topics th.number { width: 84px; text-align: right; }
.topics td.author-col { overflow-wrap: anywhere; }
.topic-icon { width: 27px; height: 27px; flex-basis: 27px; }
.topic-icon.pinned { color: var(--amber); background: #fbf0df; }
.topic-title { font-size: .96rem; font-weight: 680; }
.topic-sub { display: flex; flex-wrap: wrap; gap: 4px 11px; margin: 4px 0 0 37px; font-size: .75rem; color: var(--muted); }
.topic-sub a { overflow-wrap: anywhere; }
.state-closed { color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; white-space: nowrap; font-size: .72rem; font-weight: 500; }
.pagination { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.pagination-controls { display: flex; flex: 1 1 22rem; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.pagination-controls > :is(a, .page-current), .pagination-numbers > *, .pagination > .page-jump { min-height: 40px; display: grid; place-items: center; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius); font-size: .85rem; }
.pagination-numbers { display: grid; flex: 1 1 44px; min-width: 0; max-width: calc(attr(data-page-count type(<integer>), 22) * 49px - 5px); gap: 5px; grid-template-columns: repeat(auto-fit, 44px); container: pager-numbers / inline-size; }
.pagination .page-current { background: var(--brand-soft); }
.pagination .page-number { padding-inline: 1px; font-variant-numeric: tabular-nums; }
.pagination .page-number[aria-current] { font-weight: 700; }
.pagination > .page-jump { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; padding-inline: 6px; white-space: nowrap; }
@container pager-numbers (width < 93px) { [data-page-rank="2"] { display: none; } }
@container pager-numbers (width < 142px) { [data-page-rank="3"] { display: none; } }
@container pager-numbers (width < 191px) { [data-page-rank="4"] { display: none; } }
@container pager-numbers (width < 240px) { [data-page-rank="5"] { display: none; } }
@container pager-numbers (width < 289px) { [data-page-rank="6"] { display: none; } }
@container pager-numbers (width < 338px) { [data-page-rank="7"] { display: none; } }
@container pager-numbers (width < 387px) { [data-page-rank="8"] { display: none; } }
@container pager-numbers (width < 436px) { [data-page-rank="9"] { display: none; } }
@container pager-numbers (width < 485px) { [data-page-rank="10"] { display: none; } }
@container pager-numbers (width < 534px) { [data-page-rank="11"] { display: none; } }
@container pager-numbers (width < 583px) { [data-page-rank="12"] { display: none; } }
@container pager-numbers (width < 632px) { [data-page-rank="13"] { display: none; } }
@container pager-numbers (width < 681px) { [data-page-rank="14"] { display: none; } }
@container pager-numbers (width < 730px) { [data-page-rank="15"] { display: none; } }
@container pager-numbers (width < 779px) { [data-page-rank="16"] { display: none; } }
@container pager-numbers (width < 828px) { [data-page-rank="17"] { display: none; } }
@container pager-numbers (width < 877px) { [data-page-rank="18"] { display: none; } }
@container pager-numbers (width < 926px) { [data-page-rank="19"] { display: none; } }
@container pager-numbers (width < 975px) { [data-page-rank="20"] { display: none; } }
@container pager-numbers (width < 1024px) { [data-page-rank="21"] { display: none; } }
@container pager-numbers (width < 1073px) { [data-page-rank="22"] { display: none; } }
@media (max-width: 440px) {
  .pagination-controls > a { padding-inline: 6px; }
  .pagination-numbers { order: 1; flex-basis: 100%; }
}
.page-jump input[type=number] { width: 4.25rem; min-height: 30px; padding-inline: 5px; border: 1px solid #aebec8; border-radius: var(--control-radius); color: var(--ink); background: var(--surface); }
.page-jump .button { min-height: 32px; padding: 3px 8px; }
.post { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); min-height: 142px; }
.post + .post { border-top: 1px solid var(--line); }
.post:target { outline: 2px solid #4287a8; outline-offset: -2px; }
.post-author { background: #f3f7f9; border-right: 1px solid var(--line); padding: 16px 15px; color: var(--brand-dark); font-size: .91rem; overflow-wrap: anywhere; }
.author-icon { display: grid; place-items: center; background: #deebf1; width: 38px; height: 38px; border-radius: 4px; margin-bottom: 8px; }
.author-icon svg { width: 24px; height: 24px; }
.post-content { display: flex; flex-direction: column; min-width: 0; padding: 0 18px 12px; }
.post-main, .post-tail { display: flow-root; }
.post-tail { margin-top: auto; }
.post-tail > .ad-post-bottom { margin-bottom: 0; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e5ecef; min-height: 44px; margin-bottom: 15px; color: var(--muted); font-size: .82rem; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .96rem; line-height: 1.75; }
.post-body blockquote, .post-body pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; padding: 8px 13px; background: #f3f7f9; border-left: 3px solid #8eacbe; border-radius: var(--control-radius); }
.post-body pre { font-family: Consolas, monospace; font-size: .88rem; }
.underlined { text-decoration: underline; }
.media-placeholder { color: var(--muted); }
.full-search { max-width: 615px; margin-top: 15px; }
.empty { padding: 22px 18px; color: var(--muted); }
.status-page .button { margin-top: 18px; }
.foot { border-top: 1px solid #3f5f86; background: #0c2444; color: #b9c9dd; text-align: center; padding-block: 30px; }
.forum-disclaimer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .83rem; line-height: 1.65; text-align: center; }
.forum-disclaimer > .shell { padding-block: 12px; }
.forum-disclaimer p + p { margin-top: 4px; }
.footer-inner { display: grid; gap: 8px; overflow-wrap: anywhere; }
.footer-inner nav, .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.footer-inner nav { font-size: .8125rem; }
.footer-inner nav:empty { display: none; }
.footer-inner nav a { color: #cdddf0; }
.footer-inner nav a + a { border-inline-start: 1px solid #3f5f86; padding-inline-start: 12px; }
.legal { font-size: .75rem; line-height: 1.7; }
.legal a { color: inherit; }
.foot a:hover, .foot a:focus-visible { color: #fff; text-decoration: none; }
.foot :focus-visible { outline-color: #b9dcff; }
.forum-back-to-top { position: fixed; right: max(18px, calc((100% - 1200px) / 2)); bottom: 28px; z-index: 15; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d7e3ea; border-radius: 50%; color: #fff; background: rgba(22, 139, 209, .94); box-shadow: 0 7px 20px rgba(17, 74, 108, .22); }
.forum-back-to-top::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(2px) rotate(-45deg); }
.forum-back-to-top:hover { color: #fff; background: #0f78b7; }
@supports (animation-timeline: scroll()) and (animation-range: 520px 521px) {
  .forum-back-to-top { animation: forum-reveal-back-to-top 1ms steps(1, end) both; animation-timeline: scroll(root block); animation-range: 520px 521px; }
  @keyframes forum-reveal-back-to-top {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
  }
}
@media (prefers-reduced-motion: no-preference) { html:has(#forum-top:target) { scroll-behavior: smooth; } }
@media (max-width: 560px) { .forum-back-to-top { right: 14px; bottom: 16px; } }
.admin-login { max-width: 430px; margin-inline: auto; }
#recover-contact { display: block; }
#recover-contact > span { white-space: nowrap; }
.page:not(.back-office) > .admin-login {
  --auth-padding-x: 24px;
  --auth-padding-y: 20px;
  padding: var(--auth-padding-y) var(--auth-padding-x);
}
.page:not(.back-office) > .admin-login > h1 {
  margin: calc(-1 * var(--auth-padding-y)) calc(-1 * var(--auth-padding-x)) 0;
  padding: 17px var(--auth-padding-x);
  border-bottom: 1px solid var(--panel-line);
  border-radius: calc(var(--panel-radius) - 1px) calc(var(--panel-radius) - 1px) 0 0;
  background: var(--panel-tint);
}
.admin-heading, .admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-heading { justify-content: space-between; }
.admin-form { display: grid; gap: 10px; margin-top: 16px; max-width: 480px; }
.admin-form > input[type=password] { min-width: 0; min-height: 43px; padding: 8px; border: 1px solid #aebec8; border-radius: var(--control-radius); }
.account-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .account-form textarea { min-width: 0; min-height: 42px; padding: 8px; border: 1px solid #aebec8; border-radius: var(--control-radius); font: inherit; }
.member-link, .member-login-submit, .member-login-recover { border-radius: var(--panel-radius); background: #1462bd; color: #fff; font-weight: 700; }
.member-link:hover, .member-login-submit:hover, .member-login-recover:hover { background: #104f99; color: #fff; text-decoration: none; }
.member-login-submit, .member-login-recover { width: 100%; min-height: 54px; font-size: 1.0625rem; }
.member-heading { border-top: 3px solid var(--brand); }
.member-forum-name { font-size: 1.4rem; font-weight: 750; }
.member-forum-name a { color: var(--ink); }
.member-signout .member-link { width: 100%; }
.member-list { list-style: none; padding: 0; margin: 12px 0 0; }
.member-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.member-list .metrics { margin-top: 4px; }
.member-post-entry { flex: 1 1 18rem; min-width: 0; }
.member-reply-preview { margin-top: 6px; }
.member-messages details { width: 100%; }
.member-messages summary { cursor: pointer; }
.member-message-body { white-space: pre-wrap; margin: 8px 0 0 16px; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(108px, 45%, 174px); gap: 10px; }
.captcha-refresh { display: grid; place-items: center; min-height: 48px; overflow: hidden; border: 1px solid #aebec8; border-radius: var(--control-radius); background: #eff6f9; }
.captcha-refresh img { max-width: 100%; height: auto; }
.post-edited { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-hidden { color: var(--muted); }
.admin-form fieldset { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid var(--line); }
.admin-form fieldset label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; margin-right: 16px; }
.admin-error { color: #922b24; }
.admin-board-list { margin-top: 18px; }
.admin-board-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem auto; align-items: center; gap: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.admin-board-row + .admin-board-row { border-top: 1px solid var(--line); }
.admin-board-row > div span { display: block; color: var(--muted); font-size: .79rem; }
.admin-board-status { color: var(--muted); font-size: .85rem; }
@media (max-width: 500px) { .admin-board-row { grid-template-columns: minmax(0, 1fr) 4.5rem auto; } }
@media (max-width: 800px) {
  .overview-summary { flex-direction: column; align-items: stretch; gap: 12px; }
  .masthead { gap: 10px; }
  .main-nav { gap: 15px; }
  .topics th.author-col { width: 108px; }
  .topics th.number { width: 66px; }
}
@media (max-width: 700px) {
  .masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding-block: 4px; }
  .masthead .logo { grid-column: 1; grid-row: 1; width: fit-content; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-inline-start: 0; flex-wrap: wrap; gap: 0 17px; }
  .masthead-search { grid-column: 2; grid-row: 1; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .footer-inner nav a + a { border-inline-start: 0; padding-inline-start: 0; }
  .nav-search-form { width: min(calc(100% - 28px), 384px); right: 14px; right: anchor(right, 14px); }
  .main-nav a { min-height: 38px; font-size: .84rem; }
  .page { padding-top: 15px; }
  .overview, .heading-panel { padding: 14px 12px; }
  .page:not(.back-office) > .admin-login { --auth-padding-x: 14px; --auth-padding-y: 16px; }
  .overview-main { flex-direction: column; align-items: stretch; gap: 13px; }
  h1, .forum-name { font-size: 1.36rem; }
  .stats { gap: 4px; }
  .stats dd { font-size: 1rem; }
  .board-columns, .board-row { grid-template-columns: minmax(0, 1fr) 44px 55px; gap: 7px; padding-inline: 8px; }
  .board-row { font-size: .86rem; }
  .board-row.is-sub .board-name { padding-left: 11px; }
  .board-name, .topic-title { gap: 6px; }
  .board-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .board-icon svg { width: 17px; height: 17px; }
  .topics .author-col, .topics .view-col { display: none; }
  .topics th.number { width: 59px; }
  .topics th, .topics td { padding-inline: 8px; }
  .topic-sub { margin-left: 33px; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { display: flex; align-items: center; gap: 7px; border-right: 0; border-bottom: 1px solid var(--line); padding: 7px 10px; }
  .author-icon { width: 24px; height: 24px; margin: 0; }
  .author-icon svg { width: 18px; height: 18px; }
  .post-content { padding-inline: 12px; }
  .full-search { flex-wrap: wrap; }
  .full-search input { flex-basis: 100%; }
}

.board-columns, .board-row { grid-template-columns: minmax(0, 1fr) minmax(105px, 23%) 86px 86px; }
.board-columns .moderator-label { text-align: left; }
.board-moderators { overflow-wrap: anywhere; color: var(--muted); font-size: .85rem; }
.mobile-moderator-label, .topic-mobile-meta { display: none; }
.board-icon, .is-sub .board-icon { width: 36px; height: 36px; flex-basis: 36px; background: transparent; }
.board-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.crumb-home { display: inline-flex; align-items: center; gap: 5px; }
.crumb-home img { width: 17px; height: 17px; object-fit: contain; }
.crumb-topic { min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topics th.author-col { width: 150px; }
.topics th.latest-col { width: 154px; }
.topics td.author-col, .topics td.latest-col { font-size: .81rem; }
.author-name { display: block; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topics td.number, .topics th.number { text-align: left; }
.topics th.number { width: 94px; }
.topics th { background: #edf2f4; }
.topics td { border-color: #d7e3eb; }
.topic-title { font-weight: 500; }
.legacy-folder { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.topic-text { min-width: 0; overflow-wrap: anywhere; }
.topic-type, .reply-count { color: #155e85; }
.topic-type { font-size: .84em; margin-right: 4px; }
.topic-flag { display: inline-block; vertical-align: middle; max-height: 17px; max-width: 34px; margin-inline-start: 4px; }
.cell-date { display: block; color: var(--muted); line-height: 1.4; font-size: .75rem; white-space: nowrap; }
.thread-banner { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: stretch; border-bottom: 4px solid #dfeaf1; }
.thread-banner h1 { font-size: 1.08rem; line-height: 1.5; padding: 10px 18px; }
.thread-counters { background: #e5eef4; color: var(--muted); border-right: 1px solid var(--line); display: flex; flex-wrap: nowrap; white-space: nowrap; column-gap: 3px; align-items: center; justify-content: center; padding: 6px; font-size: .67rem; }
.thread-counters strong { color: #a63e23; font-variant-numeric: tabular-nums; }
.thread-counters .counter-divider { color: #81949f; margin-inline: 2px; }
.post-author { text-align: center; font-size: .8rem; }
.forum-avatar { object-fit: contain; margin: 12px auto 0; max-width: 100%; }
.post-author-profile { min-width: 0; width: 100%; margin-top: 10px; }
.post-author-stats { display: grid; grid-template-columns: repeat(3, minmax(max-content, 1fr)); margin: 0; color: var(--muted); font-size: .65rem; white-space: nowrap; }
.post-author-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; padding-inline: 2px; }
.post-author-stats > div + div { border-inline-start: 1px solid var(--line); }
.post-author-stats dd { margin: 0; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.post-author-rank { margin-top: 8px; }
.post-author-stars { display: block; color: #96650a; overflow-wrap: anywhere; }
.post-author-progress { width: 100%; height: 6px; accent-color: var(--brand); }
.post-author-activity { display: grid; gap: 5px; margin: 8px -4px 0; padding-top: 6px; border-top: 1px solid var(--line); font-size: .65rem; text-align: start; white-space: nowrap; }
.post-author-activity > div { display: flex; justify-content: space-between; gap: 4px; }
.post-author-activity dt { color: var(--muted); }
.post-author-activity dd { margin: 0; font-variant-numeric: tabular-nums; }
.post-time { display: flex; align-items: center; gap: 6px; }
.post-time img { width: 16px; height: 16px; object-fit: contain; }
.legacy-content { min-width: 0; overflow-wrap: anywhere; }
.legacy-content p { margin-block: .45em; }
.legacy-content pre { overflow: auto; }
.legacy-content blockquote { position: relative; border-left: none; padding: 12px 35px; }
.legacy-content blockquote::before, .legacy-content blockquote::after { position: absolute; color: #c4dbe8; font: 700 2.4rem/1 Georgia, serif; pointer-events: none; }
.legacy-content blockquote::before { content: "\201c"; top: 4px; left: 7px; }
.legacy-content blockquote::after { content: "\201d"; bottom: -8px; right: 7px; }
.legacy-content table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; white-space: normal; }
.legacy-content td, .legacy-content th { border: 1px solid var(--line); padding: 5px 8px; }
.legacy-image { display: inline-block; vertical-align: top; max-width: 100%; height: auto; margin-block: .3em; }
.legacy-align-center { text-align: center; }
.legacy-align-left { text-align: left; }
.legacy-align-right { text-align: right; }
.legacy-red { color: #b31b1b; }
.legacy-blue { color: #174e97; }
.legacy-larger { font-size: 1.16em; }
.legacy-smaller { font-size: .87em; }
.legacy-bold { font-weight: 700; }
.image-attachments { list-style: none; margin: 15px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.image-attachments a { display: inline-block; padding-block: 4px; text-decoration: underline; }
.image-attachments .attachment-thumbnail { display: block; width: auto; max-width: min(220px, 100%); max-height: 160px; }
.image-attachments li > a:has(img) { display: block; width: fit-content; max-width: 100%; }
@media (max-width: 800px) {
  .topics th.author-col { width: 126px; }
  .topics th.latest-col { width: 126px; }
  .topics td.author-col, .topics td.latest-col { padding-inline: 9px; }
  .topics th.number { width: 81px; }
}
@media (max-width: 600px) {
  .board-columns, .board-row { grid-template-columns: minmax(0, 1fr) 44px 51px; gap: 5px; }
  .board-columns .moderator-label { display: none; }
  .board-row .number { grid-row: 1 / span 2; }
  .board-row .number:nth-last-child(2) { grid-column: 2; }
  .board-row .number:last-child { grid-column: 3; }
  .board-moderators { grid-column: 1; grid-row: 2; padding-inline-start: 33px; }
  .mobile-moderator-label { display: inline; }
  .board-icon, .is-sub .board-icon { flex-basis: 27px; width: 27px; height: 27px; }
  .topics .author-col, .topics .latest-col { display: none; }
  .topics th.number { width: 70px; text-align: right; }
  .topics td.number { text-align: right; }
  .topic-mobile-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 3px 0 0 30px; color: var(--muted); font-size: .73rem; }
  .topic-mobile-meta span { overflow-wrap: anywhere; }
  .topic-mobile-meta > span { flex: 0 1 auto; min-width: 0; max-width: 100%; }
}
@media (max-width: 560px) {
  .thread-banner { grid-template-columns: minmax(0, 1fr); }
  .thread-counters { justify-content: start; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 10px; }
  .thread-banner h1 { padding-inline: 10px; }
  .post-author { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .post-author-profile { max-width: 220px; flex-basis: 100%; margin: 2px max(0px, calc((100% - 220px) / 2)) 0; }
  .forum-avatar { width: 32px; height: 32px; margin: 0; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .overview-main { flex-direction: row; align-items: center; gap: 8px; }
  .overview-main > :is(h1, .forum-name) { font-size: 1.24rem; }
  .overview-main .member-link { min-width: 0; min-height: 40px; padding-inline: 10px; font-size: .82rem; }

  .topics th, .topics td { padding: 6px; }
  .topics th.number { width: 57px; font-size: .69rem; white-space: nowrap; }
  .topics td.number { font-size: .82rem; white-space: nowrap; }
  .topics .cell-date { font-size: .67rem; }
  .topics .topic-title { font-size: .86rem; line-height: 1.4; gap: 5px; }
  .topics .legacy-folder { width: 18px; height: 18px; flex-basis: 18px; }
  .topic-mobile-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 3px 0 0 23px; font-size: .68rem; }

  .pagination { flex-wrap: nowrap; gap: 4px; }
  .pagination-controls { flex: 0 1 auto; flex-wrap: nowrap; gap: 3px; }
  .pagination-controls > :is(a, .page-current), .pagination-numbers > *, .pagination > .page-jump { min-height: 36px; font-size: .75rem; white-space: nowrap; }
  .pagination-controls > a { min-width: 28px; padding-inline: 3px; }
  .pagination-controls > a[rel] { font-size: 0; }
  .pagination-controls > a[rel]::before { font-size: 1rem; line-height: 1; }
  .pagination-controls > a[rel="prev"]::before { content: "\2039"; }
  .pagination-controls > a[rel="next"]::before { content: "\203a"; }
  .pagination .pagination-numbers { display: flex; flex: 0 0 auto; max-width: none; order: 0; gap: 3px; container-type: normal; }
  .pagination .pagination-numbers > * { min-width: 25px; padding-inline: 2px; }
  .pagination .pagination-numbers > [data-page-rank]:not([data-page-rank="2"]):not([data-page-rank="3"]) { display: none; }
  .pagination > .page-jump { gap: 3px; padding-inline: 3px; font-size: .69rem; }
  .page-jump input[type=number] { width: 2.45rem; padding-inline: 3px; }
  .page-jump .button { min-height: 30px; padding: 0 3px; font-size: inherit; }

  .forum-disclaimer { font-size: .73rem; line-height: 1.5; }
  .forum-disclaimer > .shell { padding-block: 9px; }
  .forum-disclaimer > .shell > p { text-wrap: pretty; }

  .post { grid-template-columns: 58px minmax(0, 1fr); min-height: 0; }
  .post-author { display: flex; flex-flow: column nowrap; justify-content: flex-start; gap: 6px; padding: 8px 4px; border-right: 1px solid var(--line); border-bottom: 0; font-size: .65rem; }
  .post-author .author-name { white-space: normal; overflow-wrap: anywhere; }
  .post-author .forum-avatar { width: 36px; height: 36px; margin: 0; }
  .post-author-profile { display: none; }
  .post-content { padding-inline: 8px; }
  .post-meta { gap: 4px; min-height: 34px; margin-bottom: 8px; font-size: .69rem; }
  .post-time { gap: 3px; }
  .post-time img { width: 12px; height: 12px; }
  .post-body { font-size: .86rem; line-height: 1.65; }
  .post-body:not(.post-edited) { white-space: pre-line; }
  .post-body .legacy-align-center { text-align: start; white-space: normal; }
}

@media (max-width: 409px) and (orientation: portrait) {
  .pagination .pagination-numbers > [data-page-rank="3"] { display: none; }
}

@media (max-width: 359px) and (orientation: portrait) {
  .pagination .pagination-numbers > [data-page-rank] { display: none; }
}