* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.6 system-ui, "Microsoft YaHei", sans-serif; color: #24292f; background: #f6f8fa; }
header { background: #1e2430; color: #fff; padding: 10px 24px; display: flex; align-items: center; gap: 32px; }
header h1 { font-size: 17px; margin: 0; font-weight: 600; }
nav { display: flex; gap: 4px; }
.tab { background: none; border: none; color: #9aa4b2; padding: 6px 12px; cursor: pointer; font-size: 14px; border-radius: 6px; }
.tab:hover { color: #fff; }
.tab.active { background: #34405a; color: #fff; }

.panel { display: none; padding: 20px 24px; }
.panel.active { display: block; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.filters label { display: flex; align-items: center; gap: 6px; color: #57606a; }

input, select, button { font: inherit; padding: 5px 10px; border: 1px solid #d0d7de; border-radius: 6px; background: #fff; }
input[type=date], input[type=number] { width: 150px; }
button { background: #2563eb; border-color: #2563eb; color: #fff; cursor: pointer; }
button:hover { background: #1d4ed8; }
button.ghost { background: #fff; color: #57606a; }
button.mini { padding: 2px 8px; font-size: 12px; background: #fff; color: #57606a; }
button.mini.danger { color: #c62828; }

table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid #d8dee4; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 7px 12px; border-bottom: 1px solid #eaeef2; white-space: nowrap; }
th { background: #f0f3f6; color: #57606a; font-weight: 600; font-size: 13px; }
tr:hover td { background: #f6f9fc; }
td.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.tag.ok { background: #dcfce7; color: #15803d; }
.tag.dup { background: #fee2e2; color: #b91c1c; }
.meta { color: #57606a; margin-bottom: 8px; }
.pager { margin-top: 12px; display: flex; gap: 12px; align-items: center; color: #57606a; }

.bar { height: 8px; width: 120px; background: #e5e9f0; border-radius: 4px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.bar > i { display: block; height: 100%; background: #2563eb; border-radius: 4px; }

.form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: #fff; border: 1px solid #d8dee4; border-radius: 8px; padding: 16px; max-width: 900px; }
.form label { display: flex; flex-direction: column; gap: 4px; color: #57606a; font-size: 13px; }
h3 { margin: 24px 0 10px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-box { background: #fff; border-radius: 10px; width: 680px; max-width: 92vw; max-height: 86vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #eaeef2; font-weight: 600; }
.modal-head button { background: none; border: none; font-size: 20px; color: #57606a; }
#modal-body { padding: 14px 16px; }
#modal-body pre { background: #f6f8fa; border: 1px solid #eaeef2; border-radius: 6px; padding: 10px; overflow: auto; max-height: 300px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin-bottom: 10px; }
.kv b { color: #57606a; font-weight: 500; }
.login-box { width: 320px; padding: 24px; }
.login-box h2 { margin-top: 0; }
.login-box input { width: 100%; margin: 10px 0; }
.login-box button { width: 100%; }
