/* MUST HUB — Gold-Standard Field Manual & SOP Studio */
#imageReportPage {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 16px;
}
#imageReportPage [hidden],
#imageReportPage[hidden] {
  display: none !important;
}
#imageReportPage h2,
#imageReportPage h3,
#imageReportPage h4 {
  margin: 0 0 10px;
}
#imageReportPage p {
  overflow-wrap: anywhere;
  line-height: 1.65;
}
#imageReportPage [role="status"]:empty {
  display: none;
}
#imageReportPage .image-report-error {
  color: var(--danger, #b42318);
  font-weight: 600;
}

/* 1. Authoring Studio Intake Panel */
#workspace #imageReportPage .report-intake-panel {
  margin: 0;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--hub-panel);
  box-shadow: var(--scm-shadow, 0 1px 3px rgb(15 23 42 / .06));
  overflow: hidden;
}
#workspace #imageReportPage .report-intake-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  color: var(--hub-text);
  background: var(--hub-field);
  cursor: pointer;
  list-style: none;
}
#workspace #imageReportPage .report-intake-panel > summary::-webkit-details-marker {
  display: none;
}
#workspace #imageReportPage .report-intake-panel > summary h2 {
  display: inline;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
#workspace #imageReportPage .guide-studio-badge {
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hub-wash);
  color: var(--hub-accent);
  border: 1px solid color-mix(in srgb, var(--hub-accent) 28%, transparent);
}
#workspace #imageReportPage .report-intake-panel .image-report-upload {
  border: 0;
  border-top: 1px solid var(--hub-line);
  border-radius: 0;
  background: transparent;
  padding: 18px;
}
#workspace #imageReportPage .report-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.8fr);
  gap: 18px;
  align-items: start;
}
#workspace #imageReportPage .report-intake-group {
  min-width: 0;
  display: grid;
  gap: 12px;
}
#workspace #imageReportPage .guide-intake-media {
  padding: 14px 16px;
  background: var(--hub-field);
  border: 1px solid var(--hub-line);
  border-radius: 10px;
}
#workspace #imageReportPage .guide-intake-media h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
  color: var(--hub-text);
}

/* Blueprint, Options & Context Strip */
#workspace #imageReportPage .guide-blueprint-box,
#workspace #imageReportPage .guide-context-box {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  background: var(--hub-field);
}
#workspace #imageReportPage .guide-context-compact {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(240px, 1.15fr);
  gap: 10px;
  align-items: end;
}
#workspace #imageReportPage .guide-scope-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}
#workspace #imageReportPage .guide-scope-inline select {
  flex: 1;
  min-width: 0;
}
#workspace #imageReportPage .guide-icon-refresh {
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--hub-line);
  background: var(--hub-panel);
  color: var(--hub-text);
  font-size: 14px;
  cursor: pointer;
  flex: none;
}
#workspace #imageReportPage .guide-icon-refresh:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
}
#workspace #imageReportPage .guide-ctx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#workspace #imageReportPage .guide-ctx-advanced {
  border-top: 1px dashed var(--hub-line);
  padding-top: 7px;
}
#workspace #imageReportPage .guide-ctx-advanced > summary {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--hub-muted);
  cursor: pointer;
  user-select: none;
}
#workspace #imageReportPage .guide-ctx-advanced > summary:hover {
  color: var(--hub-accent);
}
#workspace #imageReportPage .guide-ctx-adv-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
#workspace #imageReportPage .guide-context-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#workspace #imageReportPage .guide-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#workspace #imageReportPage .guide-ctx-objects-field {
  grid-column: 1 / -1;
}
#workspace #imageReportPage .guide-ctx-objects-field textarea {
  margin: 0;
  min-height: 50px;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}
#workspace #imageReportPage .guide-scm-status {
  font-size: 12px;
  font-weight: 550;
  color: var(--hub-accent);
}
#workspace #imageReportPage .guide-scm-tray {
  display: grid;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-panel);
}
#workspace #imageReportPage .guide-scm-tray-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
#workspace #imageReportPage .guide-scm-tray-hint {
  font-size: 11px;
  color: var(--hub-muted);
  font-weight: 600;
}
#workspace #imageReportPage .guide-scm-clear-btn {
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 5px;
  border: 1px solid var(--hub-line);
  background: var(--hub-field);
  color: var(--hub-muted);
  cursor: pointer;
}
#workspace #imageReportPage .guide-scm-groups {
  display: grid;
  gap: 6px;
}
#workspace #imageReportPage .guide-scm-group {
  display: grid;
  gap: 4px;
}
#workspace #imageReportPage .guide-scm-group-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--hub-muted);
}
#workspace #imageReportPage .guide-scm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#workspace #imageReportPage .guide-scm-chip {
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--hub-line);
  background: var(--hub-field);
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
}
#workspace #imageReportPage .guide-scm-chip.is-on {
  background: var(--hub-wash);
  border-color: color-mix(in srgb, var(--hub-accent) 42%, var(--hub-line));
  color: var(--hub-accent);
  font-weight: 650;
}
#workspace #imageReportPage .guide-scm-chip.is-var:not(.is-on) {
  border-color: color-mix(in srgb, #7c3aed 35%, var(--hub-line));
  color: #6d28d9;
}
[data-theme=dark] #workspace #imageReportPage .guide-scm-chip.is-var:not(.is-on) {
  color: #c4b5fd;
}
#workspace #imageReportPage .guide-field-cap {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hub-muted);
}
#workspace #imageReportPage .guide-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#workspace #imageReportPage .guide-preset-pill {
  height: 31px;
  min-height: 31px;
  margin: 0;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--hub-line);
  background: var(--hub-panel);
  color: var(--hub-text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
#workspace #imageReportPage .guide-preset-pill[aria-pressed="true"] {
  background: var(--hub-accent);
  border-color: var(--hub-accent);
  color: var(--hub-on-accent, #fff);
}
#workspace #imageReportPage .guide-preset-desc {
  font-size: 12px;
  color: var(--hub-muted);
}
#workspace #imageReportPage .guide-options-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#workspace #imageReportPage .guide-opt-label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--hub-muted);
}
#workspace #imageReportPage .guide-opt-label :is(select, input) {
  height: 34px;
  min-height: 34px;
  margin: 0;
  font-size: 12.5px;
}

/* Fields & Starters */
#workspace #imageReportPage .image-report-fields {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) minmax(150px, .85fr) minmax(220px, 1.6fr);
  gap: 12px;
  align-items: end;
  margin: 0;
}
#workspace #imageReportPage .image-report-fields label {
  min-width: 0;
  margin: 0;
}
#workspace #imageReportPage .image-report-date {
  display: grid;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid var(--hub-line);
  border-radius: 7px;
  background: var(--hub-field);
}
#workspace #imageReportPage .image-report-date span,
#workspace #imageReportPage .image-report-date small {
  font-size: 11px;
  color: var(--hub-muted);
}
#workspace #imageReportPage .image-report-date time {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#workspace #imageReportPage .guide-starters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
#workspace #imageReportPage .guide-starters-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hub-muted);
  margin-right: 4px;
}
#workspace #imageReportPage .guide-starter-btn {
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  background: var(--hub-field);
  color: var(--hub-text);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
#workspace #imageReportPage .guide-starter-btn:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
  background: var(--hub-wash);
}
#workspace #imageReportPage .image-report-instructions {
  margin: 0;
  display: grid;
  gap: 6px;
}
#workspace #imageReportPage .image-report-instructions textarea {
  margin: 0;
  min-height: 130px;
  line-height: 1.55;
}
#workspace #imageReportPage .image-report-languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
#workspace #imageReportPage .image-report-languages button {
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
}
#workspace #imageReportPage .image-report-languages button[aria-pressed="true"] {
  background: var(--hub-accent);
  color: var(--hub-on-accent, #fff);
  border-color: var(--hub-accent);
}

/* Dropzone & Thumbnails */
#workspace #imageReportPage .guide-dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1.5px dashed color-mix(in srgb, var(--hub-accent) 45%, var(--hub-line));
  border-radius: 10px;
  background: var(--hub-panel);
  text-align: center;
  transition: border-color .15s, background .15s;
}
#workspace #imageReportPage .guide-dropzone.is-dragover {
  border-color: var(--hub-accent);
  background: var(--hub-wash);
}
#workspace #imageReportPage .guide-drop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hub-text);
}
#workspace #imageReportPage .guide-drop-sub {
  font-size: 11.5px;
  color: var(--hub-muted);
}
#workspace #imageReportPage .image-report-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#workspace #imageReportPage [data-selection] {
  font-size: 12px;
  font-weight: 650;
  color: var(--hub-accent);
  font-variant-numeric: tabular-nums;
}
#workspace #imageReportPage .guide-thumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
}
#workspace #imageReportPage .guide-thumb-card {
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: var(--hub-panel);
}
#workspace #imageReportPage .guide-thumb-idx {
  font-size: 11px;
  font-weight: 700;
  color: var(--hub-accent);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#workspace #imageReportPage .guide-thumb-img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--hub-line);
  background: var(--hub-field);
}
#workspace #imageReportPage .guide-thumb-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
#workspace #imageReportPage .guide-thumb-meta strong {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#workspace #imageReportPage .guide-thumb-meta small {
  font-size: 11px;
  color: var(--hub-muted);
}
#workspace #imageReportPage .guide-thumb-actions {
  display: flex;
  gap: 4px;
}
#workspace #imageReportPage .guide-thumb-btn {
  width: 26px;
  height: 26px;
  min-height: 26px;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--hub-line);
  background: var(--hub-field);
  color: var(--hub-text);
  font-size: 11px;
  cursor: pointer;
}
#workspace #imageReportPage .guide-thumb-btn.is-del:hover {
  border-color: var(--danger, #b42318);
  color: var(--danger, #b42318);
}
#workspace #imageReportPage .guide-docx-slot {
  display: grid;
}
#workspace #imageReportPage .guide-docx-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 42%, var(--hub-line));
  border-radius: 9px;
  background: var(--hub-wash);
}
#workspace #imageReportPage .guide-docx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #233e5e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 2. Executive Document Viewer + Side Co-Author Workspace */
#workspace #imageReportPage .image-report-viewer {
  --guide-line: var(--hub-line);
  --guide-field: var(--hub-field);
  --guide-paper: var(--hub-panel);
  --guide-ink: var(--hub-text);
  --guide-muted: var(--hub-muted);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.88fr);
  gap: 16px;
  align-items: start;
  color: var(--guide-ink);
  scroll-margin-top: 82px;
}
#workspace #imageReportPage .guide-side {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  position: sticky;
  top: 76px;
}
#workspace #imageReportPage .image-report-viewer :is(.image-report-paper, .image-report-evidence, .guide-chat) {
  min-width: 0;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-paper);
  color: var(--guide-ink);
  box-shadow: var(--scm-shadow, 0 1px 3px rgb(15 23 42 / .06));
}
#workspace #imageReportPage .image-report-paper {
  padding: clamp(22px, 2.6vw, 36px);
  border-top: 4px solid #233e5e;
}
#workspace #imageReportPage .image-report-evidence,
#workspace #imageReportPage .guide-chat {
  padding: 16px 18px;
}

/* Paper Banner & Badges */
#workspace #imageReportPage .guide-doc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
#workspace #imageReportPage .guide-badge-primary {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--hub-wash);
  color: var(--hub-accent);
  border: 1px solid color-mix(in srgb, var(--hub-accent) 30%, transparent);
}
#workspace #imageReportPage .guide-badge-neutral,
#workspace #imageReportPage .guide-badge-rev {
  font-size: 11px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--hub-field);
  color: var(--hub-muted);
  border: 1px solid var(--hub-line);
}
#workspace #imageReportPage .image-report-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 2px solid #233e5e;
  margin-bottom: 12px;
}
#workspace #imageReportPage .image-report-paper-header h2 {
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}
#workspace #imageReportPage .image-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#workspace #imageReportPage .image-report-actions button {
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
}

/* Document Control 4-col Metadata Grid */
#workspace #imageReportPage .image-report-details {
  display: grid;
  grid-template-columns: minmax(76px, max-content) minmax(0, 1fr) minmax(76px, max-content) minmax(0, 1fr);
  margin: 12px 0 16px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  gap: 0;
}
#workspace #imageReportPage .image-report-details dt {
  padding: 7px 10px;
  background: var(--guide-field);
  color: var(--guide-muted);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--guide-line);
  border-right: 1px solid var(--guide-line);
}
#workspace #imageReportPage .image-report-details dd {
  margin: 0;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 550;
  border-bottom: 1px solid var(--guide-line);
  border-right: 1px solid var(--guide-line);
  overflow-wrap: anywhere;
}

/* Quick TOC Bar */
#workspace #imageReportPage .guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--guide-line);
}
#workspace #imageReportPage .guide-toc-pill {
  height: 27px;
  min-height: 27px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--guide-line);
  background: var(--guide-field);
  color: var(--guide-muted);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
}
#workspace #imageReportPage .guide-toc-pill:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
  background: var(--hub-wash);
}

/* Gold-Standard Chapter-by-Chapter Field Manual Styling */
#workspace #imageReportPage .guide-chapters-host {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}
#workspace #imageReportPage .guide-chapter-sec {
  display: grid;
  gap: 12px;
  scroll-margin-top: 84px;
}
#workspace #imageReportPage .guide-chapter-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--guide-line);
  font-size: 17px;
  font-weight: 750;
  color: #233e5e;
}
[data-theme=dark] #workspace #imageReportPage .guide-chapter-heading {
  color: #e2e8f0;
}
#workspace #imageReportPage .guide-chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #233e5e;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  flex: none;
}
#workspace #imageReportPage .guide-chapter-intro {
  margin: 0;
  font-size: 13.5px;
  color: var(--guide-muted);
}
#workspace #imageReportPage .guide-circled-steps {
  display: grid;
  gap: 12px;
}
#workspace #imageReportPage .guide-circled-step {
  display: grid;
  gap: 8px;
}
#workspace #imageReportPage .guide-circled-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  font-size: 13.8px;
  line-height: 1.68;
  align-items: baseline;
}
#workspace #imageReportPage .guide-circled-num {
  color: #c62828;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}
[data-theme=dark] #workspace #imageReportPage .guide-circled-num {
  color: #f87171;
}
#workspace #imageReportPage .guide-ui-term {
  font-weight: 700;
  color: #16324f;
}
[data-theme=dark] #workspace #imageReportPage .guide-ui-term {
  color: #93c5fd;
}

/* Inline Contextual Callouts */
#workspace #imageReportPage .guide-inline-callout {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--guide-line);
  border-left: 4px solid #233e5e;
  background: var(--guide-field);
}
#workspace #imageReportPage .guide-inline-callout.tone-warn {
  border-left-color: #d97706;
  background: color-mix(in srgb, #f59e0b 8%, var(--guide-paper));
}
#workspace #imageReportPage .guide-inline-callout.tone-danger {
  border-left-color: #c62828;
  background: color-mix(in srgb, #ef4444 8%, var(--guide-paper));
}
#workspace #imageReportPage .guide-inline-callout p {
  margin: 0;
  font-size: 13.2px;
  line-height: 1.64;
}
#workspace #imageReportPage .guide-callout-lbl {
  font-weight: 750;
  color: #233e5e;
}
#workspace #imageReportPage .guide-inline-callout.tone-warn .guide-callout-lbl {
  color: #b45309;
}
#workspace #imageReportPage .guide-inline-callout.tone-danger .guide-callout-lbl {
  color: #c62828;
}
[data-theme=dark] #workspace #imageReportPage .guide-callout-lbl {
  color: #93c5fd;
}

/* Rollback Section */
#workspace #imageReportPage .guide-sec-rollback {
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, #c62828 28%, var(--guide-line));
  border-left: 4px solid #c62828;
  background: color-mix(in srgb, #ef4444 7%, var(--guide-paper));
  margin-top: 20px;
}
#workspace #imageReportPage .guide-sec-rollback h4 {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
  font-size: 14px;
  color: #c62828 !important;
}
[data-theme=dark] #workspace #imageReportPage .guide-sec-rollback h4 {
  color: #fca5a5 !important;
}
#workspace #imageReportPage .guide-rollback-body {
  margin: 0;
  font-size: 13.3px;
}

/* Executive Sections inside Paper */
#workspace #imageReportPage [data-report-body] > section > h3 {
  display: none;
}
#workspace #imageReportPage [data-report-body] section + section {
  margin-top: 20px;
}
#workspace #imageReportPage [data-report-body] h4 {
  font-size: 15px;
  font-weight: 750;
  color: var(--guide-ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--guide-line);
  margin: 0 0 12px;
}
#workspace #imageReportPage .guide-para {
  margin: 0 0 6px;
}

/* Summary Callout */
#workspace #imageReportPage .guide-sec-summary {
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 24%, var(--guide-line));
  border-left: 4px solid var(--hub-accent);
  background: var(--hub-wash);
}
#workspace #imageReportPage .guide-sec-summary h4 {
  border: 0;
  padding: 0;
  margin: 0 0 5px;
  font-size: 13px;
  color: var(--hub-accent);
}
#workspace #imageReportPage .guide-sec-summary [data-summary] {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.66;
}

/* Fallback Step Cards */
#workspace #imageReportPage .guide-step-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
#workspace #imageReportPage .guide-step-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--guide-line);
  border-radius: 9px;
  background: var(--guide-field);
  align-items: start;
}
#workspace #imageReportPage .guide-step-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--hub-wash);
  border: 1px solid color-mix(in srgb, var(--hub-accent) 28%, transparent);
  color: var(--hub-accent);
  font-size: 11px;
  font-weight: 750;
}
#workspace #imageReportPage .guide-step-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
#workspace #imageReportPage .guide-step-lead {
  font-size: 13.5px;
  font-weight: 750;
}
#workspace #imageReportPage .guide-step-body p {
  margin: 0;
  font-size: 13px;
}
#workspace #imageReportPage .guide-step-edit-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

/* Figures & Screen Cards */
#workspace #imageReportPage .guide-phase-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--hub-accent);
  margin: 4px 0 8px;
}
#workspace #imageReportPage .guide-screen-card {
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--guide-field);
  margin-bottom: 12px;
}
#workspace #imageReportPage .guide-screen-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
#workspace #imageReportPage .guide-screen-head h4 {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
#workspace #imageReportPage .guide-screen-num {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 6px;
  background: #233e5e;
  color: #fff;
}
#workspace #imageReportPage .image-report-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--guide-paper);
  border: 1px solid var(--guide-line);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin: 0 0 10px;
}
#workspace #imageReportPage .image-report-route strong {
  color: var(--hub-accent);
}
#workspace #imageReportPage .guide-step-figure {
  margin: 6px 0 4px;
}
#workspace #imageReportPage .guide-step-picture {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border: 1px solid var(--guide-line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / .06);
}
#workspace #imageReportPage .guide-step-picture img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 440px;
}
#workspace #imageReportPage .guide-step-picture .image-report-box {
  pointer-events: none;
}
#workspace #imageReportPage .guide-fig-caption {
  text-align: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--guide-muted);
}
#workspace #imageReportPage .image-report-note {
  white-space: pre-wrap;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--guide-field);
  border-left: 3px solid var(--hub-accent);
  font-size: 12.5px;
  margin: 6px 0;
}

/* Precautions Callout (Amber) */
#workspace #imageReportPage .guide-sec-policy {
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, #d97706 30%, var(--guide-line));
  border-left: 4px solid #d97706;
  background: color-mix(in srgb, #f59e0b 8%, var(--guide-paper));
}
#workspace #imageReportPage .guide-sec-policy h4 {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  color: #b45309;
  font-size: 14px;
}
[data-theme=dark] #workspace #imageReportPage .guide-sec-policy h4 {
  color: #fbbf24;
}
#workspace #imageReportPage .guide-bullets {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.6;
}

/* Interactive Verification Checklist */
#workspace #imageReportPage .guide-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
#workspace #imageReportPage .guide-check-item label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: var(--guide-field);
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
#workspace #imageReportPage .guide-check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
}
#workspace #imageReportPage .guide-check-item input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--guide-muted);
}

/* Reference & Inline Chapter Tables (Exact #233E5E / #EEF2F6 / #FAFBFC palette) */
#workspace #imageReportPage .guide-table-wrap {
  overflow-x: auto;
  margin: 8px 0;
}
#workspace #imageReportPage .guide-check-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--guide-ink);
  background: var(--guide-paper);
  font-size: 12.8px;
}
#workspace #imageReportPage .guide-check-table caption {
  text-align: start;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #233e5e;
}
[data-theme=dark] #workspace #imageReportPage .guide-check-table caption {
  color: #cbd5e1;
}
#workspace #imageReportPage .guide-check-table :is(td, th) {
  border: 1px solid var(--guide-line);
  padding: 8px 11px;
  text-align: start;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
#workspace #imageReportPage .guide-check-table thead th {
  background: #233e5e;
  color: #fff;
  font-weight: 650;
}
#workspace #imageReportPage .guide-check-table th:first-child {
  width: 26%;
}
#workspace #imageReportPage .guide-check-table.cols-3 th:first-child {
  width: 15%;
}
#workspace #imageReportPage .guide-check-table.cols-3 th:nth-child(2),
#workspace #imageReportPage .guide-check-table.cols-3 td:nth-child(2) {
  width: 31%;
}
#workspace #imageReportPage .guide-check-table tbody tr:nth-child(odd) :is(th, td) {
  background: #eef2f6;
}
#workspace #imageReportPage .guide-check-table tbody tr:nth-child(even) :is(th, td) {
  background: #fafbfc;
}
[data-theme=dark] #workspace #imageReportPage .guide-check-table tbody tr:nth-child(odd) :is(th, td) {
  background: var(--guide-field);
}
[data-theme=dark] #workspace #imageReportPage .guide-check-table tbody tr:nth-child(even) :is(th, td) {
  background: var(--guide-paper);
}
#workspace #imageReportPage .guide-check-table tbody th {
  font-weight: 700;
  color: #233e5e;
}
[data-theme=dark] #workspace #imageReportPage .guide-check-table tbody th {
  color: #93c5fd;
}

/* AI Co-Author Chat Sidebar */
#workspace #imageReportPage .guide-chat h3 {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 750;
}
#workspace #imageReportPage .guide-transcript {
  list-style: none;
  display: grid;
  gap: 10px;
  max-height: min(38vh, 330px);
  overflow: auto;
  margin: 0 0 12px;
  padding: 0 4px 0 0;
}
#workspace #imageReportPage .guide-transcript li {
  min-width: 0;
  max-width: 96%;
  padding: 9px 11px;
  background: var(--guide-field);
  border: 1px solid var(--guide-line);
  border-radius: 10px;
}
#workspace #imageReportPage .guide-transcript li[data-speaker="user"] {
  margin-left: auto;
  background: var(--hub-wash);
  border-color: color-mix(in srgb, var(--hub-accent) 28%, var(--guide-line));
}
#workspace #imageReportPage .guide-transcript strong {
  font-size: 11px;
  color: var(--guide-muted);
}
#workspace #imageReportPage .guide-transcript p {
  margin: 3px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12.5px;
}
#workspace #imageReportPage .guide-composer {
  display: grid;
  gap: 8px;
}
#workspace #imageReportPage .guide-composer > label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--guide-muted);
}
#workspace #imageReportPage .guide-composer > textarea,
#workspace #imageReportPage [data-guide-field] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  resize: vertical;
}
#workspace #imageReportPage .guide-examples {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#workspace #imageReportPage .guide-examples button {
  white-space: normal;
  text-align: left;
  min-height: 28px;
  margin: 0;
  padding: 4px 9px;
  background: var(--guide-field);
  color: var(--guide-ink);
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  font-size: 11.5px;
  cursor: pointer;
}
#workspace #imageReportPage .guide-examples button:hover {
  border-color: var(--hub-accent);
  color: var(--hub-accent);
  background: var(--hub-wash);
}
#workspace #imageReportPage .guide-composer > .primary {
  justify-self: start;
  height: 36px;
  min-height: 36px;
}
#workspace #imageReportPage .guide-source-note {
  margin: 10px 0;
  padding: 8px 11px;
  border-left: 3px solid var(--hub-accent);
  background: var(--guide-field);
  font-size: 12px;
}

/* Evidence Inspector & Highlight Box Drawing */
#workspace #imageReportPage .image-report-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
#workspace #imageReportPage .image-report-navigation select {
  width: auto;
  height: 30px;
  min-height: 30px;
}
#workspace #imageReportPage .image-report-navigation button {
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0 9px;
  font-size: 12px;
}
#workspace #imageReportPage [data-frame] {
  background: var(--guide-field);
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  overflow: auto;
  max-height: 55vh;
  padding: 8px;
}
#workspace #imageReportPage [data-picture] {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
#workspace #imageReportPage .image-report-zoomed img {
  max-width: none;
  margin: 0;
}
#workspace #imageReportPage [data-image-surface] {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: auto;
}
#workspace #imageReportPage .image-report-zoomed [data-image-surface] {
  max-width: none;
}
#workspace #imageReportPage [data-image-surface].drawing {
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
#workspace #imageReportPage [data-box-layer] {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#workspace #imageReportPage .image-report-box {
  position: absolute;
  border: 3px solid #e3222b;
  box-sizing: border-box;
}
#workspace #imageReportPage .image-report-box.is-selected {
  outline: 2px dashed #233e5e;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #fff;
}
#workspace #imageReportPage .image-report-editor-actions {
  position: sticky;
  bottom: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  background: var(--guide-paper);
  box-shadow: 0 -4px 14px rgb(15 23 42 / .08);
  z-index: 4;
}
#workspace #imageReportPage .guide-field {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
#workspace #imageReportPage [data-guide-references] ul {
  padding-inline-start: 1.3rem;
  margin-block: .4rem;
}
#workspace #imageReportPage .report-view-jumps {
  display: none;
  grid-column: 1 / -1;
}

@media (max-width: 1060px) {
  #workspace #imageReportPage .image-report-viewer {
    grid-template-columns: minmax(0, 1fr);
  }
  #workspace #imageReportPage .guide-side {
    position: static;
  }
  #workspace #imageReportPage .report-view-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (max-width: 860px) {
  #workspace #imageReportPage .report-intake-grid,
  #workspace #imageReportPage .guide-options-row,
  #workspace #imageReportPage .guide-context-compact,
  #workspace #imageReportPage .guide-context-grid,
  #workspace #imageReportPage .image-report-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  #workspace #imageReportPage .image-report-details {
    grid-template-columns: minmax(80px, max-content) minmax(0, 1fr);
  }
}

@media print {
  #workspace > aside,
  #workspace > main > header,
  #workspace > main > footer,
  #imageReportPage .report-intake-panel,
  #imageReportPage .guide-side,
  #imageReportPage .image-report-actions,
  #imageReportPage .image-report-languages,
  #imageReportPage .guide-toc,
  #imageReportPage .report-view-jumps,
  #imageReportPage .image-report-editor-actions {
    display: none !important;
  }
  #workspace #imageReportPage .image-report-viewer {
    display: block !important;
  }
  #workspace #imageReportPage .image-report-paper {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #workspace #imageReportPage .guide-chapter-sec,
  #workspace #imageReportPage .guide-circled-step,
  #workspace #imageReportPage .guide-inline-callout,
  #workspace #imageReportPage .guide-table-wrap {
    break-inside: avoid;
  }
}

#workspace #imageReportPage .guide-autovisual-toggle {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--hub-accent) 26%, var(--hub-line));
  border-radius: 8px;
  background: var(--hub-wash);
  font-size: 12px;
  font-weight: 600;
  color: var(--hub-text);
  line-height: 1.45;
  cursor: pointer;
}
#workspace #imageReportPage .guide-autovisual-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--hub-accent);
}
