:root {
  --bg: #f6f7f9; --card: #fff; --line: #e2e5ea; --text: #1c2330; --muted: #6b7280;
  --accent: #2563eb; --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 system-ui, "Microsoft YaHei", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
button:hover { border-color: #b8bfca; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
input, textarea, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%; }
textarea { resize: vertical; }
select { width: auto; }
label { display: block; margin: 8px 0 3px; color: var(--muted); font-size: 13px; }

header { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header h1 { font-size: 16px; margin: 0; }
header .spacer { flex: 1; }
nav { display: flex; gap: 4px; padding: 8px 18px 0; background: var(--card); border-bottom: 1px solid var(--line); }
nav button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; }
nav button.on { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
main { padding: 16px 18px 40px; max-width: 1500px; margin: 0 auto; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.card h2 { font-size: 15px; margin: 0 0 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.break { word-break: break-all; }
.msg { margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: #fff7ed; color: var(--warn); border: 1px solid #fed7aa; }
.err { background: #fef2f2; color: var(--bad); border-color: #fecaca; }

.tag { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 12px; background: #eef1f5; color: #374151; white-space: nowrap; }
.tag.ok { background: #dcfce7; color: var(--ok); }
.tag.warn { background: #ffedd5; color: var(--warn); }
.tag.bad { background: #fee2e2; color: var(--bad); }
.tag.info { background: #dbeafe; color: #1d4ed8; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; margin-right: 5px; }
.dot.ok { background: #22c55e; } .dot.bad { background: #ef4444; } .dot.warn { background: #f59e0b; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.url { max-width: 420px; word-break: break-all; }

.review { display: grid; grid-template-columns: minmax(280px, 46%) 1fr; gap: 14px; }
.review img { width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; }
.noshot { border: 1px dashed var(--line); border-radius: 6px; padding: 30px; text-align: center; color: var(--muted); }
.human { display: grid; grid-template-columns: 380px 1fr; gap: 14px; align-items: start; }
.screen { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 8px; background: #111; }
@media (max-width: 1000px) { .review, .human { grid-template-columns: 1fr; } }

.login { max-width: 360px; margin: 12vh auto; }

[hidden] { display: none !important; }

/* 点了之后、请求还没回来的按钮 */
button.busy { cursor: progress; }

/* 审批页里「发出去之后的样子」 */
.preview { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fafbfc; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview .who { font-weight: 600; margin-bottom: 4px; }
.preview a { color: var(--accent); text-decoration: underline; }

/* 「等你动手」页：左边任务，右边这条任务的页面画面 */
.human2 { display: grid; grid-template-columns: minmax(340px, 30%) 1fr; gap: 14px; align-items: start; }
.liveimg { width: 100%; display: block; border: 1px solid var(--line); border-radius: 6px; cursor: crosshair; user-select: none; }
.card.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.msg:empty { display: none; }
@media (max-width: 1000px) { .human2 { grid-template-columns: 1fr; } }

/* 资源库顶上的分类标签 */
button.chip { border-radius: 999px; padding: 3px 12px; font-size: 13px; }
button.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
