.community-page {
    box-sizing: border-box; width: 100%; max-width: 1200px; margin: 24px auto;
    color: var(--body-color, #202631); font: var(--body-font-size, 14px)/1.6 var(--body-font-family, system-ui);
    text-align: left; overflow-wrap: anywhere;
}
.community-page *, .community-page *::before, .community-page *::after { box-sizing: border-box; }
.community-page h1, .community-page h2, .community-page h3 { color: inherit; text-align: left; line-height: 1.3; margin: 0; }
.community-page h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -.025em; }
.community-page h2 { font-size: 18px; }
.community-page h3 { font-size: 16px; }
.community-page p { margin: 0 0 14px; }
.community-page a { color: var(--url-font-color, #315ba8); }
.community-page a:hover { color: var(--url-font-hover-color, var(--url-font-color, #315ba8)); }
.community-header, .community-toolbar, .community-actions, .community-card-heading, .community-post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.community-header { justify-content: space-between; margin-bottom: 24px; }
.community-header p, .community-muted { color: var(--placeholder-color, #6b7280); }
.community-header p { margin: 8px 0 0; max-width: 65ch; }
.community-kicker { display: block; margin-bottom: 7px; color: var(--placeholder-color, #6b7280); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.community-card, .community-page details {
    min-width: 0; margin-bottom: 18px; padding: clamp(16px, 2.3vw, 26px);
    border: 1px var(--global-border-style, solid) var(--border-color, #d7dce3); border-radius: 14px;
    background: var(--surface-color, var(--mainouter-color, var(--userbar-color, #fff))); box-shadow: var(--box-shadow, 0 5px 20px rgb(0 0 0 / .04));
}
.community-card-heading { justify-content: space-between; margin-bottom: 18px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; margin-bottom: 18px; }
.community-grid > .community-card { margin-bottom: 0; }
.community-page .community-actions { margin-top: 18px; }
.community-page .community-toolbar { margin: 16px 0; align-items: flex-end; }
.community-page .community-toolbar > label { flex: 1 1 220px; }
.community-page .community-toolbar > button { flex: 0 0 auto; }
.community-page .community-button, .community-page button, .community-page a.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: auto; max-width: 100%;
    min-height: 40px; margin: 0; padding: 8px 15px; border: 1px solid var(--border-color, #d7dce3); border-radius: 8px;
    background: var(--surface-input-color, var(--input-color, #f5f7fa)); color: var(--input-text-color, #202631);
    font: 600 var(--input-font-size, 13px)/1.4 var(--input-font-family, var(--body-font-family, system-ui)); text-decoration: none; cursor: pointer; vertical-align: middle;
}
.community-page .community-button--primary { background: var(--menu-background, #263c61); color: var(--menu-font-color, #fff); border-color: var(--border-color, #263c61); }
.community-page button:hover, .community-page .community-button:hover { filter: brightness(.96); transform: none; }
.community-page button:disabled { opacity: .5; cursor: default; }
.community-page [hidden] { display: none !important; }
.community-page :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--url-font-color, #315ba8); outline-offset: 3px; }
.community-page label { display: grid; gap: 7px; font-weight: 600; min-width: 0; }
.community-page :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
    display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 9px 12px;
    border: 1px solid var(--border-color, #d7dce3); border-radius: 8px; box-shadow: none;
    background: var(--surface-input-color, var(--input-color, #fff)); color: var(--input-text-color, #202631);
    font-family: var(--input-font-family, var(--body-font-family, system-ui)); font-size: var(--input-font-size, 14px); line-height: 1.4;
}
.community-page textarea { resize: vertical; min-height: 100px; }
.community-page input[type=file] { padding: 8px; }
.community-page input[type=checkbox], .community-page input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: var(--url-font-color, #315ba8); }
.community-page .community-check { display: inline-flex; align-items: center; gap: 9px; font-weight: 400; }
.community-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.community-form > .community-full, .community-form > .community-actions, .community-form > details { grid-column: 1 / -1; }
.community-form > p { margin: 0; }
.community-form > button { justify-self: start; }
.community-form > p:has(textarea), .community-form > p:has(input[type=checkbox]) { grid-column: 1 / -1; }
.community-page details > summary { cursor: pointer; font-weight: 650; padding: 2px 0; }
.community-page details[open] > summary { margin-bottom: 18px; }
.community-page details details { margin: 0; background: var(--userbar-color, #f5f7fa); }
.community-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 9px; border: 1px solid var(--border-color, #d7dce3); background: var(--surface-alert-color, var(--userbar-color, #f5f7fa)); }
.community-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; font-size: 11px; font-weight: 650; background: var(--userbar-color, #f1f4f8); border: 1px solid var(--border-color, #d7dce3); white-space: nowrap; }
.community-empty { padding: 32px 16px; text-align: center; color: var(--placeholder-color, #6b7280); }
.community-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border-color, #d7dce3); border-radius: 10px; }
.community-page table { width: 100%; margin: 0; border-collapse: collapse; background: transparent; color: inherit; font: inherit; }
.community-page th, .community-page td { border: 0; border-bottom: 1px solid var(--border-color, #d7dce3); padding: 13px 15px; text-align: left; vertical-align: middle; }
.community-page thead { background: var(--colhead-bg-color, #f5f7fa); }
.community-page th { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.community-page tr:last-child td { border-bottom: 0; }
.community-page td small { display: block; color: var(--placeholder-color, #6b7280); }
.cron-schedule { display: grid; gap: 10px; min-width: 240px; max-width: 360px; }
.cron-schedule .cron-description { margin: 0; font-weight: 600; }
.cron-schedule label { gap: 5px; font-size: 12px; }
.cron-schedule .cron-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.community-page .cron-schedule details { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.community-page .cron-schedule details[open] > summary { margin-bottom: 8px; }
.cron-schedule small { margin-top: 5px; }
.cron-mobile-label { display: none; }
@media (max-width: 760px) {
    .cron-page .community-table-wrap { overflow: visible; border: 0; border-radius: 0; }
    .cron-page table, .cron-page tbody { display: block; }
    .cron-page thead { display: none; }
    .cron-page tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--border-color, #d7dce3); border-radius: 8px; }
    .cron-page td { display: block; padding: 0; border: 0; }
    .cron-page td:nth-child(-n+3), .cron-page td:nth-child(5) { grid-column: 1 / -1; }
    .cron-page td:nth-child(6) { grid-column: 2; grid-row: 4; justify-self: end; }
    .cron-page td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--placeholder-color, #6b7280); font-size: 11px; }
    .cron-page .cron-schedule { min-width: 0; max-width: none; }
    .cron-page .cron-mobile-label { display: inline; }
}
.community-quick-link { display: grid; gap: 6px; color: inherit !important; text-decoration: none; padding: 20px; border: 1px solid var(--border-color, #d7dce3); border-radius: 12px; background: var(--userbar-color, #f5f7fa); }
.community-quick-link span { font-weight: 700; }
.community-quick-link small { color: var(--placeholder-color, #6b7280); }
.community-quick-link:hover { border-color: var(--url-font-color, #315ba8); }
.community-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 14px; font-size: 12px; }
.community-breadcrumb a + a::before { content: '/'; margin-right: 7px; color: var(--placeholder-color, #6b7280); }
.community-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.community-page [aria-current=page] { border-color: var(--url-font-color, #315ba8); font-weight: 750; }
.forum-page { --forum-line: var(--border-color, #d7dce3); --forum-soft: var(--userbar-color, #f5f7fa); max-width: none; margin: 10px auto; font-size: var(--body-font-size, 13px); line-height: 1.5; }
.forum-page .community-kicker { display: none; }
.forum-page .community-card, .forum-page > details, .forum-page .forum-header { background: var(--surface-color, var(--mainouter-color, var(--userbar-color, #fff))); border: 1px var(--global-border-style, solid) var(--forum-line); border-radius: 4px; box-shadow: none; }
.forum-page .forum-header { padding: 8px 10px; margin-bottom: 10px; background: var(--colhead-bg-color, var(--forum-soft)); }
.forum-page .forum-header h1 { font-size: 18px; font-weight: 700; letter-spacing: normal; }
.forum-page .forum-header p { margin-top: 3px; font-size: inherit; }
.forum-page .community-breadcrumb { margin-bottom: 8px; font-size: inherit; }
.forum-page .community-button, .forum-page button { min-height: 28px; padding: 4px 9px; border-radius: 4px; background: var(--surface-input-color, var(--input-color, #f5f7fa)); color: var(--input-text-color, #202631); font-size: 12px; font-weight: 400; }
.forum-page .community-button--primary { background: var(--menu-background, #263c61); color: var(--menu-font-color, #fff); }
.forum-page .community-button--primary:hover { background: var(--menu-hover, var(--menu-background, #263c61)); color: var(--menu-font-color, #fff); }
.forum-page :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { min-height: 30px; padding: 5px 7px; border-radius: 4px; font-size: max(12px, var(--input-font-size, 13px)); }
.forum-page .community-tag { padding: 1px 5px; border-radius: 3px; font-size: 10px; background: var(--forum-soft); }
.forum-page .forum-category, .forum-page .forum-topics { padding: 0; margin-bottom: 12px; overflow: hidden; }
.forum-page .forum-category-heading, .forum-page .forum-topics > .community-card-heading { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 5px 8px; margin: 0; background: var(--colhead-bg-color, var(--forum-soft)); border: 0; border-bottom: 1px solid var(--forum-line); border-radius: 3px 3px 0 0; }
.forum-page .forum-category-heading h2, .forum-page .forum-topics h2 { font-size: 10pt; font-weight: 700; }
.forum-page .forum-table-wrap { width: 100%; overflow-x: auto; }
.forum-page .forum-table { width: 100%; table-layout: fixed; border-collapse: collapse; font: inherit; }
.forum-page .forum-icon-column { width: 8%; }
.forum-page .forum-name-column { width: 52%; }
.forum-page .forum-count-column { width: 10%; }
.forum-page .forum-last-column { width: 20%; }
.forum-page .forum-table th, .forum-page .forum-table td { padding: 5px 6px; border-right: 1px solid var(--forum-line); border-bottom: 1px solid var(--forum-line); vertical-align: middle; }
.forum-page .forum-table th:last-child, .forum-page .forum-table td:last-child { border-right: 0; }
.forum-page .forum-table tr:last-child td { border-bottom: 0; }
.forum-page .forum-table th { text-align: center; text-transform: none; letter-spacing: normal; font-size: 11px; background: var(--colhead-bg-color, var(--forum-soft)); }
.forum-page .forum-table th:nth-child(2) { text-align: left; }
.forum-page .forum-row { background: var(--surface-color, var(--mainouter-color, var(--userbar-color, #fff))); }
.forum-page .forum-row:hover { background: var(--forum-soft); }
.forum-page .forum-row-icon { display: grid; place-items: center; width: 24px; height: 24px; margin: auto; color: var(--placeholder-color, #63748a); }
.forum-page .forum-row-icon::before { content: ''; display: block; width: 20px; height: 20px; background: currentColor; mask: var(--forum-icon, url('/assets/fontawesome/svgs/regular/comments.svg')) center / contain no-repeat; }
.forum-page .forum-icon--locked { --forum-icon: url('/assets/fontawesome/svgs/solid/lock.svg'); }
.forum-page .forum-icon--pinned { --forum-icon: url('/assets/fontawesome/svgs/solid/thumbtack.svg'); }
.forum-page .forum-row--unread .forum-row-icon, .forum-page .forum-unread { color: var(--url-font-color, #315ba8); }
.forum-page .forum-row-title { font-size: 10pt; font-weight: 700; text-decoration: none; }
.forum-page .forum-row-title:hover { text-decoration: underline; }
.forum-page .forum-description p { margin: 2px 0 0; font-size: inherit; }
.forum-page .forum-count, .forum-page .forum-last { text-align: center; font-size: 11px; }
.forum-page .forum-last > a, .forum-page .forum-last > time, .forum-page .forum-last > span { display: block; overflow-wrap: anywhere; }
.forum-page .forum-last-topic { font-weight: 700; }
.forum-page .forum-last-forum { font-size: 10px; opacity: .85; }
.forum-page .forum-sort { display: inline-flex; gap: 3px; margin: 2px 0 0; }
.forum-page .forum-sort button { min-height: 20px; padding: 0 5px; font-size: 11px; }
.forum-page .community-pagination { margin: 10px 0; gap: 4px; }
.forum-page .forum-topics > .community-pagination { padding: 0 8px; }
.forum-page .community-actions { margin-top: 10px; }
.forum-page .community-card { padding: 10px; }
.forum-page .forum-category, .forum-page .forum-topics, .forum-page .forum-post { padding: 0; }
.forum-page .forum-post { display: block; margin: 8px 0; overflow: visible; }
.forum-page .forum-post-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 8px; border-bottom: 1px solid var(--forum-line); background: var(--colhead-bg-color, var(--forum-soft)); border-radius: 3px 3px 0 0; }
.forum-page .forum-post-profile { display: flex; flex: 1 1 160px; align-items: center; gap: 7px; min-width: 0; margin: 0; }
.forum-page .community-post-avatar, .forum-page .forum-avatar-placeholder { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 30px; }
.forum-page .forum-avatar-placeholder { display: grid; place-items: center; background: var(--forum-soft); border: 1px solid var(--forum-line); font-size: 14px; }
.forum-page .forum-author-name { font-size: 12px; font-weight: 700; text-decoration: none; }
.forum-page .forum-author-title { margin-top: 1px; font-size: 10px; }
.forum-page .forum-post-content { min-width: 0; padding: 8px 10px; }
.forum-page .community-post-meta { margin-left: auto; font-size: 10px; justify-content: flex-end; gap: 8px; }
.forum-page .forum-post-permalink { display: flex; gap: 8px; flex-wrap: wrap; text-decoration: none; }
.forum-page .forum-post-tools { display: flex; align-items: center; gap: 5px; }
.forum-page .community-post-body { min-height: 36px; padding: 5px 0 12px; line-height: 1.6; font-size: inherit; }
.forum-page .community-post-body :is(img, iframe, video) { max-width: 100%; }
.forum-page .community-post-body blockquote { margin: 8px 0; padding: 7px 10px; border: 1px solid var(--forum-line); border-left: 3px solid var(--url-font-color, #315ba8); background: var(--forum-soft); }
.forum-page .forum-post-edit { margin: 0 0 5px; font-size: 10px; }
.forum-page .forum-post-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--forum-line); }
.forum-page .forum-reactions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 0; }
.forum-page .forum-reactions button, .forum-page .forum-reply { min-height: 26px; padding: 3px 7px; font-size: 11px; }
.forum-page .forum-reactions button > span { font-weight: 700; margin-left: 3px; }
.forum-page .forum-post-menu { position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.forum-page .forum-post-menu > summary { display: grid; place-items: center; min-width: 28px; min-height: 24px; padding: 0; margin: 0; list-style: none; font-size: 20px; }
.forum-page .forum-post-menu[open] > summary { margin: 0; }
.forum-page .forum-post-menu > summary::-webkit-details-marker { display: none; }
.forum-page .forum-post-menu > nav { position: absolute; z-index: 20; right: 0; top: 100%; display: grid; min-width: 155px; padding: 4px; border: 1px solid var(--forum-line); border-radius: 4px; background: var(--userbar-color, #fff); }
.forum-page .forum-post-menu a { padding: 5px 8px; text-decoration: none; font-size: 12px; }
.forum-page .forum-post-menu a:hover { background: var(--surface-color, var(--userbar-color, #f5f7fa)); }
.forum-page > details { padding: 10px; margin-bottom: 10px; }
.forum-page details[open] > summary { margin-bottom: 10px; }
.forum-page .community-form { gap: 10px; }
.forum-page .community-form textarea { min-height: 220px; }
.forum-page .community-toolbar { margin: 8px 0; }
@media (max-width: 640px) {
    .forum-page .forum-header { gap: 7px; }
    .forum-page .forum-header h1 { font-size: 16px; }
    .forum-page .forum-name-column { width: 40%; }
    .forum-page .forum-count-column { width: 14%; }
    .forum-page .forum-last-column { width: 24%; }
    .forum-page .forum-table th, .forum-page .forum-table td { padding: 4px 3px; }
    .forum-page .forum-row-title { font-size: 12px; }
    .forum-page .forum-description p, .forum-page .forum-count, .forum-page .forum-last { font-size: 10px; }
    .forum-page .forum-table th[data-short] { font-size: 0; }
    .forum-page .forum-table th[data-short]::after { content: attr(data-short); font-size: 10px; }
    .forum-page .forum-row-icon { width: 20px; height: 20px; }
    .forum-page .forum-row-icon::before { width: 16px; height: 16px; }
    .forum-page .community-post-meta { margin-left: 0; }
    .forum-page .community-post-body { font-size: max(12px, var(--body-font-size, 13px)); }
}
.staff-auth { max-width: 460px; margin: 40px auto; }
.staff-auth .community-card { padding: clamp(22px, 4vw, 36px); }
.staff-auth form { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.staff-auth .staff-code { width: 12ch; min-height: 46px; font: 600 22px/1.2 var(--input-font-family, monospace); letter-spacing: .18em; text-align: center; }
.staff-auth .staff-login-button { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.staff-auth .cf-turnstile { max-width: 100%; overflow: hidden; }
.staff-auth code { display: block; max-width: 100%; padding: 14px; border: 1px dashed var(--border-color, #d7dce3); border-radius: 8px; letter-spacing: .08em; overflow-wrap: anywhere; }
.community-page .achievement-thumb { width: 50px; height: 50px; object-fit: contain; }
@media (max-width: 640px) {
    .community-page { margin: 16px auto; }
    .community-form { grid-template-columns: minmax(0, 1fr); }
    .community-header { align-items: flex-start; }
    .community-header > .community-actions { margin-top: 0; }
    .community-card { padding: 16px; border-radius: 10px; }
    .community-page th, .community-page td { padding: 10px; }
    .community-page .community-actions { gap: 8px; }
}

/* Keep every new community view inside the site's existing content column. */
.container:has(.community-page) { box-sizing: border-box; width: min(var(--site-max-width, 1440px), calc(100% - 2 * var(--site-gutter, 12px))); max-width: 100%; min-width: 0; }
.container:has(.community-page) :is(#logo, .logo-img, .navbar, #menu, .content, .footer) { box-sizing: border-box; max-width: 100%; min-width: 0; }
.container:has(.community-page) .logo-img { width: 100%; height: auto; }
.container:has(.community-page) #navbar { position: relative; top: auto; left: auto; width: 100%; transform: none; }
/* The modern shell owns menu spacing across every page. */
body:not(.site-reimagined) .container:has(.community-page) #menu { width: 100%; height: auto; min-height: 40px; padding: 0 8px; }
.container:has(.community-page) #menu > ul { display: flex; flex-wrap: wrap; justify-content: center; }
.container:has(.community-page) #menu > ul > li { float: none; }
.community-page { min-width: 0; max-width: 100%; margin: 14px auto; }
.community-page :is(form, fieldset, .community-header > *, .community-toolbar > *, .community-actions > *, .community-card-heading > *, .community-grid > *, .community-form > *) { min-width: 0; max-width: 100%; }
.community-page :is(form, fieldset) { margin: 0; }
.community-page :is(img, video, iframe, pre) { max-width: 100%; }
.community-page pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-page .community-card, .community-page > details { max-width: 100%; border-radius: 6px; box-shadow: none; }
.community-page .community-card { padding: 16px; }
.community-page .community-table-wrap { width: 100%; min-width: 0; overscroll-behavior-x: contain; }
.community-page .community-tag { max-width: 100%; white-space: normal; }
.community-page .community-header, .community-page .community-card-heading { gap: 12px; }
.community-page .community-header > div, .community-page .community-card-heading > div { flex: 1 1 220px; }
.community-page .community-header { margin-bottom: 16px; }
.community-page .community-form { gap: 12px 16px; }
.community-page .community-toolbar > label { flex-basis: 180px; }
/* Compact forum cards contain a full-width table or post heading. */
.forum-page :is(.forum-category, .forum-topics, .forum-post) { padding: 0; }
.forum-page .forum-header { margin-bottom: 10px; }
.forum-page .forum-header > div { flex-basis: 160px; }
.forum-page :is(.forum-table-wrap, .forum-post-content, .forum-post-heading, .community-post-body) { min-width: 0; max-width: 100%; }
.forum-page .forum-post-profile { max-width: 100%; }
.forum-page .forum-category-heading > h2 { min-width: 0; overflow-wrap: anywhere; }
.forum-page :is(.forum-row-title, .forum-last-topic, .forum-header h1) img { max-width: 1.4em; max-height: 1.4em; object-fit: contain; vertical-align: middle; }
.forum-page .community-form > p { min-width: 0; }

/* Forum navigation and actions share the same compact themed header. */
.forum-page .forum-header { align-items: center; gap: 12px 18px; padding: 12px; }
.forum-page .forum-header > .forum-header-main { flex: 1 1 240px; min-width: 0; }
.forum-header-path { max-width: 100%; margin: 0 0 5px; font-size: 11px; line-height: 1.4; }
.forum-header-path ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.forum-header-path li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.forum-header-path li + li::before { content: '›'; color: var(--placeholder-color, #6b7280); }
.forum-header-path a { min-width: 0; text-decoration: none; }
.forum-header-path a:hover { text-decoration: underline; }
.forum-page .forum-header-description { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin: 6px 0 0; }
.forum-page .forum-header > .forum-header-actions { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin: 0; }
.forum-page .forum-read-all { display: inline-flex; max-width: 100%; margin: 0; }
.forum-page .community-button, .forum-page button { min-height: 30px; padding: 4px 9px; border-radius: 4px; }
.forum-header-actions .community-button { gap: 6px; font-size: 12px; }
.forum-action-icon { display: block; flex: 0 0 12px; width: 12px; height: 12px; background: currentColor; mask: var(--forum-action-icon) center / contain no-repeat; }
.forum-action-icon--read { --forum-action-icon: url('/assets/fontawesome/svgs/solid/check-double.svg'); }
.forum-action-icon--add { --forum-action-icon: url('/assets/fontawesome/svgs/solid/plus.svg'); }
.forum-action-icon--reply { --forum-action-icon: url('/assets/fontawesome/svgs/solid/reply.svg'); }
.forum-page .forum-form-actions { gap: 8px; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--forum-line); }
.forum-page .forum-sort button { min-width: 22px; min-height: 22px; padding: 0 4px; background: var(--forum-soft); }
.forum-page .forum-reactions button, .forum-page .forum-reply { min-height: 28px; padding: 4px 8px; font-size: 11px; }
.forum-page .community-pagination { gap: 5px; }
.forum-page .community-pagination:empty { display: none; }
.forum-page .community-pagination > a { min-width: 30px; padding: 4px 7px; }
.forum-page .forum-topics > .community-pagination { margin: 0; padding: 8px; border-top: 1px solid var(--forum-line); background: var(--forum-soft); }
.forum-page > .forum-panel { margin: 12px 0; padding: 0; border-radius: 4px; }
.forum-page > .forum-panel > summary { padding: 9px 12px; font-size: 12px; background: var(--colhead-bg-color, var(--forum-soft)); border-radius: 3px; }
.forum-page > .forum-panel[open] > summary { margin: 0; border-bottom: 1px solid var(--forum-line); border-radius: 3px 3px 0 0; }
.forum-page > .forum-panel > p { margin: 0; padding: 12px 12px 0; }
.forum-page > .forum-panel > form { margin: 0; padding: 12px; }
@media (max-width: 640px) {
    .forum-page .forum-header { gap: 10px; padding: 10px; }
    .forum-page .forum-header > .forum-header-main { flex-basis: 100%; }
    .forum-page .forum-header > .forum-header-actions { flex: 1 1 100%; justify-content: flex-start; }
}

.staff-page .staff-search { margin-bottom: 16px; }
.staff-search > label { max-width: 520px; }
.staff-page .staff-rank-group { margin-bottom: 16px; }
.staff-rank-group .community-card-heading { margin-bottom: 12px; }
.staff-rank-group h2 { font-size: 17px; }
.staff-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.staff-option { min-width: 0; border: 1px solid var(--border-color, #d7dce3); border-radius: 5px; background: var(--userbar-color, #f1f4f8); }
.staff-page .staff-option-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; color: inherit; text-decoration: none; }
.staff-option-main > div { min-width: 0; }
.staff-option-main strong { display: block; font-size: 13px; }
.staff-option-main small { display: block; margin-top: 4px; color: var(--placeholder-color, #6b7280); font-size: 11px; line-height: 1.5; }
.staff-option:has(.staff-option-main:hover) { border-color: var(--url-font-color, #315ba8); }
.staff-option-arrow { flex: 0 0 auto; font-size: 22px; color: var(--placeholder-color, #6b7280); }
.staff-option-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.staff-page .staff-option-shortcuts > a { min-height: 28px; padding: 4px 8px; font-size: 11px; }

.permission-user-field h3 { margin-bottom: 7px; }
.permission-user-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.permission-user-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 5px 3px 9px; border: 1px solid var(--border-color, #d7dce3); border-radius: 5px; background: var(--userbar-color, #f1f4f8); }
.permission-user-chip > span { min-width: 0; }
.permission-page .permission-user-chip > button { flex: 0 0 26px; min-height: 26px; width: 26px; padding: 0; border-color: transparent; background: transparent; color: inherit; font-size: 18px; }
.permission-page .permission-user-chip > button:hover { border-color: var(--border-color, #d7dce3); background: var(--surface-input-color, var(--input-color, #fff)); }
.permission-page .permission-user-status { margin: 6px 0 0; font-size: 11px; }
.permission-user-status:empty { display: none; }
.permission-page .permission-users-empty { margin: 0; font-size: 11px; }
.permission-user-search { position: relative; max-width: 520px; margin-top: 12px; }
.permission-user-results { position: absolute; inset: 100% 0 auto; z-index: 5; max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid var(--border-color, #d7dce3); border-radius: 5px; background: var(--surface-input-color, var(--input-color, #fff)); box-shadow: 0 4px 12px rgb(0 0 0 / .15); }
.permission-page .permission-user-results > button { display: flex; width: 100%; justify-content: flex-start; padding: 7px 9px; min-height: 34px; border-color: transparent; border-radius: 3px; text-align: left; }
.permission-page .permission-user-results > button:is(:hover,[aria-selected=true]) { border-color: var(--border-color, #d7dce3); background: var(--userbar-color, #f1f4f8); }
.permission-page td:nth-child(3) { min-width: 180px; }
.permission-list-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.permission-list-toolbar > label { flex: 1 1 260px; max-width: 520px; }
.permission-list-toolbar > .community-tag { align-self: center; margin-left: auto; }
.permission-group-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.permission-page .permission-group-actions > button { min-height: 30px; padding: 4px 9px; font-size: 11px; }
.permission-rank-group h2 { font-size: 17px; }
.permission-rank-group table { table-layout: fixed; }
.permission-rank-group th:nth-child(1) { width: 27%; }
.permission-rank-group th:nth-child(2) { width: 20%; }
.permission-rank-group th:nth-child(3) { width: 41%; }
.permission-rank-group th:nth-child(4) { width: 12%; }
.permission-page .permission-row > td { padding: 12px; vertical-align: top; }
.permission-page .permission-row select { min-height: 34px; padding: 5px 8px; font-size: 12px; }
.permission-row--updated > td { background: var(--userbar-color, #f1f4f8); }
.permission-page .permission-user-adder { margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.permission-page .permission-user-adder > summary { font-size: 11px; }
.permission-page .permission-user-adder[open] > summary { margin-bottom: 8px; }
.permission-row .permission-user-search { margin-top: 0; }
.permission-row .permission-user-search label { font-size: 11px; }
.permission-page .permission-row .permission-user-search input { min-height: 34px; padding: 5px 8px; font-size: 12px; }
.permission-row .permission-user-results { position: static; margin-top: 4px; box-shadow: none; }
.permission-page .permission-cleanup { min-height: 28px; margin-top: 7px; padding: 4px 7px; font-size: 11px; }
.permission-user-chip[data-permission-user-deleted="1"] { border-style: dashed; color: var(--placeholder-color, #6b7280); }
.permission-row-status { display: block; margin-top: 5px; font-size: 11px; }
.permission-list-status:empty, .permission-row-status:empty, .permission-editor-status:empty { display: none; }
.permission-editor > summary { font-size: 15px; }
@media (max-width: 700px) {
    .permission-rank-group :is(table, tbody, tr, td) { display: block; width: 100%; min-width: 0; }
    .permission-rank-group thead { display: none; }
    .permission-rank-group .permission-row + .permission-row { border-top: 1px solid var(--border-color, #d7dce3); }
    .permission-page .permission-row > td { padding: 7px 12px; border: 0; }
    .permission-row > td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--placeholder-color, #6b7280); font-size: 10px; }
    .permission-row > td:last-child { padding-bottom: 12px; }
}

.management-page { font-size: 13px; line-height: 1.5; }
.management-page h1 { font-size: clamp(22px, 2.3vw, 28px); letter-spacing: -.015em; }
.management-page h2 { font-size: 17px; }
.management-page h3 { font-size: 14px; }
.management-page .community-card-heading { margin-bottom: 14px; }
.management-page .community-card-heading p { margin: 4px 0 0; }
.management-page label small, .management-footnote { font-size: 11px; color: var(--placeholder-color, #6b7280); font-weight: 400; }
.management-page :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 13px; }
.management-nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color, #d7dce3); }
.management-nav > a { padding: 7px 11px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 12px; }
.management-nav > a[aria-current] { border-color: var(--border-color, #d7dce3); background: var(--userbar-color, #f1f4f8); color: inherit; }
.management-nav > .management-nav-back { margin-left: auto; }
.management-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.management-stats > div { min-width: 0; padding: 11px 14px; border: 1px solid var(--border-color, #d7dce3); border-radius: 6px; background: var(--surface-color, var(--mainouter-color, var(--userbar-color, #fff))); }
.management-stats dt { margin-bottom: 4px; font-size: 11px; color: var(--placeholder-color, #6b7280); }
.management-stats dd { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.2; }
.management-status { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--border-color, #d7dce3); border-radius: 4px; background: var(--userbar-color, #f1f4f8); font-size: 11px; font-weight: 600; white-space: normal; }
.management-status--active, .management-status--enabled { color: inherit; border-color: var(--class-1-color, #287a40); }
.management-status--scheduled { color: var(--class-5-color, #a77512); }
.management-status--issues { color: var(--class-12-color, #bb3445); border-color: currentColor; }
.management-status--off, .management-status--ended { color: var(--placeholder-color, #6b7280); }
.management-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 10px; margin-bottom: 16px; }
.management-games > .management-game { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 7px; padding: 12px; margin: 0; color: inherit; text-decoration: none; }
.management-game-icon { grid-row: 1 / 3; font-size: 23px; text-align: center; }
.management-game strong { font-size: 12px; }
.management-game .management-status { justify-self: start; }
.management-games > .management-game[aria-current] { border-width: 2px; padding: 11px; background: var(--userbar-color, #f1f4f8); }
.management-page .management-fieldset { display: grid; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--border-color, #d7dce3); border-radius: 6px; }
.management-fieldset legend { max-width: 100%; padding: 0 5px; font-weight: 700; font-size: 12px; }
.management-fieldset p { margin: 0; }
.management-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.management-inline-link { display: inline-block; align-self: end; font-size: 12px; }
.management-page .management-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-color, #d7dce3); }
.management-page .community-form > .management-form-footer { grid-column: 1 / -1; }
.management-page .management-filterbar { gap: 10px; }
.management-page .management-filterbar > label { flex-basis: 180px; }
.management-filterbar > .community-muted { margin-left: auto; align-self: center; font-size: 11px; }
.management-page .management-section { padding: 0; margin: 14px 0; border-radius: 6px; }
.management-section > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 14px !important; }
.management-section > summary small { font-size: 11px; color: var(--placeholder-color, #6b7280); font-weight: 400; }
.management-page .management-section[open] > summary { margin: 0; border-bottom: 1px solid var(--border-color, #d7dce3); }
.management-section-body { padding: 14px; }
.management-podium { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.management-podium-item { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 11px; border: 1px solid var(--border-color, #d7dce3); border-radius: 5px; background: var(--surface-color, var(--mainouter-color, var(--userbar-color, #fff))); }
.management-rank { display: inline-grid; place-items: center; min-width: 28px; min-height: 28px; font-weight: 700; border-radius: 4px; background: var(--userbar-color, #f1f4f8); }
.management-footnote { margin: 12px 0 0 !important; }
.management-job-list { display: grid; gap: 8px; }
.management-page .management-cron { display: block; margin: 0; padding: 0; border-radius: 6px; }
.management-cron > .management-job-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 13px 15px; list-style: none; }
.management-job-heading::-webkit-details-marker { display: none; }
.management-job-heading::after { content: '›'; flex: 0 0 auto; font-size: 22px; line-height: 1; }
.management-cron[open] > .management-job-heading::after { transform: rotate(90deg); }
.management-page .management-cron[open] > summary { margin: 0; border-bottom: 1px solid var(--border-color, #d7dce3); }
.management-job-name { flex: 1 1 200px; display: grid; gap: 3px; min-width: 0; }
.management-job-name strong { font-size: 13px; }
.management-job-name .community-muted { font-size: 11px; font-weight: 400; }
.management-job-state { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }
.management-switch-label { font-size: 10px; color: var(--placeholder-color, #6b7280); font-weight: 400; }
.management-cron-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.management-cron .cron-schedule { min-width: 0; max-width: none; }
.management-run-info { min-width: 0; }
.management-run-info h3 { margin: 0 0 12px; }
.management-run-info dl { display: grid; gap: 9px; margin: 0; }
.management-run-info dt { color: var(--placeholder-color, #6b7280); font-size: 11px; }
.management-run-info dd { margin: 2px 0 0; font-size: 12px; }
.management-run-info .community-alert { margin: 12px 0 0; font-size: 12px; }
.management-user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.management-user-grid > .community-card { margin-bottom: 0; }
.management-award-editor { scroll-margin-top: 12px; }
.management-award-image { display: flex; gap: 14px; align-items: center; }
.management-award-preview { display: grid; place-items: center; flex: 0 0 74px; width: 74px; height: 74px; border: 1px solid var(--border-color, #d7dce3); border-radius: 6px; background: var(--userbar-color, #f5f7fa); }
.management-award-preview img { width: 62px; height: 62px; object-fit: contain; }
.management-award-image > div:last-child { flex: 1; min-width: 0; }
.management-page .management-advanced { margin: 0; padding: 11px 13px; border-radius: 6px; }
.management-advanced .community-form { margin-top: 12px; }
.management-catalog .community-table-wrap { max-height: 65vh; overflow: auto; }
.management-catalog th { position: sticky; top: 0; z-index: 2; background: var(--colhead-bg-color, var(--userbar-color, #f5f7fa)); }
.management-award-title { display: flex; align-items: center; gap: 12px; }
.management-award-title img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.management-award-title > div { min-width: 0; }
.management-award-title p { margin: 3px 0 0; max-width: 58ch; font-size: 11px; color: var(--placeholder-color, #6b7280); }
.management-award-table td { padding: 10px 12px; }
.management-award-table td:last-child { white-space: nowrap; }
.management-award-table .community-button { min-height: 30px; padding: 4px 8px; font-size: 11px; }
.management-page .management-button--quiet { min-height: 30px; padding: 4px 9px; font-weight: 400; font-size: 11px; }
@media (max-width: 780px) {
    .management-user-grid, .management-cron-body { grid-template-columns: minmax(0, 1fr); }
    .management-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .management-job-state { flex-direction: column; align-items: flex-end; gap: 4px; }
}
@media (max-width: 640px) {
    .container:has(.community-page) { width: calc(100% - 2 * var(--site-gutter, 8px)); }
    .community-page { margin: 10px auto; }
    .community-page .community-card { padding: 14px; }
    .forum-page :is(.forum-category, .forum-topics, .forum-post) { padding: 0; }
    .management-nav > a { padding: 6px 8px; }
    .management-nav > .management-nav-back { margin-left: 0; }
    .management-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .management-stats > div { padding: 10px 12px; }
    .management-fields, .management-podium { grid-template-columns: minmax(0, 1fr); }
    .management-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .management-games > .management-game { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 10px; }
    .management-games > .management-game[aria-current] { padding: 9px; }
    .management-game-icon { grid-row: auto; text-align: left; }
    .management-cron > .management-job-heading { padding: 11px; gap: 8px; }
    .management-job-name { flex-basis: 130px; }
    .management-job-name strong { font-size: 12px; }
    .management-section-body { padding: 12px; }
    .management-catalog .community-table-wrap { border: 0; border-radius: 0; }
    .management-award-table, .management-award-table tbody { display: block; }
    .management-award-table thead { display: none; }
    .management-award-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px; margin-bottom: 8px; border: 1px solid var(--border-color, #d7dce3); border-radius: 6px; }
    .management-award-table td { display: block; border: 0; padding: 0; }
    .management-award-table td:first-child, .management-award-table td:last-child { grid-column: 1 / -1; }
    .management-award-table td:last-child { justify-self: end; }
}

/* Paid-coffee tiers keep the award picker readable inside narrow containers. */
.donation-tier-table th:first-child, .donation-tier-table td:first-child { width: 110px; }
.donation-tier-table td:nth-child(2) { min-width: 160px; }
@media (max-width: 600px) {
 .community-page .donation-tier-table thead { display: none; }
 .community-page .donation-tier-table tbody { display: block; }
 .community-page .donation-tier-table tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); padding: 12px; gap: 12px; border-bottom: 1px solid var(--border-color); }
 .community-page .donation-tier-table tr:last-child { border-bottom: 0; }
 .community-page .donation-tier-table td { display: block; width: auto; min-width: 0; padding: 0; border: 0; overflow-wrap: normal; }
 .community-page .donation-tier-table td:last-child { grid-column: 1 / -1; }
 .community-page .donation-tier-table label { font-size: 11px; }
 .community-page .donation-tier-table select { padding-left: 8px; padding-right: 8px; }
}

.staff-chart-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--community-gap,16px);margin-block:16px}.staff-chart-card,.staff-chart,.staff-chart-canvas{min-width:0;max-width:100%}.staff-chart-canvas svg{display:block;width:100%;height:auto;min-height:180px;overflow:hidden}.staff-chart-canvas text{fill:var(--body-color);font:13px var(--body-font-family,Arial,sans-serif)}.staff-chart-gridline{stroke:var(--border-color,#555);stroke-width:1;opacity:.6}.staff-chart-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.staff-chart-series{display:inline-flex;align-items:center;gap:8px}.staff-chart-series span{width:12px;height:12px;border-radius:3px}.staff-chart-series[aria-pressed=false]{opacity:.5}.staff-evidence{display:grid;gap:5px;margin-block:8px}.staff-evidence>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.staff-evidence dt{opacity:.75}.staff-evidence dd{margin:0}.staff-log-content{max-width:75ch;overflow-wrap:anywhere;line-height:1.5}.staff-log-content pre{white-space:pre-wrap;overflow-wrap:anywhere}.staff-log-content blockquote{margin:8px 0;padding:8px 12px;border-left:3px solid var(--border-color,#777)}
@media(max-width:600px){.staff-chart-canvas svg{min-height:155px}.staff-chart-canvas text{font-size:16px}}

.community-table-wrap>.staff-report-table{min-width:600px}

/* Keep investigative lists aligned, including long reasons and opened editors. */
.community-page .staff-investigation-table{table-layout:fixed;min-width:0}
.staff-investigation-table :is(th,td){vertical-align:top;overflow-wrap:anywhere;word-break:normal;padding:11px 9px}
.staff-investigation-table [data-report-column="actions"] .community-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.staff-investigation-table [data-report-column="actions"] :is(form,button){width:100%;margin:0}
.staff-investigation-table [data-report-column="actions"] button{padding:7px;font-size:11px;white-space:normal;overflow-wrap:anywhere}
.staff-investigation-table .staff-report-editor[hidden]{display:none!important}
.staff-investigation-table .staff-report-editor>td{padding:18px;background:var(--userbar-color)}
.staff-investigation-table .staff-report-editor textarea{min-height:85px}
.staff-investigation--suspicious [data-report-column="username"]{width:14%}
.staff-investigation--suspicious [data-report-column="reason"]{width:23%}
.staff-investigation--suspicious [data-report-column="visibility"]{width:13%}
.staff-investigation--suspicious [data-report-column="creator"]{width:12%}
.staff-investigation--suspicious :is([data-report-column="added"],[data-report-column="last_online"]){width:13%}
.staff-investigation--suspicious [data-report-column="actions"]{width:12%}
.staff-investigation--cheaters [data-report-column="username"]{width:12%}
.staff-investigation--cheaters [data-report-column="torrent"]{width:16%}
.staff-investigation--cheaters [data-report-column="signal"]{width:27%}
.staff-investigation--cheaters [data-report-column="seed_state_text"]{width:11%}
.staff-investigation--cheaters [data-report-column="account_growth_text"]{width:12%}
.staff-investigation--cheaters [data-report-column="last_report"]{width:10%}
.staff-investigation--cheaters [data-report-column="actions"]{width:12%}
.staff-investigation-table td[data-report-column="signal"] details{margin:10px 0 0;padding:8px;border-radius:4px}
@media(max-width:760px){
 .community-page .staff-investigation-table,.staff-investigation-table>tbody{display:block;width:100%;min-width:0}
 .staff-investigation-table>thead{display:none}
 .staff-investigation-table .staff-report-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px;border-bottom:1px solid var(--border-color)}
 .staff-investigation-table .staff-report-entry>td{display:block;width:auto;min-width:0;border:0;padding:0}
 .staff-investigation-table .staff-report-entry>td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:10px;font-weight:700;color:var(--placeholder-color)}
 .staff-investigation-table .staff-report-entry>:is([data-report-column="username"],[data-report-column="reason"],[data-report-column="torrent"],[data-report-column="signal"],[data-report-column="actions"]){grid-column:1/-1}
 .staff-investigation-table [data-report-column="actions"] .community-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-investigation-table .staff-report-editor{display:block}
 .staff-investigation-table .staff-report-editor>td{display:block;width:100%;border:0;padding:14px}
}

/* One compact navigation and consistent sections across the newer tools. */
.community-page .management-navigation{padding:0;margin:0 0 16px;border:1px solid var(--border-color);border-radius:5px;background:var(--surface-color,var(--userbar-color,#fff))}
.community-page .management-navigation>summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:11px 14px;margin:0;list-style:revert}
.management-navigation summary>span{opacity:.75;font-size:11px}.management-navigation summary>strong{font-size:12px}.management-navigation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:16px}.management-navigation-grid h3{font-size:12px;margin:0 0 10px}.management-navigation-grid nav{display:grid;gap:3px}.management-navigation-grid a{display:block;padding:6px 7px;text-decoration:none;border-radius:4px;overflow-wrap:anywhere}.management-navigation-grid a[aria-current]{background:var(--userbar-color);font-weight:bold}.management-navigation>.community-button{margin:0 16px 16px}
.community-page .staff-filter-panel{padding:0}.community-page .staff-filter-panel>summary{padding:12px 16px;margin:0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.staff-filter-panel summary>span{font-size:11px;font-weight:normal}.staff-filter-panel>form{padding:4px 16px 16px}.staff-reports>.community-card,.staff-reports>.staff-filter-panel{margin-bottom:18px}
.staff-list-note{margin:0 0 14px;line-height:1.5;max-width:85ch}.staff-list-wrap{border-radius:5px}.community-page .staff-compact-table{width:100%;table-layout:fixed;min-width:0}.staff-compact-table th:first-child{width:32%}.staff-compact-table th:nth-child(2){width:25%}.staff-compact-table th:nth-child(3){width:27%}.staff-compact-table th:nth-child(4){width:16%}.community-page .staff-compact-table :is(th,td){padding:14px 12px;vertical-align:top;overflow-wrap:anywhere}.staff-compact-table .staff-row-name{display:block;font-weight:bold;font-size:13px;margin-bottom:6px}.staff-row-subject{display:block;line-height:1.5;margin-bottom:7px}.staff-compact-table small{display:block;margin-top:5px;line-height:1.5}.staff-compact-table .community-tag{display:inline-block;margin-top:7px;font-size:10px}.staff-compact-table .staff-detail-button{width:100%;min-height:36px;padding:8px;font-size:11px}.staff-report-expanded[hidden]{display:none!important}.staff-report-expanded>td{padding:20px!important;background:var(--userbar-color)}.staff-expanded-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.staff-expanded-heading h3{margin:0}.staff-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.staff-detail-grid h4{margin:0 0 12px}.staff-evidence>div{gap:8px;padding:5px 0;border-bottom:1px solid var(--border-color)}.staff-evidence dd{max-width:65%;text-align:right;overflow-wrap:anywhere}.community-page .staff-log-details{padding:12px;margin:18px 0;background:var(--surface-color,var(--userbar-color,#fff));border-radius:5px}.staff-review-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}.staff-action-note{font-size:11px;line-height:1.5;max-width:100ch}.staff-row-metrics{margin:0;display:grid;gap:7px}.staff-row-metrics>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.staff-row-metrics dt{opacity:.75;font-size:11px}.staff-row-metrics dd{margin:0;text-align:right;overflow-wrap:anywhere}.staff-current-state{opacity:.8}
@media(max-width:900px){.management-navigation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.management-navigation-grid{grid-template-columns:minmax(0,1fr);gap:16px}.staff-detail-grid{grid-template-columns:minmax(0,1fr);gap:18px}.community-page .staff-compact-table,.staff-compact-table>tbody{display:block;width:100%}.staff-compact-table>thead{display:none}.staff-compact-table .staff-report-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border-bottom:1px solid var(--border-color)}.community-page .staff-compact-table .staff-report-entry>td{display:block;width:auto;min-width:0;border:0;padding:0}.staff-compact-table .staff-report-entry>td::before{content:attr(data-label);display:block;font-size:10px;opacity:.75;margin-bottom:7px}.staff-compact-table .staff-report-entry>td:first-child,.staff-compact-table .staff-report-entry>td:last-child{grid-column:1/-1}.staff-compact-table .staff-report-expanded{display:block}.staff-compact-table .staff-report-expanded>td{display:block;width:100%;padding:16px!important;border:0}.staff-compact-table .staff-detail-button{width:auto;min-width:110px}.staff-review-actions>form,.staff-review-actions button{width:100%}.staff-evidence>div{display:block}.staff-evidence dd{max-width:none;text-align:left;margin-top:4px}}

.management-navigation>summary::after,.staff-filter-panel>summary::after{content:"⌄";font-size:16px;line-height:1;opacity:.7}.management-navigation[open]>summary::after,.staff-filter-panel[open]>summary::after{content:"⌃"}.management-navigation summary>strong,.staff-filter-panel>summary::after{margin-left:auto}

.seed-activity-summary progress { width: 100%; height: 12px; accent-color: var(--community-accent, #55b77a); }
.management-page .seed-obligations-table { table-layout: fixed; min-width: 0; }
.seed-obligations-table th:first-child { width: 30%; }
.seed-obligations-table td { overflow-wrap: anywhere; vertical-align: top; }
.seed-obligations-table td small { display: block; margin-top: 5px; color: var(--community-muted, #999); }
.seed-redemption summary { cursor: pointer; margin-top: 8px; }
.seed-redemption form { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) {
 .seed-obligations-table, .seed-obligations-table tbody, .seed-obligations-table tr, .seed-obligations-table td { display: block; width: 100%; box-sizing: border-box; }
 .seed-obligations-table thead { display: none; }
 .seed-obligations-table tr { border-bottom: 1px solid var(--community-border, #444); padding: 10px 0; }
 .seed-obligations-table td { border: 0; padding: 7px 12px; }
 .seed-obligations-table td::before { content: attr(data-label); display: block; font-weight: 600; margin-bottom: 5px; }
}

.staff-group-dismiss { margin-top: 9px; }
.staff-group-dismiss button { width: 100%; padding: 8px; font-size: 11px; }
.staff-expanded-heading { flex-wrap: wrap; }
.staff-expanded-heading h3 { min-width: 0; flex: 1 1 160px; }
.staff-expanded-heading > button { flex: 0 0 auto; white-space: nowrap; }
.seed-price-formula { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }

.management-page .seed-redemption { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; margin: 0; }
.management-page .seed-redemption summary { padding: 4px 0; margin: 0; font-size: 12px; font-weight: 600; }
.management-page .seed-redemption form { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.management-page .seed-redemption button { width: auto; min-height: 28px; padding: 4px 8px; font-size: 11px; line-height: 1.4; }

.management-page .ranking-points small { display:block; font-size:12px; margin-top:4px; }
.management-page .ranking-components { table-layout:fixed; }
.management-page .ranking-components th:first-child { width:50%; }
.management-page .ranking-components th:nth-child(2) { width:28%; }
.management-page .ranking-components th:nth-child(3) { width:22%; }
.management-page .ranking-components th,.management-page .ranking-components td { padding:10px 8px; }
.management-page .ranking-components th:not(:first-child),.management-page .ranking-components td:not(:first-child) { white-space:nowrap; word-break:normal; font-variant-numeric:tabular-nums; }

/* Grouped cheater summaries are single-column cards on phones. */
@media(max-width:680px){
 .community-page .staff-compact-table[data-staff-user-cases] .staff-report-entry{grid-template-columns:minmax(0,1fr);gap:14px}
 .community-page .staff-compact-table[data-staff-user-cases] .staff-report-entry>td{grid-column:1/-1;width:100%;max-width:100%;box-sizing:border-box;min-width:0}
 .community-page .staff-compact-table[data-staff-user-cases] :is(.staff-row-subject,small,a,strong){max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal}
 .community-page .staff-compact-table[data-staff-user-cases] .staff-detail-button{width:100%;min-height:42px}
 .community-page .staff-compact-table[data-staff-user-cases] .staff-group-dismiss{display:block;width:100%;margin:8px 0 0}
 .community-page .staff-compact-table[data-staff-user-cases] .staff-group-dismiss button{width:100%;min-height:42px;white-space:normal}
}

/* Readable forum activity details and responsive automation settings. */
.forum-page .forum-last{font-size:14px;line-height:1.55}
.forum-page .forum-last-topic{font-size:15px}
.forum-page .forum-last-forum{font-size:13px;opacity:1}
.forum-page .forum-last>time{font-size:13px;font-variant-numeric:tabular-nums}
.forum-automation-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:900px}
.forum-automation-form>label{display:flex;flex-direction:column;gap:7px;min-width:0}
.forum-automation-form :is(input[type=number],select){width:100%;box-sizing:border-box;min-height:44px}
.forum-automation-form .forum-automation-check{flex-direction:row;align-items:center;min-height:44px}
.forum-automation-form>.community-actions{grid-column:1/-1;margin:0}
.forum-automation-rules>article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--border-color,#34383f);overflow-wrap:anywhere}
.forum-automation-rules>article:last-child{border:0}
.forum-automation-rules p{margin:6px 0 0}
@media(max-width:600px){.forum-automation-form{grid-template-columns:1fr}.forum-automation-rules>article{align-items:flex-start;flex-wrap:wrap}.forum-page .forum-last{font-size:14px}.forum-page .forum-last-topic{font-size:15px}.forum-page .forum-last-forum{font-size:13px}}

/* Readable shared headings; mobile card tables keep their existing hidden thead. */
.community-page:not(.forum-page) table > thead > tr > th {
    padding: 14px 15px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    vertical-align: bottom;
    border-bottom: 2px solid var(--border-color, #d6dbe2);
}
.community-page .api-keys-table { min-width: 860px; table-layout: fixed; }
.api-keys-table th:first-child { width: 27%; }
.api-keys-table th:nth-child(2) { width: 16%; }
.api-keys-table th:nth-child(3), .api-keys-table th:nth-child(4) { width: 19%; }
.community-page .api-keys-table td { vertical-align: top; overflow-wrap: anywhere; }
.api-keys-table small { display: block; margin-top: 7px; line-height: 1.55; }
.api-keys-table td > form { margin-top: 10px; }
.api-key-editor-row[hidden] { display: none !important; }
.community-page .api-key-editor-row > td { padding: 22px; background: var(--userbar-color); }
.api-key-editor-row h3 { margin: 0 0 18px; }
@media (max-width: 680px) {
    .community-page:not(.forum-page) table > thead > tr > th { padding: 12px; }
}

@media (max-width: 680px) {
    .community-page .api-keys-table, .api-keys-table > tbody { display: block; min-width: 0; width: 100%; }
    .api-keys-table > thead { display: none; }
    .api-keys-table .api-key-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 16px; border-bottom: 1px solid var(--border-color); }
    .community-page .api-key-entry > td { display: block; min-width: 0; padding: 0; border: 0; }
    .api-key-entry > td:first-child, .api-key-entry > td:last-child { grid-column: 1 / -1; }
    .api-key-entry > td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; opacity: .75; }
    .api-keys-table .api-key-editor-row { display: block; }
    .community-page .api-key-editor-row > td { display: block; width: 100%; padding: 16px; }
}

/* Wide screens use compact rows for navigation and repeated content. */
@media(min-width:768px){
 .staff-options-grid>.staff-option{border:0;border-bottom:1px solid var(--border-color);border-radius:0;background:transparent}
 .staff-options-grid>.staff-option:last-child{border-bottom:0}
 .staff-page .staff-option-main>div{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,3fr);gap:16px;align-items:center;flex:1}
 .staff-option-main small{margin:0}
 .community-page .staff-options-grid,.community-page .community-grid{grid-template-columns:minmax(0,1fr);gap:0;border-block:1px solid var(--border-color)}
 .community-page .community-grid>.community-card,.community-page .staff-options-grid>a{margin:0;border:0;border-bottom:1px solid var(--border-color);border-radius:0;box-shadow:none;padding:14px 16px}
 .community-page .community-grid>.community-card:last-child,.community-page .staff-options-grid>a:last-child{border-bottom:0}
 .community-page .staff-options-grid>a{display:flex;align-items:center;gap:16px}
 .community-page .staff-options-grid>a p{margin:0}
 .community-page .staff-options-grid>a h3{min-width:220px}
}
.seed-list-heading {
    flex-wrap: wrap;
    gap: 10px;
}
.seed-list-heading > div, .seed-list-views {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
body.site-reimagined .seed-list-views a[aria-current=page] {
    background: var(--ht-accent-soft);
    color: var(--ht-color-accent);
}
.management-page .seed-obligations-table--compact td {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.35;
    vertical-align: middle;
}
.seed-obligations-table--compact td .seed-list-extra { display: none; }
.seed-obligations-table--compact td small { margin-top: 2px; }
.seed-obligations-table--compact td:first-child > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 760px) {
    .management-page .seed-obligations-table--compact tr {
        display: grid;
        grid-template-columns: minmax(0,.65fr) minmax(0,1fr) minmax(0,1.35fr);
        gap: 4px 10px;
        padding: 8px 10px;
    }
    .management-page .seed-obligations-table--compact td { min-width: 0; padding: 0; }
    .seed-obligations-table--compact td:first-child,
    .seed-obligations-table--compact td:last-child { grid-column: 1 / -1; }
    .seed-obligations-table--compact td::before { font-size: 10px; margin-bottom: 2px; }
    .seed-obligations-table--compact :is(td:first-child,td:last-child)::before { content: none; }
}
