:root { --bg: #070807; --panel: #101310; --sub: #161a16; --line: #262d26; --line2: #343d34; --text: #eef2ee; --muted: #8a938a; --green: #22e36b; --green-dim: rgba(34,227,107,.12); --red: #ef4444; --yellow: #facc15; --blue: #60a5fa; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
a { color: var(--green); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: #050605; border: 1px solid var(--line2); border-radius: 6px; padding: 6px 8px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
button { cursor: pointer; border: 1px solid var(--line2); background: var(--sub); border-radius: 6px; padding: 6px 12px; font-weight: 600; }
button:hover { border-color: #4a564a; }
button.primary { background: var(--green); color: #031; border-color: var(--green); }
button.danger { color: #ff9b9b; border-color: #5a2626; }
button.sm { padding: 2px 8px; font-size: 12px; }
button:disabled { opacity: .45; cursor: default; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 380px; max-width: 100%; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(34,227,107,.06); }
.login-card h1 { margin: 0; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.login-card img { width: 36px; height: 36px; border-radius: 8px; }
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.nav { background: var(--panel); border-right: 1px solid var(--line2); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 900; letter-spacing: .06em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand small { display: block; font-size: 9.5px; color: var(--green); letter-spacing: .25em; font-weight: 700; }
.nav a { color: #c9d1c9; padding: 7px 10px; border-radius: 7px; display: flex; justify-content: space-between; }
.nav a:hover { background: var(--sub); }
.nav a.on { background: var(--green-dim); color: var(--green); }
.nav .grow { flex: 1; }
.nav .me { font-size: 12px; color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--line); word-break: break-all; }
.badge { background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; }
.main { padding: 20px 24px 60px; min-width: 0; }
.main h2 { margin: 0 0 14px; font-size: 20px; }
.main h3 { margin: 22px 0 10px; font-size: 15px; color: #cfd7cf; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; }
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card.warn .v { color: var(--yellow); }
.card.bad .v { color: #ff8a8a; }
.card.ok .v { color: var(--green); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.tbl-wrap { overflow: auto; border: 1px solid var(--line2); border-radius: 10px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--sub); position: sticky; top: 0; }
tr:hover td { background: #121612; }
td.wrap { white-space: normal; min-width: 150px; max-width: 420px; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: 11.5px; border: 1px solid var(--line2); }
.pill.ok { color: var(--green); border-color: #1f5135; }
.pill.warn { color: var(--yellow); border-color: #5c4d10; }
.pill.bad { color: #ff9090; border-color: #5a2626; }
.pill.info { color: var(--blue); border-color: #1e3a5f; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; width: 560px; max-width: 100%; max-height: 90vh; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal h3 { margin: 0; }
.form { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; align-items: center; }
.form label { color: var(--muted); font-size: 13px; }
.form .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; right: 18px; bottom: 18px; background: #0f1a12; border: 1px solid #1f5135; color: var(--green); padding: 10px 14px; border-radius: 8px; z-index: 99; max-width: 420px; }
.toast.err { background: #1c0d0d; border-color: #5a2626; color: #ffb0b0; }
.err { color: #ff9b9b; font-size: 13px; }
.note { border: 1px dashed #5c4d10; background: rgba(250,204,21,.05); color: #e7d27a; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; }
.bar { height: 8px; background: var(--green); border-radius: 4px; box-shadow: 0 0 8px rgba(34,227,107,.5); }
.vrow { display: grid; grid-template-columns: 90px 1fr 50px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 13px; }
.kv > :nth-child(odd) { color: var(--muted); }
textarea.codes { width: 100%; min-height: 180px; font-family: ui-monospace, Menlo, monospace; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; } .nav .grow, .nav .me { display: none; } .grid2 { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }
a.btnlink { display: inline-block; padding: 3px 8px; border: 1px solid #333; border-radius: 4px; text-decoration: none; margin-left: 4px; }
label.chk { display: inline-flex; align-items: center; gap: 4px; }
a.card { text-decoration: none; color: inherit; }
.kv > .pill { justify-self: start; }
