.reports-page .cb-shell {
  width: min(980px, calc(100% - 40px));
}

.reports-page h2,
.reports-page h3 {
  color: var(--cb-chalkboard-deep);
  line-height: 1.12;
}

.reports-page h2 {
  margin-top: 0;
}

.reports-page main > .step {
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(215, 226, 216, 0.95);
  border-radius: var(--cb-radius);
  box-shadow: var(--cb-shadow);
  margin-bottom: 18px;
  padding: 24px;
}

.step-header {
  color: var(--cb-chalkboard-deep);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.field-group {
  margin-bottom: 1rem;
}

.inline {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-row {
  background: var(--cb-mint-soft);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  margin-bottom: 0.75rem;
  padding: 14px;
}

.section-row-header {
  align-items: center;
  display: flex;
  color: var(--cb-chalkboard-deep);
  font-weight: 850;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-row-controls button {
  margin-left: 0.25rem;
}

.two-column {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.report-section {
  background: var(--cb-mint-soft);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  margin-bottom: 1rem;
  padding: 16px;
}

.report-section h3 {
  margin-top: 0;
}

.word-counter,
.source-badge {
  color: var(--cb-muted) !important;
}

.rdp-panel {
  background: var(--cb-mint-soft);
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  margin: 0 0 1rem;
  padding: 12px;
}

.rdp-panel--warning {
  background: #fff8e1;
  border-color: #d99b24;
}
.rdp-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.rdp-preview pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-radius);
  background: #fff;
  padding: 12px;
}

.reports-hidden {
  display: none;
}

#reportLintBanner {
  background: #fff8e1;
  border: 1px solid #f0c36d;
  border-radius: var(--cb-radius);
  margin: 10px 0;
  padding: 10px;
}
#btnRegenerateReport {
  margin-left: 10px;
}
#btnRevealNames {
  display: block;
  height: auto;
  margin-bottom: 12px;
  text-align: left;
  width: 100%;
  background: var(--cb-mint-soft);
  color: var(--cb-chalkboard-deep);
}

#btnRevealNames p {
  font-weight: 500;
  margin: 0 0 8px;
}

/* Reports template builder: section IDs are internal only */
.section-id,
.section-id-label {
  display: none !important;
}

@media (max-width: 620px) {
  .reports-page .cb-shell {
    width: min(100% - 28px, 980px);
  }
}
