.report-editor { color: var(--ink, #203048); max-width: 1080px; margin: 0 auto; }
.report-editor[hidden] { display: none !important; }
.report-editor-heading, .report-artifacts { padding: 20px 24px; }
.report-editor form { padding: 0 24px 24px; }
.report-editor .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.report-editor .field { min-width: 0; }
.report-editor input, .report-editor select, .report-editor textarea { max-width: 100%; box-sizing: border-box; }
.report-editor textarea { width: 100%; resize: vertical; line-height: 1.65; min-height: 150px; }
.report-editor .record-choices button { white-space: normal; overflow-wrap: anywhere; }
.report-sections { display: grid; gap: 22px; margin: 24px 0; }
.report-sections label { font-size: 1.05rem; font-weight: 700; }
.report-tracking, .report-internal, .report-sources { border-top: 1px solid var(--line, #dce4e9); padding: 20px 0; }
.report-tracking summary, .report-internal summary { cursor: pointer; padding: 10px 0; font-weight: 650; }
.report-editor-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.report-discard { flex-basis: 100%; border: 1px solid var(--line, #dce4e9); padding: 16px; }
.report-discard button { margin: 4px; }
.report-paper { box-sizing: border-box; width: 100%; padding: clamp(18px, 4vw, 44px); background: #fff; }
.report-paper h1 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; overflow-wrap: anywhere; }
.report-paper h2 { font-size: 1.15rem; margin-top: 28px; }
.report-paper p, .report-source-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.report-paper .report-context { margin: 6px 0; font-size: .92rem; }
.report-document-dialog { width: min(1000px, calc(100vw - 24px)); max-width: 1000px; }
.report-document-dialog .portal-preview-head { position: sticky; top: 0; background: #fff; z-index: 1; }
.report-artifact { border: 1px solid var(--line, #dce4e9); border-radius: 12px; padding: 18px; margin: 16px 0; }
.report-artifact h3, .report-hash { overflow-wrap: anywhere; }
.report-hash { font-size: .8rem; }
.report-confirm { display: block; line-height: 1.6; margin: 16px 0; }
.report-confirm input { width: auto; margin-right: 8px; }
@media (max-width: 600px) {
  .report-editor-heading, .report-artifacts { padding: 16px 12px; }
  .report-editor form { padding: 0 12px 18px; }
  .report-editor .form-grid { grid-template-columns: minmax(0, 1fr); }
  .report-editor-actions > button { flex: 1 1 100%; white-space: normal; }
  .report-artifact { padding: 12px; }
  .report-artifact button { max-width: 100%; white-space: normal; }
  .report-document-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .report-document-dialog .portal-preview-head { flex-wrap: wrap; gap: 8px; }
}

#record-dialog.report-authoring-dialog { width: min(1100px, calc(100vw - 24px)); max-width: 1100px; }
.report-reader-return { padding: 12px 18px; border-top: 1px solid var(--line, #dce4e9); }
.report-reader-return button { white-space: normal; max-width: 100%; }
@media (max-width: 600px) { #record-dialog.report-authoring-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } }
