/* P3 capability access: compact context actions and explicit round-trip provenance. */
#view-walkthrough .peca-task-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#view-walkthrough .peca-task-actions>button{display:grid;gap:3px;min-width:0;min-height:48px;padding:8px 9px;border:1px solid #d8e2ef;border-radius:8px;background:#fff;color:#26364f;text-align:left;cursor:pointer;font:inherit}
#view-walkthrough .peca-task-actions>button:hover{border-color:#8fb1ed;background:#f7faff}
#view-walkthrough .peca-task-actions strong{font-size:12px}
#view-walkthrough .peca-task-actions span{color:#64748b;font-size:11px;line-height:1.45}
#view-walkthrough .peca-tool-catalog{display:grid;gap:0;background:#fff;color:#26364f}
#view-walkthrough .peca-tool-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid #e3e9f1;background:#f8fafc}
#view-walkthrough .peca-tool-catalog-head strong{font-size:12px}
#view-walkthrough .peca-tool-catalog-head small{color:#64748b;font-size:11px}
#view-walkthrough .peca-tool-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #e3e9f1}
#view-walkthrough .peca-tool-group-label{grid-column:1/-1;padding:6px 9px 4px;border-top:1px solid #edf1f6;background:#f8fafc;color:#718096;font-size:10px;font-weight:800;letter-spacing:.06em}
#view-walkthrough .peca-tool-group-label:first-child{border-top:0}
#view-walkthrough .peca-tool-choice{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:6px;min-width:0;min-height:38px;padding:5px 7px;border:0;border-top:1px solid #edf1f6;border-right:1px solid #edf1f6;background:#fff;color:#26364f;text-align:left;cursor:pointer;font:inherit}
#view-walkthrough .peca-tool-choice:nth-of-type(even){border-right:0}
#view-walkthrough .peca-tool-choice:hover{background:#f7faff}
#view-walkthrough .peca-tool-choice.is-active{box-shadow:inset 3px 0 #2563eb;background:#f5f9ff}
#view-walkthrough .peca-tool-choice:focus-visible,#view-walkthrough .peca-task-actions>button:focus-visible,#view-walkthrough .peca-tool-preview>header>button:focus-visible{position:relative;z-index:1;outline:3px solid rgba(37,91,215,.3);outline-offset:-2px}
#view-walkthrough .peca-tool-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:#eef4ff;color:#2563eb}
#view-walkthrough .peca-tool-icon svg{width:14px;height:14px}
#view-walkthrough .peca-tool-choice strong{overflow:visible;font-size:12px;line-height:1.3;text-overflow:clip;white-space:normal}
#view-walkthrough .peca-tool-select-hint{margin:0;padding:10px;color:#64748b;font-size:11px;line-height:1.5;background:#f8fafc}
#view-walkthrough .peca-tool-preview{display:grid;gap:7px;padding:9px 10px;background:#fff}
#view-walkthrough .peca-tool-preview>header{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px}
#view-walkthrough .peca-tool-preview>header strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#view-walkthrough .peca-tool-preview>header>button{min-height:30px;padding:4px 8px;border:1px solid #8fb1ed;border-radius:6px;background:#fff;color:#1d4ed8;cursor:pointer;font:inherit;font-size:11px;font-weight:750;white-space:nowrap}
#view-walkthrough .peca-tool-preview>header>button:hover{background:#f5f9ff}
#view-walkthrough .peca-tool-preview>p{margin:0;color:#526177;font-size:11px;line-height:1.5}
#view-walkthrough .peca-tool-preview>dl{display:grid;gap:0;margin:0;border-top:1px solid #edf1f6}
#view-walkthrough .peca-tool-preview>dl>div{display:grid;grid-template-columns:52px minmax(0,1fr);gap:7px;padding:5px 0;border-bottom:1px solid #edf1f6}
#view-walkthrough .peca-tool-preview dt{color:#64748b;font-size:9px;font-weight:750}
#view-walkthrough .peca-tool-preview dd{margin:0;color:#26364f;font-size:11px;line-height:1.45}
#view-walkthrough .peca-tool-preview>header>button:disabled{border-color:#d9e1eb;background:#f8fafc;color:#94a3b8;cursor:not-allowed}
.peca-return-bridge{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:10px 12px;border:1px solid #cdd9e8;border-radius:9px;background:#f8fafc;color:#26364f}
.peca-return-bridge>div{display:grid;gap:3px;min-width:0}
.peca-return-bridge>div>span{color:#245bd7;font-size:10px;font-weight:800}
.peca-return-bridge>div>strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.peca-return-bridge>div>small{color:#64748b;font-size:10px;line-height:1.45}
.peca-return-bridge>button{flex:none;min-height:32px;padding:6px 10px;border:1px solid #9fb8df;border-radius:7px;background:#fff;color:#1d4ed8;cursor:pointer;font:inherit;font-size:11px;font-weight:750}
@media(max-width:720px){#view-walkthrough .peca-task-actions,#view-walkthrough .peca-tool-choices{grid-template-columns:1fr}#view-walkthrough .peca-tool-choice{border-right:0}.peca-return-bridge{align-items:stretch;flex-direction:column}.peca-return-bridge>button{width:100%}}

/* P4 remediation: the rail is a tool palette first; explanation appears only after selection. */
#view-walkthrough .peca-tool-choices{
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid #dce4ee;
  border-radius:7px;
  overflow:hidden;
}
#view-walkthrough .peca-tool-choice{
  grid-template-columns:1fr;
  justify-items:center;
  gap:5px;
  min-height:58px;
  padding:7px 4px;
  border-right:1px solid #edf1f6;
  text-align:center;
}
#view-walkthrough .peca-tool-choice:nth-of-type(even){border-right:1px solid #edf1f6}
#view-walkthrough .peca-tool-choice:nth-of-type(3n){border-right:0}
#view-walkthrough .peca-tool-choice.is-active{box-shadow:inset 0 -3px #2563eb;background:#f5f9ff}
#view-walkthrough .peca-tool-choice strong{font-size:11px;line-height:1.25}
#view-walkthrough .peca-tool-icon{width:26px;height:26px}
#view-walkthrough .peca-tool-icon svg{width:15px;height:15px}
#view-walkthrough .peca-tool-select-hint{padding:7px 3px 1px;background:transparent;font-size:10px}
#view-walkthrough .peca-tool-preview{margin-top:1px;padding:9px;border:1px solid #dce4ee;border-radius:7px}
#view-walkthrough .peca-tool-relay{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0;padding:0;list-style:none}
#view-walkthrough .peca-tool-relay li{position:relative;padding:5px 3px;border-radius:5px;background:#f4f7fb;color:#526177;font-size:9px;font-weight:750;text-align:center}
#view-walkthrough .peca-tool-relay li+li::before{content:'';position:absolute;left:-7px;top:5px;bottom:5px;border-left:1px solid #b9c7da}
@media(max-width:720px){#view-walkthrough .peca-tool-choices{grid-template-columns:repeat(2,minmax(0,1fr))}#view-walkthrough .peca-tool-choice:nth-of-type(3n){border-right:1px solid #edf1f6}#view-walkthrough .peca-tool-choice:nth-of-type(2n){border-right:0}}

/* P4 visual refinement: icon-first palette without a table-like cage. */
#view-walkthrough .peca-tool-catalog{
  gap:3px;
}
#view-walkthrough .peca-tool-choices{
  align-content:start;
  gap:3px;
  padding:3px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
}
#view-walkthrough .peca-tool-choice,
#view-walkthrough .peca-tool-choice:nth-of-type(even),
#view-walkthrough .peca-tool-choice:nth-of-type(3n){
  position:relative;
  height:62px;
  min-height:62px;
  padding:6px 3px;
  border:0;
  border-radius:7px;
  background:transparent;
  box-shadow:none;
}
#view-walkthrough .peca-tool-choice:hover{
  background:#f4f7fb;
}
#view-walkthrough .peca-tool-choice.is-active{
  background:#edf4ff;
  color:#174ea6;
  box-shadow:none;
}
#view-walkthrough .peca-tool-icon{
  width:23px;
  height:23px;
  border-radius:6px;
  background:#f3f6fa;
  color:#5272a7;
}
#view-walkthrough .peca-tool-choice.is-active .peca-tool-icon{
  background:#dce9ff;
  color:#245bd7;
}

/* Subtle semantic tones improve scanning without turning the tool rail into a
 * second dashboard. The selected state remains the single blue focus. */
#view-walkthrough .peca-tool-choice[data-peca-category="data"]:not(.is-active){
  background:#f5f8fd;
}
#view-walkthrough .peca-tool-choice[data-peca-category="data"]:not(.is-active) .peca-tool-icon{
  background:#e8f1ff;
  color:#2e67b1;
}
#view-walkthrough .peca-tool-choice[data-peca-category="special"]:not(.is-active){
  background:#fff9f1;
}
#view-walkthrough .peca-tool-choice[data-peca-category="special"]:not(.is-active) .peca-tool-icon{
  background:#ffedd6;
  color:#a65b18;
}
#view-walkthrough .peca-tool-choice[data-peca-category="method"]:not(.is-active){
  background:#f4f9f6;
}
#view-walkthrough .peca-tool-choice[data-peca-category="method"]:not(.is-active) .peca-tool-icon{
  background:#e5f4eb;
  color:#2f7657;
}
#view-walkthrough .peca-tool-icon svg{
  width:14px;
  height:14px;
}
#view-walkthrough .peca-tool-choice strong{
  font-size:10px;
  font-weight:650;
  line-height:1.3;
}
#view-walkthrough .peca-tool-ai{
  position:absolute;
  top:5px;
  right:5px;
  padding:1px 4px;
  border-radius:999px;
  background:#fff0dc;
  color:#9a5217;
  font-size:8px;
  font-style:normal;
  font-weight:780;
  line-height:1.35;
}
#view-walkthrough .peca-tool-preview{
  margin-top:2px;
  padding:9px 3px 2px;
  border:0;
  border-top:1px solid #e5eaf1;
  border-radius:0;
}

/* 2026-08-27: 专业包是一级能力来源，包内任务是二级执行入口；基础工具独立分区。 */
#view-walkthrough .peca-tool-catalog { gap: 10px; }

#view-walkthrough .peca-professional-catalog {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e3f2;
  border-radius: 11px;
  background: #f8fbff;
}

#view-walkthrough .peca-professional-catalog > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
}

#view-walkthrough .peca-professional-catalog > header > span {
  grid-column: 1 / -1;
  color: #738198;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .04em;
}

#view-walkthrough .peca-professional-catalog > header > strong,
#view-walkthrough .peca-professional-catalog > header > select {
  min-width: 0;
  color: #22304a;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

#view-walkthrough .peca-professional-catalog > header > select {
  min-height: 30px;
  padding: 0 26px 0 8px;
  border: 1px solid #cbd8ea;
  border-radius: 7px;
  background: #fff;
}

#view-walkthrough .peca-professional-catalog > header > small {
  color: #7a8799;
  font-size: 9px;
  white-space: nowrap;
}

#view-walkthrough .peca-professional-items { display: grid; gap: 4px; }
#view-walkthrough .peca-professional-item { display: grid; gap: 4px; }

#view-walkthrough .peca-professional-item > button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #26364f;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 0 1px #e1e8f2;
}

#view-walkthrough .peca-professional-item > button:hover {
  background: #f3f7ff;
  box-shadow: inset 0 0 0 1px #a9c2ed;
}

#view-walkthrough .peca-professional-item > button:focus-visible {
  outline: 3px solid rgba(37, 91, 215, .24);
  outline-offset: 1px;
}

#view-walkthrough .peca-professional-item > button:disabled { cursor: not-allowed; opacity: .48; }
#view-walkthrough .peca-professional-item > button > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: #e8f1ff; color: #245bd7; }
#view-walkthrough .peca-professional-item > button svg { width: 14px; height: 14px; }
#view-walkthrough .peca-professional-item > button strong { min-width: 0; font-size: 11px; line-height: 1.35; }
#view-walkthrough .peca-professional-item > button em { color: #245bd7; font-size: 9px; font-style: normal; font-weight: 720; white-space: nowrap; }
#view-walkthrough .peca-professional-item > p { margin: 0; padding: 6px 8px; border-radius: 7px; background: #eef6ff; color: #245bd7; font-size: 9px; line-height: 1.5; }
#view-walkthrough .peca-professional-item > p.is-error { background: #fff2f0; color: #b42318; }
#view-walkthrough .peca-professional-item > p.is-success { background: #ecf8f2; color: #137451; }

#view-walkthrough .peca-professional-reference-inline {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe5f3;
  border-radius: 9px;
  background: #fff;
}

#view-walkthrough .peca-professional-reference-inline > p,
#view-walkthrough .peca-professional-reference-inline footer {
  margin: 0;
  color: #536176;
  font-size: 10px;
  line-height: 1.55;
}

#view-walkthrough .peca-professional-reference-inline > div {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f6f8fb;
}

#view-walkthrough .peca-professional-reference-inline > div span {
  color: #8a96a8;
  font-size: 9px;
  font-weight: 720;
}

#view-walkthrough .peca-professional-reference-inline > div strong {
  color: #344054;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

#view-walkthrough .peca-professional-reference-inline ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#view-walkthrough .peca-professional-reference-inline li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

#view-walkthrough .peca-professional-reference-inline li > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: #245bd7;
  font-size: 9px;
  font-weight: 760;
}

#view-walkthrough .peca-professional-reference-inline li > p {
  margin: 1px 0 0;
  color: #344054;
  font-size: 10px;
  line-height: 1.45;
}

#view-walkthrough .peca-professional-reference-inline footer {
  padding-top: 7px;
  border-top: 1px solid #edf1f6;
  color: #7a8799;
}

#view-walkthrough .peca-professional-catalog.is-empty { background: #fafbfc; }
#view-walkthrough .peca-professional-catalog.is-empty > header { grid-template-columns: 1fr; }
#view-walkthrough .peca-professional-catalog.is-empty > p { margin: 0; color: #667085; font-size: 10px; line-height: 1.5; }

#view-walkthrough .peca-base-tools {
  border-top: 1px solid #e5eaf1;
}

#view-walkthrough .peca-base-tools > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 3px;
  color: #536176;
  cursor: pointer;
  font-size: 10px;
  font-weight: 720;
  list-style: none;
}

#view-walkthrough .peca-base-tools > summary::-webkit-details-marker { display: none; }
#view-walkthrough .peca-base-tools > summary::after { content: '›'; color: #94a3b8; font-size: 16px; transform: rotate(90deg); transition: transform .16s ease; }
#view-walkthrough .peca-base-tools:not([open]) > summary::after { transform: rotate(0); }
#view-walkthrough .peca-base-tools > summary small { margin-left: auto; color: #98a2b3; font-size: 9px; }

#view-walkthrough .uaw-secondary-capabilities[hidden],
#view-walkthrough [data-uaw-program-actions] > .project-linked-knowledge-cards { display: none !important; }

/* 2026-08-27：通用工具是右栏的持续主入口；专业包只保留二级说明页入口。 */
#view-walkthrough .peca-tool-catalog {
  gap: 14px;
}

#view-walkthrough .peca-base-tools {
  display: grid;
  gap: 7px;
  border-top: 0;
}

#view-walkthrough .peca-base-tools > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  padding: 0 3px;
}

#view-walkthrough .peca-base-tools > header strong {
  color: #344054;
  font-size: 12px;
  font-weight: 760;
}

#view-walkthrough .peca-base-tools > header small {
  color: #98a2b3;
  font-size: 9px;
}

#view-walkthrough .peca-professional-catalog {
  gap: 9px;
  padding: 10px 3px 0;
  border: 0;
  border-top: 1px solid #e5eaf1;
  border-radius: 0;
  background: transparent;
}

#view-walkthrough .peca-professional-catalog > header {
  padding: 0;
}

#view-walkthrough .peca-professional-open {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: #f5f8fd;
  color: #344054;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

#view-walkthrough .peca-professional-open:hover {
  background: #edf4ff;
}

#view-walkthrough .peca-professional-open:focus-visible {
  outline: 3px solid rgba(37, 91, 215, .24);
  outline-offset: 2px;
}

#view-walkthrough .peca-professional-open > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #e3edff;
  color: #245bd7;
}

#view-walkthrough .peca-professional-open > span svg,
#view-walkthrough .peca-professional-open > svg {
  width: 15px;
  height: 15px;
}

#view-walkthrough .peca-professional-open > svg {
  color: #98a2b3;
}

#view-walkthrough .peca-professional-open > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#view-walkthrough .peca-professional-open strong {
  color: #344054;
  font-size: 11px;
  font-weight: 720;
}

#view-walkthrough .peca-professional-open small {
  overflow: hidden;
  color: #7a8799;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  #view-walkthrough .peca-professional-open small { white-space: normal; }
}

/* 2026-08-30: common tools stay visible; the rest use progressive disclosure. */
#view-walkthrough .peca-tool-catalog {
  display: grid;
  gap: 10px;
  background: transparent;
}

#view-walkthrough .peca-other-tools {
  border-top: 1px solid #e5eaf1;
}

#view-walkthrough .peca-other-tools > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #526177;
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
  list-style: none;
}

#view-walkthrough .peca-other-tools > summary::-webkit-details-marker { display: none; }
#view-walkthrough .peca-other-tools > summary small { margin-left: auto; color: #98a2b3; font-size: 9px; font-weight: 600; }
#view-walkthrough .peca-other-tools > summary::after { content: '›'; color: #94a3b8; font-size: 16px; transform: rotate(0); transition: transform .16s ease-out; }
#view-walkthrough .peca-other-tools[open] > summary::after { transform: rotate(90deg); }

#view-walkthrough .peca-other-tools .peca-tool-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 0 0 8px;
}

#view-walkthrough .peca-other-tools .peca-tool-choice,
#view-walkthrough .peca-other-tools .peca-tool-choice:nth-of-type(even),
#view-walkthrough .peca-other-tools .peca-tool-choice:nth-of-type(3n) {
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fc;
}

#view-walkthrough .peca-other-tools .peca-professional-catalog {
  margin-top: 2px;
}

@media (max-width: 720px) {
  #view-walkthrough .peca-other-tools .peca-tool-choices { grid-template-columns: 1fr; }
}

/* 2026-08-30: tool selection is stateless; common tools stay available after every return. */
#view-walkthrough .peca-tool-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#view-walkthrough .peca-tool-picker-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#view-walkthrough .peca-tool-picker-head strong {
  color: #22304a;
  font-size: 13px;
  font-weight: 760;
}

#view-walkthrough .peca-tool-picker-head small,
#view-walkthrough .peca-tool-picker-head > span {
  color: #718096;
  font-size: 10px;
  line-height: 1.4;
}

#view-walkthrough .peca-tool-picker-head > span {
  flex: none;
  padding-top: 1px;
}

#view-walkthrough .peca-tool-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f7f9fc;
}

#view-walkthrough .peca-tool-source span {
  color: #718096;
  font-size: 9px;
  white-space: nowrap;
}

#view-walkthrough .peca-tool-source strong {
  overflow: hidden;
  color: #43526a;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-walkthrough .peca-core-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

#view-walkthrough .peca-core-tools .peca-tool-choice,
#view-walkthrough .peca-core-tools .peca-tool-choice:nth-of-type(even),
#view-walkthrough .peca-core-tools .peca-tool-choice:nth-of-type(3n) {
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fc;
}

#view-walkthrough .peca-core-tools .peca-tool-choice:hover {
  background: #eef3fb;
}

#view-walkthrough .peca-core-tools .peca-tool-choice:focus-visible,
#view-walkthrough .peca-other-tools > summary:focus-visible {
  outline: 3px solid rgba(37, 91, 215, .24);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  #view-walkthrough .peca-core-tools { grid-template-columns: 1fr; }
}

/* R4-T: tools opened from a program stay inside the execution platform. */
body.is-program-inline-tool-open { overflow: hidden; }

.peca-inline-tool-layer {
  position: fixed;
  z-index: 1350;
  inset: 12px;
  display: grid;
  place-items: stretch;
  padding: 0;
  background: rgba(28, 39, 55, .18);
}

.peca-inline-tool-task {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1500px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #cfd9e6;
  border-radius: 14px;
  background: #f7f9fc;
  color: #23324a;
  box-shadow: 0 20px 52px rgba(23, 39, 64, .22);
}

.peca-inline-tool-task > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid #dfe6ef;
  background: #fff;
}

.peca-inline-tool-task > header > div { display: grid; gap: 2px; min-width: 0; }
.peca-inline-tool-task > header strong { color: #17233c; font-size: 16px; font-weight: 760; }
.peca-inline-tool-task > header small { color: #6d7a8d; font-size: 11px; }
.peca-inline-tool-task > header > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #fff;
  color: #536176;
  cursor: pointer;
}
.peca-inline-tool-task > header > button:hover { background: #f2f5f9; color: #22304a; }
.peca-inline-tool-task > header > button svg { width: 16px; height: 16px; }

.peca-inline-tool-handoff {
  align-self: start;
  width: min(760px, calc(100% - 40px));
  margin: clamp(28px, 7vh, 72px) auto 24px;
  padding: 24px;
  border: 1px solid #d9e2ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(32, 49, 75, .1);
}

.peca-inline-tool-copy { margin-bottom: 20px; }
.peca-inline-tool-copy h3 { margin: 0 0 7px; color: #18243a; font-size: 21px; line-height: 1.3; }
.peca-inline-tool-copy p { max-width: 68ch; margin: 0; color: #5e6c80; font-size: 13px; line-height: 1.65; }
.peca-inline-tool-handoff dl { display: grid; margin: 0 0 18px; border-top: 1px solid #e7ecf3; }
.peca-inline-tool-handoff dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 2px; border-bottom: 1px solid #e7ecf3; }
.peca-inline-tool-handoff dt { color: #758195; font-size: 11px; font-weight: 650; }
.peca-inline-tool-handoff dd { margin: 0; overflow-wrap: anywhere; color: #2c3b53; font-size: 12px; font-weight: 650; }
.peca-inline-tool-handoff > label { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.peca-inline-tool-handoff > label > span { color: #526177; font-size: 11px; font-weight: 700; }
.peca-inline-tool-handoff select { min-height: 38px; padding: 0 34px 0 10px; border: 1px solid #cdd8e6; border-radius: 8px; background: #fff; color: #26364f; font: inherit; font-size: 12px; }
.peca-inline-tool-status { min-height: 20px; margin: 14px 0 0; color: #66758a; font-size: 11px; line-height: 1.55; }
.peca-inline-tool-status.is-blocked { color: #a24735; font-weight: 650; }
.peca-inline-tool-task [data-peca-inline-tool-confirm]:disabled {
  opacity: .42;
  cursor: not-allowed;
  filter: saturate(.45);
  box-shadow: none;
}
.peca-inline-tool-handoff > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e7ecf3; }

.peca-inline-tool-workspace {
  min-height: 0;
  overflow: auto;
  padding: 0 16px 18px;
  scrollbar-color: #b7c3d3 transparent;
  scrollbar-width: thin;
}
.peca-inline-tool-workspace[hidden] { display: none; }
.peca-inline-tool-session {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 7px 4px;
  border-bottom: 1px solid #dfe6ef;
  background: rgba(247, 249, 252, .96);
}
.peca-inline-tool-session span { color: #617087; font-size: 11px; }
.peca-inline-tool-session button { min-height: 30px; padding: 4px 9px; border: 1px solid #cdd8e6; border-radius: 7px; background: #fff; color: #35455d; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.peca-inline-tool-workspace [data-peca-inline-tool-host] { width: min(1240px, 100%); margin: 14px auto 0; }
.peca-inline-tool-workspace .tb-panel { margin: 0; border: 1px solid #dbe3ed; border-radius: 12px; background: #fff; box-shadow: none; }
.peca-inline-tool-workspace .tb-program-data-handoff { margin-bottom: 10px; }
.peca-inline-tool-task :focus-visible { outline: 3px solid rgba(37, 91, 215, .28); outline-offset: 2px; }

@media (max-width: 720px) {
  .peca-inline-tool-layer { inset: 0; }
  .peca-inline-tool-task { border: 0; border-radius: 0; }
  .peca-inline-tool-handoff { width: calc(100% - 24px); margin: 16px auto; padding: 18px; }
  .peca-inline-tool-handoff dl > div,
  .peca-inline-tool-handoff > label { grid-template-columns: 1fr; gap: 5px; }
  .peca-inline-tool-workspace { padding: 0 8px 12px; }
}

/* Data priority keeps the program task short: confirm columns, rank, judge, save. */
.dpa-program-workbench {
  display: grid;
  gap: 12px;
  color: #23324a;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.dpa-program-config,
.dpa-program-result,
.dpa-program-empty {
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fff;
}

.dpa-program-config { padding: 14px; }
.dpa-program-config > header,
.dpa-program-result > header,
.dpa-program-result > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dpa-program-config > header { margin-bottom: 12px; }
.dpa-program-config > header > div,
.dpa-program-result > header > div { display: grid; gap: 2px; min-width: 0; }
.dpa-program-config > header strong,
.dpa-program-result > header strong { color: #18243a; font-size: 15px; font-weight: 760; }
.dpa-program-config > header span,
.dpa-program-result > header span,
.dpa-program-result > header small { color: #718096; font-size: 10px; }
.dpa-program-config > div {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(130px, 1fr));
  gap: 9px;
}
.dpa-program-config label,
.dpa-program-conclusion { display: grid; gap: 5px; min-width: 0; }
.dpa-program-config label > span,
.dpa-program-conclusion > span { color: #526177; font-size: 10px; font-weight: 720; }
.dpa-program-config select {
  width: 100%;
  min-height: 36px;
  padding: 0 30px 0 9px;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fff;
  color: #26364f;
  font: inherit;
  font-size: 11px;
}
.dpa-program-config > p { min-height: 18px; margin: 10px 0 0; color: #526177; font-size: 14px; line-height: 1.55; }
.dpa-program-config > .dpa-program-recovery {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 14px;
}
.dpa-program-recovery label > span { font-size: 14px; }
.dpa-program-recovery select { font-size: 14px; }
@media (max-width: 600px) {
  .dpa-program-config > .dpa-program-recovery { grid-template-columns: minmax(0, 1fr); }
  .dpa-program-recovery select { font-size: 16px; }
}

.dpa-program-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 5px;
  color: #718096;
  text-align: center;
}
.dpa-program-empty strong { color: #34445c; font-size: 14px; }
.dpa-program-empty span { font-size: 11px; }

.dpa-program-result { overflow: hidden; }
.dpa-program-result > header { padding: 12px 14px; border-bottom: 1px solid #e4eaf2; }
.dpa-program-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e4eaf2;
  background: #f8fafc;
}
.dpa-program-metrics > div { display: grid; gap: 3px; padding: 10px 14px; border-right: 1px solid #e4eaf2; }
.dpa-program-metrics > div:last-child { border-right: 0; }
.dpa-program-metrics span { color: #718096; font-size: 9px; }
.dpa-program-metrics strong { color: #1f2d44; font-size: 16px; font-variant-numeric: tabular-nums; }
.dpa-program-table { max-height: 360px; overflow: auto; scrollbar-color: #b7c3d3 transparent; scrollbar-width: thin; }
.dpa-program-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.dpa-program-table th,
.dpa-program-table td { padding: 9px 11px; border-bottom: 1px solid #edf1f6; color: #3b4a61; text-align: left; white-space: nowrap; }
.dpa-program-table thead th { position: sticky; z-index: 1; top: 0; background: #f8fafc; color: #64748b; font-size: 9px; font-weight: 760; }
.dpa-program-table tbody th { color: #25354e; font-weight: 700; }
.dpa-program-table tr.is-priority { background: #f5f9ff; }
.dpa-program-table input { width: 16px; height: 16px; accent-color: #255bd7; }
.dpa-program-boundary { margin: 0; padding: 9px 14px; border-top: 1px solid #e4eaf2; color: #66758a; font-size: 10px; line-height: 1.5; }
.dpa-program-ai {
  display: grid;
  gap: 12px;
  margin: 12px 14px 0;
  padding: 14px;
  border: 1px solid #cddcf3;
  border-radius: 10px;
  background: #f8fbff;
}
.dpa-program-ai > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dpa-program-ai > header > div { display: grid; gap: 3px; }
.dpa-program-ai > header span { color: #2f65c8; font-size: 11px; font-weight: 760; }
.dpa-program-ai > header strong { color: #263a58; font-size: 14px; line-height: 1.35; }
.dpa-program-ai-state { display: flex; align-items: baseline; gap: 10px; padding: 11px 12px; border-radius: 8px; background: #fff; color: #5b6b82; }
.dpa-program-ai-state strong { flex: 0 0 auto; color: #314662; font-size: 12px; }
.dpa-program-ai-state span { font-size: 12px; line-height: 1.55; }
.dpa-program-ai-state.is-error { background: #fff5f4; color: #9a4038; }
.dpa-program-ai-summary,
.dpa-program-ai-boundary { margin: 0; color: #41536c; font-size: 12px; line-height: 1.6; }
.dpa-program-ai-summary { padding: 10px 12px; border-radius: 8px; background: #edf4ff; }
.dpa-program-ai-directions { display: grid; gap: 9px; }
.dpa-program-ai-directions article { overflow: hidden; border: 1px solid #dbe5f2; border-radius: 9px; background: #fff; }
.dpa-program-ai-directions article > header { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #e8edf4; }
.dpa-program-ai-directions article > header b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #315fc4; color: #fff; font-size: 10px; }
.dpa-program-ai-directions article > header strong { color: #2f405b; font-size: 12px; }
.dpa-program-ai-directions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.dpa-program-ai-directions dl > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 7px; padding: 8px 10px; border-top: 1px solid #eef2f7; }
.dpa-program-ai-directions dl > div:nth-child(odd) { border-right: 1px solid #eef2f7; }
.dpa-program-ai-directions dt { color: #66778f; font-size: 11px; font-weight: 760; }
.dpa-program-ai-directions dd { margin: 0; color: #44546a; font-size: 12px; line-height: 1.5; }
.dpa-program-ai > small { color: #6e7d91; font-size: 11px; line-height: 1.5; }
.dpa-program-conclusion { padding: 12px 14px; border-top: 1px solid #e4eaf2; }
.dpa-program-conclusion textarea {
  min-height: 76px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  color: #26364f;
  font: inherit;
  font-size: 11px;
  line-height: 1.55;
}
.dpa-program-result > footer { padding: 10px 14px; border-top: 1px solid #e4eaf2; background: #f8fafc; }
.dpa-program-result > footer > span { color: #66758a; font-size: 10px; }
.dpa-program-result > footer > div { display: flex; gap: 7px; }
.dpa-program-result button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 860px) {
  .dpa-program-config > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpa-program-result > footer { align-items: stretch; flex-direction: column; }
  .dpa-program-result > footer > div { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .dpa-program-config > header { align-items: stretch; flex-direction: column; }
  .dpa-program-config > div { grid-template-columns: 1fr; }
  .dpa-program-metrics { grid-template-columns: 1fr; }
  .dpa-program-metrics > div { border-right: 0; border-bottom: 1px solid #e4eaf2; }
  .dpa-program-result > footer > div { display: grid; }
  .dpa-program-ai > header { align-items: stretch; flex-direction: column; }
  .dpa-program-ai-directions dl { grid-template-columns: 1fr; }
  .dpa-program-ai-directions dl > div:nth-child(odd) { border-right: 0; }
}

/* 财务工具在当前程序内只保留：字段确认、确定性筛查、人工判断和可选底稿。 */
.pfa-program-workbench {
  display: grid;
  gap: 12px;
  color: #23324a;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.pfa-program-config,
.pfa-program-result,
.pfa-program-empty {
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fff;
}

.pfa-program-config { padding: 14px; }
.pfa-program-config > header,
.pfa-program-result > header,
.pfa-program-result > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pfa-program-config > header { margin-bottom: 11px; }
.pfa-program-config > header > div,
.pfa-program-result > header > div { display: grid; gap: 2px; min-width: 0; }
.pfa-program-config > header strong,
.pfa-program-result > header strong { color: #18243a; font-size: 15px; font-weight: 760; }
.pfa-program-config > header span,
.pfa-program-result > header span,
.pfa-program-result > header small { color: #718096; font-size: 10px; }

.pfa-program-mapping-summary {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #e3e9f1;
  border-radius: 8px;
  background: #f8fafc;
}
.pfa-program-mapping-summary strong { color: #33445d; font-size: 11px; }
.pfa-program-mapping-summary span { overflow-wrap: anywhere; color: #6b788c; font-size: 9px; line-height: 1.5; }

.pfa-program-mapping { margin-top: 8px; border-bottom: 1px solid #e4eaf2; }
.pfa-program-mapping > summary { padding: 6px 0 9px; color: #4f6078; cursor: pointer; font-size: 10px; font-weight: 720; }
.pfa-program-mapping > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  padding: 0 0 11px;
}
.pfa-program-mapping label,
.pfa-program-controls > label,
.pfa-program-conclusion { display: grid; gap: 5px; min-width: 0; }
.pfa-program-mapping label > span,
.pfa-program-controls label > span,
.pfa-program-conclusion > span { color: #526177; font-size: 10px; font-weight: 720; }
.pfa-program-mapping select,
.pfa-program-controls select {
  width: 100%;
  min-height: 36px;
  padding: 0 30px 0 9px;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fff;
  color: #26364f;
  font: inherit;
  font-size: 11px;
}
.pfa-program-controls {
  display: flex;
  align-items: end;
  gap: 18px;
  padding-top: 10px;
}
.pfa-program-controls > label:first-child { width: 180px; }
.pfa-program-confirm {
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 36px;
}
.pfa-program-confirm input { width: 16px; height: 16px; margin: 0; accent-color: #255bd7; }
.pfa-program-config > p { min-height: 18px; margin: 8px 0 0; color: #66758a; font-size: 10px; line-height: 1.55; }

.pfa-program-empty {
  display: grid;
  min-height: 170px;
  place-content: center;
  gap: 5px;
  color: #718096;
  text-align: center;
}
.pfa-program-empty strong { color: #34445c; font-size: 14px; }
.pfa-program-empty span { font-size: 11px; }

.pfa-program-result { overflow: hidden; }
.pfa-program-result > header { padding: 12px 14px; border-bottom: 1px solid #e4eaf2; }
.pfa-program-metrics,
.pfa-program-signals {
  display: grid;
  border-bottom: 1px solid #e4eaf2;
  background: #f8fafc;
}
.pfa-program-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pfa-program-signals { grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; }
.pfa-program-metrics > div,
.pfa-program-signals > div { display: grid; gap: 3px; padding: 9px 14px; border-right: 1px solid #e4eaf2; }
.pfa-program-metrics > div:last-child,
.pfa-program-signals > div:last-child { border-right: 0; }
.pfa-program-metrics span,
.pfa-program-signals span { color: #718096; font-size: 9px; }
.pfa-program-metrics strong { color: #1f2d44; font-size: 16px; font-variant-numeric: tabular-nums; }
.pfa-program-signals strong { color: #31425b; font-size: 13px; font-variant-numeric: tabular-nums; }

.pfa-program-table { max-height: 330px; overflow: auto; scrollbar-color: #b7c3d3 transparent; scrollbar-width: thin; }
.pfa-program-table table { width: 100%; border-collapse: collapse; font-size: 10px; }
.pfa-program-table th,
.pfa-program-table td { padding: 9px 10px; border-bottom: 1px solid #edf1f6; color: #3b4a61; text-align: left; vertical-align: top; white-space: nowrap; }
.pfa-program-table thead th { position: sticky; z-index: 1; top: 0; background: #f8fafc; color: #64748b; font-size: 9px; font-weight: 760; }
.pfa-program-table tbody th { color: #25354e; font-weight: 700; }
.pfa-program-table td:nth-child(5) { min-width: 260px; white-space: normal; }
.pfa-program-no-hit { display: grid; gap: 4px; padding: 22px 14px; color: #68778c; text-align: center; }
.pfa-program-no-hit strong { color: #33445d; font-size: 12px; }
.pfa-program-no-hit span { font-size: 10px; }
.pfa-program-boundary { margin: 0; padding: 9px 14px; border-top: 1px solid #e4eaf2; color: #66758a; font-size: 10px; line-height: 1.5; }
.pfa-program-conclusion { padding: 12px 14px; border-top: 1px solid #e4eaf2; }
.pfa-program-conclusion textarea {
  min-height: 72px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  color: #26364f;
  font: inherit;
  font-size: 11px;
  line-height: 1.55;
}
.pfa-program-result > footer { padding: 10px 14px; border-top: 1px solid #e4eaf2; background: #f8fafc; }
.pfa-program-result > footer > span { color: #66758a; font-size: 10px; }
.pfa-program-result > footer > div { display: flex; gap: 7px; }
.pfa-program-result button:disabled,
.pfa-program-config button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 860px) {
  .pfa-program-mapping > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfa-program-result > footer { align-items: stretch; flex-direction: column; }
  .pfa-program-result > footer > div { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .pfa-program-config > header,
  .pfa-program-controls,
  .pfa-program-result > footer { align-items: stretch; flex-direction: column; }
  .pfa-program-mapping > div,
  .pfa-program-metrics,
  .pfa-program-signals { grid-template-columns: 1fr; }
  .pfa-program-controls > label:first-child { width: auto; }
  .pfa-program-metrics > div,
  .pfa-program-signals > div { border-right: 0; border-bottom: 1px solid #e4eaf2; }
  .pfa-program-result > footer > div { display: grid; }
}

/* 合同工具在当前程序内只处理本次 Word 正文：审阅、人工判断、可选底稿。 */
.pcr-program-workbench {
  display: grid;
  gap: 12px;
  color: #23324a;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.pcr-program-config,
.pcr-program-result,
.pcr-program-empty {
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #fff;
}

.pcr-program-config { padding: 14px; }
.pcr-program-config > header,
.pcr-program-result > header,
.pcr-program-result > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pcr-program-config > header > div,
.pcr-program-result > header > div { display: grid; gap: 2px; min-width: 0; }
.pcr-program-config > header strong,
.pcr-program-result > header strong { color: #18243a; font-size: 15px; font-weight: 760; }
.pcr-program-config > header span,
.pcr-program-result > header span,
.pcr-program-result > header small { color: #718096; font-size: 10px; }
.pcr-program-config > p { min-height: 18px; margin: 9px 0 0; color: #66758a; font-size: 10px; line-height: 1.55; }
.pcr-program-preview { margin-top: 11px; border-top: 1px solid #e4eaf2; border-bottom: 1px solid #e4eaf2; }
.pcr-program-preview > summary { padding: 9px 0; color: #4f6078; cursor: pointer; font-size: 10px; font-weight: 720; }
.pcr-program-preview > p { max-height: 180px; margin: 0; overflow: auto; padding: 0 0 10px; color: #46566d; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }

.pcr-program-empty {
  display: grid;
  min-height: 170px;
  place-content: center;
  gap: 5px;
  color: #718096;
  text-align: center;
}
.pcr-program-empty strong { color: #34445c; font-size: 14px; }
.pcr-program-empty span { font-size: 11px; }

.pcr-program-result { overflow: hidden; }
.pcr-program-result > header { padding: 12px 14px; border-bottom: 1px solid #e4eaf2; }
.pcr-program-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e4eaf2;
  background: #f8fafc;
}
.pcr-program-metrics > div { display: grid; gap: 3px; padding: 10px 14px; border-right: 1px solid #e4eaf2; }
.pcr-program-metrics > div:last-child { border-right: 0; }
.pcr-program-metrics span { color: #718096; font-size: 9px; }
.pcr-program-metrics strong { color: #1f2d44; font-size: 16px; font-variant-numeric: tabular-nums; }
.pcr-program-metrics strong small { color: #718096; font-size: 9px; font-weight: 650; }
.pcr-program-body { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.4fr); gap: 0; }
.pcr-program-body > section { min-width: 0; padding: 13px 14px; }
.pcr-program-body > section + section { border-left: 1px solid #e4eaf2; }
.pcr-program-body h4 { margin: 0 0 9px; color: #33445d; font-size: 11px; font-weight: 760; }
.pcr-program-facts { display: grid; margin: 0; }
.pcr-program-facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf1f6; }
.pcr-program-facts dt { color: #718096; font-size: 9px; font-weight: 700; }
.pcr-program-facts dd { margin: 0; overflow-wrap: anywhere; color: #34445c; font-size: 10px; line-height: 1.55; }
.pcr-program-candidates { display: grid; }
.pcr-program-candidates article { padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.pcr-program-candidates article:first-child { padding-top: 0; }
.pcr-program-candidates article > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcr-program-candidates article > header strong { color: #2e3e56; font-size: 10px; }
.pcr-program-candidates article > header span { color: #8a5d2f; font-size: 9px; font-weight: 700; }
.pcr-program-candidates article > p { margin: 4px 0 0; color: #5d6b7f; font-size: 10px; line-height: 1.55; }
.pcr-program-candidates details { margin-top: 5px; }
.pcr-program-candidates summary { color: #53647b; cursor: pointer; font-size: 9px; font-weight: 700; }
.pcr-program-candidates blockquote { margin: 6px 0 0; padding-left: 9px; border-left: 2px solid #cbd6e4; color: #67758a; font-size: 9px; line-height: 1.6; }
.pcr-program-muted { margin: 0; color: #6d7b8f; font-size: 10px; line-height: 1.6; }
.pcr-program-missing { grid-column: 1 / -1; margin: 0 14px 12px; padding: 9px 10px; border: 1px solid #e4eaf2; border-radius: 8px; background: #f8fafc; }
.pcr-program-missing summary { color: #4e5f76; cursor: pointer; font-size: 10px; font-weight: 720; }
.pcr-program-missing p { margin: 7px 0 3px; color: #46566d; font-size: 10px; line-height: 1.55; }
.pcr-program-missing small { color: #718096; font-size: 9px; line-height: 1.5; }
.pcr-program-boundary { margin: 0; padding: 9px 14px; border-top: 1px solid #e4eaf2; color: #66758a; font-size: 10px; line-height: 1.5; }
.pcr-program-conclusion { display: grid; gap: 5px; padding: 12px 14px; border-top: 1px solid #e4eaf2; }
.pcr-program-conclusion > span { color: #526177; font-size: 10px; font-weight: 720; }
.pcr-program-conclusion textarea {
  min-height: 72px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  color: #26364f;
  font: inherit;
  font-size: 11px;
  line-height: 1.55;
}
.pcr-program-result > footer { padding: 10px 14px; border-top: 1px solid #e4eaf2; background: #f8fafc; }
.pcr-program-result > footer > span { color: #66758a; font-size: 10px; }
.pcr-program-result > footer > div { display: flex; gap: 7px; }
.pcr-program-result button:disabled { cursor: not-allowed; opacity: .5; }

@media (max-width: 760px) {
  .pcr-program-config > header,
  .pcr-program-result > footer { align-items: stretch; flex-direction: column; }
  .pcr-program-body { grid-template-columns: 1fr; }
  .pcr-program-body > section + section { border-top: 1px solid #e4eaf2; border-left: 0; }
  .pcr-program-result > footer > div { display: grid; }
}

@media (max-width: 520px) {
  .pcr-program-metrics { grid-template-columns: 1fr; }
  .pcr-program-metrics > div { border-right: 0; border-bottom: 1px solid #e4eaf2; }
  .pcr-program-facts > div { grid-template-columns: 1fr; gap: 3px; }
}

/* 资料准备属于左侧资料接入，不与右侧分析工具竞争注意力。 */
#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
}

#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  width: 100%;
  min-height: 46px;
  padding: 9px 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #34445c;
  text-align: left;
  cursor: pointer;
}

#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] > button:hover,
#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] > button:focus-visible {
  color: #245bd7;
  outline: 0;
}

#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] strong {
  font-size: 11px;
  font-weight: 760;
}

#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] span {
  grid-column: 1;
  color: #718096;
  font-size: 9px;
  line-height: 1.45;
}

#view-walkthrough .at-evidence-source-body > .adpe-entry[data-audit-data-preparation-entry="procedure-execution"] em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #66758a;
  font-size: 9px;
  font-style: normal;
  font-weight: 720;
}
