/* The scan result puts the observation and next care step before its evidence. */
.pt-app .pte-scan-result {
  --pte-result-forest: #173f31;
  --pte-result-ink: #183e30;
  --pte-result-muted: #617066;
  --pte-result-line: #dce4db;
  --pte-result-cream: #f7f7ef;
  --pte-result-lime: #e0edab;
  color: var(--pte-result-ink);
}
.pt-app .pte-result-identity {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 5px 0 19px;
  border-bottom: 1px solid var(--pte-result-line);
}
.pt-app .pte-result-photo {
  width: 88px;
  height: 104px;
  padding: 4px;
  border: 1px solid var(--pte-result-line);
  border-radius: 28px 28px 28px 9px;
  background: #fff;
  overflow: hidden;
  transform: rotate(3deg);
}
.pt-app .pte-result-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px 23px 23px 5px;
}
.pt-app .pte-result-photo-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 23px 23px 23px 5px;
  background: #edf2e6;
  text-align: center;
  font-size: 10px;
  color: var(--pte-result-muted);
}
.pt-app .pte-result-photo-empty .pt-svg { width: 26px; height: 26px; color: var(--pte-result-forest); }
.pt-app .pte-result-name { min-width: 0; }
.pt-app .pte-result-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pte-result-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}
.pt-app .pte-result-eyebrow .pt-svg { width: 16px; height: 16px; flex: 0 0 auto; }
.pt-app .pte-result-name h1 {
  margin: 5px 0 4px;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -.65px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pt-app .pte-result-name > p {
  margin: 0;
  color: var(--pte-result-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
}
.pt-app .pte-result-outcome {
  margin-top: 20px;
  padding: 19px 20px;
  border: 1px solid #d9e4d1;
  border-radius: 24px 24px 8px 24px;
  background: #eef3e5;
}
.pt-app .pte-result-outcome.is-attention { border-color: #ebdbb7; background: #fbf3e3; }
.pt-app .pte-result-outcome h2 {
  margin: 7px 0;
  color: var(--pte-result-ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.4px;
}
.pt-app .pte-result-outcome > p { margin: 0; color: #3d5446; font-size: 14px; line-height: 1.95; }
.pt-app .pte-result-trustline { margin: 11px 4px 0; gap: 6px; font-size: 11px; color: var(--pte-result-muted); }
.pt-app .pte-result-retake { margin-top: 20px; padding: 0 0 3px; }
.pt-app .pte-result-retake > .ptx-evidence-card { margin: 0; padding: 20px 17px; border-radius: 24px; }
.pt-app .pte-result-retake .ptx-evidence-card h2 { font-size: 21px; line-height: 1.5; }
.pt-app .pte-result-retake .ptx-evidence-card p { font-size: 14px; line-height: 1.9; }
.pt-app .pte-result-retake > p { margin: 12px 3px 0; color: var(--pte-result-muted); font-size: 13px; line-height: 1.85; }
.pt-app .pte-result-alert {
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid #e8cec3;
  border-inline-start: 4px solid #a7513d;
  border-radius: 18px;
  background: #fff4ee;
  color: #753e30;
}
.pt-app .pte-result-alert > header,
.pt-app .pte-result-checkpoints > header { display: flex; align-items: center; gap: 8px; }
.pt-app .pte-result-alert > header > .pt-svg { width: 20px; height: 20px; flex: 0 0 auto; }
.pt-app .pte-result-alert h2 { margin: 0; color: inherit; font-size: 15px; line-height: 1.6; }
.pt-app .pte-result-alert ul { margin: 9px 0 0; padding-inline-start: 20px; font-size: 13px; line-height: 1.95; }
.pt-app .pte-result-alert li + li { margin-top: 6px; }
.pt-app .pte-result-section-title { margin: 0 2px 15px; }
.pt-app .pte-result-section-title > span { display: flex; align-items: center; gap: 6px; color: var(--pte-result-muted); font-size: 11px; font-weight: 700; line-height: 1.7; }
.pt-app .pte-result-section-title > span > .pt-svg { width: 17px; height: 17px; }
.pt-app .pte-result-section-title h2 { margin: 5px 0 0; color: var(--pte-result-ink); font-size: 20px; font-weight: 800; line-height: 1.55; letter-spacing: -.35px; }
.pt-app .pte-result-section-title > p { margin: 5px 0 0; color: var(--pte-result-muted); font-size: 12px; line-height: 1.8; }
.pt-app .pte-result-followup { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #507044; font-size: 11px; line-height: 1.7; }
.pt-app .pte-result-followup > .pt-svg { width: 14px; height: 14px; }
.pt-app .pte-result-urgent { margin-top: 25px; }
.pt-app .pte-result-urgent .ptx-issue-card { border-radius: 20px; }
.pt-app .pte-result-plan { margin-top: 28px; }
.pt-app .pte-result-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-app .pte-result-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 15px;
  border: 1px solid var(--pte-result-line);
  border-radius: 23px;
  background: #fff;
}
.pt-app .pte-result-step-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: #eef3e6; color: var(--pte-result-forest); }
.pt-app .pte-result-step-icon > .pt-svg { width: 20px; height: 20px; }
.pt-app .pte-result-step-body { min-width: 0; }
.pt-app .pte-result-step-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; font-size: 10px; line-height: 1.7; }
.pt-app .pte-result-step-meta > span { color: var(--pte-result-muted); }
.pt-app .pte-result-step-meta > small { color: #386340; font-size: 10px; font-weight: 700; }
.pt-app .pte-result-step h3 { margin: 6px 0; color: var(--pte-result-ink); font-size: 16px; font-weight: 800; line-height: 1.6; }
.pt-app .pte-result-step-body > p { margin: 0; color: #46594d; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.pt-app .pte-result-step-body > .pte-result-step-condition,
.pt-app .pte-result-step-body > .pte-result-step-caution { display: flex; align-items: flex-start; gap: 6px; margin: 9px 0; padding: 8px 9px; border-radius: 10px; font-size: 12px; line-height: 1.85; background: #f1f4ed; color: #395042; }
.pt-app .pte-result-step-body > .pte-result-step-caution { background: #fff1de; color: #775326; }
.pt-app .pte-result-step-condition > .pt-svg,
.pt-app .pte-result-step-caution > .pt-svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 3px; }
.pt-app .pte-result-step-reason { margin-top: 8px; }
.pt-app .pte-result-step-reason > summary { display: flex; align-items: center; gap: 4px; min-height: 44px; width: fit-content; max-width: 100%; cursor: pointer; color: #376546; list-style: none; font-size: 12px; font-weight: 700; }
.pt-app .pte-result-step-reason > summary::-webkit-details-marker { display: none; }
.pt-app .pte-result-step-reason > summary > .pt-svg { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .18s ease; }
.pt-app .pte-result-step-reason[open] > summary > .pt-svg { transform: rotate(90deg); }
.pt-app .pte-result-step-reason > p { margin: 0; padding-bottom: 3px; font-size: 12px; line-height: 1.9; color: var(--pte-result-muted); }
.pt-app .pte-result-step.is-first { background: var(--pte-result-forest); border-color: var(--pte-result-forest); }
.pt-app .pte-result-step.is-first .pte-result-step-icon { background: var(--pte-result-lime); color: #26412d; }
.pt-app .pte-result-step.is-first h3 { color: #fff; font-size: 17px; }
.pt-app .pte-result-step.is-first .pte-result-step-meta > span,
.pt-app .pte-result-step.is-first .pte-result-step-meta > small { color: var(--pte-result-lime); }
.pt-app .pte-result-step.is-first .pte-result-step-body > p { color: #f1f4ea; }
.pt-app .pte-result-step.is-first .pte-result-step-body > .pte-result-step-condition { background: #2a4f3e; color: #f1f4ea; }
.pt-app .pte-result-step.is-first .pte-result-step-body > .pte-result-step-caution { background: #f6e7bc; color: #59401b; }
.pt-app .pte-result-step.is-first .pte-result-step-reason > summary { color: var(--pte-result-lime); }
.pt-app .pte-result-step.is-first .pte-result-step-reason > p { color: #d5e1d6; }
.pt-app .pte-result-checkpoints { margin-top: 17px; padding: 18px; border: 1px dashed #bdcdb7; border-radius: 20px; background: #f2f5eb; }
.pt-app .pte-result-checkpoints > header > .pt-svg { width: 19px; height: 19px; flex: 0 0 auto; }
.pt-app .pte-result-checkpoints h3 { margin: 0; color: var(--pte-result-ink); font-size: 15px; font-weight: 800; line-height: 1.6; }
.pt-app .pte-result-checkpoints ul { list-style: none; margin: 15px 0 0; padding: 0; display: grid; gap: 15px; }
.pt-app .pte-result-checkpoints li { border-inline-start: 2px solid #c4d2b5; padding-inline-start: 12px; }
.pt-app .pte-result-checkpoints li > span { display: block; color: #597148; font-size: 11px; font-weight: 700; }
.pt-app .pte-result-checkpoints li > strong { display: block; margin-top: 3px; font-size: 13px; line-height: 1.8; }
.pt-app .pte-result-checkpoints li > p { margin: 3px 0 0; color: var(--pte-result-muted); font-size: 12px; line-height: 1.9; }
.pt-app .pte-result-details { margin-top: 24px; border-radius: 20px; border-color: var(--pte-result-line); }
.pt-app .pte-result-details > summary { min-height: 78px; padding: 15px; }
.pt-app .pte-result-details > summary strong { font-size: 14px; line-height: 1.7; }
.pt-app .pte-result-details > summary small { font-size: 11px; line-height: 1.7; margin-top: 3px; }
.pt-app .pte-result-details > .ptx-result-more-body { padding: 0 15px 17px; }
.pt-app .pte-result-signals { margin: 15px 0; }
.pt-app .pte-result-details .ptx-result-description { padding-block: 13px; }
.pt-app .pte-result-details .ptx-result-description > small { display: block; margin-bottom: 5px; color: var(--pte-result-muted); font-size: 11px; }
.pt-app .pte-photo-tips { margin: 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.9; }
.pt-app .pte-photo-tips li + li { margin-top: 8px; }
.pt-app .pte-result-actions > .ptx-button { min-height: 56px; border-radius: 17px; font-size: 15px; font-weight: 800; }
.pt-app .pte-scan-result details > summary:focus-visible { outline: 3px solid #8ab366; outline-offset: 3px; border-radius: 10px; }
@media (min-width: 700px) {
  .pt-app .pte-result-identity { grid-template-columns: 106px minmax(0, 1fr); gap: 22px; }
  .pt-app .pte-result-photo { width: 106px; height: 120px; }
  .pt-app .pte-result-step { padding: 20px; gap: 16px; }
}
@media (max-width: 370px) {
  .pt-app .pte-result-identity { grid-template-columns: 78px minmax(0, 1fr); gap: 13px; }
  .pt-app .pte-result-photo { width: 78px; height: 96px; }
  .pt-app .pte-result-outcome { padding: 17px; }
  .pt-app .pte-result-outcome h2 { font-size: 21px; }
  .pt-app .pte-result-step { padding: 16px 12px; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .pt-app .pte-result-step-icon { width: 32px; height: 36px; }
  .pt-app .pte-result-step h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-app .pte-result-step-reason > summary > .pt-svg { transition: none; }
}
