.scan-report-view {
  --report-line: color-mix(in srgb, var(--ink) 18%, transparent);
  --report-wash: color-mix(in srgb, var(--surface) 80%, var(--paper));
  --report-gold: #82612d;
  color: var(--ink);
  font-family: var(--sans);
  max-width: 58rem;
  min-width: 0;
}
[data-theme="dark"] .scan-report-view { --report-gold: #d6b67b; }
.scan-report-view .report-counts {
  margin: .75rem 0 1.4rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}
.report-counts strong { color: var(--ink); }
.scan-report-view .report-finding {
  margin: 0;
  padding: clamp(1.25rem, 3.4vw, 2rem) 0;
  border-top: 1px solid var(--report-line);
  overflow-wrap: anywhere;
}
.report-finding-meta, .report-rule {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: .8rem;
  row-gap: .35rem;
}
.report-finding-meta .report-area { color: var(--sage); font-size: .84rem; font-weight: 650; }
.scan-report-view .finding-state { margin: 0; font-size: .8rem; line-height: 1.45; }
.scan-report-view .finding-state.unknown { color: var(--muted); }
.scan-report-view .report-finding h3 {
  margin: .55rem 0 .3rem;
  color: var(--ink);
  font: 600 clamp(1.18rem, 2.3vw, 1.55rem)/1.21 var(--sans);
  letter-spacing: -.027em;
  text-wrap: pretty;
}
.report-finding p { max-width: 66ch; margin: .38rem 0; line-height: 1.52; }
.report-impact { color: var(--muted); }
.report-action strong { color: var(--sage); margin-inline-end: .25rem; }
.scan-report-view .report-detail, .scan-report-view .report-record {
  padding: 0;
  border: 0;
}
.scan-report-view .report-check-group {
  border: 0;
  border-top: 1px solid var(--report-line);
  padding: .4rem 0;
}
.report-finding .report-detail:first-of-type { margin-top: .72rem; }
.scan-report-view summary {
  min-height: 2.75rem;
  padding: .66rem .1rem;
  color: var(--ink);
  font: 600 .91rem/1.45 var(--sans);
  overflow-wrap: anywhere;
}
.scan-report-view summary::marker { color: var(--sage); }
.report-check-group > summary { font-size: 1rem; }
.scan-report-view .report-close {
  display: inline-block;
  min-height: 2.75rem;
  color: var(--muted);
  padding: .55rem 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: .22em;
  font: 550 .85rem/1.5 var(--sans);
  border-radius: 0;
}
.report-detail[open] { padding-bottom: .35rem; }
.report-evidence-frame {
  position: relative;
  margin: 0;
  padding: clamp(.95rem, 3vw, 1.4rem);
  border: 1px solid var(--report-gold);
  border-radius: .8rem;
  background: var(--report-wash);
}
.report-evidence-frame strong { color: var(--ink); font-size: .89rem; }
.report-evidence-frame blockquote {
  margin: .48rem 0;
  font: 500 1rem/1.5 var(--sans);
  color: var(--ink);
}
.report-evidence-frame figcaption, .report-evidence-frame small, .report-facts {
  color: var(--muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.report-evidence-frame figcaption { margin-top: .8rem; }
.report-comparison + .report-comparison {
  border-top: 1px solid var(--report-line);
  padding-top: .7rem;
  margin-top: .7rem;
}
.report-comparison + .report-comparison strong { color: var(--sage); }
.report-engine-title { display: block; margin-top: .3rem; }
.report-sources { margin: .3rem 0; padding-left: 1.3rem; }
.report-sources a { font-size: .84rem; overflow-wrap: anywhere; }
.report-other-checks { padding: 0; list-style: none; margin: 0; }
.report-other-checks > li { border-top: 1px solid var(--report-line); }
.report-other-checks summary .finding-state { margin-inline-start: .7rem; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused):not([data-terminal-motion="paused"]) .report-evidence[open] .report-evidence-frame::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 2px solid var(--report-gold);
    border-radius: inherit;
    pointer-events: none;
    animation: report-trace .8s ease-out both;
  }
  @keyframes report-trace {
    0% { clip-path: polygon(0 0, 0 0, 0 0, 0 0, 0 0); }
    28% { clip-path: polygon(0 0, 100% 0, 100% 0, 100% 0, 0 0); }
    53% { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 0); }
    77% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%); }
    100% { opacity: 0; clip-path: inset(0); }
  }
}