:root {
  --blue: #0969f5;
  --ink: #172033;
  --muted: #697386;
  --line: #d8dee8;
  --bg: #f2f4f8;
  --ok: #1ba641;
  --bad: #d93a3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 14px/1.5 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: var(--blue); color: #fff;
}
.brand { font-weight: 700; letter-spacing: .3px; }
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.who { opacity: .75; font-size: 12px; }
.logout { border-left: 1px solid rgba(255,255,255,.4); padding-left: 12px; }
main { max-width: 1240px; margin: 20px auto 40px; padding: 0 20px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; margin: 18px 0 8px; }
.msg {
  background: #e8f2ff; border: 1px solid #b7d4ff; color: #0b4ea2;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 14px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 18px;
}
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.hint { color: var(--muted); font-size: 12px; }
label { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
input[type=text], input[type=password], input[type=date], input[type=file], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #cfe0ff; border-color: var(--blue); }
button, .button {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--blue); border-radius: 8px;
  background: var(--blue); color: #fff; font: inherit; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { filter: brightness(1.05); }
.button.secondary { background: #fff; color: var(--blue); }
button.link {
  background: none; border: 0; padding: 0 4px; color: var(--blue); cursor: pointer; font-size: 13px;
}
button.link.danger { color: var(--bad); }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; }
.search input { width: 260px; margin: 0; }
.search button { padding: 8px 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: #f8fafc; white-space: nowrap; }
tbody tr:hover { background: #fbfcfe; }
td.mono, .mono { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 12px; }
td.sha { color: var(--muted); }
td.note { max-width: 220px; color: var(--muted); }
td.ops { white-space: nowrap; }
form.inline { display: inline; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-size: 12px; }
.pill.ok { background: #e9f8ee; color: var(--ok); }
.pill.bad { background: #fff1f1; color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 26px; }
.pager { display: flex; gap: 16px; justify-content: center; margin-top: 14px; }
.pager a { color: var(--blue); text-decoration: none; }
pre {
  background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px;
  overflow-x: auto; font-size: 12px;
}
code { background: #eef2f8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .search input { width: 160px; }
  table { display: block; overflow-x: auto; }
}
