/* Forum-first home and reading layout. */
:root { --forum-accent: #e6a46a; }
.page-shell { max-width: 1280px; }
.topbar { height: 180px; min-height: 180px; grid-template-columns: minmax(0, 1fr); isolation: isolate; overflow: visible; }
.topbar::after { content: ''; position: absolute; inset: 0 0 calc(-1 * var(--nav-overlay-height, 76px)); z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,13,19,.82), rgba(10,13,19,.48) 48%, rgba(10,13,19,.18)); }
.topbar .brand-wrap { position: relative; z-index: 1; }
.topbar .header-chase { position: absolute; inset: auto 0 0; height: 130px; overflow: hidden; pointer-events: none; z-index: 1; }
.header-chase-convoy { position: absolute; bottom: 0; left: 0; display: block; width: 700px; height: 130px; transform: translateX(100vw); filter: drop-shadow(0 3px 2px #090c1266); }
.header-chase.is-running .header-chase-convoy { animation: header-chase-drive 6.8s linear .8s both; }
.header-chase.is-running .chase-wheel { transform-box: view-box; transform-origin: 0 0; animation: chase-wheel-turn .48s linear infinite; }
.header-chase.is-running .chase-lowrider-body { animation: chase-lowrider-bounce 1.4s ease-in-out infinite; }
.header-chase.is-running .chase-police-body { animation: chase-police-bounce .8s ease-in-out infinite; }
.header-chase.is-running .chase-light-red { animation: chase-red-light 1.2s steps(1,end) infinite; }
.header-chase.is-running .chase-light-blue { animation: chase-blue-light 1.2s steps(1,end) infinite; }
.chase-shot-one { opacity: 0; }
.header-chase.is-running .chase-shot-one { animation: chase-muzzle 1.7s steps(1,end) 1.7s infinite; }
.chase-exhaust { opacity: .12; }
.header-chase.is-running .chase-exhaust { animation: chase-exhaust-drift 1.3s ease-out infinite; }
.header-chase.is-paused * { animation-play-state: paused !important; }
@keyframes header-chase-drive { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes chase-wheel-turn { to { transform: rotate(-360deg); } }
@keyframes chase-lowrider-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes chase-police-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes chase-red-light { 0%,49% { opacity: 1; } 50%,100% { opacity: .08; } }
@keyframes chase-blue-light { 0%,49% { opacity: .08; } 50%,100% { opacity: 1; } }
@keyframes chase-muzzle { 0%,9% { opacity: .85; } 10%,100% { opacity: 0; } }
@keyframes chase-exhaust-drift { from { transform: translateX(0); opacity: .15; } to { transform: translateX(16px); opacity: 0; } }
@media(max-width:700px) { .topbar .header-chase { height: 91px; } .header-chase-convoy { width: 490px; height: 91px; } }
@media(prefers-reduced-motion:reduce) { .topbar .header-chase { display: none; } .header-chase * { animation: none !important; } }
.topbar .logo-slot { height: 78px; }
.topbar .header-art { display: block; position: absolute; grid-column: auto; grid-row: auto; inset: 0; z-index: 0; width: 100%; height: calc(100% + var(--nav-overlay-height, 76px)); max-height: none; object-fit: cover; object-position: center 48%; }
.main-nav { background: rgba(22,24,29,.64); }
.main-nav .nav-link { border-radius: 6px; font-size: 16px; }
.quick-actions a { font-size: 16px; }
[data-forum-only][hidden] { display: none !important; }
body:not(.forum-section) .quick-actions { margin: 0; }
body:not(.forum-section) .quick-actions > :not(#chatbox-open) { display: none !important; }
body:not(.forum-section):not(.community-home) .quick-actions,
body:not(.forum-section):not(.community-home) .chatbox-column { display: none; }
body:not(.forum-section):not(.community-home) .forum-workspace { display: block; }
.forum-empty p, .announcement-quiet, .directory-forum small { line-height: 1.85; }
.directory-group.is-archive .directory-heading { border-left-color: var(--forum-accent); }
.directory-group.is-archive .directory-folder { opacity: .8; }
.archive-notice { margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--forum-accent); color: var(--muted); background: #e6a46a08; font-size: 14px; line-height: 1.8; }
.viewing-archive .forum-subforum-block, .viewing-archive [data-action="reply-focus"] { display: none; }
.main-nav .nav-user-chip { min-width: 0; max-width: 160px; }
.main-nav .nav-user-chip strong { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav .nav-link.is-active { box-shadow: inset 0 -2px var(--forum-accent); background: rgba(230,164,106,.08); }
.forum-heading h2 { font-weight: 700; letter-spacing: -.025em; }
.community-home .breadcrumb { display: none; }
.quick-actions .primary-button { box-shadow: none; background: #c87542; border-radius: 6px; }
.quick-actions .pill-button { background: transparent; border: 1px solid var(--line); border-radius: 6px; }
.forum-home { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 26px; align-items: start; }
.home-main { display: grid; gap: 26px; min-width: 0; }
.home-section { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.home-section-head h3 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.02em; }
.home-section-head > a { font-size: 15px; color: var(--forum-accent); flex-shrink: 0; padding: 8px 0; }
.section-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.announcements-section { border-top: 2px solid var(--forum-accent); }
.announcement-quiet { padding: 20px 22px; line-height: 1.8; font-size: 16px; color: var(--muted); }
.announcement-quiet a { display: block; color: var(--forum-accent); }
.announcement-list > a { display: flex; align-items: center; gap: 14px; padding: 17px 22px; color: var(--text); border-bottom: 1px solid var(--line); }
.announcement-list > a:last-child { border-bottom: 0; }
.announcement-list > a > span:nth-child(2) { flex: 1; min-width: 0; }
.announcement-list strong { display: block; font-size: 18px; overflow-wrap: anywhere; }
.announcement-list small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.announcement-marker { color: var(--forum-accent); border: 1px solid #76513b; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; }
.home-aside { display: grid; gap: 20px; }
.home-side-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home-side-card h3 { font-size: 22px; margin: 9px 0 12px; overflow-wrap: anywhere; }
.home-side-card > p { color: var(--muted); line-height: 1.8; font-size: 16px; margin: 0 0 18px; }
.home-side-card .primary-button { width: 100%; display: flex; justify-content: center; align-items: center; background: #c87542; box-shadow: none; border-radius: 6px; }
.home-signin { border: 0; background: transparent; color: var(--muted); width: 100%; font-size: 15px; margin-top: 7px; }
.personal-link { color: var(--text); font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.personal-link strong { color: var(--forum-accent); font-size: 18px; }
.text-link { display: block; font-size: 15px; color: var(--forum-accent); padding-top: 12px; }
.guide-link { display: block; color: var(--text); padding: 14px 0; border-top: 1px solid var(--line); }
.guide-link strong { font-size: 16px; display: block; margin-bottom: 5px; }
.guide-link span { color: var(--muted); font-size: 15px; line-height: 1.6; display: block; }
.community-note { color: var(--muted); line-height: 1.8; font-size: 15px; padding: 0 5px; }
.community-note span { opacity: .6; }
.forum-empty { padding: 24px 22px; }
.forum-empty p { margin: 0 0 12px; font-size: 17px; color: var(--muted); line-height: 1.8; }
.forum-empty a { color: var(--forum-accent); font-size: 16px; display: inline-flex; align-items: center; min-height: 42px; }
.home-section .stream-card { padding: 18px 22px; }
.home-section .stream-title { font-size: 18px; }
.home-section .stream-preview { display: none; }
.home-section .stream-open { font-size: 13px; padding: 8px 10px; min-height: 36px; }
.forum-directory { display: grid; gap: 28px; }
.directory-group { border: 1px solid #414957; border-radius: 8px; overflow: hidden; background: #141820; box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.directory-heading { padding: 22px 24px; background: #0e1219; border-left: 4px solid var(--forum-accent); border-bottom: 1px solid #414957; }
.directory-heading h3 { font-size: 24px; line-height: 1.3; font-weight: 750; color: #f4c49a; margin: 0; }
.directory-heading p { margin: 7px 0 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.directory-forum { padding: 20px 24px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #363e4c; color: var(--text); min-height: 88px; background: #171c24; }
.directory-forum:last-child { border-bottom: 0; }
.directory-forum:hover { background: #222831; }
.directory-forum > span:first-child { min-width: 0; flex: 1; }
.directory-forum strong { font-size: 19px; line-height: 1.4; display: block; overflow-wrap: anywhere; }
.directory-forum small { color: var(--muted); font-size: 15px; display: block; margin-top: 6px; line-height: 1.7; }
.directory-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.directory-count > span { margin-left: 12px; color: var(--forum-accent); }
.directory-section { border: 0; background: none; }
.directory-section > .home-section-head { padding: 0 0 18px; border: 0; }
.community-chat-area { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.community-chat-area .chatbox { box-shadow: none; }
.community-chat-area .chatbox-head { background: var(--surface); }
.reading-topic .forum-heading { display: none; }
.reading-topic .quick-actions { margin-top: 20px; }
.reading-thread { display: grid; gap: 36px; width: 100%; max-width: 980px; margin: 0 auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.reading-original-panel,.reading-comments-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.reading-thread .reading-heading { padding: 28px; align-items: center; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.reading-heading .section-title { font-size: clamp(23px,3vw,32px); line-height: 1.25; margin-top: 8px; letter-spacing: -.025em; }
.reading-heading .section-copy { font-size: 15px; margin-top: 12px; line-height: 1.7; }
.reading-heading .primary-button { flex-shrink: 0; box-shadow: none; border-radius: 6px; }
.topic-community-tools { display: block; padding: 0; border-bottom: 1px solid var(--line); }
.topic-community-tools > summary, .thread-admin-menu > summary { padding: 12px 28px; color: var(--muted); font-size: 15px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.topic-options-body { padding: 4px 28px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-options-body button { font-size: 15px; min-height: 36px; border: 1px solid var(--line); background: transparent; }
.thread-admin-menu { border-bottom: 1px solid var(--line); }
.thread-admin-body { padding: 6px 28px 20px; }
.thread-admin-body .admin-actions { flex-wrap: wrap; }
.thread-route-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 15px; }
.thread-route-form label { font-size: 15px; }
.thread-route-form select { display: block; margin-top: 8px; max-width: 100%; padding: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 5px; }
.unread-jump { display: block; width: 100%; text-align: left; padding: 13px 28px; border: 0; border-bottom: 1px solid var(--line); background: rgba(230,164,106,.06); color: var(--forum-accent); font-size: 15px; }
.reading-posts .reading-post { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 24px; margin: 0; padding: 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.reading-posts .reading-original-post { border-bottom: 0; border-radius: 0 0 8px 8px; background: linear-gradient(135deg,rgba(230,164,106,.04),transparent 65%); }
.reading-original-post .post-meta-row { flex-wrap: wrap; }
.reading-post-label { padding: 4px 8px; border: 1px solid #e6a46a55; border-radius: 4px; color: var(--forum-accent); font-size: 12px; white-space: nowrap; }
.reading-comments-heading { display: flex; align-items: center; gap: 12px; margin: 0; padding: 22px 28px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--surface-alt); }
.reading-comments-heading h4 { margin: 0; font-size: 18px; line-height: 1.5; }
.reading-comments-heading > span { padding: 2px 9px; border: 1px solid var(--line); border-radius: 12px; color: var(--forum-accent); font-size: 13px; }
.reading-comments-empty { margin: 0; padding: 24px 28px; color: var(--muted); border-bottom: 1px solid var(--line); }
.reading-post .reading-author { padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: none; border: 0; }
.reading-author .avatar { width: 46px; height: 46px; font-size: 22px; border-radius: 8px; }
.reading-author-name { font-size: 17px; font-weight: 700; display: inline-block; margin: 0 0 7px; color: var(--text); overflow-wrap: anywhere; }
.reading-author .member-meta { font-size: 13px; }
.reading-author > div { width: 100%; min-width: 0; }
.post-author-details { display: grid; gap: 8px; margin-top: 2px; }
.post-author-role { display: inline-flex; align-items: center; justify-self: start; max-width: 100%; box-sizing: border-box; padding: 5px 10px; border: 1px solid var(--role-color-border); border-radius: 999px; color: var(--role-color); background: var(--role-color-soft); }
.post-author-role .legend-role-item { min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.post-author-role:has(.role-name-sparkling) { animation: post-role-glow 3.6s ease-in-out infinite; }
@keyframes post-role-glow { 0%,100% { box-shadow: 0 0 3px var(--role-color-glow); } 50% { box-shadow: 0 0 10px var(--role-color-glow),inset 0 0 6px var(--role-color-soft); } }
@media (prefers-reduced-motion: reduce) { .post-author-role:has(.role-name-sparkling) { animation: none; box-shadow: 0 0 5px var(--role-color-glow); } }
.post-author-badges { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; }
.post-author-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.post-author-badge .badge-art { width: 28px; height: 28px; }
.post-author-badge-more { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 28px; color: var(--muted); font-size: 11px; }
.post-author-rank { display: grid; gap: 4px; color: var(--text); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.post-author-rank > span,.respect-heading { color: var(--muted); font-size: 11px; }
.forum-level-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.forum-rank-star { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; color: var(--forum-accent); }
.forum-rank-star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.profile-rank-mark { flex-shrink: 0; border: 1px solid var(--line-strong); background: var(--surface-alt); color: var(--forum-accent); }
.profile-rank-mark .forum-rank-star { width: 24px; height: 24px; }
.member-respect { display: grid; gap: 6px; width: 100%; max-width: 220px; min-width: 0; }
.respect-stars { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 1px; width: 100%; }
.respect-star { position: relative; display: block; min-width: 0; width: 100%; height: 28px; padding: 0; border: 0; border-radius: 3px; background: none; }
.respect-star svg { display: block; width: 100%; height: 100%; overflow: visible; }
.respect-star-base,.respect-star-fill { position: absolute; inset: 4px 0; display: block; }
.respect-star-base { fill: #303743; stroke: #7c8696; stroke-width: 1; }
.respect-star-fill { fill: var(--forum-accent); clip-path: inset(0 calc(100% - var(--respect-fill)) 0 0); filter: drop-shadow(0 0 3px #e6a46a88); }
.respect-star.is-my-vote { box-shadow: inset 0 -2px var(--forum-accent); }
button.respect-star:hover { background: var(--surface-alt); }
button.respect-star:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 2px; }
.respect-stars.is-preview .respect-star-fill { clip-path: inset(0 100% 0 0); }
.respect-stars.is-preview .is-preview-lit .respect-star-fill { clip-path: inset(0); }
.respect-summary { font-size: 12px; line-height: 1.5; color: var(--text); }
.respect-vote-hint,.respect-feedback { font-size: 11px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.respect-feedback:empty { display: none; }
.post-author-details .member-respect { gap: 2px; }
.post-author-details .respect-heading,.post-author-details .respect-vote-hint,.post-author-details [data-respect-rated="false"] .respect-summary { display: none; }
.post-author-details .respect-summary { color: var(--muted); font-size: 11px; }
.respect-remove { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--forum-accent); font: inherit; font-size: 11px; text-align: left; }
.respect-remove:hover { text-decoration: underline; }
.respect-star:disabled,.respect-remove:disabled { opacity: .5; cursor: wait; }
.reading-post .post-main { padding: 0; border: 0; min-width: 0; }
.reading-post .post-meta-row { font-size: 13px; color: var(--muted); margin: 0 0 22px; gap: 12px; display: flex; align-items: center; }
.post-sequence { margin-left: auto; font-size: 13px; opacity: .65; }
.reading-copy { font-size: 18px; line-height: 1.9; max-width: 720px; overflow-wrap: anywhere; }
.reading-post .post-images { padding: 22px 0 0; }
.reading-post .post-images img { max-height: 620px; }
.reading-post .post-signature { margin-top: 28px; padding-top: 16px; opacity: .8; }
.post-action-menu { position: relative; }
.post-action-menu summary { cursor: pointer; font-size: 23px; line-height: 1; list-style: none; padding: 5px 10px; }
.post-action-menu button { position: absolute; right: 0; top: 100%; white-space: nowrap; z-index: 5; box-shadow: var(--shadow); background: var(--surface-alt); }
.reading-reply { padding: 28px; margin: 0; border: 0; border-radius: 0 0 8px 8px; background: rgba(0,0,0,.07); }
.reading-reply h3 { font-size: 19px; margin: 0 0 18px; }
.reading-reply .reply-composer { display: block; }
.reading-reply .reply-composer-shell { width: 100%; }
.reading-reply .reply-composer-expanded { display: block; }
.reading-reply textarea { width: 100%; padding: 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); font: inherit; line-height: 1.8; min-height: 150px; }
.reading-reply .reply-attach-bar { margin-top: 10px; border-radius: 6px; }
.reading-reply .reply-composer-footer { justify-content: flex-end; }
.reading-reply > p { color: var(--muted); font-size: 17px; }
.reading-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 0 4px; }
.reading-bottom a { font-size: 15px; color: var(--forum-accent); padding: 8px 0; }
@media (max-width: 960px) {
  .forum-home { grid-template-columns: minmax(0,1fr) 240px; gap: 18px; }
  .home-side-card { padding: 18px; }
  .home-section-head { padding: 18px; }
  .home-section .stream-open { display: none; }
}
@media (max-width: 700px) {
  .forum-home { display: flex; flex-direction: column; gap: 22px; }
  .home-main, .home-aside { width: 100%; }
  .home-aside { order: -1; }
  .home-aside:has(.personal-overview:not(.is-member)) { display: none; }
  .home-aside .home-side-card:not(.personal-overview), .home-aside .community-note { display: none; }
  .personal-overview { padding: 16px; }
  .personal-overview h3 { font-size: 20px; margin: 5px 0; }
  .personal-overview > p { margin: 5px 0 10px; font-size: 15px; }
  .personal-overview .primary-button { width: auto; display: inline-flex; padding: 8px 12px; font-size: 15px; }
  .home-signin { width: auto; margin: 0 0 0 10px; font-size: 13px; }
  .personal-link { padding: 10px 0; font-size: 15px; }
  .home-section-head { gap: 10px; padding: 18px 16px; }
  .home-section-head h3 { font-size: 21px; }
  .home-section-head > a { font-size: 13px; }
  .section-eyebrow { font-size: 9px; }
  .directory-forum { padding: 15px 16px; gap: 10px; }
  .directory-forum small { font-size: 13px; }
  .directory-heading { padding: 16px; }
  .directory-heading h3 { font-size: 22px; }
  .directory-heading p { display: none; }
  .directory-count { font-size: 12px; }
  .directory-count > span { display: none; }
  .home-section .stream-card { padding: 16px; }
  .forum-empty, .announcement-quiet { padding: 18px 16px; }
  .reading-thread .reading-heading { padding: 20px 16px; align-items: flex-start; }
  .reading-thread { gap: 26px; }
  .reading-heading .primary-button { font-size: 15px; }
  .reading-posts .reading-post { grid-template-columns: minmax(0,1fr); padding: 20px 16px; gap: 14px; }
  .reading-comments-heading { padding: 18px 16px; }
  .reading-comments-empty { padding: 20px 16px; }
  .reading-post .reading-author { flex-direction: row; align-items: center; gap: 12px; }
  .reading-author .avatar { width: 38px; height: 38px; font-size: 18px; }
  .reading-author-name { margin-bottom: 4px; }
  .reading-post .post-meta-row { margin-bottom: 16px; }
  .reading-copy { font-size: 18px; line-height: 1.85; }
  .reading-reply { padding: 20px 16px; }
  .reading-reply textarea { font-size: 18px; }
  .topic-community-tools > summary, .thread-admin-menu > summary { padding-left: 16px; padding-right: 16px; }
  .topic-options-body, .thread-admin-body { padding-left: 16px; padding-right: 16px; }
  .unread-jump { padding-left: 16px; }
  .reading-bottom { padding: 16px; }
}
@media (max-width: 600px) {
  .topbar { height: 120px; min-height: 120px; }
  .topbar .logo-slot { height: 64px; }
  .main-nav .nav-link { padding: 8px 10px; font-size: 15px; }
  .main-nav-links { justify-content: space-between; }
  .feed-tabs { gap: 4px; }
  .feed-tabs a { font-size: 13px; padding: 8px; }
}

.faction-forum-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.faction-forum-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; }
.faction-forum-row:hover { border-color: var(--forum-accent, #de8950); background: var(--surface-alt); }
.faction-forum-row.is-lspd { position: relative; isolation: isolate; overflow: hidden; }
.faction-us-flag { position: absolute; top: 0; right: 0; width: min(390px,55%); height: 100%; opacity: .18; pointer-events: none; z-index: 0; mask-image: linear-gradient(90deg,transparent,#000 28%); }
.faction-forum-row.is-lspd > div,.faction-forum-row.is-lspd > span { position: relative; z-index: 1; }
.faction-forum-row h4 { margin: 0 0 6px; font-size: 19px; }
.faction-forum-row a { color: inherit; text-decoration: none; }
.faction-forum-row a:hover { color: var(--forum-accent, #de8950); }
.faction-child-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; font-size: 13px; }
.faction-child-links a::before { content: '▸'; margin-right: 6px; color: var(--forum-accent, #de8950); }
.watchable-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.watchable-row > a, .watchable-row > .topic-row { flex: 1; min-width: 0; }
.directory-forums > .watchable-row { background: #171c24; border-bottom: 1px solid #363e4c; padding-right: 16px; }
.directory-forums > .watchable-row .directory-forum { border-bottom: 0; }
.watch-star { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; margin-left: 8px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #b9bec8; font-size: 26px; line-height: 1; vertical-align: middle; }
.watch-star:hover, .watch-star[aria-pressed="true"] { color: #e5b957; background: rgba(229,185,87,.09); }
.watch-star:focus-visible { outline: 2px solid #e5b957; outline-offset: 2px; }
.directory-heading { position: relative; padding-right: 66px; }
.directory-heading > .watch-star { position: absolute; top: 18px; right: 16px; }
.faction-forum-row p { margin: 0; color: var(--muted); font-size: 14px; }
.faction-forum-row > span { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.faction-forum-row > span { display: inline-flex; align-items: center; gap: 6px; }
.faction-forum-row > span .watch-star { margin-left: 4px; }
.forum-subforums a { color: inherit; text-decoration: none; }
@media (max-width: 480px) { .faction-forum-row { padding: 14px; gap: 10px; } }
.chatbox-widget { position: relative; margin-left: auto; align-self: center; z-index: 25; }
.chatbox-widget #chatbox-open { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 0; min-height: 46px; padding: 9px 14px; border: 1px solid #52505a; border-radius: 7px; background: #242832; color: #f4c49a; font-size: 16px; cursor: pointer; }
.chatbox-widget #chatbox-open:hover, .chatbox-widget #chatbox-open[aria-expanded="true"] { border-color: var(--forum-accent); background: #302b29; }
.chatbox-widget #chatbox { position: absolute; top: calc(100% + 10px); right: 0; width: min(430px, calc(100vw - 32px)); max-height: min(520px, var(--chat-panel-space, 520px)); margin: 0; display: flex; flex-direction: column; border: 1px solid #505968; border-radius: 10px; background: #191e26; box-shadow: 0 16px 50px rgba(0,0,0,.5); overflow: hidden; }
.chatbox-widget #chatbox[hidden] { display: none; }
.chatbox-widget .chatbox-head { flex-shrink: 0; flex-wrap: wrap; padding: 13px 14px; gap: 8px; background: #11161e; }
.chatbox-widget .chatbox-head h3 { font-size: 16px; }
.chatbox-widget #chatbox-status { display: none; }
.chatbox-widget .chatbox-controls { margin-left: auto; gap: 5px; }
.chatbox-widget .chatbox-controls button { font-size: 12px; padding: 6px 8px; min-height: 34px; }
.chatbox-widget #chatbox-toggle { display: none; }
.chatbox-widget #chatbox-body { display: flex; flex-direction: column; min-height: 0; }
.chatbox-widget .chatbox-messages { height: 260px; min-height: 60px; flex: 1 1 auto; padding: 8px 14px; }
.chatbox-widget .chatbox-message p { font-size: 16px; line-height: 1.6; }
.chatbox-widget .chatbox-form { flex-shrink: 0; padding: 12px 14px 0; }
.chatbox-widget .chatbox-form input { width: 0; font-size: 16px; }
.chatbox-widget .chatbox-form button { font-size: 14px; padding: 10px 12px; }
.chatbox-widget .chatbox-hint { flex-shrink: 0; font-size: 12px; line-height: 1.6; padding: 0 14px; margin: 10px 0 12px; }
@media (max-width: 600px) {
  .chatbox-widget #chatbox-open { padding: 9px 11px; }
  .chatbox-widget #chatbox-open span { display: none; }
  .chatbox-widget #chatbox { width: min(430px, calc(100vw - 24px)); }
}

/* The conversation has its own column, separate from forum content. */
.page-shell { max-width: 1660px; }
.forum-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 26px; }
.forum-workspace > .layout-grid { min-width: 0; }
.forum-workspace .layout-grid:not(.modern-wide) { grid-template-columns: minmax(0,1fr); }
.forum-workspace .sidebar-column { display: none; }
.chatbox-column { position: sticky; top: 90px; margin: 0; align-self: start; z-index: 5; padding-top: 0; }
.chatbox-column #chatbox { position: static; width: 100%; max-height: min(560px, calc(100dvh - 110px)); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.chatbox-column .chatbox-messages { height: 300px; }
.quick-actions > #chatbox-open { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 0 auto; min-height: 46px; padding: 9px 14px; border: 1px solid #52505a; border-radius: 7px; background: #242832; color: #f4c49a; font-size: 16px; cursor: pointer; }
.quick-actions > #chatbox-open:hover, .quick-actions > #chatbox-open[aria-expanded="true"] { border-color: var(--forum-accent); background: #302b29; }
@media (max-width: 1350px) and (min-width: 1051px) {
  .forum-workspace { grid-template-columns: minmax(0,1fr) 330px; gap: 20px; }
  .forum-workspace .forum-home { grid-template-columns: minmax(0,1fr); }
  .forum-workspace .home-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .forum-workspace { display: flex; flex-direction: column; gap: 20px; }
  .forum-workspace > .layout-grid { width: 100%; }
  .chatbox-column { position: static; order: -1; width: 100%; }
  .chatbox-column:has(#chatbox[hidden]) { display: none; }
  .chatbox-column #chatbox { max-height: min(480px, 65dvh); }
}
@media (max-width: 600px) {
  .quick-actions > #chatbox-open { padding: 9px 11px; }
  .quick-actions > #chatbox-open span { display: none; }
}

.chatbox-column > .sidebar-column { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; width: 100%; min-width: 0; margin: 20px 0 0; justify-self: stretch; }
.chatbox-column > #chatbox[hidden] + .sidebar-column { margin-top: 0; }
.chatbox-column > .sidebar-column[hidden] { display: none; }
body:not(.has-forum-sidebar) .forum-workspace:has(> .chatbox-column > #chatbox[hidden]) { display: block; }
body:not(.has-forum-sidebar) .chatbox-column:has(> #chatbox[hidden]) { display: none; }
.chatbox-column .sidebar-card { position: static; width: 100%; min-width: 0; margin: 0; padding: 20px; border-radius: 9px; background: #191e26; box-shadow: none; overflow-wrap: anywhere; }
.chatbox-column .sidebar-card h3 { font-size: 20px; line-height: 1.4; margin: 0 0 16px; }
.chatbox-column .sidebar-item { padding: 14px; border-radius: 7px; line-height: 1.7; }
.chatbox-column .sidebar-item .meta-text { margin-top: 6px; font-size: 15px; line-height: 1.7; }
.chatbox-column .sidebar-list { display: grid; gap: 10px; min-width: 0; }
.chatbox-column .sidebar-list .pill-button { width: 100%; min-width: 0; text-align: left; white-space: normal; line-height: 1.6; }
.chatbox-column .sidebar-empty { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1100px) and (min-width: 1051px) { .chatbox-column { top: 160px; } }
@media (max-width: 1050px) { .chatbox-column > .sidebar-column { display: none; } }

@media (min-width: 1051px) {
  .quick-actions > #chatbox-open { position: fixed; top: var(--chat-launcher-top, 260px); right: var(--chat-launcher-right, 24px); width: var(--chat-launcher-width, 116px); margin: 0; z-index: 14; padding: 9px 8px; gap: 7px; font-size: 14px; }
  .chatbox-column #chatbox { height: var(--chat-panel-space, 500px); max-height: none; }
  .chatbox-column #chatbox-body { flex: 1; min-height: 0; }
  .chatbox-column .chatbox-messages { height: auto; flex: 1; min-height: 0; }
}
.subforum-tools { margin: 14px 0; }
.subforum-tools > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.subforum-tools > summary::-webkit-details-marker { display: none; }
.subforum-tools > summary::after { content: '+'; font-size: 18px; line-height: 1; }
.subforum-tools[open] > summary::after { content: '×'; }
.subforum-tools > .admin-panel { margin-top: 12px; }
.subforum-tools > summary:focus-visible { outline: 2px solid var(--forum-accent, #c87542); outline-offset: 3px; }
.community-members-footer { position: relative; margin-top: 26px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.community-members-footer::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--forum-accent); }
.community-members-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 24px; }
.community-members-heading h3 { margin: 0; font-size: 14px; font-weight: 700; }
.community-members-heading h3 > span { color: var(--forum-accent); margin-right: 7px; }
.community-members-heading > span { color: var(--muted); font-size: 12px; }
.community-members-heading > a { margin-left: auto; color: var(--forum-accent); font-size: 12px; }
.community-members-names { font-size: 13px; line-height: 2; overflow-wrap: anywhere; }
.community-members-names a { font-weight: 600; text-decoration: none; }
.community-members-names a:hover { text-decoration: underline; text-underline-offset: 3px; }
.community-members-names a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.community-member-comma { color: #8d939e; }
.member-directory-card .member-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.member-directory-card .member-name { font-weight: 700; text-decoration: none; }
.member-directory-card .member-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.member-directory-card .member-name:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.member-directory-card .pill { flex-shrink: 0; }
.members-layout { display: grid; gap: 26px; min-width: 0; }
.members-panel { margin: 0; overflow: hidden; }
.members-panel .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.members-team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 24px; }
.members-team-group { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-alt); overflow: hidden; }
.members-team-group:only-child { grid-column: 1 / -1; }
.members-team-group > h4 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.members-rank-count { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.members-rank-empty { margin: 0; padding: 18px 24px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.members-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 24px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.members-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 2px solid transparent; border-radius: 5px 5px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.members-tabs a:hover { color: var(--text); background: var(--surface-alt); }
.members-tabs a[aria-current="page"] { color: var(--forum-accent); border-bottom-color: var(--forum-accent); background: #e6a46a09; }
.members-tabs .members-donator-tab { color: #d5b16a; }
.members-tabs .members-donator-tab[aria-current="page"] { color: #d5b16a; border-bottom-color: #b58a35; background: #b58a350b; }
.members-tabs a > span { padding: 2px 7px; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; font-variant-numeric: tabular-nums; }
.members-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 24px 12px; }
.members-list-heading > h4 { margin: 0; font-size: 17px; }
.members-list-heading > span { color: var(--muted); font-size: 12px; }
.members-panel .directory-member { display: flex; align-items: center; gap: 14px; padding: 18px 24px; min-width: 0; }
.directory-member:last-child { border-bottom: 0; }
.directory-member-avatar { flex: 0 0 42px; border-radius: 8px; }
.directory-member-avatar .avatar { width: 42px; height: 42px; border-radius: 8px; }
.directory-member-info { min-width: 0; }
.directory-member-info .member-name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.directory-member-info .member-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; }
.directory-post-count { flex-shrink: 0; margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.members-empty { grid-column: 1 / -1; margin: 0; padding: 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.members-team-grid > .members-empty { padding: 4px 0; }
.members-layout a:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 3px; }
@media(max-width:760px) {
  .members-team-grid { grid-template-columns: minmax(0,1fr); padding: 18px; }
  .members-tabs { padding: 10px 16px 0; }
  .members-tabs a { padding: 12px; }
  .members-list-heading { padding: 20px 18px 10px; }
  .members-panel .directory-member { padding: 16px 18px; }
}
@media(max-width:480px) {
  .members-panel .directory-member { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 8px 12px; }
  .directory-member-avatar { grid-row: span 2; align-self: start; }
  .directory-post-count { grid-column: 2; margin-left: 0; }
}
@media(max-width:600px) { .community-members-footer { padding: 22px 18px; } .community-members-heading { margin-bottom: 16px; } .community-members-heading > a { margin-left: 0; } }
.community-side-card { position: relative; padding: 20px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.community-side-card h3 { margin: -20px -20px 20px; padding: 15px 18px; border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--forum-accent); background: var(--bg-soft); color: var(--forum-accent); font-size: 15px; font-weight: 700; }
.community-side-card h3::before { content: '☰'; color: var(--forum-accent); margin-right: 9px; font-size: 12px; }
.community-recent-list { display: grid; gap: 18px; }
.community-recent-item { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.community-recent-item:last-child { padding-bottom: 0; border-bottom: 0; }
.community-recent-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.6; font-weight: 700; }
.community-recent-title > span { border-radius: 12px; padding: 1px 7px; background: var(--surface-alt); color: var(--muted); font-size: 11px; flex-shrink: 0; }
.community-recent-item > p { font-size: 12px; color: var(--muted); margin: 6px 0 10px; line-height: 1.6; }
.community-recent-byline, .community-newest { display: flex; align-items: center; gap: 9px; }
.community-recent-byline .avatar, .community-newest .avatar { width: 30px; height: 30px; min-width: 30px; flex: 0 0 30px; border-radius: 50%; font-size: 12px; }
.community-recent-byline > div, .community-newest > div { display: flex; flex-direction: column; min-width: 0; }
.community-recent-byline a { font-size: 12px; font-weight: 600; }
.community-recent-byline time { font-size: 10px; color: var(--muted); }
.community-recent-forum { display: inline-flex; margin-top: 8px; font-size: 11px; border-radius: 4px; padding: 2px 7px; color: var(--forum-accent); background: rgba(230,164,106,.08); }
.community-stats { margin: 0; }
.community-stats > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.community-stats dt { color: var(--muted); }
.community-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.community-newest { margin-top: 16px; }
.community-newest span { font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.community-newest a { font-size: 12px; font-weight: 700; margin: 3px 0; }
.community-newest small { font-size: 10px; color: var(--muted); }
.community-side-names { font-size: 12px; line-height: 1.9; }
.community-side-more { display: inline-flex; margin-top: 12px; font-size: 12px; color: var(--forum-accent); }
@media(min-width:1051px) {
  .chatbox-column { position: static; }
  .chatbox-column #chatbox { height: auto; max-height: 500px; }
  .chatbox-column .chatbox-messages { height: 240px; flex: auto; }
}
.directory-heading { padding: 15px 60px 15px 20px; }
.directory-heading h3 { font-size: 17px; line-height: 1.4; }
.directory-heading p { font-size: 12px; line-height: 1.6; margin-top: 4px; }
.directory-heading > .watch-star { top: 9px; }
.directory-forum { display: grid; grid-template-columns: 30px minmax(0,1fr) 70px minmax(130px,190px); gap: 18px; padding: 18px 20px; min-height: 92px; }
.directory-forum > span:first-child { flex: initial; }
.directory-folder { color: var(--forum-accent); opacity: .65; }
.directory-folder svg { display: block; width: 28px; height: 28px; }
.directory-forum .directory-info { min-width: 0; }
.directory-forum strong { font-size: 14px; line-height: 1.5; }
.directory-forum small { font-size: 12px; line-height: 1.65; margin-top: 3px; }
.directory-subcount { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); opacity: .8; }
.directory-count { display: flex; flex-direction: column; align-items: center; font-size: 12px; white-space: normal; }
.directory-count b { font-size: 14px; font-weight: 600; }
.directory-count > span { margin: 0; color: var(--muted); font-size: 11px; }
.directory-count small { font-size: 10px; opacity: .75; }
.directory-last { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11px; }
.directory-last-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.directory-last-author { font-weight: 600; }
.directory-last time, .directory-no-posts { color: var(--muted); font-size: 10px; }
.reading-copy { font-size: 16px; line-height: 1.8; }
.reading-author-name { font-size: 14px; }
.topic-row h3 { font-size: 15px; }
.topic-list-meta { font-size: 12px; }
@media(max-width:1250px) { .directory-forum { grid-template-columns: 26px minmax(0,1fr) 65px; gap: 12px; } .directory-last { display: none; } }
@media(max-width:600px) { .directory-heading { padding: 13px 54px 13px 14px; } .directory-forum { grid-template-columns: 22px minmax(0,1fr) 50px; gap: 10px; padding: 15px 12px; } .directory-folder svg { width: 22px; height: 22px; } .directory-forum strong { font-size: 14px; } .directory-forum small { font-size: 12px; } .reading-copy { font-size: 15px; } }
.forum-directory-toolbar { display: flex; justify-content: flex-end; margin: -4px 0 16px; }
.forum-directory-toolbar .primary-button { min-height: 38px; min-width: 150px; padding: 8px 18px; font-size: 13px; background: #c87542; box-shadow: none; }
.topic-forum-picker { width: min(470px,calc(100vw - 32px)); max-height: calc(100dvh - 64px); padding: 22px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.topic-forum-picker::backdrop { background: #090c12b8; backdrop-filter: blur(3px); }
.topic-picker-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.topic-picker-head h3 { margin: 0; font-size: 17px; }
.topic-picker-head button { font-size: 24px; }
.topic-forum-picker > p { margin: 12px 0; font-size: 13px; color: var(--muted); }
.topic-picker-tree { max-height: min(480px,60dvh); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); scrollbar-color: var(--line-strong) var(--bg-soft); }
.topic-picker-tree summary { padding: 9px 8px; font-size: 13px; cursor: pointer; }
.topic-picker-category > summary { font-weight: 700; color: var(--forum-accent); }
.topic-picker-children { padding-left: 15px; margin-left: 9px; border-left: 1px solid var(--line); }
.topic-picker-tree a { display: block; padding: 9px 8px; font-size: 13px; border-radius: 4px; }
.topic-picker-tree a:hover, .topic-picker-tree summary:hover { background: var(--surface-alt); color: var(--forum-accent); }
.topic-picker-tree a:focus-visible, .topic-picker-tree summary:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: -2px; }
body:has(.topic-forum-picker[open]) { overflow: hidden; }
.reading-manual .forum-workspace { display: block; }
.reading-manual .forum-workspace > .chatbox-column,
.reading-manual .quick-actions,
.reading-manual #page-status { display: none; }
.manual-reader { --manual-offset: calc(var(--nav-overlay-height, 72px) + 24px); }
.manual-intro { max-width: 1230px; margin: 0 auto 26px; }
.manual-intro > a { color: var(--forum-accent); font-size: 13px; }
.manual-intro > p { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 18px 0 10px; }
.manual-intro > span { color: var(--muted); font-size: 13px; }
.manual-intro > span > span { padding: 0 8px; color: var(--forum-accent); }
.manual-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 28px; max-width: 1230px; margin: 0 auto; }
.manual-toc { position: sticky; top: var(--manual-offset); min-width: 0; background: var(--surface, #1b2028); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.manual-toc > summary { padding: 18px; font-size: 16px; font-weight: 700; color: var(--forum-accent); cursor: pointer; }
.manual-toc > summary > span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin: 6px 0 0 17px; }
.manual-toc nav { max-height: calc(100dvh - var(--manual-offset) - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 16px; border-top: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.manual-toc ol { list-style: none; padding: 0; margin: 0; }
.manual-toc nav > ol > li { margin: 2px 0; }
.manual-toc nav summary { display: flex; align-items: baseline; gap: 10px; padding: 8px; border-radius: 5px; cursor: pointer; }
.manual-toc nav summary::after { content: '+'; margin-left: auto; color: var(--muted); }
.manual-toc nav details[open] > summary::after { content: '−'; }
.manual-toc nav li:has(> details > summary:only-child) summary::after { display: none; }
.manual-toc a { display: inline-block; color: var(--muted); font-size: 13px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.manual-toc-number { color: var(--forum-accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.manual-toc nav summary:hover, .manual-toc nav summary:focus-within { background: rgba(230, 164, 106, .07); }
.manual-toc a:hover, .manual-toc a[aria-current] { color: var(--forum-accent); text-decoration: underline; text-underline-offset: 3px; }
.manual-toc nav details > ol { border-left: 1px solid var(--line); margin: 0 8px 10px 15px; padding-left: 17px; }
.manual-toc nav details > ol a { padding: 5px 0; font-size: 12px; }
.manual-content { min-width: 0; }
.manual-chapter { border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #1b2028); padding: 32px 38px; margin-bottom: 24px; }
.manual-chapter > header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.manual-chapter-number { display: block; color: var(--forum-accent); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.manual-chapter h2 { font-size: 25px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.manual-copy { font-size: 16px; line-height: 1.85; color: var(--muted); overflow-wrap: anywhere; }
.manual-copy p { font-size: inherit; line-height: inherit; margin: 0 0 20px; }
.manual-copy h3 { border-left: 3px solid var(--forum-accent); padding-left: 14px; margin: 38px 0 18px; color: var(--text); font-size: 19px; line-height: 1.5; }
.manual-copy > h3:first-child { margin-top: 0; }
.manual-copy strong { color: var(--text); font-weight: 650; }
.manual-copy ul { padding-left: 24px; margin: 0 0 24px; }
.manual-copy li { padding-left: 4px; margin: 8px 0; }
.manual-copy li::marker { color: var(--forum-accent); }
.manual-copy .manual-example { padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: rgba(230, 164, 106, .045); font-size: 15px; }
.manual-intro .manual-notice { border-left: 3px solid var(--forum-accent); padding: 10px 14px; background: rgba(230, 164, 106, .045); }
.manual-intro .manual-source { display: inline-block; margin-left: 16px; font-size: 12px; color: var(--forum-accent); }
.rules-sections { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.rules-sections a { padding: 11px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.rules-sections a:hover, .rules-sections a[aria-current="page"] { color: var(--forum-accent); border-color: var(--forum-accent); background: rgba(230, 164, 106, .055); }
.rules-sections a:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 3px; }
.server-rule { margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-overlay-height, 72px) + 24px); }
.server-rule p:last-child { margin-bottom: 0; }
.server-rule:focus { outline: 2px solid var(--forum-accent); outline-offset: 8px; border-radius: 2px; }
.server-rule-number { display: inline-block; margin: 0 6px 3px 0; padding: 1px 7px; border: 1px solid rgba(230, 164, 106, .25); border-radius: 4px; color: var(--forum-accent); background: rgba(230, 164, 106, .055); font-size: .85em; font-variant-numeric: tabular-nums; text-decoration: none; }
.server-rule-number:hover, .server-rule-number:focus-visible { color: var(--text); border-color: var(--forum-accent); outline: 2px solid var(--forum-accent); outline-offset: 2px; }
.manual-chapter [id] { scroll-margin-top: var(--manual-offset); }
.manual-chapter [tabindex]:focus { outline: none; }
.manual-chapter [tabindex]:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 6px; }
.manual-back-top { display: inline-block; color: var(--forum-accent); font-size: 12px; margin-top: 12px; }
.manual-copy .manual-question-list { padding-left: 28px; margin: 24px 0; }
.manual-copy .manual-question-list li { padding: 10px 0 10px 8px; margin: 0; border-bottom: 1px solid var(--line); }
.manual-copy .manual-question-list li:last-child { border-bottom: 0; }
.manual-question-list li::marker { color: var(--forum-accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.character-timeline-wrap { overflow-x: auto; margin: 24px 0; }
.character-timeline { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.character-timeline caption { text-align: left; color: var(--text); font-weight: 700; padding-bottom: 14px; }
.character-timeline th, .character-timeline td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--line); }
.character-timeline th { color: var(--forum-accent); font-weight: 600; }
.section-card:has(.topic-sort[open]) { overflow: visible; }
.topic-list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; }
.topic-sort { position: relative; z-index: 12; min-width: 0; }
.topic-sort > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.5; }
.topic-sort > summary::-webkit-details-marker { display: none; }
.topic-sort > summary > span:last-child { color: var(--forum-accent); }
.topic-sort[open] > summary, .topic-sort > summary:hover { border-color: var(--forum-accent); }
.topic-sort > summary:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 3px; }
.topic-sort-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 250px; max-width: calc(100vw - 48px); max-height: min(540px, 65dvh); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 12px 35px #0006; padding: 8px; }
.topic-sort.opens-up .topic-sort-panel { top: auto; bottom: calc(100% + 8px); }
.topic-sort-options { border: 0; margin: 0; padding: 0; min-width: 0; }
.topic-sort-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topic-sort-options label { display: flex; align-items: center; gap: 10px; padding: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; border-radius: 4px; }
.topic-sort-options label:hover, .topic-sort-options label:focus-within { background: rgba(230, 164, 106, .07); color: var(--text); }
.topic-sort-options input { accent-color: var(--forum-accent); width: 14px; height: 14px; margin: 0; flex: 0 0 14px; }
.topic-sort-options label:has(input:checked) { color: var(--forum-accent); }
.topic-sort-custom { display: grid; gap: 12px; padding: 14px 8px 8px; margin-top: 6px; border-top: 1px solid var(--line); }
.topic-sort-custom[hidden] { display: none; }
.topic-sort-custom label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.topic-sort-custom select { width: 100%; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 9px; font: inherit; font-size: 13px; }
.topic-sort-custom .primary-button { font-size: 13px; padding: 9px 12px; }
@media (max-width: 600px) {
  .topic-list-toolbar { align-items: stretch; }
  .topic-list-controls { align-items: flex-start; justify-content: flex-start; flex-direction: column; }
  .topic-sort > summary { min-height: 42px; }
  .topic-sort-panel { right: auto; left: 0; }
  .topic-sort-options label { min-height: 44px; }
  .topic-sort-custom select { font-size: 16px; }
}
@media (max-width: 900px) {
  .manual-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .manual-toc { position: static; }
  .manual-toc > summary > span { display: inline; margin-left: 10px; }
  .manual-toc nav { max-height: 60dvh; }
}
@media (max-width: 600px) {
  .manual-intro > p { font-size: 15px; }
  .manual-chapter { padding: 24px 18px; }
  .manual-chapter > header { padding-bottom: 20px; margin-bottom: 24px; }
  .manual-chapter h2 { font-size: 22px; }
  .manual-copy { font-size: 15px; line-height: 1.85; }
  .manual-copy h3 { font-size: 18px; margin-top: 30px; padding-left: 11px; }
  .manual-copy .manual-example { font-size: 14px; padding: 12px; }
}
.group-legend-list.member-legend-list { display: grid; gap: 12px; }
.member-legend-group { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.member-legend-label { flex: 0 0 150px; }
.member-legend-names { min-width: 0; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.member-legend-names a { font-weight: 650; text-decoration: none; }
.member-legend-names a:hover { text-decoration: underline; text-underline-offset: 3px; }
.member-legend-names a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.member-legend-separator { color: var(--muted); }
.modern-form .post-signature-choice, .post-signature-choice { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 12px 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.post-signature-choice input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--forum-accent); }
.post-signature-choice input:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: 3px; }
.reading-reply .reply-composer-footer { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.viewing-forum-board .quick-actions,
.viewing-forum-board .forum-heading:has(#page-status:empty),
.viewing-forum-board .forum-heading-copy > .hero-label,
.viewing-forum-board #view-title { display: none; }
.forum-board { display: grid; gap: 18px; min-width: 0; }
.forum-board .section-card { margin: 0; border-radius: 9px; box-shadow: none; }
.forum-board-header .section-head { padding: 20px; border: 0; }
.forum-board-header .section-title { font-size: 21px; line-height: 1.4; }
.forum-board-header .section-copy { max-width: 650px; line-height: 1.65; }
.forum-board-header .inline-actions { flex-shrink: 0; margin: 0; }
.forum-board-header .primary-button, .forum-board-header .pill-button { min-height: 36px; padding: 8px 12px; font-size: 12px; box-shadow: none; }
.forum-board-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.forum-board-section-head h4 { margin: 0; font-size: 13px; }
.forum-board-section-head > span { font-size: 11px; color: var(--muted); }
.forum-board-subforum { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 65px minmax(140px, 215px) 32px; align-items: center; gap: 18px; min-height: 94px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.forum-board-subforum:last-child { border-bottom: 0; }
.forum-board-subforum:hover { background: var(--surface-alt, #232933); }
.forum-board-subforum.is-lspd { overflow: hidden; }
.forum-board-subforum > :not(svg) { position: relative; z-index: 1; }
.forum-board-subforum-link { display: flex; align-items: center; gap: 16px; min-width: 0; color: var(--text); text-decoration: none; }
.forum-board-subforum-link:hover strong { color: var(--forum-accent); }
.forum-board-folder { display: grid; place-items: center; flex: 0 0 36px; color: var(--forum-accent); }
.forum-board-folder svg { width: 28px; height: 28px; }
.forum-board-folder img { display: block; width: 36px; height: 36px; object-fit: contain; }
.forum-board-subforum-copy { display: grid; gap: 4px; min-width: 0; }
.forum-board-subforum-copy strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.forum-board-subforum-copy > span, .forum-board-subforum-copy small { font-size: 11px; line-height: 1.7; color: var(--muted); }
.forum-board-subforum-copy small { font-size: 10px; }
.forum-board-count { display: grid; gap: 3px; text-align: center; font-size: 11px; color: var(--muted); }
.forum-board-count strong { font-size: 14px; color: var(--text); }
.forum-board-count small { font-size: 10px; }
.forum-board-latest { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.forum-board-latest .avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 5px; font-size: 13px; }
.forum-board-activity-copy { display: grid; gap: 3px; min-width: 0; }
.forum-board-latest-title { color: var(--text); font-size: 11px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-decoration: none; }
.forum-board-latest-title:hover { color: var(--forum-accent); text-decoration: underline; }
.forum-board-last-author { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.forum-board-latest time, .forum-board-no-posts { font-size: 10px; line-height: 1.6; color: var(--muted); }
.forum-board .watch-star { flex-basis: 32px; width: 32px; height: 32px; margin: 0; font-size: 23px; }
.forum-board-topics .topic-list-toolbar { min-height: 64px; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.forum-board-topics .topic-list-toolbar > strong { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.forum-board-topic-count { color: var(--muted); font-size: 11px; font-weight: 400; }
.forum-board-topics .watchable-row { gap: 0; padding-right: 20px; border-bottom: 1px solid var(--line); }
.forum-board-topics .watchable-row:last-child { border-bottom: 0; }
.forum-board .topic-row { grid-template-columns: minmax(0, 1fr) 90px minmax(130px, 190px); gap: 18px; align-items: center; margin: 0; padding: 18px 20px; min-height: 88px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text); transform: none; }
.forum-board .topic-row:hover { background: rgba(230,164,106,.035); transform: none; }
.forum-board-topic-main { min-width: 0; }
.forum-board .topic-row h3 { margin: 0 0 5px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.forum-board .topic-list-meta { font-size: 11px; line-height: 1.6; }
.forum-board-topic-stats { display: grid; gap: 4px; color: var(--muted); font-size: 11px; text-align: right; }
.forum-board-topic-stats strong { display: inline; font-weight: 400; }
.forum-board-topic-labels { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; font-size: 10px; color: var(--muted); }
.forum-board-topic-labels .forum-board-state { color: var(--forum-accent); font-weight: 600; }
.forum-board-topic-location { overflow-wrap: anywhere; }
.forum-board-empty { padding: 32px 20px; color: var(--muted); font-size: 13px; }
.forum-board-admin { padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.forum-board-admin > summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.forum-board-admin form { margin-top: 16px; }
.forum-board .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.forum-board a:focus-visible, .forum-board button:focus-visible, .forum-board summary:focus-visible { outline: 2px solid var(--forum-accent); outline-offset: -3px; }
@media (max-width: 1250px) and (min-width: 701px) {
  .forum-board-subforum { grid-template-columns: minmax(0, 1fr) 55px minmax(115px, 155px) 32px; gap: 10px; padding: 16px; }
  .forum-board .topic-row { grid-template-columns: minmax(0, 1fr) 76px minmax(115px, 155px); gap: 12px; }
}
@media (max-width: 700px) {
  .forum-board-header .section-head { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
  .forum-board-header .inline-actions { flex-wrap: wrap; }
  .forum-board-subforum { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px 12px; padding: 16px; }
  .forum-board-subforum-link { grid-column: 1; gap: 12px; }
  .forum-board-count { grid-column: 1; display: flex; gap: 6px; align-items: baseline; margin-left: 48px; text-align: left; }
  .forum-board-count small { margin-left: 8px; }
  .forum-board-subforum > .forum-board-latest { grid-column: 1; margin-left: 48px; }
  .forum-board-subforum > .forum-board-latest:has(.forum-board-no-posts) { display: none; }
  .forum-board-watch { grid-column: 2; grid-row: 1 / 4; align-self: start; }
  .forum-board-topics .topic-list-toolbar { padding: 12px 16px; gap: 12px; }
  .forum-board-topics .watchable-row { padding-right: 12px; }
  .forum-board .topic-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
  .forum-board-topic-stats { display: flex; gap: 14px; text-align: left; }
  .forum-board-topic .forum-board-activity-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
}
@media (max-width: 600px) {
  .member-legend-group { flex-wrap: wrap; gap: 5px 12px; }
  .member-legend-label { flex-basis: auto; }
  .member-legend-names { flex: 1 1 100%; padding-left: 20px; }
}
