:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7a8c;
  --line: #dde3ea;
  --brand: #1f4e78;
  --brand-ink: #ffffff;
  --accent: #eef3f8;
  --warn: #b45309;
  --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: 52px;
  background: var(--brand);
  color: var(--brand-ink);
}

.brand { font-size: 16px; font-weight: 600; letter-spacing: 1px; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
}
.menu a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.menu a.on { background: rgba(255, 255, 255, 0.18); color: #fff; }
.menu form { margin: 0; }

.linklike {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}
.linklike:hover { background: rgba(255, 255, 255, 0.12); }

.banner {
  background: #fdf3e3;
  color: var(--warn);
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid #f3ddba;
}

.wrap { max-width: 1080px; margin: 24px auto; padding: 0 16px; }

h1 { font-size: 18px; margin: 8px 0 16px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline label { color: var(--muted); display: flex; align-items: center; gap: 6px; }

input[type="text"], input[type="password"] {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  min-width: 0;
}

button, .btnlike {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
button:hover, .btnlike:hover { background: var(--accent); text-decoration: none; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover { background: #173d5e; }

.meta { color: var(--muted); }

.tablewrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}

table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
thead th {
  background: var(--accent);
  color: var(--brand);
  font-weight: 600;
  position: sticky;
  top: 0;
}
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }

.mono { font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0;
  color: var(--muted);
}
.disabled { color: #b3bfcc; }

.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.login-card { max-width: 360px; margin: 8vh auto 0; }
.login-card h1 { margin-top: 0; }
.center { max-width: 480px; margin: 10vh auto 0; text-align: center; }

.vform { display: flex; flex-direction: column; gap: 14px; }
.vform label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.vform input { width: 100%; }
.vform button { margin-top: 6px; }

.error {
  background: #fdeceb;
  color: var(--danger);
  border: 1px solid #f5cfcb;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.notice {
  background: #ecf7ee;
  color: #15803d;
  border: 1px solid #c9e8d2;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

td.warn { color: var(--warn); font-weight: 600; }
td.name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

.status {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}
.status dt { color: var(--muted); }
.status dd { margin: 0; }
.status .ok { color: #15803d; }
.status .warn { color: var(--warn); }

.foot {
  text-align: center;
  color: #97a5b5;
  font-size: 12px;
  margin: 32px 0 20px;
}
