		/* ── 13. REPORT (A4) ────────────────────────────────────────── */
		.a4-gauge-banner {
			position: sticky;
			top: 0;
			z-index: 200;
			width: 100%;
			max-width: 794px;
			margin: 0 auto var(--space-4) auto;
			background: var(--surface);
			border: var(--stroke-hairline) solid var(--hairline);
			border-radius: var(--radius-2);
			padding: var(--space-3) var(--space-5);
			display: flex;
			justify-content: space-between;
			align-items: center;
			color: var(--ink-muted);
			font-size: var(--ui-font-xs);
			font-family: var(--font-data);
			flex-shrink: 0;
			gap: var(--space-4);
			flex-wrap: nowrap;
			overflow-x: auto;
			backdrop-filter: blur(12px) saturate(1.4);
			-webkit-backdrop-filter: blur(12px) saturate(1.4);
		}
		.a4-gauge-banner strong { color: var(--accent); font-weight: var(--weight-bold); }

		#enginePreviewContainer {
			display: flex;
			flex-direction: column;
			align-items: center;
			width: 100%;
			min-width: 0;
			max-width: 100%;
		}

		.a4-page-frame {
			width: 210mm;
			min-height: 297mm;
			background: #fff;
			color: #000;
			font-family: var(--report-font-family, Arial, Helvetica, sans-serif);
			font-size: var(--report-font-size);
			line-height: var(--report-line-height);
			box-sizing: border-box;
			position: relative;
			border: 1.5px solid #000;
			padding: 6mm 8mm;
			margin-bottom: var(--space-7);
			display: flex;
			flex-direction: column;
			zoom: var(--preview-zoom, .65);
			transform-origin: top left;
			-webkit-font-smoothing: antialiased;
			-moz-osx-font-smoothing: grayscale;
			text-rendering: optimizeLegibility;
		}
		/* User font preference override across report frame and text nodes */
		html[data-report-font-custom="true"] .a4-page-frame,
		html[data-report-font-custom="true"] .a4-page-frame .ctbl,
		html[data-report-font-custom="true"] .a4-page-frame .val,
		html[data-report-font-custom="true"] .a4-page-frame .lbl,
		html[data-report-font-custom="true"] .a4-page-frame .corp-header,
		html[data-report-font-custom="true"] .a4-page-frame .corp-footer {
			font-family: var(--report-font-family) !important;
		}
		.a4-page-frame > div.sheet-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
		.a4-page-frame > div.sheet-foot { flex: 0 0 auto; }
		.a4-page-frame .sig-block { margin-top: auto; }
		.a4-page-frame .sig-block img { max-height: 66px; width: auto; max-width: 100%; object-fit: contain; display: inline-block; vertical-align: middle; }

		/* Report typography — black on white, always. Never themed. */
		.corp-header {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: center;
			gap: var(--space-4);
			border: 1px solid #000;
			background: #fff;
			padding: 4px 6px;
			margin-bottom: 3px;
			min-height: 52px;
			flex: 0 0 auto;
		}
		.corp-header .ch-name { font-size: 8.6pt; font-weight: 900; text-transform: uppercase; color: #000; }
		.corp-header .ch-accred { font-size: 5.6pt; font-weight: 700; color: #334155; }
		.corp-header .ch-right { font-size: 5.4pt; color: #334155; text-align: right; flex-shrink: 0; max-width: 46%; }

		.corp-footer {
			border: 1px solid #000;
			background: #fff;
			padding: 3px 6px;
			margin-top: auto;
			font-size: 5.2pt;
			color: #334155;
			text-align: center;
			flex: 0 0 auto;
		}

		/* ── HEADER / FOOTER FILL STYLING (data-report-hf-style) ── */
		html[data-report-hf-style="tint"] .a4-page-frame .corp-header,
		html[data-report-hf-style="tint"] .a4-page-frame .corp-footer {
			background: var(--custom-cert-fill-tint, #f1f5f9) !important;
		}

		html[data-report-hf-style="solid"] .a4-page-frame .corp-header,
		html[data-report-hf-style="solid"] .a4-page-frame .corp-footer {
			background: var(--custom-cert-primary, #0f172a) !important;
		}
		html[data-report-hf-style="solid"] .a4-page-frame .corp-header .ch-name,
		html[data-report-hf-style="solid"] .a4-page-frame .corp-header .ch-accred,
		html[data-report-hf-style="solid"] .a4-page-frame .corp-header .ch-right,
		html[data-report-hf-style="solid"] .a4-page-frame .corp-footer,
		html[data-report-hf-style="solid"] .a4-page-frame .corp-footer .val {
			color: #ffffff !important;
		}

		html[data-report-hf-style="accent"] .a4-page-frame .corp-header {
			border-top: 3.5px solid var(--custom-cert-primary, #0f172a) !important;
			background: #ffffff !important;
		}
		html[data-report-hf-style="accent"] .a4-page-frame .corp-footer {
			border-bottom: 3.5px solid var(--custom-cert-primary, #0f172a) !important;
			background: #ffffff !important;
		}

		.reserved-header-banner {
			width: 100%;
			min-height: 48px;
			max-height: 70px;
			border: 1px dashed #cbd5e1;
			background: #f8fafc;
			display: flex;
			align-items: center;
			justify-content: center;
			overflow: hidden;
			margin-bottom: 3px;
			flex: 0 0 auto;
		}
		.reserved-header-banner img { width: 100%; height: 100%; object-fit: contain; }
		.reserved-footer-banner {
			width: 100%;
			min-height: 30px;
			max-height: 46px;
			border: 1px dashed #cbd5e1;
			background: #f8fafc;
			display: flex;
			align-items: center;
			justify-content: center;
			overflow: hidden;
			margin-top: auto;
			flex: 0 0 auto;
		}
		.reserved-footer-banner img { width: 100%; height: 100%; object-fit: contain; }

		.ctbl {
			width: 100%;
			border-collapse: collapse;
			border-spacing: 0;
			margin-top: -1px;
			table-layout: fixed;
			flex: 0 0 auto;
			box-sizing: border-box;
		}
		.ctbl:first-of-type { margin-top: 0; }
		.ctbl th, .ctbl td {
			border: 1px solid #000;
			padding: var(--report-cell-padding);
			vertical-align: top;
			text-align: left;
			word-break: break-word;
			box-sizing: border-box;
		}
		/* ── COMPREHENSIVE REPORT THEME ENGINE ────────────────────── */
		/* BASE REPORT TYPOGRAPHY & ELEMENTS */
		.csec {
			background: #0f172a;
			color: #fff;
			font-family: inherit;
			font-weight: 900;
			font-size: 6.7pt;
			text-transform: uppercase;
			padding: 2.5px 5px;
			letter-spacing: .06em;
			border: 1px solid transparent;
			box-sizing: border-box;
		}
		.report-main-title {
			font-size: 10pt;
			font-weight: 900;
			text-transform: uppercase;
			letter-spacing: .03em;
		}
		.report-main-subtitle {
			font-size: 7pt;
			margin-top: 1px;
		}
		.report-annex-title {
			font-size: 9pt;
			font-weight: 900;
			text-transform: uppercase;
			letter-spacing: .03em;
		}
		.report-annex-sub {
			font-size: 6pt;
			margin-top: 1px;
		}
		.report-tbl-head td,
		.report-tbl-head th {
			font-weight: 800;
			font-size: 6.3pt;
			text-transform: uppercase;
			letter-spacing: .03em;
			padding: 2.4px 4px;
		}
		.report-caption {
			font-size: 5pt;
			font-weight: 700;
			text-transform: uppercase;
			letter-spacing: .04em;
			margin-top: 1.5px;
		}
		.dc-strip td,
		.dc-strip td .val {
			background: transparent;
			font-size: 5.6pt !important;
			font-weight: 600;
			color: #0f172a;
			padding: 1.8px 4px;
			white-space: pre-wrap;
		}
		.corp-footer,
		.corp-footer .val {
			font-size: 5.2pt !important;
			color: #334155;
			white-space: pre-wrap;
		}
		.dc-l { font-weight: 800; text-transform: uppercase; font-size: 5.6pt !important; }
		.lbl {
			font-family: inherit;
			font-size: 5pt;
			font-weight: 700;
			text-transform: uppercase;
			display: block;
			margin-bottom: .2px;
			line-height: 1.1;
			letter-spacing: .03em;
		}
		.val {
			font-family: inherit;
			font-size: var(--report-font-size);
			font-weight: 600;
			outline: none;
			word-break: break-word;
			white-space: pre-wrap;
			line-height: 1.25;
			letter-spacing: normal;
		}
		.verdict-box {
			text-align: center;
			padding: 3px;
			vertical-align: middle;
		}
		.verdict-big {
			font-size: 9.5pt;
			font-weight: 900;
			letter-spacing: .5px;
			margin-top: 1px;
		}
		.pass-text { color: #16a34a; }
		.fail-text { color: #dc2626; }
		.tick-box {
			display: inline-block;
			width: 9px;
			height: 9px;
			text-align: center;
			line-height: 8px;
			font-size: 7pt;
			font-weight: 900;
			background: #fff;
			vertical-align: middle;
			margin-left: 2px;
		}
		.qr-cell svg { display: block; margin: 0 auto; background: #fff; }
		.qcol-head { font-weight: 800; font-size: 5.8pt; margin-bottom: 2px; }
		.qline {
			display: grid;
			grid-template-columns: minmax(0, 1fr) auto;
			gap: 6px;
			align-items: center;
			margin-bottom: 1.5px;
		}
		.qline .qt {
			white-space: nowrap;
			display: inline-flex;
			align-items: center;
			gap: 2px;
			font-weight: 600;
		}
		.draggable-item { position: absolute; cursor: move; user-select: none; touch-action: none; }
		.overlay-box {
			box-sizing: border-box;
			border: 1px dashed transparent;
			transition: border-color var(--motion-fast);
		}
		.overlay-box:hover:not(.is-locked),
		.overlay-box.is-selected:not(.is-locked) {
			border-color: rgba(37, 99, 235, 0.75);
			background: rgba(37, 99, 235, 0.04);
		}
		.overlay-box.is-locked {
			cursor: default !important;
		}
		.overlay-ctrls {
			position: absolute;
			top: -18px;
			right: 0;
			display: none;
			gap: 2px;
			z-index: 100;
		}
		.overlay-box:hover .overlay-ctrls,
		.overlay-box.is-selected .overlay-ctrls {
			display: flex;
		}
		.overlay-lock-btn {
			background: rgba(15, 23, 42, 0.85);
			color: #fff;
			border: none;
			border-radius: 3px;
			font-size: 9px;
			padding: 1px 4px;
			cursor: pointer;
			line-height: 1.2;
		}
		.overlay-lock-btn:hover {
			background: #2563eb;
		}
		.overlay-resize-handle {
			position: absolute;
			width: 10px;
			height: 10px;
			background: #2563eb;
			border: 1.5px solid #ffffff;
			border-radius: 2px;
			display: none;
			z-index: 101;
			touch-action: none;
			box-shadow: 0 1px 3px rgba(0,0,0,0.35);
			box-sizing: border-box;
		}
		.overlay-resize-handle.handle-nw { top: -5px; left: -5px; cursor: nwse-resize; }
		.overlay-resize-handle.handle-n  { top: -5px; left: calc(50% - 5px); cursor: ns-resize; }
		.overlay-resize-handle.handle-ne { top: -5px; right: -5px; cursor: nesw-resize; }
		.overlay-resize-handle.handle-e  { top: calc(50% - 5px); right: -5px; cursor: ew-resize; }
		.overlay-resize-handle.handle-se { bottom: -5px; right: -5px; cursor: nwse-resize; }
		.overlay-resize-handle.handle-s  { bottom: -5px; left: calc(50% - 5px); cursor: ns-resize; }
		.overlay-resize-handle.handle-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
		.overlay-resize-handle.handle-w  { top: calc(50% - 5px); left: -5px; cursor: ew-resize; }

		.overlay-box:hover:not(.is-locked) .overlay-resize-handle,
		.overlay-box.is-selected:not(.is-locked) .overlay-resize-handle {
			display: block;
		}
		#dragStamp, #dragLogo, [id^="dragAccred_"] { z-index: 50 !important; pointer-events: auto; }
