/* ucontent — original stylesheet. No external fonts or assets. */
:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --surface-2: #ece7dc;
  --line: #ddd5c6;
  --text: #1d1b17;
  --muted: #6d675c;
  --accent: #d4521c;
  --accent-ink: #fff;
  --link: #1f6f8b;
  --green: #4d7a1a;
  --pink: #b0457a;
  --quote-hl: #fde9c8;
  --danger: #b3261e;
  --ok: #2e7d32;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .06);
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418; --surface: #1a1d23; --surface-2: #23272f; --line: #2e333d;
    --text: #e7e3da; --muted: #9a958a; --accent: #ff7a45; --accent-ink: #16120f;
    --link: #6cc4c0; --green: #9ccc65; --pink: #e591bd; --quote-hl: #3a2f22;
    --danger: #ff6b5e; --ok: #74c47a; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121418; --surface: #1a1d23; --surface-2: #23272f; --line: #2e333d;
  --text: #e7e3da; --muted: #9a958a; --accent: #ff7a45; --accent-ink: #16120f;
  --link: #6cc4c0; --green: #9ccc65; --pink: #e591bd; --quote-hl: #3a2f22;
  --danger: #ff6b5e; --ok: #74c47a; --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px; flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { line-height: 1.2; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: -.02em; color: var(--text); font-size: 18px; display: flex; align-items: center; gap: 6px; }
.brand:hover { text-decoration: none; }
.brand-mark { background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 13px; padding: 2px 6px; border-radius: 6px; }
.boardnav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.boardnav a { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.boardnav a::before { content: "/"; } .boardnav a::after { content: "/"; }
.boardnav a:hover, .boardnav a[aria-current] { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 8px 16px; font-weight: 600; }

.foot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 24px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* buttons + forms */
.btn, .btn-sm { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.btn-sm { padding: 2px 9px; font-size: 12px; font-weight: 600; }
.btn:hover, .btn-sm:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger, .btn-sm.danger { color: var(--danger); }
.btn-sm.ok { color: var(--ok); }
.btn[disabled] { opacity: .6; cursor: progress; }
input, textarea, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
textarea { resize: vertical; min-height: 110px; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="file"] { padding: 6px; }
label > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.form-status { font-size: 13px; color: var(--muted); }
.form-status.err { color: var(--danger); }
.notice { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* home */
.hero { padding: 32px 0 16px; }
.hero h1 { font-size: clamp(40px, 8vw, 72px); margin: 0; letter-spacing: -.04em; }
.tagline { font-size: 20px; margin: 4px 0 8px; font-weight: 600; }
.sub { color: var(--muted); max-width: 60ch; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 10px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.board-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); display: grid; gap: 2px; transition: transform .12s, border-color .12s; }
.board-tile:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.board-tile .slug { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.board-tile .t { font-weight: 700; }
.board-tile .d { color: var(--muted); font-size: 13px; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.recent { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.recent li { border-bottom: 1px solid var(--line); }
.recent li:last-child { border: 0; }
.recent a { display: block; padding: 9px 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .slug { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.stats-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; }
.stats-list dt { color: var(--muted); } .stats-list dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* board */
.board-head { text-align: center; padding: 18px 0 8px; }
.board-head h1 { margin: 0; font-family: var(--mono); font-size: 28px; color: var(--accent); }
.board-head h1 span { font-family: var(--sans); color: var(--text); }
.board-head p { margin: 4px 0; color: var(--muted); }
.board-links { display: flex; gap: 14px; justify-content: center; font-size: 14px; }
.post-form-wrap { margin: 16px auto; max-width: 560px; }
.post-form-wrap > summary { list-style: none; display: flex; justify-content: center; }
.post-form-wrap > summary::-webkit-details-marker { display: none; }
.post-form-wrap[open] > summary { display: none; }
.post-form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

.thread { border-top: 1px solid var(--line); padding: 14px 0; }
.thread-view .thread { border: 0; }
.omitted { color: var(--muted); font-size: 13px; margin: 6px 0 6px 18px; }
.replies { display: grid; gap: 6px; }

/* posts */
.post { position: relative; }
.post.reply { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-left: 18px; width: fit-content; max-width: calc(100% - 18px); min-width: min(320px, 100%); }
.thread-view .post.reply { margin-top: 6px; }
.post.op { padding: 4px 0 8px; display: flow-root; }
.post.highlight, .post:target { background: var(--quote-hl); border-color: var(--accent); }
.post.op.highlight, .post.op:target { border-radius: var(--radius); }
.post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.subject { font-weight: 800; color: var(--accent); font-size: 15px; }
.name { font-weight: 700; color: var(--ok); }
.uid { font-family: var(--mono); font-size: 11px; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: #fff; }
time { color: var(--muted); font-variant-numeric: tabular-nums; }
.no { color: var(--muted); }
.qn { font-family: var(--mono); color: var(--text); }
.flag { font-size: 12px; }
.post-menu { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 4px; }
.post-menu:hover { background: var(--surface-2); color: var(--text); }
.post.mine > .post-head .name::after { content: " (You)"; color: var(--muted); font-weight: 400; }
.body { margin-top: 4px; overflow-wrap: anywhere; word-break: normal; line-height: 1.55; }
.post.op .body { margin-left: 0; }
.green { color: var(--green); }
.pink { color: var(--pink); }
.spoiler { background: var(--text); color: var(--text); border-radius: 3px; padding: 0 2px; }
.spoiler:hover, .spoiler:focus { color: var(--bg); }
.ql { font-family: var(--mono); font-size: .95em; }
.ql.dead { text-decoration: line-through; color: var(--muted); }
.ql.you::after { content: " (You)"; }
.backlinks { font-size: 12px; color: var(--muted); margin-top: 4px; }
.backlinks .ql { margin-right: 4px; }

.file { margin: 6px 14px 6px 0; float: left; }
.post.reply .file { margin-right: 12px; }
.file figcaption { font-size: 12px; color: var(--muted); margin-bottom: 4px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { display: block; }
.thumb img { display: block; max-width: 250px; height: auto; border-radius: 6px; background: var(--surface-2); }
.thumb.expanded img { max-width: min(100%, 92vw); max-height: none; width: auto; }
.file:has(.expanded) { float: none; }
.post::after { content: ""; display: table; clear: both; }
.post.collapsed > :not(.post-head) { display: none; }
.post.collapsed { opacity: .6; }

/* popovers */
.preview { position: fixed; z-index: 50; max-width: min(560px, 92vw); pointer-events: none; box-shadow: var(--shadow); }
.preview .post.reply, .preview .post.op { margin: 0; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 8px 12px; max-width: 100%; }
.menu { position: absolute; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 200px; }
.menu button { background: none; border: 0; text-align: left; color: var(--text); padding: 7px 10px; border-radius: 6px; font: inherit; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
.menu form { display: grid; gap: 8px; padding: 6px; }
.menu .danger { color: var(--danger); }

.thread-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.thread-bar .stats { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 4px 11px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.pager span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* catalog */
.catalog-tools { max-width: 320px; margin: 0 auto 14px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; overflow: hidden; }
.card:hover { text-decoration: none; border-color: var(--accent); }
.card img { max-width: 150px; max-height: 150px; width: auto; height: auto; border-radius: 6px; }
.noimg { width: 150px; height: 90px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border-radius: 6px; font-size: 12px; }
.card-stats { font-size: 12px; color: var(--muted); }
.card-subject { font-weight: 800; color: var(--accent); font-size: 14px; }
.card-text { font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.card.filtered-out { display: none; }

.message, .prose { max-width: 680px; margin: 32px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.prose h2 { font-size: 18px; margin-top: 24px; }
.prose li { margin: 6px 0; }
.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- admin ---------- */
.admin .topbar { gap: 20px; }
.admin .who { color: var(--muted); font-size: 13px; margin-left: auto; }
.admin .view-site { font-size: 13px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-nav a, .linkish { padding: 5px 10px; border-radius: 6px; color: var(--text); font-size: 14px; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.admin-nav a:hover, .linkish:hover { background: var(--surface-2); text-decoration: none; }
.badge { background: var(--danger); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.admin-main { max-width: 1100px; }
.admin-main h1 { font-size: 24px; }
.admin-form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.admin-form.narrow { max-width: 380px; }
.row-form { grid-template-columns: 1fr 2fr auto; align-items: center; }
@media (max-width: 640px) { .row-form { grid-template-columns: 1fr; } }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
form.inline { display: inline; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--text); display: grid; }
.stat b { font-size: 28px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.alert { border-color: var(--danger); }
.stat.alert b { color: var(--danger); }
a.stat:hover { text-decoration: none; border-color: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.tbl .excerpt { max-width: 320px; color: var(--muted); overflow-wrap: anywhere; }
.admin-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; }
.admin-post.status-held { border-left: 4px solid var(--danger); }
.tag { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); }
.tag.warn { background: var(--danger); color: #fff; }
.tag.ok { background: var(--ok); color: #fff; }
.meta { color: var(--muted); font-size: 12px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; clear: both; padding-top: 8px; border-top: 1px dashed var(--line); }
.report-list { clear: both; font-size: 13px; margin: 8px 0 0; padding-left: 18px; }
.thumb.blur img { filter: blur(18px) grayscale(.6); }
.error { color: var(--danger); font-weight: 600; }
.ok-msg { color: var(--ok); font-weight: 600; }
.board-edit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 8px 0; }
.board-edit summary { cursor: pointer; font-weight: 700; }
.board-edit .admin-form { border: 0; padding: 12px 0; }

@media (max-width: 600px) {
  main { padding: 10px; }
  .post.reply { margin-left: 0; max-width: 100%; width: 100%; }
  .file { float: none; }
  .thumb img { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
img.qr { display: block; background: #fff; padding: 6px; border-radius: 8px; image-rendering: pixelated; margin: 8px 0; }
.setup-error { border: 2px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--text); border-radius: var(--radius); padding: 12px 14px; }
.setup-error b { color: var(--danger); }
.setup-error:focus { outline: none; }
.setup-log { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 12px 14px; }
.setup-log h2 { margin: 0 0 8px; font-size: 16px; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 24px 1fr auto; gap: 2px 8px; align-items: baseline; }
.step-icon { font-weight: 800; text-align: center; }
.step.ok .step-icon { color: var(--ok); }
.step.fail .step-icon { color: var(--danger); }
.step.running .step-icon { color: var(--muted); }
.step-ms { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.step-msg, .step-hint { grid-column: 2 / -1; font-size: 14px; }
.step.fail .step-msg { color: var(--danger); font-weight: 600; }
.step-hint { color: var(--muted); }
.setup-report { margin-top: 12px; }
.setup-report summary { cursor: pointer; font-weight: 700; }
.setup-report textarea { font-family: var(--mono); font-size: 12px; margin: 8px 0; min-height: 160px; }
/* request button + board requests */
.nav-btn { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav-btn:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 560px) { .nav-btn-label { display: none; } .nav-btn { padding: 0 10px; } }
.requests-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 800px) { .requests-layout { grid-template-columns: 1fr; } }
.request-form h2 { margin: 0; font-size: 18px; }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.req { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.req-vote { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.req-vote.busy { opacity: .5; pointer-events: none; }
.vote-btn { background: none; border: 1px solid transparent; border-radius: 6px; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 4px 8px; }
.vote-btn:hover { border-color: var(--line); color: var(--text); }
.vote-btn.active[data-v="1"] { color: var(--ok); border-color: var(--ok); }
.vote-btn.active[data-v="-1"] { color: var(--danger); border-color: var(--danger); }
.req-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.req-title { font-weight: 700; }
.req-title .slug, .req-history .slug { font-family: var(--mono); color: var(--accent); }
.req-desc { color: var(--muted); font-size: 14px; }
.req-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.req-history { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; }
/* ads */
.ad { position: relative; display: block; width: fit-content; margin: 12px auto; max-width: calc(100% - 32px); }
.ad img { max-width: 100%; height: auto; border-radius: 6px; display: block; }
.ad-label { position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: rgb(0 0 0 / .6); color: #fff; padding: 1px 6px; border-radius: 4px; }

.ad-inline { margin: 14px auto; }
.ad-thumb { max-width: 120px; max-height: 60px; border-radius: 4px; display: block; }
.ad-thumb.big { max-width: 360px; max-height: 200px; }
.tbl td.actions { white-space: nowrap; }
/* staff, protection, DMCA */
.role-help { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.role-help dt { font-weight: 700; } .role-help dd { margin: 0; color: var(--muted); }
.board-checks { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.board-checks legend { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 4px; }
.tag.role-admin { background: var(--accent); color: var(--accent-ink); }
.tag.role-lead { background: var(--link); color: var(--bg); }
.dmca-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.dmca-info dt { font-weight: 700; color: var(--muted); } .dmca-info dd { margin: 0; overflow-wrap: anywhere; }
.dmca-info pre.urls { margin: 0; white-space: pre-wrap; font-size: 13px; }
.dmca-form h2 { font-size: 16px; margin: 8px 0 0; }
.foot a { white-space: nowrap; }
/* error console */
.console-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.tabs .tab { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-size: 14px; background: var(--surface); }
.tabs .tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tabs .tab:hover { text-decoration: none; border-color: var(--accent); }
.tbl.console .err-msg code { background: none; padding: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tbl.console tr.resolved { opacity: .55; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl.health td:first-child { font-weight: 600; white-space: nowrap; }
.console-raw { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; font-size: 12px; max-height: 300px; overflow: auto; white-space: pre-wrap; }
/* staff badge — small, quiet, and impossible to fake (added by the server only) */
.staff-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 6px 1px 5px; border-radius: 99px; border: 1px solid currentColor; line-height: 1.5; vertical-align: 1px; }
.staff-badge svg { flex: none; }
.staff-admin { color: var(--accent); }
.staff-lead { color: var(--link); }
.staff-mod { color: var(--ok); }
.staff-janitor { color: var(--muted); }
.staff-toggle { font-weight: 600; }
.staff-toggle input { accent-color: var(--ok); }
.staff-toggle-hint { display: block; margin-top: -6px; }
.console-copy { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.console-copy .btn { justify-self: start; }
.report-preview summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.report-preview textarea { font-family: var(--mono); font-size: 12px; margin-top: 8px; white-space: pre; overflow: auto; }
.tbl.console .explain { font-size: 13px; margin-top: 4px; padding: 6px 8px; border-left: 3px solid var(--link); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.tag.quiet { background: transparent; border: 1px solid var(--line); color: var(--muted); }
