/* M3 截图核销 · 候选列表页样式 */

#page-proof-candidates {
  padding: 20px 24px;
  font-size: 16px;
  color: var(--text);
}
#page-proof-candidates h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.pc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pc-toolbar .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.pc-back {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
}
.pc-back:hover { text-decoration: underline; }

/* job 头部信息 */
.pc-job {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.pc-job-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pc-job-icon { font-size: 22px; }
.pc-job-title { flex: 1; font-size: 16px; font-weight: 600; }
.pc-job-id { font-size: 13px; color: var(--text2); font-family: monospace; }

/* 失败原因（人话三段式） */
.pc-reason {
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.pc-reason strong { color: #d97706; display: block; margin-bottom: 4px; font-size: 15px; }
.pc-reason ol { margin: 6px 0 0; padding-left: 22px; }
.pc-reason li { margin: 3px 0; }

/* 单栏展示（架构瘦身后取消链上验证列；只显示截图识别值） */
.pc-compare {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  font-size: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  margin-top: 12px;
}
.pc-compare-head {
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, sans-serif;
}
.pc-compare-row-label {
  font-weight: 600;
  color: var(--text2);
  align-self: center;
  font-family: -apple-system, sans-serif;
}
.pc-compare-cell {
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
  line-height: 1.5;
  min-height: 36px;
}
.pc-compare-cell.match    { background: rgba(34, 197, 94, .1);  color: #16a34a; }
.pc-compare-cell.mismatch { background: rgba(239, 68, 68, .1);  color: #dc2626; }
.pc-compare-cell.pending  { background: rgba(245, 158, 11, .08); color: #d97706; }
.pc-compare-cell .pp-copyable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.pc-compare-cell .pp-copyable:hover { color: var(--blue); }

/* 操作三按钮 */
.pc-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pc-actions .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.pc-actions .btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.pc-actions .pc-btn-danger {
  background: var(--red);
  color: white;
  border: none;
}
.pc-actions .pc-btn-danger:hover:not(:disabled) { background: #dc2626; }
.pc-actions .pc-btn-warn {
  background: var(--yellow);
  color: white;
  border: none;
}
.pc-actions .pc-btn-warn:hover:not(:disabled) { background: #d97706; }

/* 候选列表区 */
.pc-tier-section {
  margin-top: 22px;
}
.pc-tier-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
.pc-tier-badge {
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.pc-tier-badge.tier1 { background: rgba(34,197,94,.15); color:#16a34a; }
.pc-tier-badge.tier2 { background: rgba(245,158,11,.15); color:#d97706; }
.pc-tier-badge.tier3 { background: rgba(168,85,247,.15); color:#9333ea; }
.pc-tier-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text2);
  font-weight: 400;
}

/* 候选 task 卡片 */
.pc-task {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s;
}
.pc-task:hover { border-color: var(--blue); }
.pc-task.selected { border-color: var(--blue); background: var(--bg3); }
.pc-task-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
}
.pc-task-no { font-weight: 700; }
.pc-task-applicant { color: var(--text); }
.pc-task-amount { color: var(--blue); font-weight: 600; font-family: monospace; }
.pc-task-meta {
  font-size: 13px;
  color: var(--text2);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: monospace;
}
.pc-task-meta .pp-copyable {
  text-decoration: underline dotted;
  cursor: pointer;
}
.pc-task-marks {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pc-mark {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pc-mark.ok { background: rgba(34,197,94,.12); color: #16a34a; }
.pc-mark.bad { background: rgba(239,68,68,.12); color: #dc2626; }
.pc-mark.warn { background: rgba(245,158,11,.12); color: #d97706; }
.pc-task-foot {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}
.pc-task-foot .pc-time-diff {
  font-size: 13px;
  color: var(--text2);
}
.pc-task-foot .btn {
  margin-left: auto;
  min-height: 38px;
  padding: 0 18px;
}

/* tier1 空 banner */
.pc-empty-tier1 {
  margin-top: 16px;
  padding: 16px 18px;
  background: rgba(245, 158, 11, .06);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.pc-empty-tier1 .pc-expand-btns {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* loading */
.pc-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
  font-size: 15px;
}
.pc-loading .pc-spin {
  display: inline-block;
  margin-right: 8px;
  animation: pc-spin 1.2s linear infinite;
}
@keyframes pc-spin {
  to { transform: rotate(360deg); }
}
.pc-loading-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text2);
}

/* 危险确认弹窗(轻量,内置) */
.pc-confirm-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  animation: pc-fade-in .12s ease-out;
}
.pc-confirm {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}
.pc-confirm h3 { margin: 0 0 12px; font-size: 18px; }
.pc-confirm p  { margin: 0 0 16px; line-height: 1.6; font-size: 14px; color: var(--text); }
.pc-confirm-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.pc-confirm-actions .btn { min-height: 40px; padding: 0 18px; }
@keyframes pc-fade-in { from { opacity: 0; } to { opacity: 1; } }
