:root { --bg:#f5f7fb; --card:#ffffff; --line:#e5e7eb; --text:#111827; --muted:#6b7280; --blue:#2563eb; --green:#16a34a; --red:#dc2626; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--blue); text-decoration:none; }
.header { height:58px; background:#111827; color:white; display:flex; align-items:center; justify-content:space-between; padding:0 24px; }
.header a { color:white; margin-left:16px; }
.container { max-width:1180px; margin:24px auto; padding:0 18px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:18px; box-shadow:0 2px 8px rgba(15,23,42,.04); }
.grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.stat { font-size:28px; font-weight:700; margin-top:8px; }
.muted { color:var(--muted); }
.btn { display:inline-block; border:0; background:var(--blue); color:white; padding:10px 14px; border-radius:8px; cursor:pointer; }
input, select, textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; margin:6px 0 14px; }
table { width:100%; border-collapse:collapse; background:white; }
th, td { padding:12px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; }
th { background:#f9fafb; }
.badge { padding:4px 8px; border-radius:999px; background:#eef2ff; color:#3730a3; font-size:12px; }
.badge.ok { background:#dcfce7; color:#166534; }
.badge.warn { background:#fef3c7; color:#92400e; }
.badge.err { background:#fee2e2; color:#991b1b; }
.login-wrap { max-width:420px; margin:88px auto; }
.error { background:#fee2e2; color:#991b1b; padding:10px; border-radius:8px; margin-bottom:14px; }
.nav { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
.nav a { background:white; border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
.linkbtn { border:0; background:none; color:#2563eb; cursor:pointer; padding:0; font:inherit; }
pre.logbox { white-space:pre-wrap; background:#0b1020; color:#d1d5db; padding:16px; border-radius:10px; overflow:auto; max-height:620px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 900px) { .form-row { grid-template-columns: 1fr; } }
