#detailView {
  --inspection-ink: #202338;
  --inspection-muted: #5c6275;
  --inspection-line: #e0e2ee;
  --inspection-accent: #5043cf;
  color: var(--inspection-ink);
  background: radial-gradient(ellipse at 12% 0%, #eeedfc, transparent 65%), #f5f5fb;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}
#detailView :is(button, textarea, select) { font-family: inherit; }
#detailView .dh-left h2 { color: var(--inspection-ink); font-weight: 700; }
#detailView #detailRecordBtn { background: #5043cf; border-color: #5043cf; }
#detailView #detailRecordBtn:hover { background: #4135af; border-color: #4135af; }
#detailView .detail-main { gap: 16px; padding: 16px 18px 46px; }
#detailSteps.tree-root { gap: 10px; }
#detailView .pipeline-sidebar {
  padding: 13px 10px;
  border-color: #e0e2ee;
  border-radius: 15px;
  background: linear-gradient(155deg, #fff, #faf9ff);
  box-shadow: 0 5px 16px rgba(42, 36, 90, .08);
}
#detailView .pipeline-overview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  background: radial-gradient(circle, #8174dc29 1px, transparent 1.4px) right top / 10px 10px,
              linear-gradient(112deg, #edebff, #f5f4ff 75%);
}
#detailView .pipeline-gauge {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#5745db, #8274ee var(--inspection-progress, 0%), #dfdcf4 0);
  box-shadow: 0 2px 10px #5143c726;
}
#detailView .pipeline-gauge span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fbfaff;
  color: #4136ad;
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
#detailView .pipeline-overview h3 { margin: 0 0 3px; color: #22253c; }
#detailView .pipeline-overview p { margin: 0; font-size: 12px; color: #5c6275; font-variant-numeric: tabular-nums; }
#detailSteps #ncPanel { margin: 0; padding: 12px 14px; border-color: var(--inspection-line); border-radius: 12px; }
#detailSteps .tree-node .tree-node-body {
  padding: 9px 12px;
  column-gap: 12px;
  row-gap: 7px;
  border: 1px solid var(--inspection-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px #28234b0b;
  transition: none;
}
#detailSteps .tree-node-body > .step-head { min-height: 34px; align-items: center; gap: 9px; }
#detailSteps .tree-node-body > .nc-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
  flex-wrap: wrap;
  align-self: center;
  margin: 0;
}
#detailSteps .opt-head input { accent-color: var(--inspection-accent); flex: none; margin: 0; }
#detailSteps .step-checkbox { margin: 0; border-color: #969cb3; }
#detailSteps .step-checkbox:is(:checked, :indeterminate) { border-color: var(--inspection-accent); background: var(--inspection-accent); }
#detailSteps .step-title, #detailSteps .step-checkbox:checked + .step-title { color: var(--inspection-ink); font-size: 15px; line-height: 1.5; }
#detailSteps .step-title p { margin: 0; }
#detailSteps .tree-node-body > .step-head > .step-title { overflow-wrap: anywhere; }
#detailSteps > .tree-node > .tree-node-body > .step-head .step-title { font-size: 16px; font-weight: 600; }
#detailSteps .inspection-group > .tree-node-body > .step-head .step-title { font-weight: 700; }
#detailSteps .tree-children {
  margin: 7px 0 4px 17px;
  padding-inline-start: 13px;
  border-inline-start: 1px solid var(--inspection-line);
}
#detailSteps .tree-children > .tree-node + .tree-node { margin-top: 6px; }
#detailSteps .inspection-selection-hint { margin: 0 0 0 27px; color: var(--inspection-muted); font-size: 12px; }
#detailSteps .child-options { gap: 6px; margin: 0 0 0 26px; }
#detailSteps .inspection-legacy-option { margin-inline-start: 26px; }
#detailSteps .inspection-legacy-option .inspection-option-heading { justify-content: space-between; }
#detailSteps .inspection-resource-title { padding-block: 7px; font-size: 14px; }
#detailSteps .nc-sub-row { gap: 5px 10px; padding: 0; }
#detailSteps .inspection-option-heading {
  display: flex;
  align-items: center;
  gap: 3px 8px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 0 7px 0 10px;
  border: 1px solid var(--inspection-line);
  border-radius: 8px;
  background: #f8f8fc;
}
#detailSteps :is(.nc-sub-row:is(:has(input:checked), .directory-target), .inspection-reference-active) > .inspection-option-heading {
  border-color: #c5bdf5;
  background: #efedff;
}
#detailSteps .opt-label { flex: 1 1 12rem; min-width: 0; min-height: 36px; justify-content: center; border: 0; padding: 4px 0; background: transparent; color: var(--inspection-ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#detailSteps .opt-head { gap: 7px; }
#detailSteps .opt-label:hover, #detailSteps .opt-label:has(input:checked) { background: transparent; color: #4035ae; }
#detailSteps .opt-label:not(label) { cursor: pointer; }
#detailSteps .step-checkbox:disabled, #detailSteps .step-head:has(.step-checkbox:disabled) { cursor: default; }
#detailSteps .inspection-reference-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--inspection-muted);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}
#detailSteps .inspection-reference-toggle::after {
  content: '';
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
#detailSteps .inspection-reference-toggle[aria-expanded="true"]::after {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  transform: none;
}
#detailSteps .inspection-reference-toggle:is(:hover, [aria-expanded="true"]) {
  background: #eae7ff;
  color: #4337ad;
}
#detailSteps .inspection-reference-toggle:focus-visible { outline: 2px solid #5b4ed3; outline-offset: 2px; }
#detailSteps .inspection-reference[hidden] { display: none; }
#detailSteps .inspection-reference {
  grid-column: 1 / -1;
  margin: 3px 0;
  padding: 9px 11px;
  border: 1px solid #ded9f7;
  border-radius: 8px;
  background: #f5f3ff;
  color: #41405c;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#detailSteps .inspection-reference strong { display: block; color: #383473; font-weight: 650; }
#detailSteps .inspection-reference p { margin: 2px 0 0; white-space: pre-wrap; }
#detailSteps .inspection-reference a { display: inline-block; margin-top: 3px; color: #493cc0; }
#detailSteps .inspection-reference :is(.cmd, .shot) { margin: 4px 0 0; }
#detailSteps .inspection-reference .cmd { background: #eeebfb; color: #393553; border: 1px solid #ded9f0; }
#detailSteps .inspection-reference .cmd code { color: #393553; white-space: pre-wrap; overflow-wrap: anywhere; }
#detailSteps .inspection-reference .cmd .copy { background: #fcfbff; color: #4537a9; border-color: #d4cbed; }
#detailSteps .tree-node.focused > .tree-node-body, #detailSteps .tree-node > .tree-node-body.directory-target {
  outline: 0;
  border-color: #bdb3ef;
  box-shadow: 0 0 0 2px #eeebfb;
}
#detailSteps .nc-sub-row.directory-target { outline: 0; }
#detailSteps .check-inline-form, #detailSteps .check-issue { border-color: #e0e2ee; border-radius: 10px; box-shadow: none; }
.issue-evidence-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.issue-evidence-actions small { color: #5c6275; }
#detailSteps .check-row-tools:has(> .check-choice) {
  justify-self: start;
  gap: 2px;
  width: max-content;
  padding: 2px;
  border-radius: 7px;
  background: #f0f0f6;
}
#detailSteps .check-choice {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--inspection-muted);
}
#detailSteps .check-choice:hover { background: #e8e7f3; }
#detailSteps .check-pass[aria-pressed="true"] { background: #e2f0e9; color: #215841; }
#detailSteps .check-fail[aria-pressed="true"] { background: #f8e7e9; color: #8e3039; }
#detailSteps .check-row-tools > span.nc-result-btn {
  min-width: 0;
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: #5c6275;
  font-size: 12px;
  cursor: default;
}
#detailSteps .check-row-tools > span.nc-complete { color: #285a48; }
#pipelineSteps button { gap: 7px; padding: 5px 7px; border-radius: 8px; align-items: center; position: relative; }
#pipelineSteps li:not(:last-child)::before { background: #d5cfee; left: 15px; top: 50%; bottom: -55%; width: 1px; }
#pipelineSteps .directory-group { margin-block-start: 6px; }
#pipelineSteps .directory-group > button { background: #f1effb; }
#pipelineSteps button[aria-current="location"] {
  background: #e9e5ff;
  border-color: transparent;
  box-shadow: inset 2px 0 #7465d9;
}
#pipelineSteps button:focus-visible { outline: 2px solid #5b4ed3; outline-offset: -2px; }
#pipelineSteps .pipeline-node-copy { gap: 1px; }
#pipelineSteps .pipeline-node-title { color: #31344a; line-height: 1.3; }
#pipelineSteps .pipeline-dot { margin-top: 0; line-height: 1; border-color: #aaa4ce; }
#pipelineSteps .directory-group .pipeline-dot { border-radius: 4px; }
#pipelineSteps .directory-group button[data-status="pending"] .pipeline-dot { background: #e6e0ff; border-color: #c2b8ef; }
#pipelineSteps .directory-group button[data-status="pending"] .pipeline-dot::before {
  content: '';
  width: 3px;
  height: 3px;
  margin: -4px 4px 0 0;
  background: #6959c6;
  box-shadow: 4px 0 #6959c6, 0 4px #6959c6, 4px 4px #6959c6;
}
#pipelineSteps button[data-status="complete"] .pipeline-dot { background: #277e69; color: white; border-color: #277e69; }
#pipelineSteps button[data-status="fail"] .pipeline-dot { background: #a7424b; color: white; border-color: #a7424b; }
#pipelineSteps button[data-status="fail"] .pipeline-node-status { color: #91383d; }
#pipelineSteps button:not([data-status="fail"]) .pipeline-node-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.workflow-confirm-actions { flex-wrap: wrap; }

@media (max-width: 760px) {
  #detailView .detail-main { display: block; padding: 9px 9px 28px; }
  #detailView .pipeline-sidebar { margin-bottom: 9px; }
  #detailSteps .tree-node .tree-node-body { padding-inline: 8px; }
  #detailSteps :is(.child-options, .inspection-legacy-option) { margin-inline-start: 17px; }
  #detailSteps .tree-children { margin-inline-start: 14px; padding-inline-start: 7px; }
}
@media (max-width: 600px) {
  #detailSteps .tree-node-body > .nc-item-actions { justify-content: flex-start; padding-inline-start: 27px; }
  #detailSteps .inspection-option-heading { padding: 0 5px 0 8px; }
  #detailSteps .opt-label { flex-basis: 9rem; }
}
