:root {
	--bmpg-viewport-height: 100vh;
	--bmpg-mobile-cta-height: 0px;
	--bmpg-device-pixel-ratio: 1;
	--bmpg-viewport-width: 100vw;
}

/*
 * Bravaro Visual Fidelity is deliberately rendering-only. It does not alter
 * layout, spacing, type sizes, colours, radii, shadows or approved motion.
 * Avoid blanket transforms/will-change here: they can soften text on Windows
 * and television compositors by forcing unnecessary bitmap layers.
 */
body.bmpg-visual-fidelity {
	font-kerning: normal;
	font-optical-sizing: auto;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.bmpg-visual-fidelity :where(img, picture, video, canvas, svg) {
	max-width: 100%;
}

body.bmpg-visual-fidelity :where(img, canvas) {
	image-rendering: auto;
	-ms-interpolation-mode: bicubic;
}

body.bmpg-visual-fidelity :where(svg) {
	shape-rendering: geometricPrecision;
	text-rendering: geometricPrecision;
}

body.bmpg-visual-fidelity :where(input, textarea, select, button) {
	font-kerning: normal;
}

body.bmpg-typography-authority {
	font-optical-sizing: auto;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.bmpg-typography-authority :where(code, pre, kbd, samp) {
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}

html.bmpg-ready {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

html.bmpg-ready,
html.bmpg-ready body {
	min-width: 0;
}

html.bmpg-is-mobile {
	overscroll-behavior-x: none;
}

html.bmpg-is-mobile body {
	-webkit-overflow-scrolling: touch;
}

body.bmpg-has-mobile-cta {
	padding-bottom: calc(var(--bmpg-mobile-cta-height) + env(safe-area-inset-bottom, 0px));
}

.bmpg-audit-panel {
	position: fixed;
	right: 14px;
	bottom: 14px;
	z-index: 2147483000;
	width: min(390px, calc(100vw - 28px));
	max-height: min(620px, calc(100vh - 28px));
	overflow: auto;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(2, 15, 40, .98), rgba(6, 42, 95, .98));
	box-shadow: 0 28px 80px rgba(2, 15, 40, .34);
	color: #f5f8ff;
	font: 12px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.bmpg-audit-panel * {
	box-sizing: border-box;
}

.bmpg-audit-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.bmpg-audit-panel h2 {
	margin: 0;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
}

.bmpg-audit-panel button {
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 8px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	padding: 6px 9px;
	cursor: pointer;
}

.bmpg-audit-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.bmpg-audit-stat {
	padding: 9px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
}

.bmpg-audit-stat strong,
.bmpg-audit-stat span {
	display: block;
}

.bmpg-audit-stat strong {
	font-size: 15px;
	color: #fff;
}

.bmpg-audit-stat span {
	margin-top: 2px;
	color: #bcd0ec;
	font-size: 10px;
}

.bmpg-audit-list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.bmpg-audit-list li {
	padding: 8px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	word-break: break-word;
}

.bmpg-audit-pass {
	color: #63efc2;
}

.bmpg-audit-warn {
	color: #ffd174;
}

.bmpg-overflow-flag {
	outline: 2px solid #ffb22e !important;
	outline-offset: -2px !important;
}

@media (prefers-reduced-motion: reduce) {
	html.bmpg-ready {
		scroll-behavior: auto !important;
	}
}
html.bmpg-premium-glide-active {
	scroll-behavior: auto !important;
}
