/* AP-006 页面专属样式：来源选择、名单、结论卡节点/信号/意愿、主管队列与修正编辑器。 */
/* ── 来源三选一 ───────────────────────────────────────── */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  background: #eef1f6;
  border-radius: 10px;
}

.seg button {
  min-height: 38px;
  padding: 6px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 3px rgb(16 32 64 / 12%);
}

.source-panel[hidden] {
  display: none;
}

/* ── 今日名单/提交列表 ────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.list-item:first-child {
  border-top: 0;
}

.list-item .main {
  min-width: 0;
  flex: 1;
}

.list-item .title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.list-item .meta {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ── 结论卡 ───────────────────────────────────────────── */
.summary {
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.nodes {
  border-top: 1px solid var(--line);
}

.node {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.node:last-child {
  border-bottom: 0;
}

.node .idx {
  color: var(--none);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.node .name {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.node .evidence {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.mark {
  float: right;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  margin-left: 8px;
}

.mark.yes {
  color: var(--ok);
}

.mark.partial {
  color: var(--warn);
}

.mark.no {
  color: var(--bad);
}

.mark.na {
  color: var(--none);
}

.signals li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.signals li:first-child {
  border-top: 0;
}

.signals .signal {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.signals .evidence {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f5f8ff;
}

.verdict .level {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.verdict .level.unk {
  background: var(--none);
  font-size: 18px;
}

.verdict .detail {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.verdict .conf {
  color: var(--muted);
  font-size: 12px;
}

.kv {
  border-top: 1px solid var(--line);
}

.kv > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kv > div:last-child {
  border-bottom: 0;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.quote-list li {
  padding: 8px 10px;
  margin-top: 8px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: #f7f9fd;
  color: #33415c;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.quote-list li:first-child {
  margin-top: 0;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: #eef2f8;
  font-size: 12px;
  color: var(--muted);
}

.tactic dl > div {
  grid-template-columns: 110px minmax(0, 1fr);
}

/* ── 主管确认页 ───────────────────────────────────────── */
.queue-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.queue-item:first-child {
  border-top: 0;
}

.queue-item .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.queue-item .head .title {
  flex: 1 1 140px;
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.queue-item .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.editor {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--brand);
  border-radius: 10px;
  background: #f8fbff;
}

.editor[hidden] {
  display: none;
}

.editor .field:last-child {
  margin-bottom: 4px;
}

.integrity {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fafbfd;
  border: 1px solid var(--line);
  font-size: 13px;
}

.integrity[hidden] {
  display: none;
}

.integrity .score {
  font-size: 22px;
  font-weight: 700;
}

.integrity .score.low {
  color: var(--bad);
}

.integrity .score.ok {
  color: var(--ok);
}

.integrity .line {
  margin-top: 6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

