* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #333;
  font-size: 14px;
}
a { color: #07c160; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: #1f2329; color: #fff; }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 52px; gap: 28px;
}
.brand { color: #fff; font-weight: 600; font-size: 15px; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: #cfd3da; }
.topbar nav a:hover { color: #fff; text-decoration: none; }

.main { max-width: 1100px; margin: 0 auto; padding: 22px 20px 60px; }

.muted { color: #999; }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }
.ellip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error { color: #d03050; }
.warn { color: #d03050; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card .num { font-size: 26px; font-weight: 600; }

.panel {
  background: #fff; border-radius: 10px; padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 20px;
}
.panel h2 { font-size: 15px; margin: 0 0 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; }

select, input[type=password], input[type=text] {
  padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 6px;
  font-size: 14px; background: #fff; outline: none;
}
select:focus, input:focus { border-color: #07c160; }

button, .btn {
  padding: 7px 16px; border: 1px solid #07c160; border-radius: 6px;
  background: #07c160; color: #fff; font-size: 14px; cursor: pointer;
}
button:hover, .btn:hover { opacity: .9; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: #07c160; }
.check { display: flex; align-items: center; gap: 6px; color: #666; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.table th { color: #999; font-weight: 500; font-size: 12px; }
.table tr:hover td { background: #fafbfc; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: #eef0f3; color: #666; }
.badge.st-drafted, .badge.st-done { background: #e6f7ee; color: #07c160; }
.badge.st-failed { background: #fdecef; color: #d03050; }
.badge.st-dry_run { background: #eef4ff; color: #3b6fd4; }
.badge.st-running, .badge.st-writing, .badge.st-imaging, .badge.st-publishing { background: #fff7e6; color: #d48806; }

.pager { display: flex; align-items: center; gap: 14px; margin-top: 14px; }

.kv { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 12px; }
.digest { margin: 6px 0 0; }
.cover-preview { max-width: 450px; border-radius: 8px; display: block; }

.preview { border: 1px solid #eef0f3; border-radius: 8px; padding: 20px; max-height: 620px; overflow: auto; background: #fff; }
.imgs { display: flex; gap: 16px; flex-wrap: wrap; }
.img-card { width: 300px; }
.img-card img { width: 100%; border-radius: 8px; border: 1px solid #eef0f3; display: block; margin: 6px 0; }
.md { white-space: pre-wrap; word-break: break-word; background: #f7f8fa; border-radius: 8px; padding: 16px; font-size: 13px; line-height: 1.8; }

.login-wrap { display: flex; justify-content: center; padding-top: 12vh; }
.login-card {
  background: #fff; border-radius: 12px; padding: 34px 30px; width: 340px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 14px;
}
.login-card h1 { font-size: 19px; margin: 0; }
.login-card p { margin: 0; }
.login-card input { width: 100%; }
.login-card button { width: 100%; padding: 9px; }
