.er-wrap {
  max-width: var(--dl-content-max, 52rem);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.er-wrap h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-family: var(--dl-font);
  color: var(--dl-ink);
}
.er-lede {
  margin: 0 0 1rem;
  color: var(--dl-muted);
  line-height: 1.45;
  max-width: 40rem;
}
.er-stats {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--dl-muted);
}
.er-results {
  display: flex;
  flex-direction: column;
}
.er-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dl-line);
}
.er-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--dl-link);
  line-height: 1.3;
}
.er-card-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dl-muted);
  line-height: 1.4;
}
.er-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}
.er-btn {
  display: inline-block;
  border: 0;
  border-radius: var(--dl-radius, 0.3rem);
  padding: 0.5rem 0.95rem;
  background: var(--dl-accent, #1a5f7a);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}
.er-btn:hover { filter: brightness(1.06); }
.er-btn.secondary {
  background: transparent;
  color: var(--dl-accent, #1a5f7a);
  border: 1px solid var(--dl-accent, #1a5f7a);
}
.er-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.er-pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.er-pill-on {
  background: #e8f5e9;
  color: #1b5e20;
}
.er-pill-off {
  background: #f3f0ea;
  color: #6a5a40;
}
.er-msg {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.er-msg.ok { color: #1b5e20; }
.er-msg.err { color: #b00020; }
.er-staff {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dl-line);
  color: var(--dl-muted);
  font-size: 0.88rem;
}
.er-staff summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dl-ink);
}
.er-staff-meta { margin: 0.65rem 0; }
.er-staff-out {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: #1a1a1a;
  color: #d8e0ea;
  font-size: 0.75rem;
  overflow: auto;
  max-height: 14rem;
  border-radius: var(--dl-radius, 0.3rem);
  white-space: pre-wrap;
}
