* { box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, Segoe UI, sans-serif;
  background: #f4f5f7;
  color: #222;
  margin: 0;
  padding: 0;
}

a { color: #07c160; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #07c160;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar .title { font-size: 18px; font-weight: bold; }
.topbar nav a { margin-left: 16px; }

.container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.auth-box {
  max-width: 360px;
  margin: 60px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.auth-box h1 { font-size: 20px; margin-top: 0; }
.auth-box .hint { color: #888; font-size: 13px; }

label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: #444;
}
input[type=text], input[type=password], input[type=datetime-local],
textarea, select, input[type=file] {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
textarea { min-height: 90px; resize: vertical; }

button, .btn {
  display: inline-block;
  background: #07c160;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
button:hover, .btn:hover { background: #06a852; text-decoration: none; }
.btn-danger { background: #e64340; }
.btn-danger:hover { background: #c8362f; }
.btn-secondary { background: #999; }
.btn-secondary:hover { background: #777; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; }
th { color: #888; font-weight: normal; font-size: 13px; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
}
.tag-pending { background: #999; }
.tag-in_progress { background: #f0a020; }
.tag-completed { background: #07c160; }
.tag-failed { background: #e64340; }

.error { color: #e64340; font-size: 14px; }
.success { color: #07c160; font-size: 14px; }
.hint { color: #888; font-size: 13px; }

.actions { display: flex; gap: 10px; align-items: center; }

.token-box {
  background: #f6f6f6;
  border: 1px dashed #ccc;
  padding: 10px;
  font-family: monospace;
  word-break: break-all;
  border-radius: 4px;
}
