:root {
  --bg: #f4f7fb; --card: #fff; --line: #e3e8ef; --ink: #1f2a37;
  --muted: #6b7280; --brand: #2563eb; --brand-d: #1d4ed8;
  --ok: #16a34a; --bad: #dc2626; --warn: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
}
header.top {
  background: linear-gradient(120deg, #2563eb, #0ea5e9); color: #fff; padding: 18px 22px;
}
header.top h1 { margin: 0; font-size: 19px; }
header.top p { margin: 4px 0 0; opacity: .9; font-size: 13px; }
.wrap { max-width: 920px; margin: 18px auto; padding: 0 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
h2 { font-size: 16px; margin: 4px 0 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 5px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid #bfdbfe; border-color: var(--brand); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 200px; }
.work { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fcfdff; }
.work h3 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.members .m { display: flex; gap: 8px; margin-bottom: 6px; }
.members .m input { flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 600;
}
.btn:hover { background: var(--brand-d); }
.btn.ghost { background: #eef2ff; color: var(--brand-d); }
.btn.ghost:hover { background: #e0e7ff; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.danger { background: #fee2e2; color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.ok { background: #dcfce7; color: var(--ok); }
.badge.bad { background: #fee2e2; color: var(--bad); }
.progress { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.result { font-size: 13px; }
.result .item { border-top: 1px dashed var(--line); padding: 8px 0; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #eff6ff; color: var(--brand-d); padding: 1px 7px; border-radius: 6px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; color: var(--muted); font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.filters { align-items: center; }
.filters select { width: auto; max-width: 100%; }
#storage, #bakList { overflow-wrap: anywhere; }
#list .card { overflow-x: auto; }
