.rpt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rpt-toolbar .rpt-spacer {
  flex: 1;
}

.rpt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.rpt-controls .rpt-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpt-controls .rpt-field label {
  font-size: var(--fs-cap);
  color: var(--muted);
  font-weight: 600;
}

.rpt-controls .rpt-field .input {
  min-height: 38px;
}

.rpt-controls .rpt-field .dd {
  min-width: 150px;
}

.rpt-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted, var(--surface));
  color: var(--muted);
  font-size: var(--fs-cap);
}

.rpt-note .icon {
  flex: none;
}

.rpt-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--brand-800);
  margin: 16px 0 8px;
}

.rpt-section-title:first-child {
  margin-top: 4px;
}

.rpt-hint {
  color: var(--muted);
  font-size: var(--fs-cap);
  margin: 0 0 8px;
}

.rpt-col-list {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
}

.rpt-col-list .check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--brand-600, var(--brand-800));
}

.rpt-builder-sec {
  margin-top: 14px;
}

.rpt-builder-sec > h4 {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--brand-800);
  margin: 0 0 8px;
}

.rpt-run-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rpt-run-head h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3, 18px);
  font-weight: 700;
  margin: 0;
}

.rpt-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.rpt-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-cap);
}

.rpt-summary-chip strong {
  font-weight: 700;
}

@media (max-width: 820px) {
  .rpt-controls .rpt-field {
    flex: 1 1 140px;
  }

  .rpt-controls .rpt-field .input,
  .rpt-controls .rpt-field .dd {
    width: 100%;
    min-width: 0;
  }

  .rpt-col-list {
    max-height: 260px;
  }
}
