* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: #f4f6fa; color: #1f2937; font-size: 14px; }
.hidden { display: none !important; }
.muted { color: #6b7280; }
.small { font-size: 12px; }
.err { color: #dc2626; min-height: 18px; margin: 6px 0 0; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; padding: 32px; border-radius: 12px; width: 340px; box-shadow: 0 8px 30px rgba(15, 23, 42, .12); }
.login-card h1 { font-size: 20px; margin: 0 0 6px; }
.login-card input { width: 100%; padding: 10px 12px; margin: 12px 0; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #111827; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.pill.idle { background: #374151; }
.pill.running { background: #2563eb; }
.pill.done { background: #059669; }
.pill.failed { background: #dc2626; }
.pill.paused { background: #d97706; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.panel { background: #fff; margin: 14px 18px; padding: 14px 16px; border-radius: 10px; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar label { display: flex; gap: 6px; align-items: center; color: #374151; }
.toolbar input { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; width: 220px; }
.btn { border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 14px; cursor: pointer; background: #e5e7eb; color: #111827; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #2563eb; color: #fff; }
.btn.success { background: #059669; color: #fff; }
.btn.warn { background: #d97706; color: #fff; }
.btn.ghost { background: transparent; border-color: #d1d5db; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; color: #374151; }
.stats .stat { padding: 6px 12px; border-radius: 8px; background: #f3f4f6; }
.stats .stat b { font-size: 16px; margin-left: 6px; }
.stats .ok b { color: #059669; }
.stats .bad b { color: #dc2626; }
.stats .warn b { color: #d97706; }
.table-wrap { overflow: auto; max-height: 62vh; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #eef0f4; text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; background: #f9fafb; z-index: 1; font-weight: 600; color: #374151; }
.num { text-align: right; }
.w-check { width: 36px; }
tr.match td { background: #f0fdf4; }
tr.mismatch td { background: #fef2f2; }
tr.not_found td { background: #fffbeb; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.tag.ok { background: #d1fae5; color: #065f46; }
.tag.bad { background: #fee2e2; color: #991b1b; }
.tag.warn { background: #fef3c7; color: #92400e; }
.tag.dim { background: #e5e7eb; color: #374151; }
.progress-wrap { margin-bottom: 10px; }
.progress { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #2563eb; transition: width .3s; }
.log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.log { margin: 0; background: #0b1220; color: #d1e0ff; padding: 12px; border-radius: 8px; max-height: 220px; overflow: auto; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
a { color: #2563eb; }
