/* Professional test pilot — deliberately isolated from the formal worksheet. */
#view-walkthrough .aptp-host {
  --aptp-ink: #162033;
  --aptp-muted: #5d687a;
  --aptp-line: #d8e0ea;
  --aptp-soft: #f6f8fb;
  --aptp-blue: #245fd6;
  --aptp-green: #16735a;
  --aptp-amber: #a15c09;
  --aptp-red: #b3362d;
  width: 100%;
  color: var(--aptp-ink);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
  border-block: 1px solid var(--aptp-line);
}

#view-walkthrough .aptp-host ::selection {
  color: #fff;
  background: #245fd6;
}

#view-walkthrough .aptp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 14px;
}

#view-walkthrough .aptp-head h2,
#view-walkthrough .aptp-sample-head h3 {
  margin: 0;
  color: var(--aptp-ink);
  letter-spacing: -.018em;
}

#view-walkthrough .aptp-head h2 {
  font-size: 21px;
  line-height: 1.25;
}

#view-walkthrough .aptp-head p,
#view-walkthrough .aptp-sample-head p {
  margin: 3px 0 0;
  color: var(--aptp-muted);
}

#view-walkthrough .aptp-head-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
}

#view-walkthrough .aptp-head-status span {
  min-height: 26px;
  padding: 3px 10px;
  color: #42516a;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 999px;
  background: #edf1f6;
}

#view-walkthrough .aptp-head-status span.is-returned,
#view-walkthrough .aptp-head-status span.is-submitted {
  color: #855018;
  background: #fff2df;
}

#view-walkthrough .aptp-head-status span.is-reviewed {
  color: #0f654f;
  background: #e8f6f1;
}

#view-walkthrough .aptp-head-status small {
  color: var(--aptp-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#view-walkthrough .aptp-policy {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 12px;
  margin: 0 20px 16px;
  padding: 10px 12px;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  background: #f5f8fc;
}

#view-walkthrough .aptp-policy strong {
  grid-row: 1 / span 2;
  color: #294f86;
  font-size: 13px;
}

#view-walkthrough .aptp-policy span {
  color: #26344a;
}

#view-walkthrough .aptp-policy small {
  color: #68758a;
  font-size: 12px;
}

#view-walkthrough .aptp-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 0 20px;
  overflow: hidden;
  border: 1px solid var(--aptp-line);
  border-radius: 12px;
  background: #fff;
}

#view-walkthrough .aptp-sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 12px;
  min-width: 0;
  padding: 11px 13px;
  color: var(--aptp-ink);
  text-align: left;
  border: 0;
  border-right: 1px solid var(--aptp-line);
  background: #fff;
  cursor: pointer;
}

#view-walkthrough .aptp-sample:last-child {
  border-right: 0;
}

#view-walkthrough .aptp-sample:is(:hover, :focus-visible) {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(36, 95, 214, .28);
  outline-offset: -2px;
  background: #f7f9fd;
}

#view-walkthrough .aptp-sample.is-active {
  color: #174cae;
  background: #eef4ff;
  box-shadow: inset 0 -3px 0 var(--aptp-blue);
}

#view-walkthrough .aptp-sample span {
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-walkthrough .aptp-sample small {
  grid-row: 2;
  color: var(--aptp-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#view-walkthrough .aptp-sample b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--aptp-green);
  font-size: 12px;
}

#view-walkthrough .aptp-sample.is-exception b { color: var(--aptp-red); }
#view-walkthrough .aptp-sample.is-pending b { color: var(--aptp-amber); }

#view-walkthrough .aptp-sample-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr);
  align-items: end;
  gap: 20px;
  padding: 20px 20px 12px;
}

#view-walkthrough .aptp-sample-head h3 {
  font-size: 19px;
}

#view-walkthrough .aptp-sample-head dl {
  display: grid;
  grid-template-columns: minmax(90px, .4fr) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}

#view-walkthrough .aptp-sample-head dl > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#view-walkthrough .aptp-sample-head dt {
  color: var(--aptp-muted);
  font-size: 11px;
  font-weight: 650;
}

#view-walkthrough .aptp-sample-head dd {
  margin: 0;
  overflow: hidden;
  color: #243047;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#view-walkthrough .aptp-table-wrap {
  margin: 0 20px;
  overflow: auto;
  border: 1px solid var(--aptp-line);
  border-radius: 10px;
  scrollbar-color: #9aa8ba #f2f5f8;
  scrollbar-width: thin;
}

#view-walkthrough .aptp-table-wrap::-webkit-scrollbar { height: 9px; width: 9px; }
#view-walkthrough .aptp-table-wrap::-webkit-scrollbar-track { background: #f2f5f8; }
#view-walkthrough .aptp-table-wrap::-webkit-scrollbar-thumb { border: 2px solid #f2f5f8; border-radius: 999px; background: #9aa8ba; }

#view-walkthrough .aptp-matrix {
  width: 100%;
  min-width: 940px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

#view-walkthrough .aptp-matrix th,
#view-walkthrough .aptp-matrix td {
  padding: 10px 11px;
  vertical-align: top;
  text-align: left;
  border-right: 1px solid #e3e8ef;
  border-bottom: 1px solid #e3e8ef;
}

#view-walkthrough .aptp-matrix tr:last-child > * { border-bottom: 0; }
#view-walkthrough .aptp-matrix tr > *:last-child { border-right: 0; }
#view-walkthrough .aptp-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-block: 8px;
  color: #4a5870;
  font-size: 12px;
  font-weight: 750;
  background: #f2f5f8;
}

#view-walkthrough .aptp-matrix thead th:nth-child(1) { width: 29%; }
#view-walkthrough .aptp-matrix thead th:nth-child(2) { width: 34%; }
#view-walkthrough .aptp-matrix thead th:nth-child(3) { width: 12%; }
#view-walkthrough .aptp-matrix thead th:nth-child(4) { width: 25%; }

#view-walkthrough .aptp-matrix tbody th {
  font-weight: 400;
  background: #fbfcfe;
}

#view-walkthrough .aptp-matrix tbody th strong,
#view-walkthrough .aptp-matrix tbody th small,
#view-walkthrough .aptp-matrix td > small {
  display: block;
}

#view-walkthrough .aptp-matrix tbody th strong {
  margin-bottom: 3px;
  color: #1e2b41;
  font-size: 14px;
  line-height: 1.35;
}

#view-walkthrough .aptp-matrix tbody th small,
#view-walkthrough .aptp-matrix td > small {
  color: #69768a;
  font-size: 11px;
  line-height: 1.45;
}

#view-walkthrough .aptp-matrix :is(input, select, textarea),
#view-walkthrough .aptp-sample-conclusion :is(select, textarea),
#view-walkthrough .aptp-review-panel textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  color: #1c283d;
  font: inherit;
  line-height: 1.45;
  border: 1px solid #c9d3df;
  border-radius: 7px;
  background: #fff;
  resize: vertical;
}

#view-walkthrough .aptp-matrix select,
#view-walkthrough .aptp-sample-conclusion select { resize: none; }

#view-walkthrough .aptp-matrix :is(input, select, textarea):focus-visible,
#view-walkthrough .aptp-sample-conclusion :is(select, textarea):focus-visible,
#view-walkthrough .aptp-review-panel textarea:focus-visible {
  outline: 2px solid rgba(36, 95, 214, .3);
  outline-offset: 1px;
  border-color: #6389d5;
}

#view-walkthrough .aptp-matrix :is(input, select, textarea):disabled,
#view-walkthrough .aptp-sample-conclusion :is(select, textarea):disabled {
  color: #38465c;
  opacity: 1;
  border-color: transparent;
  background: transparent;
  -webkit-text-fill-color: #38465c;
}

#view-walkthrough .aptp-readonly-value {
  min-height: 28px;
  color: #2a374c;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#view-walkthrough .aptp-result {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  color: #4c596b;
  font-size: 12px;
  font-weight: 750;
  border-radius: 999px;
  background: #edf1f5;
}

#view-walkthrough .aptp-result.is-pass { color: #0f654f; background: #e8f6f1; }
#view-walkthrough .aptp-result.is-exception { color: #a12f28; background: #fff0ef; }
#view-walkthrough .aptp-result.is-pending,
#view-walkthrough .aptp-result.is-not-tested { color: #855018; background: #fff2df; }
#view-walkthrough .aptp-result.is-not-applicable { color: #5b6574; background: #eef1f4; }

#view-walkthrough .aptp-matrix tr.is-exception > th {
  box-shadow: inset 3px 0 0 #ca4a41;
}

#view-walkthrough .aptp-matrix tr.is-pending > th {
  box-shadow: inset 3px 0 0 #c78125;
}

#view-walkthrough .aptp-sample-conclusion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  padding: 14px 20px 4px;
}

#view-walkthrough .aptp-sample-conclusion label,
#view-walkthrough .aptp-review-panel label {
  display: grid;
  align-content: start;
  gap: 5px;
}

#view-walkthrough .aptp-sample-conclusion label > span,
#view-walkthrough .aptp-review-panel label > span,
#view-walkthrough .aptp-sample-conclusion.is-readonly span {
  color: #43516a;
  font-size: 12px;
  font-weight: 700;
}

#view-walkthrough .aptp-sample-conclusion.is-readonly > div {
  min-width: 0;
}

#view-walkthrough .aptp-sample-conclusion.is-readonly p {
  margin: 5px 0 0;
  color: #27364c;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#view-walkthrough .aptp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px 18px;
}

#view-walkthrough .aptp-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  color: #4b586d;
  font-size: 13px;
}

#view-walkthrough .aptp-counts b { color: var(--aptp-green); font-variant-numeric: tabular-nums; }
#view-walkthrough .aptp-counts .is-exception b { color: var(--aptp-red); }
#view-walkthrough .aptp-counts .is-pending b { color: var(--aptp-amber); }
#view-walkthrough .aptp-counts .is-na b { color: #5d687a; }
#view-walkthrough .aptp-counts small { flex-basis: 100%; color: #6c788a; font-size: 11px; }

#view-walkthrough .aptp-submit-hint {
  max-width: 72ch;
  margin: 6px 0 0;
  color: #8b4d13;
  font-size: 12px;
}

#view-walkthrough .aptp-footer button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

#view-walkthrough .aptp-message {
  margin: 0 20px 14px;
  padding: 8px 10px;
  color: #36516f;
  border-radius: 7px;
  background: #edf3fb;
}

#view-walkthrough .aptp-message.is-success { color: #0f654f; background: #e8f6f1; }
#view-walkthrough .aptp-message.is-error { color: #9e3029; background: #fff0ef; }

#view-walkthrough .aptp-review-panel,
#view-walkthrough .aptp-review-state {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 18px;
  margin: 0 20px 16px;
  padding: 12px;
  border: 1px solid #d9e2ed;
  border-radius: 10px;
  background: #f8fafc;
}

#view-walkthrough .aptp-review-panel > div:first-child,
#view-walkthrough .aptp-review-state {
  align-items: start;
}

#view-walkthrough .aptp-review-panel strong,
#view-walkthrough .aptp-review-panel span,
#view-walkthrough .aptp-review-state strong,
#view-walkthrough .aptp-review-state span,
#view-walkthrough .aptp-review-state small {
  display: block;
}

#view-walkthrough .aptp-review-panel strong,
#view-walkthrough .aptp-review-state strong { color: #25344b; }
#view-walkthrough .aptp-review-panel > div > span,
#view-walkthrough .aptp-review-state span,
#view-walkthrough .aptp-review-state small { color: var(--aptp-muted); font-size: 12px; }
#view-walkthrough .aptp-review-panel p { margin: 0; color: #7b4a18; }
#view-walkthrough .aptp-review-actions { display: flex; gap: 8px; }

#view-walkthrough .aptp-review-state {
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
}

#view-walkthrough .aptp-review-state.is-returned { border-color: #e8c596; background: #fff8ee; }
#view-walkthrough .aptp-review-state.is-approved { border-color: #b7dccf; background: #eff9f5; }

#view-walkthrough .aptp-boundary {
  border-top: 1px solid #e1e7ef;
}

#view-walkthrough .aptp-boundary summary {
  padding: 11px 20px;
  color: #526078;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#view-walkthrough .aptp-boundary summary:focus-visible {
  outline: 2px solid rgba(36, 95, 214, .28);
  outline-offset: -2px;
}

#view-walkthrough .aptp-boundary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0 20px 14px;
}

#view-walkthrough .aptp-boundary dl > div { min-width: 0; }
#view-walkthrough .aptp-boundary dt { color: var(--aptp-muted); font-size: 11px; }
#view-walkthrough .aptp-boundary dd { margin: 2px 0 0; color: #2b394e; font-size: 12px; overflow-wrap: anywhere; }

#view-walkthrough .aptp-evidence-reference {
  display: grid;
  gap: 6px;
}

#view-walkthrough .aptp-evidence-reference select { min-width: 150px; }

#view-walkthrough .aptp-source-open {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #245ea8;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

#view-walkthrough .aptp-source-open:hover { text-decoration: underline; }

#view-walkthrough .aptp-host.is-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 0 0 20px;
}

#view-walkthrough .aptp-host.is-empty > p,
#view-walkthrough .aptp-host.is-empty > button { margin: 0 20px; }

@media (max-width: 820px) {
  #view-walkthrough .aptp-head,
  #view-walkthrough .aptp-footer { align-items: stretch; flex-direction: column; }
  #view-walkthrough .aptp-head-status { justify-items: start; }
  #view-walkthrough .aptp-policy { grid-template-columns: 1fr; }
  #view-walkthrough .aptp-policy strong { grid-row: auto; }
  #view-walkthrough .aptp-sample-head { grid-template-columns: 1fr; }
  #view-walkthrough .aptp-sample-conclusion { grid-template-columns: 1fr; }
  #view-walkthrough .aptp-review-panel,
  #view-walkthrough .aptp-review-state { grid-template-columns: 1fr; align-items: stretch; }
  #view-walkthrough .aptp-boundary dl { grid-template-columns: 1fr; }

  #view-walkthrough .aptp-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  #view-walkthrough .aptp-matrix {
    display: block;
    min-width: 0;
    background: transparent;
  }

  #view-walkthrough .aptp-matrix thead { display: none; }
  #view-walkthrough .aptp-matrix tbody { display: grid; gap: 9px; }

  #view-walkthrough .aptp-matrix tbody tr {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--aptp-line);
    border-radius: 10px;
    background: #fff;
  }

  #view-walkthrough .aptp-matrix th,
  #view-walkthrough .aptp-matrix td {
    display: block;
    padding: 9px 11px;
    border: 0;
  }

  #view-walkthrough .aptp-matrix tbody th {
    grid-column: 1 / -1;
    border-bottom: 1px solid #e3e8ef;
  }

  #view-walkthrough .aptp-matrix tbody td:nth-child(2) {
    grid-column: 1 / -1;
    border-bottom: 1px solid #e3e8ef;
  }

  #view-walkthrough .aptp-matrix tbody td:nth-child(3) {
    grid-column: 1;
    border-right: 1px solid #e3e8ef;
  }

  #view-walkthrough .aptp-matrix tbody td:nth-child(4) { grid-column: 2; }

  #view-walkthrough .aptp-matrix tbody td::before {
    display: block;
    margin-bottom: 4px;
    color: #69768a;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
  }
}

@media (max-width: 560px) {
  #view-walkthrough .aptp-head,
  #view-walkthrough .aptp-sample-head,
  #view-walkthrough .aptp-sample-conclusion,
  #view-walkthrough .aptp-footer { padding-inline: 14px; }
  #view-walkthrough .aptp-policy,
  #view-walkthrough .aptp-samples,
  #view-walkthrough .aptp-table-wrap,
  #view-walkthrough .aptp-message,
  #view-walkthrough .aptp-review-panel,
  #view-walkthrough .aptp-review-state { margin-inline: 14px; }
  #view-walkthrough .aptp-samples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #view-walkthrough .aptp-sample {
    display: block;
    padding: 9px 8px;
    text-align: center;
    border-right: 1px solid var(--aptp-line);
  }
  #view-walkthrough .aptp-sample:last-child { border-right: 0; }
  #view-walkthrough .aptp-sample span,
  #view-walkthrough .aptp-sample small,
  #view-walkthrough .aptp-sample b { display: block; }
  #view-walkthrough .aptp-sample small { margin-top: 1px; font-size: 10px; }
  #view-walkthrough .aptp-sample b { margin-top: 3px; font-size: 10px; }
  #view-walkthrough .aptp-matrix tbody tr { grid-template-columns: 94px minmax(0, 1fr); }
}
