:root {
  --bg: #10140f;
  --panel: #171d16;
  --line: #2a3328;
  --text: #e7eedf;
  --muted: #93a089;
  --accent: #d4a017;
  --ok: #7dbf6a;
  --danger: #d36a5c;
  --hot: #e07a3d;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
a { color: inherit; }
.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #12180f; border-right: 1px solid var(--line); padding: 22px 16px; }
.brand { font-weight: 700; letter-spacing: .02em; margin-bottom: 28px; }
.brand small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }
.nav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); margin-bottom: 4px; }
.nav a.active, .nav a:hover { background: #24301f; color: var(--text); }
.main { padding: 24px 28px 48px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 1.4rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; background: #2c3828; color: var(--text); text-decoration: none; display: inline-block; font: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn.primary { background: var(--accent); color: #1a1403; font-weight: 700; }
.btn.ok { background: #2d5a32; }
.btn.danger { background: #5a2d2d; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.card .k { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.card .v { font-size: 28px; font-weight: 700; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #2a3328; }
.badge.hot { background: #5a3218; color: #ffd2a8; }
.badge.ok { background: #1e3d22; color: #b6e0a8; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.flash.ok { background: #1e3d22; }
.flash.error { background: #5a2d2d; }
.form { display: grid; gap: 10px; }
label { color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
input, select, textarea { background: #10150f; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
textarea { min-height: 90px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { background: #3a2a12; border: 1px solid #7a5a20; padding: 12px; border-radius: 10px; margin-bottom: 16px; }
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 16px; }
.timeline .ev { margin-bottom: 12px; }
.muted { color: var(--muted); }
.login { min-height: 100vh; display: grid; place-items: center; }
.login box, .login-card { width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.post { white-space: pre-wrap; background: #10150f; padding: 12px; border-radius: 8px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
