.xcope-aiml-media-wrap,
.xcope-aiml-position-host {
	position: relative !important;
}

.xcope-aiml-media-wrap {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.xcope-aiml-media-wrap-block {
	display: block;
}

.xcope-aiml-media-wrap > a,
.xcope-aiml-media-wrap > picture,
.xcope-aiml-media-wrap > img {
	display: block;
	max-width: 100%;
}

.xcope-aiml-ai-badge {
	--xcope-aiml-size: 20px;
	--xcope-aiml-bg-rgba: rgba(255, 255, 255, .72);
	--xcope-aiml-border-rgba: rgba(255, 255, 255, .92);
	--xcope-aiml-border-width: 1px;
	--xcope-aiml-foreground: #222222;
	position: absolute !important;
	z-index: 2147483000 !important;
	width: var(--xcope-aiml-size) !important;
	height: var(--xcope-aiml-size) !important;
	min-width: var(--xcope-aiml-size) !important;
	min-height: var(--xcope-aiml-size) !important;
	max-width: var(--xcope-aiml-size) !important;
	max-height: var(--xcope-aiml-size) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: var(--xcope-aiml-border-width) solid var(--xcope-aiml-border-rgba) !important;
	border-radius: 999px !important;
	background: var(--xcope-aiml-bg-rgba) !important;
	box-shadow: none !important;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: var(--xcope-aiml-foreground) !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: calc(var(--xcope-aiml-size) * .42) !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -.03em !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-shadow: none !important;
	cursor: help !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	pointer-events: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	filter: none !important;
	-webkit-tap-highlight-color: transparent;
}

.xcope-aiml-position-bottom-right { right: 7px !important; bottom: 7px !important; left: auto !important; top: auto !important; }
.xcope-aiml-position-bottom-left  { left: 7px !important; bottom: 7px !important; right: auto !important; top: auto !important; }
.xcope-aiml-position-top-right    { right: 7px !important; top: 7px !important; left: auto !important; bottom: auto !important; }
.xcope-aiml-position-top-left     { left: 7px !important; top: 7px !important; right: auto !important; bottom: auto !important; }

.xcope-aiml-ai-badge.xcope-aiml-border-disabled {
	box-shadow: none !important;
}

.xcope-aiml-slider-portal {
	position: fixed !important;
	z-index: 2147483638 !important;
	display: none;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	pointer-events: none !important;
	overflow: visible !important;
	transform: none !important;
	filter: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	contain: layout style;
}

.xcope-aiml-slider-portal > .xcope-aiml-slider-badge {
	z-index: 2147483640 !important;
	pointer-events: auto !important;
}

.xcope-aiml-slider-portal > .xcope-aiml-debug-matched {
	outline: 2px solid rgba(40, 170, 80, .95) !important;
	outline-offset: 2px !important;
}

.xcope-aiml-slider-portal > .xcope-aiml-debug-unmatched {
	outline: 2px solid rgba(220, 40, 40, .95) !important;
	outline-offset: 2px !important;
}

.xcope-aiml-ai-tooltip {
	position: absolute !important;
	z-index: 2147483641 !important;
	width: max-content !important;
	max-width: min(270px, calc(100vw - 30px)) !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 8px 10px !important;
	border: 1px solid rgba(255, 255, 255, .16) !important;
	border-radius: 6px !important;
	background: rgba(24, 24, 27, .96) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3) !important;
	color: #ffffff !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 12px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	white-space: normal !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-shadow: none !important;
	pointer-events: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: translateY(3px) !important;
	transition: opacity .14s ease, transform .14s ease, visibility .14s ease !important;
}

.xcope-aiml-position-bottom-right .xcope-aiml-ai-tooltip,
.xcope-aiml-position-bottom-left .xcope-aiml-ai-tooltip {
	bottom: calc(100% + 7px) !important;
	top: auto !important;
}

.xcope-aiml-position-top-right .xcope-aiml-ai-tooltip,
.xcope-aiml-position-top-left .xcope-aiml-ai-tooltip {
	top: calc(100% + 7px) !important;
	bottom: auto !important;
}

.xcope-aiml-position-bottom-right .xcope-aiml-ai-tooltip,
.xcope-aiml-position-top-right .xcope-aiml-ai-tooltip {
	right: 0 !important;
	left: auto !important;
}

.xcope-aiml-position-bottom-left .xcope-aiml-ai-tooltip,
.xcope-aiml-position-top-left .xcope-aiml-ai-tooltip {
	left: 0 !important;
	right: auto !important;
}

.xcope-aiml-ai-badge:hover .xcope-aiml-ai-tooltip,
.xcope-aiml-ai-badge:focus-visible .xcope-aiml-ai-tooltip,
.xcope-aiml-ai-badge.xcope-aiml-open .xcope-aiml-ai-tooltip {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

.xcope-aiml-ai-badge:focus-visible {
	outline: 2px solid rgba(255, 255, 255, .98) !important;
	outline-offset: 2px !important;
}

.xcope-aiml-shortcode-placeholder {
	position: absolute !important;
	inset: 0 !important;
	pointer-events: none !important;
}

.xcope-aiml-shortcode-placeholder .xcope-aiml-ai-badge {
	pointer-events: auto !important;
}

@media (max-width: 782px) {
	.xcope-aiml-position-bottom-right { right: 6px !important; bottom: 6px !important; }
	.xcope-aiml-position-bottom-left  { left: 6px !important; bottom: 6px !important; }
	.xcope-aiml-position-top-right    { right: 6px !important; top: 6px !important; }
	.xcope-aiml-position-top-left     { left: 6px !important; top: 6px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.xcope-aiml-ai-tooltip {
		transition: none !important;
	}
}

.xcope-aiml-debug-panel {
	position: fixed !important;
	z-index: 2147483647 !important;
	top: 12px !important;
	left: 12px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	width: min(390px, calc(100vw - 24px)) !important;
	max-height: calc(100vh - 24px) !important;
	overflow: auto !important;
	box-sizing: border-box !important;
	padding: 12px 14px !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	border-radius: 8px !important;
	background: rgba(20, 20, 24, .96) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .38) !important;
	color: #fff !important;
	font: 12px/1.45 Arial, Helvetica, sans-serif !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	pointer-events: none !important;
}

.xcope-aiml-debug-panel strong,
.xcope-aiml-debug-panel span,
.xcope-aiml-debug-panel small {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit !important;
	text-transform: none !important;
}

.xcope-aiml-debug-panel strong {
	font-weight: 700 !important;
	font-size: 13px !important;
}

.xcope-aiml-debug-panel small {
	color: rgba(255, 255, 255, .75) !important;
	word-break: break-word !important;
}

.xcope-aiml-debug-panel .xcope-aiml-debug-ok {
	color: #8ee7a8 !important;
}

.xcope-aiml-debug-panel .xcope-aiml-debug-error {
	color: #ff9b9b !important;
}
