/* playmeasures.com/forums/: on top of /site.css (same colours, fonts and form fields).
   Phase 1 (Nov 2026): Reddit-style cards with votes, a sidebar, forum-style posts with an author
   column, reactions and a Markdown editor. Colours only from site.css tokens, plus the avatar and
   tag palettes below, which read on both themes. No inline styles anywhere (the CSP forbids them).
   Forums identity "Mixing desk" (F15, Nov 2026): an LED level meter in place of votes, Gain and
   Mute buttons, LED dots, a channel-strip sidebar and liner notes, in the site's own palette. The
   LED colours below are the only additions; each passes 3:1 against the panels in both themes. */
:root {
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --led-green: #4fd27a; --led-amber: #f0b43c; --led-red: #f0625a; --led-off: #2d3336; --led-glow: 6px;
  --groove: #121617; --groove-line: #2a3033; --shadow-soft: 0 10px 28px rgba(0, 0, 0, .28);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --led-green: #168a47; --led-amber: #b07800; --led-red: #c9302b; --led-off: #d3dcdc; --led-glow: 0px; --groove: #e3e9e9; --groove-line: #cfd8d9; --shadow-soft: 0 6px 18px rgba(20, 40, 45, .08); }
}
:root[data-theme="light"] { --led-green: #168a47; --led-amber: #b07800; --led-red: #c9302b; --led-off: #d3dcdc; --led-glow: 0px; --groove: #e3e9e9; --groove-line: #cfd8d9; --shadow-soft: 0 6px 18px rgba(20, 40, 45, .08); }

main.forum { max-width: 1180px; padding-top: 22px; }
main.forum h1 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -.6px; margin: 4px 0 8px; }
main.forum h1:focus { outline: none; }
.forum-state { color: var(--muted); padding: 18px 0; }
.forum-state.error { color: var(--warn-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lede { font-size: 17px; color: var(--muted); margin-bottom: 6px; }

/* Account line above every view */
.forum-account { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--muted); min-height: 28px; margin: -8px 0 6px; }
.forum-account .who { font-weight: 600; }
.acct-me { display: inline-flex; align-items: center; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
a.quiet { color: var(--muted); font-size: 14px; }
a.quiet:hover { color: var(--accent); }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; color: var(--muted); }
.crumbs li { margin: 0; min-width: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--muted); }
.crumbs span { color: var(--muted); }

.meta { color: var(--muted); font-size: 14px; margin: 0; }
.who { color: var(--ink); font-weight: 600; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--current); color: var(--current-ink); border: 1px solid var(--tip-line); white-space: nowrap; }
.badge.muted { background: var(--panel-2); color: var(--muted); border-color: var(--border); }
.badge.new { background: var(--primary); color: var(--primary-ink); border-color: var(--primary-line); }
.badge.role.team { background: var(--primary); color: var(--primary-ink); border-color: var(--primary-line); }
.btn.small { padding: 6px 12px; font-size: 14px; border-radius: 999px; }
.btn.block { display: block; width: 100%; }
.dot { color: var(--muted); }

/* Layout: the list or thread, and a sidebar on wide screens */
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.forum-main { min-width: 0; }
.forum-side { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1000px) {
  .forum-layout { grid-template-columns: minmax(0, 1fr) 312px; gap: 28px; }
}
.page-head { margin-bottom: 4px; }
.page-head .lede { margin-bottom: 0; }
.feed-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.6px; color: var(--eyebrow); margin: 22px 0 8px; }
.board-banner { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px 12px; margin: 0 0 14px; position: relative; overflow: hidden; }
.board-banner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.board-banner .eyebrow { margin-top: 6px; }

.side-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.side-card p { margin: 0 0 10px; }
.side-card p:last-child { margin-bottom: 0; }
.side-card .btn { margin-top: 4px; }
.side-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--eyebrow); margin: 0 0 10px; }
.rules { margin: 0 0 10px; padding-left: 20px; font-size: 14px; }
.rules li { margin: 4px 0; }
/* The board's channel strip: scribble strip (number and name), readouts, house rules, lit button */
.strip { padding: 0; overflow: hidden; }
.strip-scribble { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 16px 13px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.strip-scribble::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.strip-ch { font: 700 11px/1 var(--mono); letter-spacing: .8px; color: var(--eyebrow); border: 1px solid var(--border); background: var(--groove); border-radius: 3px; padding: 4px 6px; flex: none; }
.strip-name { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.strip-desc { padding: 12px 16px 0; font-size: 15px; line-height: 1.5; }
.side-card .strip-desc { margin: 0; }
.strip-readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 16px 0; }
.readout { background: var(--groove); border: 1px solid var(--groove-line); border-radius: 5px; padding: 6px 10px 7px; }
.readout dt { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 2px 0 0; font: 700 18px/1.1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.strip-rules { margin: 14px 16px 0; padding-top: 12px; border-top: 1px solid var(--border); }
.strip-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: var(--eyebrow); margin: 0 0 4px; }
.strip-rules .rules { margin-bottom: 8px; }
.strip-foot { padding: 14px 16px 16px; }
.side-card .strip-foot .btn { margin-top: 0; }

/* Boards (sidebar directory) */
h3.board-group { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 14px 0 4px; }
h3.board-group:first-of-type { margin-top: 0; }
.boards, .cards, .posts { list-style: none; padding: 0; margin: 0; }
.board { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 6px; }
.board-link { display: block; flex: 1; min-width: 0; padding: 5px 8px; margin-left: -8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.board-link:hover { background: var(--button-hover); color: var(--accent); }
.board-count { font: 600 12px/1.6 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); background: var(--panel-2); border-radius: 4px; padding: 0 7px; min-width: 26px; text-align: center; }

/* Sort tabs and list tools */
.list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; padding: 5px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.sort-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; padding: 0; margin: 0; }
.sort-tabs li { margin: 0; }
.sort-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sort-tab:hover { background: var(--button-hover); color: var(--ink); }
.sort-tab[aria-current] { background: var(--current); color: var(--current-ink); box-shadow: inset 0 0 0 1px var(--tip-line); }
.tab-led { width: 6px; height: 6px; border-radius: 50%; background: var(--led-off); flex: none; }
.sort-tab[aria-current] .tab-led { background: var(--led-red); box-shadow: 0 0 var(--led-glow) var(--led-red); }
.list-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini-select { font: 600 13px var(--sans); color: var(--ink); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; }
.view-toggle { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.view-toggle:hover { color: var(--ink); background: var(--button-hover); }
.view-toggle[aria-pressed="true"] { color: var(--current-ink); background: var(--current); border-color: var(--tip-line); }

/* Icons drawn in CSS (no images, no icon font) */
.ic { display: inline-block; width: 14px; height: 14px; position: relative; flex: none; }
.ic-reply { border: 2px solid currentColor; border-radius: 4px 4px 4px 0; height: 11px; }
.ic-rows::before, .ic-rows::after { content: ""; position: absolute; left: 1px; right: 1px; height: 2px; background: currentColor; border-radius: 1px; }
.ic-rows::before { top: 2px; box-shadow: 0 4px 0 currentColor; } .ic-rows::after { top: 10px; }
.ic-quote::before { content: "\201C"; position: absolute; top: -6px; left: 0; font: 700 20px Georgia, serif; }

/* Thread cards */
.cards { display: grid; gap: 10px; }
.cards .card { padding: 0; margin: 0; } /* site.css has its own .card box */
.card { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; transition: border-color .15s; }
.card:hover { border-color: var(--button-line); }
.card.pinned { border-color: var(--tip-line); }
.card > .card-level { border-radius: 10px 0 0 10px; }
.card-body { padding: 12px 16px 10px 14px; min-width: 0; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.card-chips:empty { display: none; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0 0 4px; letter-spacing: -.15px; }
.card-link { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.card-link:hover { color: var(--accent); text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.card-preview { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 10px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); margin: 0; }
.stat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.board-chip { font-weight: 700; color: var(--ink); text-decoration: none; }
.board-chip:hover { color: var(--accent); text-decoration: underline; }
.author-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.author-chip .who { font-weight: 600; }
.flair { font: 600 11px/1.5 var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.card-stats .listen { margin-left: auto; }
.stat.replies { font-variant-numeric: tabular-nums; }

/* Compact list: one line per thread, no preview */
.cards.is-compact { gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); }
.cards.is-compact .card { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); grid-template-columns: 34px minmax(0, 1fr); }
.cards.is-compact .card:last-child { border-bottom: 0; }
.cards.is-compact .card > .card-level { border-radius: 0; padding: 10px 0 8px; }
.cards.is-compact .seg { width: 10px; height: 2px; }
.cards.is-compact .meter-segs { gap: 1px; padding: 2px; }
.cards.is-compact .card-body { padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cards.is-compact .card-stats { flex: 1; gap: 4px 10px; }
.cards.is-compact .card-title { font-size: 15px; margin: 0; flex: 1 1 100%; }
.cards.is-compact .desk-btn, .cards.is-compact .listen, .cards.is-compact .notes-chip { height: 24px; }
.cards.is-compact .desk-btn { padding: 0 7px; font-size: 10px; }
@media (min-width: 700px) {
  /* One even line under the title: who and when on the left, the controls packed to the right */
  .cards.is-compact .card-meta { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .cards.is-compact .card-stats { flex: 1 0 auto; flex-wrap: nowrap; justify-content: flex-end; }
  .cards.is-compact .card-stats .listen { margin-left: 0; }
  .cards.is-compact .notes-chip { padding: 3px 7px; }
  .cards.is-compact .notes-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cards.is-compact .card-chips { margin: 0; }
.cards.is-compact .card-preview { display: none; }
.cards.is-compact .card-meta, .cards.is-compact .card-stats { margin: 0; }

/* ---- Mixing desk (F15): the level meter, Gain/Mute, LEDs, Keep listening, tempo ---- */
.card-level { background: var(--panel-2); border-right: 1px solid var(--border); display: flex; justify-content: center; align-items: flex-start; padding: 14px 0 10px; }
.meter { position: relative; display: inline-flex; border-radius: 4px; cursor: default; }
.meter:focus-visible { outline-offset: 3px; }
.meter-segs { display: flex; flex-direction: column; gap: 2px; padding: 3px; background: var(--groove); border-radius: 3px; box-shadow: inset 0 0 0 1px var(--groove-line); }
.seg { display: block; width: 12px; height: 4px; border-radius: 1px; background: var(--led-off); }
.seg.on { background: currentColor; box-shadow: 0 0 var(--led-glow) currentColor; }
.seg.s-green { color: var(--led-green); } .seg.s-amber { color: var(--led-amber); } .seg.s-red { color: var(--led-red); }
.meter-readout { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); z-index: 6; font: 700 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--bg); background: var(--ink); padding: 4px 7px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.meter:hover .meter-readout, .meter:focus-visible .meter-readout { opacity: 1; }
.th-level { padding: 18px 0 12px; }
.th-level .seg { width: 16px; height: 5px; }

.desk-pair { display: inline-flex; gap: 4px; }
.desk-btn { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--panel-2); color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.desk-btn:hover { color: var(--ink); border-color: var(--button-line); }
.desk-btn .led, .lit .led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 0 0 1px var(--groove-line); flex: none; }
.desk-btn.encore[aria-pressed="true"] { color: var(--ink); border-color: var(--led-green); }
.desk-btn.encore[aria-pressed="true"] .led { background: var(--led-green); box-shadow: 0 0 var(--led-glow) var(--led-green); }
.desk-btn.mute[aria-pressed="true"] { color: var(--ink); border-color: var(--led-amber); }
.desk-btn.mute[aria-pressed="true"] .led { background: var(--led-amber); box-shadow: 0 0 var(--led-glow) var(--led-amber); }
.desk-btn.notes { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.desk-btn.notes[aria-expanded="true"] { color: var(--current-ink); background: var(--current); border-color: var(--tip-line); }
.btn.lit { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.lit .led { background: var(--led-red); box-shadow: 0 0 0 2px var(--primary-ink), 0 0 var(--led-glow) var(--led-red); width: 8px; height: 8px; }
.led-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--led-off); flex: none; vertical-align: middle; }
.led-dot.on { background: var(--accent); box-shadow: 0 0 var(--led-glow) var(--accent); }
.card-title .led-dot { margin: -3px 9px 0 0; }

.listen { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 30px; height: 28px; padding: 0 7px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.listen.labelled { padding: 0 11px 0 9px; }
.listen:hover { color: var(--ink); border-color: var(--button-line); }
.listen.on { color: var(--current-ink); background: var(--current); border-color: var(--tip-line); }
.ic-phones { width: 14px; height: 13px; }
.ic-phones::before { content: ""; position: absolute; left: 1px; right: 1px; top: 0; height: 10px; border: 2px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.ic-phones::after { content: ""; position: absolute; left: 0; bottom: 0; width: 4px; height: 6px; background: currentColor; border-radius: 1px; box-shadow: 10px 0 0 currentColor; }
.ic-notes { width: 11px; height: 13px; border: 2px solid currentColor; border-radius: 2px; }
.ic-notes::before { content: ""; position: absolute; left: 1px; right: 1px; top: 2px; height: 2px; background: currentColor; box-shadow: 0 3px 0 currentColor; }
.tempo { display: inline-flex; align-items: baseline; gap: 1px; font: 700 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--panel-2); border: 1px solid var(--border); border-radius: 4px; padding: 4px 7px 3px; cursor: help; white-space: nowrap; }
.tempo-note { font: 15px/1 "Segoe UI Symbol", "Segoe UI", sans-serif; margin-right: 1px; color: var(--accent); }
.notes-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 5px; padding: 3px 9px; height: 28px; }
.notes-chip:hover { color: var(--accent); border-color: var(--button-line); }

/* Avatars: initials on one of ten colours chosen from the account id */
.av { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font: 700 12px/1 "Segoe UI", system-ui, sans-serif; color: #fff; letter-spacing: .3px; user-select: none; }
.av-sm { width: 22px; height: 22px; font-size: 10px; }
.av-lg { width: 52px; height: 52px; font-size: 19px; }
.av-0 { background: #0e7880; } .av-1 { background: #b4532a; } .av-2 { background: #6d4bc4; } .av-3 { background: #2f7d32; } .av-4 { background: #b0306a; }
.av-5 { background: #2563a8; } .av-6 { background: #8a6d12; } .av-7 { background: #5b6b73; } .av-8 { background: #a8322d; } .av-9 { background: #2f6f5e; }

/* Thread tags */
.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 999px; text-decoration: none; color: #fff; background: #5b6b73; white-space: nowrap; }
a.tag:hover { filter: brightness(1.12); text-decoration: none; }
.tag-question { background: #2563a8; } .tag-help { background: #b4532a; } .tag-bug { background: #a8322d; } .tag-idea { background: #6d4bc4; }
.tag-original-song { background: #0e7880; } .tag-ngd { background: #2f7d32; } .tag-lesson { background: #8a6d12; } .tag-discussion { background: #5b6b73; }

/* A discussion */
.thread-page { max-width: 980px; }
.thread-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; }
.thread-head > .card-level { border-radius: 10px 0 0 10px; }
.th-body { padding: 12px 20px 14px 16px; min-width: 0; }
.th-body h1 { overflow-wrap: anywhere; }
.th-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.th-actions .desk-pair { margin-right: 6px; }
.th-actions a.quiet { margin-left: auto; font-size: 13px; }
.card-meta .tempo { margin-left: 2px; }

/* Liner notes: the automatic summary on a card like an album's liner notes */
.liner-notes { max-width: 820px; margin: 0 0 16px; padding: 18px 24px 14px; background: var(--panel); border: 1px solid var(--border); border-top: 3px double var(--button-line); border-radius: 3px; box-shadow: var(--shadow-soft); }
.ln-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.4px; color: var(--eyebrow); margin: 0 0 2px; }
.ln-title { font: italic 400 22px/1.3 Georgia, "Times New Roman", serif; margin: 0 0 12px; overflow-wrap: anywhere; }
.ln-text { font-size: 15px; line-height: 1.7; margin: 0 0 14px; max-width: 68ch; }
.ln-text p { margin: 0 0 8px; }
.ln-text p:first-child::first-letter { font: 400 1.9em/1 Georgia, "Times New Roman", serif; float: left; margin: 4px 6px 0 0; color: var(--eyebrow); }
.ln-credits { border-top: 1px solid var(--border); padding-top: 8px; font-size: 12px; color: var(--muted); }
.ln-credits p { margin: 0 0 2px; }
.ln-fine { display: flex; flex-wrap: wrap; gap: 2px 14px; font: 11px/1.6 var(--mono); letter-spacing: .2px; }

.post-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.post-sort ul { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.jump { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
/* A fader: the label is the cap on a groove */
.new-divider { display: flex; align-items: center; gap: 0; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin: 6px 0 14px; }
.new-divider::before, .new-divider::after { content: ""; flex: 1; height: 4px; border-radius: 2px; background: var(--groove); box-shadow: inset 0 0 0 1px var(--groove-line); }
.new-divider span { padding: 5px 12px; border: 1px solid var(--button-line); border-radius: 4px; background: var(--panel); box-shadow: inset 0 -2px 0 var(--panel-2); }

.post { margin: 0 0 12px; display: grid; grid-template-columns: 168px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; scroll-margin-top: 80px; }
.post.flash { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.post-author { background: var(--panel-2); border-right: 1px solid var(--border); padding: 16px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; }
/* A short reply: one compact line for the author, inside the post (also on every post on a phone) */
.post.is-short { grid-template-columns: minmax(0, 1fr); }
.post-author.compact { flex-direction: row; align-items: center; text-align: left; background: none; border: 0; padding: 0; margin: 0 0 8px; gap: 10px; }
.post-author.compact .av-lg { width: 30px; height: 30px; font-size: 12px; }
.post-author.compact .pa-text { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.post-author.compact .pa-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; margin: 0; }
.post-author.compact .pa-stats dd { margin-right: 6px; }
.post-author.compact .pa-stats dd:last-child { margin-right: 0; }
.pa-text { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.pa-text .who { overflow-wrap: anywhere; font-size: 15px; }
.pa-stats { display: grid; grid-template-columns: auto auto; gap: 1px 10px; margin: 4px 0 0; font-size: 12px; color: var(--muted); text-align: left; }
.pa-stats dt { font-weight: 400; }
.pa-stats dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.post-main { min-width: 0; display: flex; flex-direction: column; padding: 10px 20px; }
/* The bar line: "Bar 12" on a hairline with a faint scale under it */
.post-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); padding-bottom: 9px; margin-bottom: 10px; }
.post-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(var(--border), var(--border)) left bottom / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 30%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 30%, transparent 100%); }
.post-num { font: 700 11px/1 var(--mono); letter-spacing: .8px; text-transform: uppercase; color: var(--eyebrow); background: var(--groove); border: 1px solid var(--groove-line); border-radius: 3px; padding: 4px 7px; text-decoration: none; }
.post-num:hover { color: var(--accent); border-color: var(--button-line); }
.post-when { margin-left: auto; }
.edited { font-style: italic; }
.post.gone .post-body { color: var(--muted); font-style: italic; }
.post-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.post-foot.readonly:empty { display: none; }
.post-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
.act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-radius: 6px; padding: 5px 10px; font: 600 13px "Segoe UI", system-ui, sans-serif; color: var(--muted); cursor: pointer; text-decoration: none; }
.act:hover { background: var(--button-hover); color: var(--ink); }

/* Reactions */
.reactions { display: flex; flex-wrap: wrap; gap: 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; opacity: .75; }
.react .e { font-size: 16px; line-height: 1; filter: grayscale(.5); }
.react:hover { background: var(--button-hover); opacity: 1; }
.react:hover .e, .react.has .e, .react[aria-pressed="true"] .e { filter: none; }
.react.has { opacity: 1; border-color: var(--border); background: var(--panel-2); }
.react[aria-pressed="true"] { opacity: 1; border-color: var(--accent); background: var(--current); color: var(--current-ink); }
.react-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }

/* Post bodies: the Markdown subset */
.post-body { overflow-wrap: anywhere; line-height: 1.6; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 12px; }
.md strong { font-weight: 700; }
.md del { color: var(--muted); }
.md-inline { font-size: 14px; word-break: normal; }
.md-code { position: relative; margin: 0 0 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; max-width: 100%; }
.md-code code { display: block; background: none; padding: 0; font: 14px/1.45 "Cascadia Mono", Consolas, "Courier New", monospace; white-space: pre; word-break: normal; overflow-wrap: normal; color: var(--ink); }
.md-code[data-label]::before { content: attr(data-label); position: absolute; top: 0; right: 0; font: 600 11px "Segoe UI", system-ui, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: var(--panel-2); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 0 8px 0 6px; padding: 2px 8px; }
.md-quote { margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 8px 8px 0; color: var(--ink); }
.md-quote .md-cite { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.md-quote p:last-child { margin-bottom: 0; }
.md-list { margin: 0 0 12px; padding-left: 24px; }
.md-list li { margin: 2px 0; }
.md-link { overflow-wrap: anywhere; }
.md-domain { font-size: 12px; color: var(--muted); margin-left: 4px; }
.md-domain::before { content: "("; } .md-domain::after { content: ")"; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.pager .btn { padding: 8px 14px; font-size: 15px; }
.pager-pos { color: var(--muted); font-size: 14px; text-align: center; }

/* Forms */
.reply { margin-top: 28px; }
.reply h2 { margin: 0 0 10px; font-size: 22px; }
.reply-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.reply-row .fb-form { margin-top: 0; }
.forum-form .buttons { margin: 8px 0 0; }
.field .hint { font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
.field input[type="email"], .field input[type="password"] { width: 100%; font: 16px/1.4 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--button-line); border-radius: 5px; padding: 10px 12px; }
.field [aria-invalid="true"] { border-color: var(--warn-ink); }
.field-error { color: var(--warn-ink); font-size: 14px; margin: 6px 0 0; }
.turnstile-slot { margin: 0 0 16px; min-height: 65px; }
.callout p:last-child { margin-bottom: 0; }
.callout .buttons { margin: 10px 0 6px; }
.compose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.compose .fb-form { margin-top: 6px; }
.compose-side { display: grid; gap: 14px; }
@media (min-width: 1000px) { .compose { grid-template-columns: minmax(0, 1fr) 300px; } }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
@media (min-width: 700px) { .field-row { grid-template-columns: minmax(0, 1fr) 200px; } }

/* The editor: tabs, toolbar, emoji picker */
.editor { position: relative; border: 1px solid var(--button-line); border-radius: 8px; background: var(--bg); }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; padding: 4px 6px; border-bottom: 1px solid var(--border); background: var(--panel-2); border-radius: 8px 8px 0 0; }
.ed-tabs { display: flex; gap: 2px; }
.ed-tab { background: none; border: 0; border-radius: 6px; padding: 5px 12px; font: 600 13px "Segoe UI", system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.ed-tab[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.toolbar { display: flex; flex-wrap: wrap; gap: 2px; }
.tb { min-width: 32px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 600 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.tb:hover { background: var(--button-hover); }
.tb-bold { font-weight: 800; }
.tb-italic { font-style: italic; font-family: Georgia, serif; font-size: 15px; }
.tb-quote { font: 700 18px Georgia, serif; }
.tb-code { font-family: "Cascadia Mono", Consolas, monospace; }
.tb-emoji { font-size: 16px; }
.tb[aria-expanded="true"] { background: var(--current); }
.field .editor textarea.editor-text { display: block; width: 100%; border: 0; border-radius: 0 0 8px 8px; background: transparent; padding: 12px 14px; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--ink); min-height: 140px; resize: vertical; }
.field .editor textarea.editor-text:focus-visible { outline: none; }
.editor-preview { padding: 12px 14px; min-height: 140px; border-radius: 0 0 8px 8px; }
.emoji-picker { position: absolute; z-index: 20; top: 40px; right: 6px; width: min(352px, calc(100% - 12px)); background: var(--panel); border: 1px solid var(--button-line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.emoji-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; overflow-x: auto; }
.emoji-tab { flex: none; width: 36px; height: 32px; border: 0; border-radius: 6px; background: none; font-size: 18px; cursor: pointer; }
.emoji-tab[aria-selected="true"] { background: var(--current); box-shadow: inset 0 -2px 0 var(--accent); }
.emoji-grid { max-height: 232px; overflow-y: auto; }
.emoji-cat { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 2px 4px 6px; }
.emoji-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.emoji { height: 38px; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.emoji:hover, .emoji:focus-visible { background: var(--button-hover); outline-offset: -2px; }
.edit-form { margin: 0 0 8px; }
.edit-form .buttons { margin: 8px 0 0; gap: 8px; }

/* A short message at the bottom (votes, reactions, follows) */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); max-width: min(560px, calc(100vw - 32px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; opacity: 0; pointer-events: none; z-index: 60; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Sign-up tick boxes */
.field.consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; cursor: pointer; }
.field.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

/* Posts waiting for review (seen only by their author and moderators) */
.badge.waiting { background: var(--warn-bg); color: var(--ink); border-color: var(--warn-line); }
.post.held { border-style: dashed; border-color: var(--warn-line); }
.held-hint { color: var(--muted); margin: 8px 0 0; }

/* Profile: delete my account */
.danger-zone { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); }
.danger-zone h2 { font-size: 22px; margin: 0 0 6px; }
.btn.danger { border-color: var(--warn-ink); color: var(--warn-ink); }

.report-target { margin: 0 0 18px; }
.report-target figcaption { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.report-target blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--border); background: var(--panel-2); border-radius: 0 6px 6px 0; white-space: pre-wrap; }

dl.profile { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 10px 0 20px; }
dl.profile dt { font-weight: 600; }
dl.profile dd { margin: 0; overflow-wrap: anywhere; }

/* Single-page forms (sign-in, report, profile) keep a readable width */
#forum-view > .fb-form, #forum-view > .lede, #forum-view > .callout, #forum-view > dl.profile, #forum-view > .danger-zone, #forum-view > .report-target { max-width: 760px; }

/* Pictures (phase 2): the editor's Picture button and tray, galleries in posts, the lightbox.
   Only site.css tokens, so a later theme restyles them with everything else. */
.tb-image { display: inline-flex; align-items: center; gap: 6px; }
.tb.is-off { color: var(--muted); opacity: .55; cursor: not-allowed; }
.tb.is-off:hover { background: none; }
.ic-image { border: 2px solid currentColor; border-radius: 3px; height: 12px; width: 15px; overflow: hidden; }
.ic-image::before { content: ""; position: absolute; left: 1px; bottom: -3px; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.ic-image::after { content: ""; position: absolute; right: 2px; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pic-tray { border-top: 1px solid var(--border); padding: 10px 12px; background: var(--panel-2); border-radius: 0 0 8px 8px; }
.pic-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.pic { position: relative; margin: 0; width: 96px; }
.pic-thumb { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
.pic-thumb.blank { animation: pic-pulse 1.2s ease-in-out infinite alternate; }
@keyframes pic-pulse { from { opacity: .5; } to { opacity: 1; } }
.pic-state { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; line-height: 1.25; }
.pic-state.waiting { color: var(--ink); }
.pic-remove { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--button-line); background: var(--panel); color: var(--ink); font: 700 16px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; padding: 0; }
.pic-remove:hover { background: var(--button-hover); }
.pic-note { margin: 8px 0 0; color: var(--muted); }

.gallery { list-style: none; display: grid; gap: 6px; padding: 0; margin: 4px 0 12px; max-width: 640px; }
.gallery li { margin: 0; min-width: 0; }
.gallery.n-2, .gallery.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-item { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.g-item:hover { border-color: var(--button-line); }
.g-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; background: var(--panel-2); }
.gallery.n-2 .g-img, .gallery.n-3 .g-img, .gallery.n-4 .g-img { aspect-ratio: 1 / 1; height: 100%; object-fit: cover; }
.g-img.broken { min-height: 80px; }
.g-badge { position: absolute; left: 8px; top: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 10, 11, .88); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.lb-img { display: block; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 6px; background: #1b2022; }
.lb-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; color: #e8eef0; font-size: 14px; }
.lb-extra { display: inline-flex; gap: 12px; align-items: center; }
.lb-report { color: #e8eef0; }
.lb-btn { position: fixed; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 24, 26, .7); color: #fff; font: 400 28px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(60, 70, 74, .9); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.report-pic { display: block; max-width: min(100%, 420px); height: auto; border-radius: 8px; border: 1px solid var(--border); }

/* Moderators: pictures to review */
.mod-section { margin: 18px 0 28px; }
.mod-section h2 { font-size: 22px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.mod-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.mod-card { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mod-card.done { opacity: .6; }
.mod-pic { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.mod-pic .g-img { aspect-ratio: 4 / 3; height: auto; object-fit: contain; max-height: none; }
.mod-body { padding: 10px 14px 12px; }
.mod-body p.small { margin: 0 0 8px; color: var(--muted); }
.mod-note { width: 100%; font: 14px/1.4 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); border: 1px solid var(--button-line); border-radius: 5px; padding: 7px 10px; margin: 0 0 8px; }
.mod-body .buttons { margin: 0; gap: 8px; }

/* Private messages (phase 2): inbox icon, inbox list, a conversation, member page */
.inbox-link { display: inline-flex; align-items: center; gap: 6px; }
.ic-mail { width: 16px; height: 12px; border: 2px solid currentColor; border-radius: 2px; overflow: hidden; }
.ic-mail::before { content: ""; position: absolute; left: 1px; top: -6px; width: 10px; height: 10px; border: 2px solid currentColor; transform: rotate(45deg); }
.inbox-count { font-size: 11px; padding: 2px 6px; min-width: 18px; text-align: center; }
.msg-page { max-width: 820px; }
.privacy-note { font-size: 14px; }
.muted-note { color: var(--muted); }
.inbox { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.inbox-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); position: relative; }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item:hover { background: var(--button-hover); }
.inbox-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.inbox-text { min-width: 0; }
.inbox-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.inbox-who { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.inbox-who::after { content: ""; position: absolute; inset: 0; } /* the whole row opens it */
.inbox-item.unread .inbox-who { font-weight: 800; }
.inbox-preview { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.unread .inbox-preview { color: var(--ink); }
.msg-head { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px 14px; margin-bottom: 14px; }
.msg-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.msg-head-text { flex: 1; min-width: 0; }
main.forum .msg-head-text h1 { font-size: clamp(22px, 3vw, 28px); margin: 0; overflow-wrap: anywhere; }
.msg-head-acts { display: flex; gap: 8px; }
.msgs { list-style: none; padding: 4px 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { margin: 0; max-width: min(78%, 600px); display: flex; flex-direction: column; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); min-width: 0; max-width: 100%; }
.msg.theirs .msg-bubble { border-bottom-left-radius: 4px; }
.msg.mine .msg-bubble { background: var(--current); border-color: var(--tip-line); color: var(--current-ink); border-bottom-right-radius: 4px; }
.msg.is-sending .msg-bubble, .msg.is-held .msg-bubble { border-style: dashed; opacity: .85; }
.msg.is-dropped .msg-bubble { border-style: dashed; border-color: var(--warn-line); background: var(--warn-bg); color: var(--muted); text-decoration: line-through; }
.msg-meta { margin: 3px 4px 0; font-size: 12px; color: var(--muted); }
.msg-state.held { color: var(--ink); font-weight: 600; }
.msg-state.dropped { color: var(--warn-ink); font-weight: 600; }
.msg-report { color: var(--muted); }
.msg-notice { margin: 2px 4px 0; color: var(--warn-ink); max-width: 420px; text-align: right; }
.msg-empty { align-self: stretch; max-width: none; }
.msg-composer { margin-top: 0; }
.msg-composer .field .editor textarea.editor-text { min-height: 84px; }
.member-page { max-width: 760px; }
.member-card { display: flex; gap: 20px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 8px; }
.member-text { min-width: 0; flex: 1; }
main.forum .member-text h1 { margin-top: 0; overflow-wrap: anywhere; }
.member-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.member-badges:empty { display: none; }
.member-stats { font-size: 14px; margin-bottom: 12px; }
.av-xl { width: 84px; height: 84px; font-size: 30px; }
a.who { color: var(--ink); text-decoration: none; }
a.who:hover { color: var(--accent); text-decoration: underline; }
.mod-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.mod-quote { margin: 6px 0 8px; padding: 10px 14px; border-left: 3px solid var(--warn-line); background: var(--panel-2); border-radius: 0 6px 6px 0; white-space: pre-wrap; }
.mod-msg .card-meta { gap: 4px 8px; }

/* The Trades board (phase 2): trade tags, the title helper, trade confirmations */
.tag-trade { background: #6d4bc4; } .tag-sell { background: #2f7d32; } .tag-buy { background: #2563a8; } .tag-wanted { background: #b4532a; }
.trade-helper { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px 4px; margin: 0 0 14px; background: var(--panel-2); }
.trade-helper legend { font-weight: 700; padding: 0 6px; }
.trade-helper .small { margin: 0 0 8px; color: var(--muted); }
@media (min-width: 700px) { .field-row.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ic-handshake { width: 16px; }
.ic-handshake::before { content: "\21C4"; position: absolute; left: 0; top: -4px; font: 700 15px "Segoe UI", system-ui, sans-serif; }
.trade-box { margin: 4px 0 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.trade-box .buttons { margin: 0; gap: 8px; }
.trade-text { margin: 0; display: flex; align-items: center; gap: 10px; }
.trade-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; background: var(--panel); border: 1px solid var(--border); flex: none; }
.trade-box.is-confirmed { border-color: var(--tip-line); background: var(--tip-bg); }
.trade-box.is-confirmed .trade-mark { background: var(--primary); color: var(--primary-ink); border-color: var(--primary-line); }
.trade-box.is-pending { border-style: dashed; }
.trade-box.is-reversed, .trade-box.is-cancelled { color: var(--muted); }

@media (max-width: 700px) {
  .post { grid-template-columns: minmax(0, 1fr); }
  .post-author { flex-direction: row; text-align: left; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 14px; gap: 10px; }
  .post-author .av-lg { width: 36px; height: 36px; font-size: 14px; }
  .pa-text { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .pa-stats { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; flex-basis: 100%; }
  .pa-stats dt::after { content: ":"; }
  .pa-stats dt.rx::after { content: none; }
  .pa-stats dd { margin-right: 8px; }
  .post-main { padding: 10px 14px; }
  .reply-row { grid-template-columns: minmax(0, 1fr); }
  .reply-row > .av { display: none; }
}
@media (max-width: 600px) {
  .forum-account { justify-content: flex-start; margin-top: -12px; }
  /* The meter stays a slim column on the left; Gain/Mute sit in the card's foot line */
  .card { grid-template-columns: 30px minmax(0, 1fr); }
  .cards.is-compact .card { grid-template-columns: 26px minmax(0, 1fr); }
  .card > .card-level { padding-top: 14px; }
  .card .seg { width: 9px; height: 3px; }
  .card .meter-segs { padding: 2px; gap: 2px; }
  .cards.is-compact .card .seg { width: 8px; height: 2px; }
  .card-body, .cards.is-compact .card-body { padding: 11px 12px 10px; }
  .card-stats { gap: 6px 8px; }
  .card-stats .listen { margin-left: auto; }
  .thread-head { grid-template-columns: 36px minmax(0, 1fr); }
  .th-level .seg { width: 11px; height: 4px; }
  .th-body { padding: 12px 14px 12px 12px; }
  .th-actions a.quiet { margin-left: 0; }
  .sort-tab { padding: 6px 9px; gap: 6px; }
  /* One row of tabs that scrolls sideways inside its bar, like a channel bank */
  .list-controls > .sort-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sort-tabs ul { flex-wrap: nowrap; }
  .liner-notes { padding: 14px 16px 12px; }
  .view-toggle .label { display: none; }
  .pager .btn { width: auto; }
  .buttons .btn.small { width: auto; }
  dl.profile { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dl.profile dd { margin-bottom: 10px; }
  .emoji-cells { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  /* The toolbar wraps on a phone: the picker opens in the flow, under it, not over it. */
  .emoji-picker { position: static; width: auto; margin: 6px; box-shadow: none; }
}
@media (max-width: 600px) {
  .gallery.n-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery.n-3 li:first-child { grid-column: 1 / -1; }
  .gallery.n-3 li:first-child .g-img { aspect-ratio: 16 / 10; }
  .pic, .pic-thumb { width: 80px; } .pic-thumb { height: 80px; }
  .tb-image .tb-label { display: none; }
  .inbox-label { display: none; }
  .inbox-item { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .inbox-item .av-lg { width: 40px; height: 40px; font-size: 15px; }
  .msg { max-width: 88%; }
  .msg-head { padding: 10px 14px 12px; }
  .msg-head-acts { width: 100%; }
  .member-card { flex-direction: column; padding: 16px; gap: 12px; }
  .av-xl { width: 64px; height: 64px; font-size: 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-img { max-height: calc(100vh - 150px); }
}
@media (prefers-reduced-motion: reduce) { .toast, .card, .meter-readout { transition: none; } .pic-thumb.blank { animation: none; } }

/* ---- Evan's review, 14 Nov 2026 ---- */
/* Thread extras: the Liner notes and the Attachments box side by side on wide screens */
.thread-extras { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 0 0 16px; }
.thread-extras > .liner-notes { flex: 1 1 520px; margin: 0; min-width: 0; }
.thread-extras > .attachments { flex: 1 1 300px; min-width: 0; }
.thread-extras > .liner-notes[hidden] + .attachments { flex-basis: 100%; }
.thread-extras:not(.has-attachments) { display: block; margin: 0; }
.thread-extras:not(.has-attachments) > .liner-notes { margin: 0 0 16px; }
.attachments { background: var(--panel); border: 1px solid var(--border); border-top: 3px double var(--button-line); border-radius: 3px; box-shadow: var(--shadow-soft); }
.att-h { margin: 0; font-size: inherit; }
.att-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 3px; }
.att-toggle:hover { background: var(--button-hover); }
.att-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.att-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.4px; color: var(--eyebrow); }
.att-summary { font: 12px/1.4 var(--mono); color: var(--muted); }
.att-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; }
.att-toggle[aria-expanded="true"] .att-chev { transform: rotate(-135deg); margin-top: 4px; }
.ic-clip { width: 8px; height: 14px; border: 2px solid currentColor; border-radius: 4px; color: var(--eyebrow); }
.att-body { padding: 0 16px 14px; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.att-item { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.att-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--panel-2); color: var(--ink); cursor: pointer; font: inherit; }
.att-thumb:hover { border-color: var(--button-line); }
.att-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.att-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.att-badge { position: absolute; left: 4px; top: 4px; font-size: 10px; padding: 3px 5px; }
.att-video { background: #171c1d /* a dark player panel in both themes */; color: #e8eef0; align-content: center; gap: 4px; }
.att-video .yt-icon { width: 34px; height: 24px; }
.att-vlabel { font: 700 10px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.att-vtime { font: 11px/1 var(--mono); color: #b8c4c6; }
.att-cap { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12px; line-height: 1.4; min-width: 0; }
.att-bar { font: 600 12px/1.4 var(--mono); color: var(--accent); }
.att-who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.att-more { margin-top: 10px; font-size: 14px; }

/* YouTube: click-to-play cards (nothing loads from YouTube until play) */
.yt-card { position: relative; margin: 0 0 12px; max-width: 480px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #171c1d /* a dark player panel in both themes */; }
.yt-card.is-short { max-width: 300px; }
.yt-play { display: flex; align-items: center; gap: 14px; width: 100%; aspect-ratio: 16 / 9; padding: 18px 20px; border: 0; background: #171c1d /* a dark player panel in both themes */; color: #e8eef0; font: inherit; text-align: left; cursor: pointer; }
.yt-card.is-short .yt-play { aspect-ratio: 9 / 16; flex-direction: column; justify-content: center; text-align: center; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: #d9332b; }
.yt-play:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.yt-icon { position: relative; flex: none; display: inline-block; width: 64px; height: 44px; border-radius: 12px; background: #c4302b; }
.yt-icon::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.att-video .yt-icon::before { margin: -6px 0 0 -4px; border-width: 6px 0 6px 10px; }
.yt-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yt-title { font-weight: 700; font-size: 16px; }
.yt-meta { font-size: 13px; color: #b8c4c6; }
.yt-open { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: #b8c4c6; }
.yt-card.playing .yt-open { position: static; display: block; padding: 6px 10px; background: var(--panel-2); color: var(--muted); }
.yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.yt-card.is-short .yt-frame { aspect-ratio: 9 / 16; }

/* The tab writer (a dialog; the grid scrolls sideways inside it, never the page) */
.tab-writer { width: min(920px, calc(100vw - 16px)); max-width: none; max-height: calc(100vh - 16px); padding: 0; border: 1px solid var(--button-line); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.tab-writer::backdrop { background: rgba(8, 10, 11, .6); }
.tw-head-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 6px; }
.tw-eyebrow { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.4px; color: var(--eyebrow); }
.tw-title { margin: 0; font-size: 22px; }
.tw-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-2); color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; flex: none; }
.tw-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; padding: 4px 18px 8px; }
.tw-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tw-select { font: 14px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--button-line); border-radius: 5px; padding: 6px 8px; max-width: 100%; }
.tw-hint { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.tw-toolrow { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 18px 8px; }
.tw-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tw-btn { height: 30px; min-width: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--panel-2); color: var(--ink); font: 600 13px/1 var(--sans); cursor: pointer; }
.tw-btn:hover { background: var(--button-hover); border-color: var(--button-line); }
.tw-btn.tech { font-family: var(--mono); min-width: 32px; padding: 0 6px; }
.tw-btn.quiet { color: var(--muted); }
.tw-btn:focus-visible, .tw-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tw-scroll { margin: 0 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); padding: 10px 10px 12px; }
.tw-grid { display: inline-flex; flex-direction: column; gap: 2px; min-width: max-content; }
.tw-row { display: flex; align-items: center; }
.tw-head { flex: none; margin-right: 6px; }
.tw-label { width: 3.2ch; padding: 3px 2px; text-align: center; font: 700 14px/1.2 var(--mono); color: var(--eyebrow); background: var(--panel); border: 1px solid var(--border); border-radius: 4px; }
.tw-slot { position: relative; display: block; flex: none; }
.tw-slot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--groove-line); pointer-events: none; }
.tw-slot.beat { margin-left: 3px; }
.tw-cell { position: relative; display: block; width: 3.4ch; height: 28px; padding: 0; margin: 0; text-align: center; font: 600 15px/28px var(--mono); color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 4px; }
.tw-note.has { background: var(--panel); }
.tw-cell:hover { border-color: var(--border); }
.tw-cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--panel); z-index: 1; }
.tw-bar { width: 1.6ch; color: var(--muted); cursor: pointer; }
.tw-slot.is-bar::before { left: 50%; right: auto; top: -2px; bottom: -2px; border-top: 0; border-left: 2px solid var(--muted); }
.tw-bar { color: transparent; }
.tw-keys { margin: 8px 18px 0; font-size: 13px; color: var(--muted); }
.tw-preview { margin: 10px 18px 0; }
.tw-preview h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--eyebrow); margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.tw-count { font: 12px var(--mono); text-transform: none; letter-spacing: 0; color: var(--muted); }
.tw-pre { margin: 0; max-height: 220px; }
.tw-status { margin: 6px 18px 0; min-height: 20px; font-size: 13px; color: var(--muted); }
.tw-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px 16px; }
.tw-copy { position: fixed; left: -9999px; top: 0; }

/* Group conversations */
.inbox-acts { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.av-stack { display: inline-flex; align-items: center; width: 52px; flex: none; }
.av-stack .av { border: 2px solid var(--panel); width: 30px; height: 30px; font-size: 11px; }
.av-stack .av + .av { margin-left: -12px; }
.av-stack.lg { width: auto; }
.av-stack.lg .av { width: 40px; height: 40px; font-size: 14px; }
.av-stack.lg .av + .av { margin-left: -14px; }
.av-more { background: var(--panel-2); color: var(--muted); }
.group-badge { font-size: 11px; padding: 3px 6px; position: relative; z-index: 1; }
.msg-members { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.msg-members-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--eyebrow); margin: 0 0 8px; }
.member-chips { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); font-size: 14px; max-width: 100%; }
.member-chip .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-chip .badge { font-size: 10px; padding: 2px 5px; }
.member-chip.is-blocked { opacity: .7; }
.msg-members .muted-note { margin: 0; font-size: 13px; }
.msg-members-acts { margin-top: 8px; }
.msg-add { margin-top: 10px; }
.msg-add .forum-form { margin: 0; }
.msg-sender { display: flex; align-items: center; gap: 6px; margin: 0 0 3px 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.people-picker .pp-input { width: 100%; }
.pp-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border: 1px solid var(--tip-line); background: var(--current); color: var(--current-ink); border-radius: 999px; font-size: 14px; max-width: 100%; }
.pp-remove { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: inherit; font: 400 18px/1 var(--sans); cursor: pointer; }
.pp-remove:hover, .pp-remove:focus-visible { background: var(--button-hover); }
.pp-results { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--button-line); border-radius: 8px; background: var(--panel); max-height: 260px; overflow-y: auto; }
.pp-results li { margin: 0; }
.pp-result { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pp-result:hover, .pp-result:focus-visible { background: var(--button-hover); outline: none; }
.pp-add { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.pp-none { padding: 8px; color: var(--muted); font-size: 14px; }
.pp-note { margin: 4px 0 0; color: var(--muted); min-height: 1em; }

@media (max-width: 600px) {
  .att-body { padding: 0 12px 12px; }
  .att-toggle { padding: 10px 12px; flex-wrap: wrap; }
  .att-list { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
  .yt-play { gap: 10px; padding: 12px 14px; }
  .yt-icon { width: 48px; height: 34px; }
  .yt-title { font-size: 15px; }
  .tw-head-bar, .tw-controls, .tw-toolrow, .tw-foot { padding-left: 12px; padding-right: 12px; }
  .tw-scroll, .tw-keys, .tw-preview, .tw-status { margin-left: 12px; margin-right: 12px; }
  .tw-keys { font-size: 12px; }
  .tw-foot .btn { flex: 1 1 auto; }
  .inbox-item .av-stack { width: 40px; }
  .inbox-item .av-stack .av { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }
  .inbox-item .av-stack .av + .av { margin-left: -13px; }
  .inbox-item .av-stack { overflow: hidden; }
  .msg-head.is-group .msg-head-acts { width: auto; }
}
/* ---- The moderators' Console (14 Nov 2026): reports per item, held, members, audit log ----
   Desk vocabulary: the account line's "Console" lights up (an LED and a count) when something
   waits; each reported item is a channel with a status LED (red URGENT, amber open, green done). */
:root { --urgent: #f0625a; --urgent-ink: #1a0c0b; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --urgent: #b42a25; --urgent-ink: #ffffff; } }
:root[data-theme="light"] { --urgent: #b42a25; --urgent-ink: #ffffff; }
.console-link { display: inline-flex; align-items: center; gap: 6px; }
.console-link .led-dot { width: 7px; height: 7px; }
.console-link.is-lit .led-dot { background: var(--led-amber); box-shadow: 0 0 var(--led-glow) var(--led-amber); }
.console-count { font-size: 11px; padding: 2px 6px; min-width: 18px; text-align: center; }
.console-tabs .tab-count { font-size: 11px; padding: 2px 6px; margin-left: 2px; }
.console-urgent { margin: 10px 0 0; }
.console-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 14px; margin: 4px 0 14px; }
.console-filters .field { margin: 0; min-width: 0; flex: 0 1 220px; }
.console-filters .field .hint { display: none; }
.console-filters .btn { margin-bottom: 4px; }
.member-search .field { flex: 1 1 320px; }
.report-list { gap: 14px; }
.report-group { border-left: 3px solid var(--led-amber); }
.report-group.is-urgent { border-left-color: var(--urgent); border-width: 1px 1px 1px 4px; }
.report-group.is-closed { border-left-color: var(--led-green); }
.rg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 4px; }
.rg-title { font-size: 17px; line-height: 1.3; margin: 0; min-width: 0; overflow-wrap: anywhere; flex: 1 1 260px; }
.led-dot.is-red { background: var(--urgent); box-shadow: 0 0 var(--led-glow) var(--urgent); }
.led-dot.is-amber { background: var(--led-amber); box-shadow: 0 0 var(--led-glow) var(--led-amber); }
.led-dot.is-green { background: var(--led-green); }
.badge.urgent { background: var(--urgent); color: var(--urgent-ink); border-color: var(--urgent); letter-spacing: .5px; }
.badge.urgent-soft { background: var(--panel-2); color: var(--ink); border-color: var(--urgent); font-family: var(--mono); font-size: 11px; }
.report-group .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.reason-chips { list-style: none; display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.chip { margin: 0; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--ink); }
.checker-line { border-left: 3px solid var(--urgent); padding-left: 10px; overflow-wrap: anywhere; }
.rg-more { margin: 8px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.rg-more > summary { cursor: pointer; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.rg-more[open] > summary { border-bottom: 1px solid var(--border); }
.rg-more > :not(summary) { margin-left: 12px; margin-right: 12px; }
.rg-more > .buttons { margin-bottom: 10px; }
.rg-reports, .rg-history { list-style: none; padding: 0; margin: 8px 12px 10px; display: grid; gap: 8px; }
.rg-reports li, .rg-history li { margin: 0; font-size: 14px; }
.rg-reports .card-meta { margin: 0; }
.rg-detail { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rg-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.rg-actions .field { margin-bottom: 8px; }
.rg-actions .buttons, .member-panel .buttons { gap: 8px; margin: 0 0 6px; flex-wrap: wrap; }
.rg-author-acts { display: grid; gap: 0 12px; margin-top: 6px; align-items: start; }
@media (min-width: 900px) { .rg-author-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.console-filters input[type="date"] { width: 100%; }
.rg-said:empty { display: none; }
.rg-said:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.rg-pic { display: block; max-width: 360px; width: 100%; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; padding: 0; background: var(--panel-2); }
.rg-pic .g-img { width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.msg-peek { border: 1px dashed var(--warn-line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
.msg-peek .small { margin: 0 0 8px; }
.msg-peek blockquote:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.mod-held .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.member-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.member-results li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; }
.member-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.member-panel h2 .av { width: 36px; height: 36px; font-size: 14px; }
.member-facts { margin-bottom: 8px; }
.member-list { margin: 14px 0 0; }
.member-list h3 { font-size: 15px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.member-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.member-list li { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.member-list .card-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.member-panel .rg-author-acts { margin-top: 14px; }
.filter-chip { font-size: 14px; color: var(--muted); }
.audit-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.audit-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.audit-table th, .audit-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.audit-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--eyebrow); background: var(--panel-2); }
.audit-table tbody tr:last-child td { border-bottom: 0; }
.audit-kind { font: 600 11px/1 var(--mono); color: var(--eyebrow); border: 1px solid var(--border); background: var(--groove); border-radius: 3px; padding: 3px 5px; }
.audit-detail { overflow-wrap: anywhere; max-width: 460px; }
.staff-notices { margin: 0 0 16px; }
.staff-notices h2 { font-size: 18px; margin: 0 0 8px; }
.staff-notices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.staff-notices li { margin: 0; }
.notice-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 4px; font-weight: 600; }
@media (max-width: 600px) {
  .console-label { display: none; }
  .console-filters .field { flex: 1 1 100%; }
  .console-filters .btn { width: 100%; }
  .member-panel { padding: 12px 14px; }
  /* The audit log as stacked records on a phone: each cell with its column name */
  .audit-wrap { overflow: visible; border: 0; background: none; }
  .audit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: 100%; }
  .audit-table tr { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin: 0 0 8px; padding: 6px 0; }
  .audit-table td { border: 0; padding: 3px 12px; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; max-width: none; }
  .audit-table td::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--muted); }
}