.case-evidence {
  margin-top: 14px;
  border-top: 1px solid currentColor;
  border-top-color: color-mix(in srgb, currentColor 30%, transparent);
}
.case-evidence > summary, .evidence-records > summary {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 48px;
  padding: .55rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.case-evidence summary::-webkit-details-marker { display: none }
.case-evidence > summary::before, .evidence-records > summary::before {
  content: '';
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  margin: 0 3px 0 2px;
  flex: none;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
.case-evidence[open] > summary::before, .evidence-records[open] > summary::before { transform: translateY(-2px) rotate(45deg) }
.evidence-count { margin-left: auto; font-size: .85rem; font-weight: 450 }
.case-evidence .evidence-pages {
  background: #f6f4ec;
  color: #152621;
  padding: clamp(12px, 2.2vw, 30px);
  border: 1px solid #bec5b9;
  border-radius: 3px;
  min-width: 0;
  font: 400 1rem/1.45 var(--body);
}
.evidence-pages table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left }
.evidence-pages th, .evidence-pages td { padding: .6rem .7rem; border-bottom: 1px solid #ccd2c7; vertical-align: top }
.evidence-pages thead th { color: #f6f4ec; background: #19352e; font-weight: 600; font-size: .85rem; line-height: 1.28 }
.evidence-totals { max-width: 750px }
.evidence-totals tbody th { font-weight: 500 }
.evidence-totals td, .evidence-totals thead th:not(:first-child) { text-align: right }
.evidence-totals tfoot th, .evidence-totals tfoot td { font-weight: 700; background: #e5ecdf }
.evidence-records { margin-top: .65rem }
.evidence-tallies { display: flex; flex-wrap: wrap; gap: 14px clamp(18px,4vw,54px); margin: 0 0 1rem }
.evidence-tallies dt { color: #45564d; font-size: .82rem; line-height: 1.24 }
.evidence-tallies dd { margin: 0; color: #17392d; font: italic 400 clamp(29px,4vw,45px)/1.02 var(--serif) }
.evidence-tools { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: .5rem }
.evidence-tools label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: .9rem; font-weight: 600 }
.evidence-tools select { min-height: 40px; padding: .35rem .55rem; color: #152621; background: #fffdf7; border: 1px solid #65796a; border-radius: 3px; font: inherit }
.evidence-number, .evidence-meta { color: #47594e; font-size: .84rem; font-variant-numeric: tabular-nums }
.evidence-scroll { max-height: min(370px, 55vh); overflow: auto; background: #fffdf7; border: 1px solid #b6c2b5 }
.evidence-pages :focus-visible { outline: 3px solid #92501d; outline-offset: 2px }
.evidence-scroll table { table-layout: fixed; font-size: .94rem; overflow-wrap: anywhere }
.evidence-scroll thead th { position: sticky; top: 0 }
.evidence-scroll th:first-child { width: clamp(90px, 20%, 170px) }
.evidence-meta { display: block; margin-top: .2rem; font-weight: 400 }
.evidence-scroll td strong { display: block; margin-bottom: .15rem }
.evidence-reason { margin-top: .4rem; color: #365749 }
.evidence-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media(max-width: 480px) {
  .evidence-pages th, .evidence-pages td { padding: .5rem .4rem }
  .evidence-totals { font-size: .9rem }
  .evidence-count { font-size: .78rem }
  .evidence-tallies { gap: .65rem 1.1rem }
  .evidence-scroll th:first-child { width: 83px }
  .evidence-meta { font-size: .76rem }
}
