.report-extract .rex-records {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: start;
  gap: .85rem;
  margin-block-start: 1.25rem;
}
.report-extract .rex-records table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.4;
}
.report-extract caption {
  padding: .65rem .7rem;
  border-block-start: 2px solid var(--h-accent);
  background: var(--h-panel-alt);
  text-align: start;
}
.report-extract caption :is(strong, span) { display: block; }
.report-extract caption span { margin-block-start: .25rem; color: var(--h-muted); }
.report-extract :is(th, td) {
  padding: .5rem .55rem;
  border-block-end: 1px solid var(--h-line);
  vertical-align: top;
}
.report-extract th:first-child { width: 55%; }
.report-extract tbody th { font-weight: 500; }
.report-extract .rex-reader { color: var(--h-muted); font-size: .9rem; }
.report-extract fieldset {
  min-inline-size: 0;
  margin: 1.1rem 0;
  padding: .5rem .8rem;
  border: 1px solid var(--h-line);
  border-radius: .35rem;
}
.report-extract legend { padding-inline: .25rem; font-weight: 700; }
.report-extract fieldset label {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}
.report-extract input[type=checkbox] { flex: none; margin: 0; accent-color: var(--h-accent); }
.report-extract h4 { margin: 1rem 0 .4rem; }
.report-extract pre {
  margin: .5rem 0 1rem;
  padding: .75rem;
  border-inline-start: .2rem solid var(--h-accent);
  background: var(--h-input);
  color: var(--h-text);
  font: .9rem/1.6 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-extract .rex-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.report-extract .rex-actions button { margin: 0; }
.report-extract [role=status] { margin-block-end: 0; }
.report-extract :is(input, summary, button):focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
