:root {
  --bg: #0f1115; --panel: #171a21; --line: #262b36; --text: #e6e8ee; --muted: #9aa3b2; --accent: #00d36f;
  --account: #ff5a5f; --alt_request: #ff9f43; --conduct: #f5cd47; --reported: #8a94a6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { border-bottom: 1px solid var(--line); background: #12151b; }
header.top .in { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
header.top .brand { font-weight: 700; color: var(--text); font-size: 17px; }
header.top .brand small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 13px; }
header.top nav { display: flex; gap: 14px; margin-left: auto; flex-wrap: wrap; }
header.top nav a { color: var(--muted); }
header.top nav a.on, header.top nav a:hover { color: var(--text); text-decoration: none; }
main { max-width: 1040px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
p.lead { color: var(--muted); margin: 0 0 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 14px; }
input[type=text], input[type=url], input[type=password], textarea, select {
  background: #0c0e12; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
.toolbar input[type=text] { max-width: 300px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.chip.on { color: var(--text); border-color: var(--text); }
button.btn { background: var(--accent); color: #04130b; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
button.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
button.btn.danger { background: var(--account); color: #fff; }
button.btn:disabled { opacity: .5; cursor: default; }
.grid { display: grid; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; }
.card img.av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #222; }
.card .av.ph { width: 52px; height: 52px; border-radius: 50%; background: #232733; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.card .name { font-weight: 700; font-size: 16px; color: var(--text); }
.card .meta { color: var(--muted); font-size: 13px; }
.card blockquote { margin: 8px 0 6px; padding: 8px 12px; border-left: 3px solid var(--line); color: #cfd4de; background: #12151b; border-radius: 0 8px 8px 0; white-space: pre-wrap; word-break: break-word; }
.card .src { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-top: 4px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; color: #111; }
.tag.account { background: var(--account); color: #fff; }
.tag.alt_request { background: var(--alt_request); }
.tag.conduct { background: var(--conduct); }
.tag.reported { background: var(--reported); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
form .row { margin-bottom: 14px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
form .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.notice.ok { background: #0f2a1c; border: 1px solid #1f6b43; }
.notice.err { background: #2a1214; border: 1px solid #7a2a30; }
ol.steps li { margin-bottom: 8px; }
code, kbd { background: #0c0e12; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
footer { max-width: 1040px; margin: 0 auto; padding: 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.legend { display: grid; gap: 8px; }
.legend div { display: flex; gap: 10px; align-items: baseline; }
.legend .tag { margin-left: 0; min-width: 92px; text-align: center; }
.admin-sub { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: var(--panel); }
.admin-sub .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .admin-sub .two { grid-template-columns: 1fr; } }
