/* 管理后台样式：简洁可用即可 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2328; background: #f6f8fa; font-size: 14px; }
header { background: #24292f; color: #fff; padding: 10px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
header a { color: #fff; text-decoration: none; }
header nav { display: flex; gap: 14px; flex-wrap: wrap; }
header .brand { font-weight: 600; }
header form { margin-left: auto; }
main { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid #d0d7de; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eaeef2; vertical-align: top; }
th { background: #f6f8fa; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eaeef2; }
.badge.ok { background: #dafbe1; color: #1a7f37; }
.badge.warn { background: #fff8c5; color: #9a6700; }
.badge.bad { background: #ffebe9; color: #cf222e; }
.error { background: #ffebe9; border: 1px solid #ff8182; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.banner { background: #fff8c5; border: 1px solid #d4a72c; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; }
label { display: block; margin: 8px 0 4px; font-weight: 600; }
input[type=text], input[type=password], select, textarea { width: 100%; max-width: 480px; padding: 6px 8px; border: 1px solid #d0d7de; border-radius: 6px; font: inherit; }
textarea { max-width: 100%; min-height: 90px; font-family: ui-monospace, monospace; }
button { padding: 6px 14px; border: 1px solid #1f883d; background: #1f883d; color: #fff; border-radius: 6px; cursor: pointer; font: inherit; }
button.secondary { background: #f6f8fa; color: #24292f; border-color: #d0d7de; }
button.danger { background: #cf222e; border-color: #cf222e; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat .num { font-size: 26px; font-weight: 600; }
.inline { display: inline; }
.muted { color: #656d76; }
.login { max-width: 360px; margin: 80px auto; }
code { background: #eaeef2; padding: 1px 4px; border-radius: 4px; }

.ok-banner { background: #dafbe1; border-color: #1a7f37; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { padding: 4px 12px; border: 1px solid #d0d7de; border-radius: 16px; text-decoration: none; color: #24292f; background: #fff; }
.tabs a.active { background: #24292f; color: #fff; }
pre.mail { white-space: pre-wrap; word-break: break-word; background: #f6f8fa; padding: 10px; border-radius: 6px; font-family: inherit; margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filters label { margin: 0; font-weight: normal; }
.filters select, .filters input[type=text] { width: auto; }
.timeline .out { border-left: 3px solid #0969da; padding-left: 8px; }
.timeline .in { border-left: 3px solid #1a7f37; padding-left: 8px; }
.timeline .source, .timeline .audit { border-left: 3px solid #d0d7de; padding-left: 8px; }
details summary { cursor: pointer; }
