/* The forum (functions/community, backend/lib/communityPages.js; Report.md 7.41). A Discourse-like layout in the site's colours and type:
   top bar, sidebar, topic table, composer drawer. Light and dark follow the system. No inline styles (the CSP forbids them): colours are classes. */
:root {
    --bg: #faf9f6; --surface: #ffffff; --raise: #f3f1ec; --ink: #141821; --dim: #5d6573; --faint: #8a919d; --line: #e4e1da;
    --accent: #1e40af; --accent-ink: #ffffff; --accent-weak: #e8edfb; --hot: #c2410c; --warn: #b45309; --danger: #b42318;
    --serif: "STIX Two Text", "Times New Roman", Times, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --top: 60px; --side: 248px; --radius: 10px;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #101319; --surface: #171b23; --raise: #1d222c; --ink: #e9ecf1; --dim: #a1a9b6; --faint: #737c8a; --line: #262c37;
        --accent: #8fb0ff; --accent-ink: #0f1218; --accent-weak: #1b2542; --hot: #f59e5b; --warn: #f2b35b; --danger: #ff8a7a; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
svg { flex: none; }
.c-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.c-skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.c-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.c-btn:hover { border-color: var(--accent); }
.c-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-btn.primary:hover { filter: brightness(1.08); }
.c-btn.ghost { background: transparent; }
.c-btn:disabled { opacity: .55; cursor: default; }
.c-btn.ok { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.c-btn.danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--danger); }
.c-btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.c-btn.danger-text { color: var(--danger); border-color: transparent; }
.c-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- top bar */
.c-top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 20px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.c-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.c-logo img { display: block; height: 23px; width: auto; }
.c-logo-word { font-weight: 700; color: var(--hot); font-size: 16px; letter-spacing: -.01em; padding-left: 10px; border-left: 1px solid var(--line); }
.c-search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; }
.c-search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.c-search input { width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.c-account { display: flex; align-items: center; gap: 10px; flex: none; }
.c-me { display: block; border-radius: 50%; text-decoration: none !important; }
.c-burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 9px 9px; flex-direction: column; justify-content: space-between; }
.c-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------------------------------------------------------- layout and sidebar */
.c-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.c-side { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; padding: 18px 12px 24px 16px; border-right: 1px solid var(--line); }
.c-side-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 15px; text-decoration: none !important; }
.c-side-link:hover { background: var(--raise); }
.c-side-link.on { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.c-side-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.c-side-head { margin: 20px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.c-side-fine { margin: 22px 10px 0; font-size: 12.5px; color: var(--faint); }
.c-side-fine a { color: var(--faint); }
.c-count.quiet { background: var(--raise); color: var(--dim); }
.c-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; text-align: center; }
.c-sq { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--cat); flex: none; }
.c-main { min-width: 0; padding: 22px 28px 120px; }

/* ---------------------------------------------------------------- category colours */
.c-cat-announcements { --cat: #d6453d; } .c-cat-help { --cat: #12a594; } .c-cat-ideas { --cat: #e5488f; } .c-cat-show { --cat: #8b5cf6; } .c-cat-bugs { --cat: #e8743b; } .c-cat-other { --cat: #7d8590; }
.c-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; text-decoration: none !important; }
.c-chip i { width: 10px; height: 10px; border-radius: 2px; background: var(--cat); }
.c-chip:hover { color: var(--ink); }

/* ---------------------------------------------------------------- avatars (a letter, a colour from the handle) */
.c-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; flex: none; user-select: none;
    background: var(--av); box-shadow: 0 0 0 2px var(--bg); }
.c-av.lg { width: 40px; height: 40px; font-size: 17px; box-shadow: none; }
.c-av.sm { width: 20px; height: 20px; font-size: 11px; box-shadow: none; }
.c-av-0 { --av: #e0603a; } .c-av-1 { --av: #2f8f5b; } .c-av-2 { --av: #3d6fd6; } .c-av-3 { --av: #b5487e; } .c-av-4 { --av: #8a5ad6; } .c-av-5 { --av: #c28a1c; }
.c-av-6 { --av: #1c9aa8; } .c-av-7 { --av: #d14e4e; } .c-av-8 { --av: #5a8a2a; } .c-av-9 { --av: #6b6fd1; } .c-av-10 { --av: #c45a1c; } .c-av-11 { --av: #3f8bb5; }
.c-av-x { --av: #8a919d; }

/* ---------------------------------------------------------------- headings, tabs, notes */
.c-pagehead h1, .c-cathead h1, .c-threadhead h1, .c-empty h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 4px; }
.c-pagehead h1, .c-cathead h1 { font-size: 30px; }
.c-pagehead p, .c-cathead p { margin: 0; color: var(--dim); }
.c-pagehead, .c-cathead { margin: 4px 0 16px; }
.c-cathead { padding-left: 14px; border-left: 5px solid var(--cat); }
.c-cathead h1 { display: flex; align-items: center; gap: 10px; }
.c-cathead h1 .c-sq { display: none; }
.c-tabs { display: flex; gap: 4px; margin: 0 0 4px; border-bottom: 1px solid var(--line); }
.c-tab { padding: 9px 14px; color: var(--dim); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; }
.c-tab:hover { color: var(--ink); }
.c-tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.c-note { padding: 10px 14px; margin: 0 0 14px; border-radius: var(--radius); background: var(--accent-weak); color: var(--ink); }
.c-note.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); }
.c-muted { color: var(--faint); }
.c-empty { text-align: center; padding: 48px 16px; color: var(--dim); }
.c-empty strong { color: var(--ink); font-size: 17px; }
.c-pager { display: flex; justify-content: space-between; margin: 18px 0; }

/* ---------------------------------------------------------------- pinned cards */
.c-featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 22px; }
.c-card { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none !important; min-height: 100px; }
.c-card:hover { border-color: var(--accent); }
.c-card-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.c-card-by { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- the topic table */
.c-table { width: 100%; border-collapse: collapse; }
.c-table th { text-align: left; font-size: 13.5px; font-weight: 500; color: var(--dim); padding: 12px 10px 10px; border-bottom: 2px solid var(--line); }
.c-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.c-table tr:hover td { background: color-mix(in srgb, var(--raise) 55%, transparent); }
.c-table .c-num { text-align: center; width: 76px; color: var(--dim); font-size: 15px; font-variant-numeric: tabular-nums; }
.c-table .c-num.hot { color: var(--hot); font-weight: 700; }
.c-table .c-act a { color: var(--dim); }
.c-topic { min-width: 0; }
.c-title { display: block; color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none !important; }
.c-title:hover { color: var(--accent); }
.c-title:visited { color: color-mix(in srgb, var(--ink) 72%, var(--bg)); }
.c-ico { width: 15px; height: 15px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-right: 6px; }
.c-under { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.c-by { color: var(--faint); font-size: 13px; }
td.c-people, th.c-people { width: 170px; text-align: right; white-space: nowrap; }
td.c-people .c-av + .c-av { margin-left: -6px; }

/* ---------------------------------------------------------------- the categories page */
.c-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.c-cats td { padding: 16px 14px; }
.c-catcell { border-left: 4px solid var(--cat); }
.c-catname { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none !important; }
.c-catname .c-sq { display: none; }
.c-catcell p { margin: 4px 0 0; color: var(--dim); font-size: 14.5px; }
.c-cats .c-num { white-space: nowrap; width: 96px; }
.c-cats .c-num b { color: var(--ink); font-size: 16px; }
.c-cats .c-num small { color: var(--faint); font-size: 12.5px; }
.c-latest h2 { font-size: 13.5px; font-weight: 500; color: var(--dim); margin: 0; padding: 12px 0 10px; border-bottom: 2px solid var(--line); }
.c-latest ul { list-style: none; margin: 0; padding: 0; }
.c-latest li a { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.c-latest li a:hover .c-lt-title { color: var(--accent); }
.c-lt { flex: 1; min-width: 0; }
.c-lt-title { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.c-lt-num { display: flex; flex-direction: column; align-items: flex-end; color: var(--faint); font-size: 13px; }
.c-lt-num b { color: var(--dim); font-size: 15px; }

/* ---------------------------------------------------------------- a thread */
.c-threadhead { margin: 4px 0 14px; }
.c-threadhead h1 { font-size: 28px; overflow-wrap: anywhere; }
.c-thread { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: start; }
.c-posts { display: flex; flex-direction: column; max-width: 820px; }
.c-post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 12px 0; position: relative; }
/* The replies as a tree (like Reddit): a rail runs down from a post's avatar to its replies, each joined by a curved elbow. */
:root { --rail: color-mix(in srgb, var(--line) 70%, var(--faint)); }
.c-op { padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.c-replies-head { margin: 10px 0 2px; color: var(--faint); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.c-node { position: relative; }
.c-node.has-kids > .c-post::after { content: ""; position: absolute; left: 19px; top: 58px; bottom: 0; border-left: 2px solid var(--rail); }
.c-kids { position: relative; margin-left: 19px; padding-left: 25px; }
.c-kids > .c-node::before { content: ""; position: absolute; left: -25px; top: 0; width: 22px; height: 32px; border-left: 2px solid var(--rail); border-bottom: 2px solid var(--rail); border-bottom-left-radius: 14px; }
.c-kids > .c-node:not(:last-child)::after { content: ""; position: absolute; left: -25px; top: 0; bottom: 0; border-left: 2px solid var(--rail); }
.c-node.has-kids > .c-post:hover::after, .c-kids:hover > .c-node::before { border-color: color-mix(in srgb, var(--accent) 50%, var(--rail)); }
.c-fold { position: absolute; z-index: 1; left: 9px; bottom: 6px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.c-fold:hover { color: var(--ink); }
.c-fold svg, .c-unfold svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.c-node.folded > .c-kids { display: none; }
.c-node.folded > .c-post::after { display: none; }
.c-node.folded > .c-post .c-fold { display: none; }
.c-unfold { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px 9px; padding: 2px 10px 2px 0; border: 0; background: transparent; color: var(--dim); font: 600 14px var(--sans); cursor: pointer; }
.c-unfold:hover { color: var(--accent); }
.c-node.folded > .c-unfold { display: inline-flex !important; }
.c-post.dim .c-body { opacity: .75; }
.c-anchor { display: block; height: 0; }
.c-post.flash { background: linear-gradient(90deg, var(--accent-weak), transparent 70%); transition: background 1s; }
.c-post header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.c-post header strong { font-size: 15px; }
.c-when { margin-left: auto; color: var(--faint); font-size: 13.5px; display: inline-flex; gap: 6px; }
.c-edited { color: var(--faint); }
.c-body { font-size: 16px; line-height: 1.65; }
.c-body p { margin: 8px 0; overflow-wrap: anywhere; }
.c-placeholder { color: var(--faint); font-style: italic; }
.c-reason { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); font-size: 14px; }
.c-tag { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--accent-weak); color: var(--accent); }
.c-tag.warn { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }
.c-staff { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--hot); color: #fff; }
.c-share { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); color: var(--ink); text-decoration: none !important; }
.c-share:hover { border-color: var(--accent); }
.c-share-play { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.c-share b { display: block; font-size: 15px; }
.c-share small { display: block; color: var(--faint); font-size: 12.5px; }
.c-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-top: 6px; }
.c-actions button, .c-modbar button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; }
.c-actions button:hover, .c-modbar button:hover { background: var(--raise); color: var(--ink); }
.c-actions button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-actions button.m { color: var(--hot); }
.c-modbar { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; padding: 6px 10px; border-radius: var(--radius); background: color-mix(in srgb, var(--hot) 10%, var(--surface)); }
.c-modbar button.warn { color: var(--hot); }
.c-modbar .c-move { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); }
.c-modbar .c-move select { font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.c-modbar span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hot); margin-right: 8px; }
.c-stats { position: sticky; top: calc(var(--top) + 20px); border-left: 2px solid var(--line); padding-left: 16px; }
.c-stats dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.c-stats dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.c-stats dd { margin: 0; font-weight: 700; font-size: 15px; }
.c-stats .c-people { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0; }
.c-replybar { max-width: 820px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; }
.c-replyto { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: 999px; background: var(--raise); color: var(--dim); font-size: 13px; text-decoration: none !important; }
.c-replyto:hover { color: var(--ink); }
.c-replyto svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-replyto.gone { font-style: italic; }
.c-actlink { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 7px; color: var(--faint); font-size: 14px; text-decoration: none !important; }
.c-actlink:hover { background: var(--raise); color: var(--ink); }
.c-actlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-actions button:disabled { cursor: default; color: var(--faint); opacity: .7; background: transparent; }
.c-ask { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--raise); }
.c-ask label { font-weight: 600; font-size: 14px; }
.c-ask textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; resize: vertical; }
.c-ask div { display: flex; gap: 8px; }
.c-error { margin: 0; color: var(--danger); font-weight: 600; font-size: 14px; }
.c-rules { max-width: 760px; padding-left: 22px; }
.c-rules li { margin: 0 0 12px; }

/* ---------------------------------------------------------------- the composer (slides up from the bottom) */
.c-composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; pointer-events: none; }
.c-composer-in { pointer-events: auto; width: min(960px, 100%); display: grid; gap: 10px; padding: 12px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
    border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); border-top: 4px solid var(--accent); animation: c-up .18s ease-out; }
@keyframes c-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .c-composer-in { animation: none; } }
.c-composer-head { display: flex; align-items: center; gap: 10px; }
.c-composer-head strong { font-size: 15px; }
.c-composer-mode { display: inline-flex; align-items: center; gap: 6px; }
.c-composer-mode svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.c-composer-target { color: var(--dim); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-composer-quote { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--raise); font-size: 14px; color: var(--dim); }
.c-composer-quote b { color: var(--ink); margin-right: 6px; }
.c-composer-as { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; margin-left: 4px; }
.c-composer-as .c-av { width: 22px; height: 22px; font-size: 11px; box-shadow: none; }
.c-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
.c-x:hover { background: var(--raise); color: var(--ink); }
.c-composer-thread { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 10px; }
.c-composer input, .c-composer select, .c-composer textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.c-composer input:focus, .c-composer select:focus, .c-composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.c-title-in { font-size: 16px !important; font-weight: 600; }
.c-composer textarea { min-height: 180px; max-height: 50vh; resize: vertical; line-height: 1.55; }
.c-field { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.c-field small { font-weight: 400; color: var(--faint); margin-left: 6px; }
.c-field-name { grid-template-columns: auto minmax(0, 260px); align-items: center; gap: 10px; }
.c-composer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-composer-fine { color: var(--faint); font-size: 13px; margin-left: 6px; }
body.composing .c-main { padding-bottom: 420px; }

/* ---------------------------------------------------------------- the moderators' queue */
.c-tab .c-count { margin-left: 6px; font-size: 11.5px; padding: 1px 7px; }
.c-mlist { display: grid; gap: 14px; margin-top: 16px; max-width: 900px; }
.c-mcard { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; }
.c-mcard.is-hidden { border-style: dashed; }
.c-mcard > header { display: flex; gap: 12px; align-items: flex-start; }
.c-mwho { flex: 1; min-width: 0; }
.c-mwho p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-mwhere { color: var(--dim); font-size: 14px; margin-top: 2px !important; }
.c-mtime { margin-left: auto; font-size: 13px; }
.c-badge { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--raise); color: var(--dim); }
.c-badge.new { background: var(--accent-weak); color: var(--accent); }
.c-badge.stop { background: color-mix(in srgb, var(--danger) 15%, var(--surface)); color: var(--danger); }
.c-mquote { margin: 12px 0 0 52px; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--raise); border-radius: 0 10px 10px 0; font-size: 15.5px; line-height: 1.6; }
.c-mquote p { margin: 4px 0; overflow-wrap: anywhere; }
.c-mreports { list-style: none; margin: 10px 0 0 52px; padding: 0; display: grid; gap: 4px; }
.c-mreports li { padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); font-size: 14px; }
.c-mreason { font-weight: 600; }
.c-mcard .c-reason { margin-left: 52px; }
.c-mactions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 52px; }
.c-mmembers { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; max-width: 900px; }
.c-mmembers li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.c-mmembers li div { flex: 1; min-width: 0; }
.c-mmembers p { margin: 2px 0 0; }
.c-empty.small { padding: 36px 16px; }
.c-mcard .c-ask { margin-left: 52px; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1080px) { .c-thread { grid-template-columns: minmax(0, 1fr); } .c-stats { display: none; } .c-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
    .c-shell { grid-template-columns: minmax(0, 1fr); }
    .c-burger { display: flex; }
    .c-side { position: fixed; z-index: 25; left: 0; top: var(--top); width: min(300px, 86vw); background: var(--bg); box-shadow: 8px 0 30px rgba(0, 0, 0, .2); transform: translateX(-105%); transition: transform .18s; }
    body.side-open .c-side { transform: none; }
    .c-main { padding: 16px 16px 120px; }
    td.c-people, th.c-people { display: none; }
}
@media (max-width: 640px) {
    .c-top { gap: 10px; padding: 0 12px; }
    .c-logo-word, .c-logo img { display: none; }
    .c-logo::before { content: ""; width: 30px; height: 30px; background: url("/img/favicon.svg") center / contain no-repeat; }
    .c-account .c-btn.primary { padding: 8px 12px; font-size: 15px; }
    .c-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .c-featured { display: none; }
    .c-table .c-views, .c-table th.c-views { display: none; }
    .c-table .c-num { width: 54px; }
    .c-title { font-size: 15.5px; }
    .c-composer-thread { grid-template-columns: minmax(0, 1fr); }
    .c-composer textarea { min-height: 140px; }
    .c-composer-as, .c-composer-fine { flex-basis: 100%; margin-left: 0; }
    .c-mquote, .c-mreports, .c-mactions, .c-mcard .c-reason, .c-mcard .c-ask { margin-left: 0; }
    .c-replybar .c-muted { display: none; }
    .c-kids { margin-left: 13px; padding-left: 14px; }
    .c-kids > .c-node::before, .c-kids > .c-node:not(:last-child)::after { left: -14px; width: 12px; }
    .c-kids .c-post { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
    .c-kids .c-av.lg { width: 32px; height: 32px; font-size: 14px; }
    .c-pagehead h1, .c-cathead h1 { font-size: 25px; }
}
