:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel2: #1f2530;
  --line: #2a3140;
  --text: #e6e9ef;
  --muted: #8b94a7;
  --accent: #4f8cff;
  --ok: #36c275;
  --bad: #ff5d5d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-weight: normal; }
.msg { min-height: 1.2em; font-size: 13px; margin: 6px 0; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--bad); }

/* 登录 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 340px; }
.login-card h1 { margin: 0 0 2px; font-size: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 14px;
}
label { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
input, select, button {
  font: inherit;
  background: var(--panel2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
button { cursor: pointer; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.ghost { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500; }
button:hover { filter: brightness(1.08); }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-size: 13px; }
.health { color: var(--muted); font-size: 18px; }
.health.live { color: var(--ok); }
.health.dead { color: var(--bad); }

.main { max-width: 1080px; margin: 0 auto; }
h2 { font-size: 16px; margin: 0 0 10px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 8px; }
.row-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 10px; background: var(--panel2); border-radius: 8px; }
.row-form input, .row-form select { flex: 1 1 140px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
tbody tr:hover { background: var(--panel2); }
td .mini { padding: 4px 9px; font-size: 12px; margin-right: 4px; }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); }
.tag.active { color: var(--ok); }
.tag.banned { color: var(--bad); }
