* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6fa; color: #2d3436; line-height: 1.6;
}
a { color: #0984e3; text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  background: linear-gradient(135deg, #6c5ce7, #0984e3);
  color: #fff; padding: 14px 28px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.navbar .brand { font-size: 18px; font-weight: 600; }
.navbar a { color: #fff; opacity: .9; }
.navbar a:hover { opacity: 1; }

.container { max-width: 1200px; margin: 24px auto; padding: 0 24px; }

.card {
  background: #fff; border-radius: 10px; padding: 20px 24px;
  margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.card h2 { font-size: 18px; margin-bottom: 16px; color: #2d3436; }

.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.stat {
  background: #fff; border-radius: 10px; padding: 18px;
  text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.stat .num { font-size: 26px; font-weight: 700; color: #6c5ce7; }
.stat .label { font-size: 13px; color: #636e72; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; white-space: nowrap; }
th { color: #636e72; font-weight: 600; background: #fafbfc; }
td.wrap { white-space: normal; word-break: break-all; }

.btn {
  display: inline-block; padding: 7px 14px; border: none; border-radius: 6px;
  cursor: pointer; font-size: 13px; background: #0984e3; color: #fff;
  transition: opacity .2s;
}
.btn:hover { opacity: .9; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-success { background: #00b894; }
.btn-danger { background: #d63031; }
.btn-warning { background: #fdcb6e; color: #2d3436; }
.btn-secondary { background: #b2bec3; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; color: #fff;
}
.tag-online { background: #00b894; }
.tag-offline { background: #b2bec3; }
.tag-expired { background: #d63031; }
.tag-pending { background: #fdcb6e; color: #2d3436; }
.tag-running { background: #0984e3; }
.tag-done { background: #00b894; }
.tag-failed { background: #d63031; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 8px 12px; border: 1px solid #dfe6e9;
  border-radius: 6px; font-size: 14px; font-family: inherit;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 10px; padding: 24px;
  width: 360px; text-align: center;
}
.modal img { max-width: 260px; margin: 12px 0; border: 1px solid #eee; }
.modal .status { margin: 8px 0; color: #636e72; }

.empty { text-align: center; color: #b2bec3; padding: 32px; }
.muted { color: #b2bec3; font-size: 13px; }
