.profile-report-tools,
.profile-report-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.profile-report-tools {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.profile-report-tools strong {
  flex-basis: 100%;
}
.profile-report-panel button,
.profile-report-tools button,
#mapLocationTable button {
  min-height: 44px;
}
.profile-report-panel fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid var(--border);
}
.profile-report-panel label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}
.profile-report-panel select {
  min-height: 44px;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.profile-report-table {
  max-width: 100%;
  overflow: auto;
  margin: 10px 0;
}
.profile-report-table table {
  width: 100%;
  border-collapse: collapse;
}
.profile-report-table th,
.profile-report-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.profile-report-panel summary,
#mapLocationTable summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}
.profile-map-note {
  padding: 8px 12px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
#mapStats {
  max-width: 480px;
}
#mapLocationTable > .action-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 6px 0;
}
@media (max-width: 600px) {
  .profile-report-tools .action-btn {
    flex: 1 1 45%;
  }
  #mapStats {
    max-width: 180px;
    font-size: 10px !important;
  }
  .profile-report-panel fieldset {
    max-width: 100%;
  }
}

/* Report results retain a calm rhythm even with longer explanations. */
.profile-report-tools,
.profile-report-controls {
  gap: 12px;
  margin: 16px 0;
}
.profile-report-tools {
  padding: 16px;
}
.profile-report-panel p {
  line-height: 1.6;
  margin: 12px 0 16px;
  overflow-wrap: anywhere;
}
.profile-report-panel fieldset {
  padding: 14px;
  gap: 12px 18px;
}
.profile-report-table th,
.profile-report-table td {
  padding: 12px;
}
