:root { --space: 8px; --radius: 12px; --bg: #f5f6f8; --surface: #fff; --surface-2: #f0f2f5; --ink: #15191f; --ink-2: #3d4450;
  --muted: #646b78; --line: #e1e4ea; --brand: #0b2545; --accent: #b3121f; --ok: #13795b; --warn: #b26b00; --bad: #b3121f;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1216; --surface: #171b21; --surface-2: #1f242c; --ink: #eef1f5; --ink-2: #c9ced7;
  --muted: #9aa3b2; --line: #2a3039; --ok: #3ccf9a; --warn: #ffb84d; --bad: #ff5a66; --shadow: 0 1px 2px rgba(0,0,0,.4); } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
header.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.top-inner .brand { font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-inner .mode { font-size: 12px; background: rgba(255,255,255,.15); padding: 2px 8px; border-radius: 999px; }
.top-inner form { margin-left: auto; }
nav.tabs { background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
nav.tabs .inner { max-width: 1100px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; }
nav.tabs a { padding: 12px 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
nav.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 24px; margin: 0 0 16px; } h2 { font-size: 16px; margin: 0 0 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stat { font-size: 30px; font-weight: 700; line-height: 1.1; } .label { color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.chip.live { background: rgba(19,121,91,.12); color: var(--ok); } .chip.draft { background: rgba(178,107,0,.14); color: var(--warn); }
.chip.unpublished, .chip.bad { background: rgba(179,18,31,.12); color: var(--bad); } .chip.ok { background: rgba(19,121,91,.12); color: var(--ok); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--brand); } .bar.hot > span { background: var(--bad); }
@media (prefers-color-scheme: dark) { .bar > span { background: #8cb8ff; } }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px inherit; font-family: inherit; padding: 9px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); } .btn.danger { color: var(--bad); border-color: currentColor; }
.btn.small { padding: 5px 10px; font-size: 13px; } .btn:hover { filter: brightness(1.05); }
header.top .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
form.inline { display: inline; margin: 0; }
input[type=text], input[type=password], input[type=search], select, textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
textarea { min-height: 360px; line-height: 1.6; }
.field { margin-bottom: 14px; } .field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; margin-bottom: 16px; }
.notice { padding: 12px 14px; border-radius: 8px; background: rgba(19,121,91,.12); color: var(--ok); margin-bottom: 16px; font-weight: 500; }
.notice.bad { background: rgba(179,18,31,.12); color: var(--bad); }
.article-body { white-space: pre-wrap; font-family: Georgia, serif; font-size: 16px; line-height: 1.7; }
pre.log { white-space: pre-wrap; font-size: 12px; background: var(--surface-2); padding: 12px; border-radius: 8px; max-height: 320px; overflow: auto; margin: 0; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.login { max-width: 380px; margin: 10vh auto; }
.model-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } .hide-sm { display: none; } h1 { font-size: 21px; } }
