* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #0f1419; color: #d7dde4; min-height: 100vh; }
a { color: #6cb6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: .85em; }
.wrap { word-break: break-all; }
.muted { color: #8a94a0; }

.topbar { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; background: #161d26; border-bottom: 1px solid #262f3a; }
.brand { font-weight: 700; color: #e8edf2; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.container { max-width: 980px; margin: 24px auto; padding: 0 16px;
  display: flex; flex-direction: column; gap: 20px; }

.card { background: #161d26; border: 1px solid #262f3a; border-radius: 10px;
  padding: 20px 24px; }
.card h2 { font-size: 17px; margin-bottom: 14px; }
.card h3 { font-size: 15px; margin: 16px 0 10px; }

.dropzone { display: block; border: 2px dashed #3a4655; border-radius: 10px;
  padding: 34px; text-align: center; cursor: pointer; color: #8a94a0;
  margin-bottom: 14px; transition: border-color .15s; }
.dropzone.over, .dropzone:hover { border-color: #6cb6ff; color: #d7dde4; }

button, .btn { background: #2563eb; color: #fff; border: 0; border-radius: 8px;
  padding: 9px 20px; font-size: 14px; cursor: pointer; display: inline-block; }
button:disabled { background: #3a4655; cursor: not-allowed; }
.btn-danger { background: #b3382c; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }

.jobs { width: 100%; border-collapse: collapse; font-size: 14px; }
.jobs th, .jobs td { text-align: left; padding: 8px 10px;
  border-bottom: 1px solid #262f3a; vertical-align: top; }
.jobs th { color: #8a94a0; font-weight: 500; }
.jobs .name { max-width: 220px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; }
.badge-ok { background: #14532d; color: #86efac; }
.badge-bad { background: #5b2320; color: #fca5a5; }
.badge-run { background: #1e3a5f; color: #93c5fd; }
.badge-wait { background: #3a3320; color: #fcd34d; }
.badge-static { background: #26303c; color: #9aa7b4; }

.alert { background: #3a2220; border: 1px solid #6b3230; border-radius: 8px;
  padding: 12px 16px; margin: 12px 0; line-height: 1.6; }
.alert .hint { color: #c9a894; margin-top: 8px; font-size: 13px; }

.meta { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px;
  margin-bottom: 8px; font-size: 14px; }
.meta dt { color: #8a94a0; }

.actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.actions form { display: inline; }

.log { background: #0b0f14; border: 1px solid #262f3a; border-radius: 8px;
  padding: 14px; max-height: 380px; overflow: auto; font-size: 12.5px;
  white-space: pre-wrap; word-break: break-all; }

.login-page { display: flex; align-items: center; justify-content: center; }
.login-card { background: #161d26; border: 1px solid #262f3a; border-radius: 12px;
  padding: 36px 40px; width: 360px; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { font-size: 18px; }
.login-card input { background: #0b0f14; border: 1px solid #3a4655; border-radius: 8px;
  padding: 10px 14px; color: #d7dde4; font-size: 14px; }
.login-card input:focus { outline: none; border-color: #6cb6ff; }
