.web-report {
  margin: 1.5rem 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-bright);
  min-width: 0;
}
.web-report h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
}
.web-report h3 {
  margin: 1.4rem 0 0.65rem;
  font-size: 1rem;
}
.web-report p {
  line-height: 1.5;
  margin: 0.5rem 0;
}
.web-report .report-scope {
  color: var(--muted);
}
.report-check-list {
  list-style: none;
  padding: 0;
}
.report-check-list li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.report-finding {
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
}
.report-finding[data-level='attention'] {
  border-color: var(--warning);
  background: var(--paper);
}
.report-finding[data-level='incomplete'] {
  border-color: var(--muted);
  background: var(--paper);
}
.web-report details {
  margin: 0.75rem 0;
}
.web-report summary {
  cursor: pointer;
  padding: 0.4rem 0;
  font-weight: 700;
}
.web-report dl {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  margin: 0.5rem 0;
}
.web-report dt,
.web-report dd {
  margin: 0;
  padding: 0.5rem;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.web-report dd {
  font-family: var(--mono);
  font-size: 0.85rem;
}
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.web-report button {
  min-height: 44px;
}
.web-report button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.web-report :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.web-report textarea {
  display: block;
  width: 100%;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.85rem;
  resize: vertical;
}
.web-report pre {
  overflow-x: auto;
  max-height: 24rem;
  padding: 0.75rem;
  background: var(--paper);
  font-size: 0.85rem;
}
.web-report [hidden] {
  display: none;
}
@media (max-width: 600px) {
  .web-report dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .web-report dt {
    border: 0;
    padding-bottom: 0;
    color: var(--muted);
  }
  .report-check-list li {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
