:root {
  --bg: #0f1115;
  --surface: #181b22;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --accent: #ffb000;
  --border: #2a2f3a;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f6f7f9; --surface: #ffffff; --text: #16181d; --muted: #566070; --accent: #b36b00; --border: #d9dde4; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.site-header { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: .02em; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.hero h1 { font-size: 2rem; margin: 24px 0 8px; }
.hero p { color: var(--muted); }
h1 { line-height: 1.2; }
h2 { margin-top: 2rem; font-size: 1.25rem; }
.flash { padding: 10px 14px; border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface); margin: 0 0 16px; border-radius: 4px; }
.flash-error { border-left-color: #d64545; }
.flash-success { border-left-color: #2e9e5b; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { text-decoration: none; }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.muted { color: var(--muted); }
.form { max-width: 420px; margin-top: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password] { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field.check label { font-weight: 400; }
.hint { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.error { margin: 4px 0 0; color: #d64545; font-size: .875rem; }
.btn { display: inline-block; padding: 10px 18px; font: inherit; font-weight: 600; color: #111; background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 6px 12px; font-size: .875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: .75rem; border-radius: 10px; border: 1px solid var(--border); }
.badge-ok { color: #2e9e5b; border-color: #2e9e5b; }
.badge-warn { color: var(--accent); border-color: var(--accent); }
.site-footer { border-top: 1px solid var(--border); padding: 20px 16px; text-align: center; color: var(--muted); font-size: .875rem; }
.site-footer p { max-width: 760px; margin: .4rem auto; }
.oauth { max-width: 420px; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 12px; }
.oauth-or { margin: 0 0 10px; }
.oauth-form { display: block; margin: 0 0 10px; }
.btn-oauth { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-discord { border-left: 4px solid #5865f2; }
.btn-google { border-left: 4px solid #ea4335; }
.btn-microsoft { border-left: 4px solid #00a4ef; }
.plainlist { list-style: none; padding: 0; }
.plainlist li { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.label-like { display: block; font-weight: 600; margin-bottom: 4px; }
.plain { margin: 0; }
select, textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
textarea { resize: vertical; }
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-wide { max-width: 720px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: #d64545; color: #fff; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 4px 16px; margin: 0 0 14px; }
.card h2, .card h3 { margin: 12px 0 4px; font-size: 1.15rem; }
.stack li { margin-bottom: 8px; display: block; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .875rem; }
.table .num { text-align: right; white-space: nowrap; }
.crumbs { color: var(--muted); font-size: .875rem; margin: 0 0 4px; }
.searchbar { display: flex; gap: 8px; max-width: 480px; margin: 12px 0; }
.searchbar input { flex: 1; padding: 8px 12px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 20px 0; color: var(--muted); }
.post { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 10px 16px; margin: 0 0 14px; }
.post-hidden { opacity: .75; border-style: dashed; }
.post-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 8px; }
.post-actions { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; font-size: .875rem; margin-top: 8px; }
.report summary { cursor: pointer; color: var(--accent); }
.report input { width: 100%; max-width: 360px; padding: 6px 10px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.modbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.prose { overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; padding: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; }
.prose code { background: var(--bg); padding: 1px 5px; border-radius: 3px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 8px 0; padding: 2px 14px; border-left: 3px solid var(--border); color: var(--muted); }
.prose h2, .prose h3, .prose h4 { margin: 1.2em 0 .4em; }
@media (max-width: 600px) { .table { font-size: .875rem; } .table th, .table td { padding: 6px 4px; } .site-header { gap: 6px; } .nav { gap: 12px; flex-wrap: wrap; } }
