/* ==========================================================================
   ARKANIA AI - LASER SCANNER WIDGET (ArkLaserScanner)
   Architecture: XAORUS Framework Widget
   ========================================================================== */

:root {
	--laser-accent: #3fff97;
	--laser-accent-rgb: 63, 255, 151;
	--color-detect: #ff3ba6;
	--color-detect-green: #3fff97;
	--color-detect-yellow: #ffd000;
	--color-detect-cyan: #00e5ff;
	--color-detect-magenta: #ff3ba6;
	--laser-duration: 5.6s;
}

.ArkLaserScanner {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: #16161e;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
	box-sizing: border-box;
}

.ArkLaserScanner[data-laser-theme="green"] {
	--laser-accent: #3fff97;
	--laser-accent-rgb: 63, 255, 151;
}

.ArkLaserScanner[data-laser-theme="magenta"] {
	--laser-accent: #ff3ba6;
	--laser-accent-rgb: 255, 59, 166;
}

.ArkLaserScanner[data-laser-theme="yellow"] {
	--laser-accent: #ffd000;
	--laser-accent-rgb: 255, 208, 0;
}

/* Image Viewport & Scanning Plane */
.ArkLaserViewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #0f0f16;
}

.ArkLaserImage {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

/* Four Corner HUD Brackets */
.ArkLaserCorner {
	position: absolute;
	width: 14px;
	height: 14px;
	pointer-events: none;
	z-index: 8;
	opacity: 0.85;
	transition: border-color 0.3s ease;
}

.ArkLaserCornerTopLeft {
	top: 10px;
	left: 10px;
	border-top: 2px solid var(--laser-accent, #3fff97);
	border-left: 2px solid var(--laser-accent, #3fff97);
}

.ArkLaserCornerTopRight {
	top: 10px;
	right: 10px;
	border-top: 2px solid var(--laser-accent, #3fff97);
	border-right: 2px solid var(--laser-accent, #3fff97);
}

.ArkLaserCornerBottomLeft {
	bottom: 10px;
	left: 10px;
	border-bottom: 2px solid var(--laser-accent, #3fff97);
	border-left: 2px solid var(--laser-accent, #3fff97);
}

.ArkLaserCornerBottomRight {
	bottom: 10px;
	right: 10px;
	border-bottom: 2px solid var(--laser-accent, #3fff97);
	border-right: 2px solid var(--laser-accent, #3fff97);
}

/* Laser Scanner Beam & Trail */
.ArkLaserBeam {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	height: 64px;
	pointer-events: none;
	z-index: 14;
	opacity: 0;
	top: -64px;
	will-change: top, opacity;
}

/* Single Sweep Lifecycle State Handling */
.ArkLaserScanner[data-scan="wait"] .ArkLaserBeam {
	opacity: 0;
	top: -64px;
	animation: none;
}

.ArkLaserScanner[data-scan="scanning"] .ArkLaserBeam {
	opacity: 1;
	animation: laserScanSingleSweep var(--laser-duration, 5.6s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ArkLaserScanner[data-scan="done"] .ArkLaserBeam {
	opacity: 0;
	animation: none;
}

/* Glowing Trail Behind Beam */
.ArkLaserBeamTrail {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background: linear-gradient(180deg, rgba(var(--laser-accent-rgb, 63, 255, 151), 0) 0%, rgba(var(--laser-accent-rgb, 63, 255, 151), 0.05) 50%, rgba(var(--laser-accent-rgb, 63, 255, 151), 0.25) 100%);
	pointer-events: none;
}

/* Sharp Glowing Laser Line */
.ArkLaserBeamLine {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--laser-accent, #3fff97);
	box-shadow: 
		0 0 6px var(--laser-accent, #3fff97),
		0 0 16px var(--laser-accent, #3fff97),
		0 0 32px var(--laser-accent, #3fff97),
		0 0 64px rgba(var(--laser-accent-rgb, 63, 255, 151), 0.65);
}

/* Single Pass Top-to-Bottom Sweep Animation */
@keyframes laserScanSingleSweep {
	0% {
		top: -64px;
		opacity: 0;
	}
	4% {
		opacity: 1;
	}
	90% {
		opacity: 1;
	}
	98% {
		top: 100%;
		opacity: 0;
	}
	100% {
		top: 100%;
		opacity: 0;
	}
}

/* Reticle Grid Lines Overlay */
.ArkLaserReticleGrid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 32px 32px;
	z-index: 5;
}

/* ==========================================================================
   COMPUTER VISION DETECTIONS OVERLAY (Polygons, HUD Locks, Labels, Chips)
   ========================================================================== */
.ArkLaserDetectionsOverlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 12;
	pointer-events: none;
	opacity: 0;
	clip-path: inset(0 0 100% 0);
}

.ArkLaserScanner[data-scan="wait"] .ArkLaserDetectionsOverlay {
	opacity: 0;
	clip-path: inset(0 0 100% 0);
	pointer-events: none;
}

.ArkLaserScanner[data-scan="scanning"] .ArkLaserDetectionsOverlay {
	opacity: 1;
	pointer-events: none;
	animation: laserDetectionsWipe var(--laser-duration, 5.6s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ArkLaserScanner[data-scan="done"] .ArkLaserDetectionsOverlay {
	opacity: 1;
	clip-path: inset(0 0 0% 0);
	pointer-events: auto;
	transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes laserDetectionsWipe {
	0% {
		clip-path: inset(0 0 100% 0);
	}
	98% {
		clip-path: inset(0 0 0% 0);
	}
	100% {
		clip-path: inset(0 0 0% 0);
	}
}

.ArkLaserSvgLayer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

/* Polygon Soft Outer Halo (3px non-scaling stroke) */
.vision-seg-halo {
	fill: none;
	stroke: var(--color-detect, #ff3ba6);
	stroke-width: 3px;
	stroke-opacity: 0.14;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	transition: stroke-opacity 0.2s ease;
}

.vision-seg-halo.is-green,
.vision-target.is-green .vision-seg-halo {
	stroke: var(--color-detect-green, #3fff97);
}

.vision-seg-halo.is-yellow,
.vision-target.is-yellow .vision-seg-halo {
	stroke: var(--color-detect-yellow, #ffd000);
}

.vision-seg-halo.is-cyan,
.vision-target.is-cyan .vision-seg-halo {
	stroke: var(--color-detect-cyan, #00e5ff);
}

.vision-seg-halo.is-magenta,
.vision-target.is-magenta .vision-seg-halo {
	stroke: var(--color-detect-magenta, #ff3ba6);
}

/* Polygon Crisp Edge (1px non-scaling stroke) */
.vision-seg-edge {
	fill: none;
	stroke: var(--color-detect, #ff3ba6);
	stroke-width: 1px;
	stroke-opacity: 0.9;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 2px rgba(255, 59, 166, 0.55));
	transition: stroke-width 0.2s ease, stroke-opacity 0.2s ease, filter 0.2s ease;
}

.vision-seg-edge.is-green,
.vision-target.is-green .vision-seg-edge {
	stroke: var(--color-detect-green, #3fff97);
	filter: drop-shadow(0 0 2px rgba(63, 255, 151, 0.65));
}

.vision-seg-edge.is-yellow,
.vision-target.is-yellow .vision-seg-edge {
	stroke: var(--color-detect-yellow, #ffd000);
	filter: drop-shadow(0 0 2px rgba(255, 208, 0, 0.65));
}

.vision-seg-edge.is-cyan,
.vision-target.is-cyan .vision-seg-edge {
	stroke: var(--color-detect-cyan, #00e5ff);
	filter: drop-shadow(0 0 2px rgba(0, 229, 255, 0.65));
}

.vision-seg-edge.is-magenta,
.vision-target.is-magenta .vision-seg-edge {
	stroke: var(--color-detect-magenta, #ff3ba6);
	filter: drop-shadow(0 0 2px rgba(255, 59, 166, 0.65));
}

.vision-seg-edge.is-signal {
	stroke: var(--laser-accent, #3fff97);
	filter: drop-shadow(0 0 2px var(--laser-accent, #3fff97));
}

/* Polygon Fill Layer */
.vision-seg-fill {
	fill: var(--color-detect, #ff3ba6);
	fill-opacity: 0.06;
	transition: fill-opacity 0.2s ease;
}

.vision-seg-fill--soft {
	fill-opacity: 0.14;
	filter: blur(3px);
}

.vision-seg-fill.is-green,
.vision-target.is-green .vision-seg-fill {
	fill: var(--color-detect-green, #3fff97);
}

.vision-seg-fill.is-yellow,
.vision-target.is-yellow .vision-seg-fill {
	fill: var(--color-detect-yellow, #ffd000);
}

.vision-seg-fill.is-cyan,
.vision-target.is-cyan .vision-seg-fill {
	fill: var(--color-detect-cyan, #00e5ff);
}

.vision-seg-fill.is-magenta,
.vision-target.is-magenta .vision-seg-fill {
	fill: var(--color-detect-magenta, #ff3ba6);
}

.vision-seg-fill.is-signal {
	fill: var(--laser-accent, #3fff97);
}

/* Target Corner Lock Brackets & Center Reticles */
.vision-seg-lock {
	fill: none;
	stroke: var(--color-detect, #ff3ba6);
	stroke-width: 1.4px;
	stroke-linecap: square;
	vector-effect: non-scaling-stroke;
}

.vision-seg-lock.is-green,
.vision-target.is-green .vision-seg-lock {
	stroke: var(--color-detect-green, #3fff97);
}

.vision-seg-lock.is-yellow,
.vision-target.is-yellow .vision-seg-lock {
	stroke: var(--color-detect-yellow, #ffd000);
}

.vision-seg-lock.is-cyan,
.vision-target.is-cyan .vision-seg-lock {
	stroke: var(--color-detect-cyan, #00e5ff);
}

.vision-seg-lock.is-magenta,
.vision-target.is-magenta .vision-seg-lock {
	stroke: var(--color-detect-magenta, #ff3ba6);
}

.vision-seg-reticle {
	fill: none;
	stroke: var(--color-detect, #ff3ba6);
	stroke-width: 1px;
	stroke-opacity: 0.85;
	vector-effect: non-scaling-stroke;
}

.vision-seg-reticle.is-green,
.vision-target.is-green .vision-seg-reticle {
	stroke: var(--color-detect-green, #3fff97);
}

.vision-seg-reticle.is-yellow,
.vision-target.is-yellow .vision-seg-reticle {
	stroke: var(--color-detect-yellow, #ffd000);
}

.vision-seg-reticle.is-cyan,
.vision-target.is-cyan .vision-seg-reticle {
	stroke: var(--color-detect-cyan, #00e5ff);
}

.vision-seg-reticle.is-magenta,
.vision-target.is-magenta .vision-seg-reticle {
	stroke: var(--color-detect-magenta, #ff3ba6);
}

/* Target Relation & Lead Lines */
.vision-relate {
	fill: none;
	stroke: var(--laser-accent, #3fff97);
	stroke-width: 1px;
	stroke-dasharray: 3 4;
	vector-effect: non-scaling-stroke;
	opacity: 0.55;
}

.vision-relate.is-green {
	stroke: var(--color-detect-green, #3fff97);
}

.vision-relate.is-yellow {
	stroke: var(--color-detect-yellow, #ffd000);
}

.vision-relate.is-cyan {
	stroke: var(--color-detect-cyan, #00e5ff);
}

.vision-relate.is-magenta {
	stroke: var(--color-detect-magenta, #ff3ba6);
}

.vision-lead {
	fill: none;
	stroke: var(--color-detect, #ff3ba6);
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	opacity: 0.65;
}

.vision-lead.is-green {
	stroke: var(--color-detect-green, #3fff97);
}

.vision-lead.is-yellow {
	stroke: var(--color-detect-yellow, #ffd000);
}

.vision-lead.is-cyan {
	stroke: var(--color-detect-cyan, #00e5ff);
}

.vision-lead.is-magenta {
	stroke: var(--color-detect-magenta, #ff3ba6);
}

.vision-lead-tick {
	fill: none;
	stroke: var(--color-detect, #ff3ba6);
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	opacity: 0.75;
}

.vision-lead-tick.is-green {
	stroke: var(--color-detect-green, #3fff97);
}

.vision-lead-tick.is-yellow {
	stroke: var(--color-detect-yellow, #ffd000);
}

.vision-lead-tick.is-cyan {
	stroke: var(--color-detect-cyan, #00e5ff);
}

.vision-lead-tick.is-magenta {
	stroke: var(--color-detect-magenta, #ff3ba6);
}

/* Target Hover Glow */
.vision-target {
	cursor: crosshair;
	pointer-events: auto;
}

.vision-target:hover .vision-seg-edge {
	stroke-width: 1.75px;
	stroke-opacity: 1;
	filter: drop-shadow(0 0 6px var(--color-detect, #ff3ba6));
}

.vision-target.is-green:hover .vision-seg-edge {
	stroke-width: 1.75px;
	stroke-opacity: 1;
	filter: drop-shadow(0 0 6px var(--color-detect-green, #3fff97));
}

.vision-target.is-yellow:hover .vision-seg-edge {
	stroke-width: 1.75px;
	stroke-opacity: 1;
	filter: drop-shadow(0 0 6px var(--color-detect-yellow, #ffd000));
}

.vision-target.is-cyan:hover .vision-seg-edge {
	stroke-width: 1.75px;
	stroke-opacity: 1;
	filter: drop-shadow(0 0 6px var(--color-detect-cyan, #00e5ff));
}

.vision-target.is-magenta:hover .vision-seg-edge {
	stroke-width: 1.75px;
	stroke-opacity: 1;
	filter: drop-shadow(0 0 6px var(--color-detect-magenta, #ff3ba6));
}

.vision-target:hover .vision-seg-fill {
	fill-opacity: 0.14;
}

.vision-target:hover .vision-seg-fill--soft {
	fill-opacity: 0.24;
}

.vision-target:hover .vision-seg-halo {
	stroke-opacity: 0.28;
}

/* Floating HUD Labels */
.ArkLaserFloatingLabel {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: rgba(11, 13, 18, 0.86);
	border: 1px solid rgba(255, 59, 166, 0.45);
	padding: 0.18rem 0.5rem 0.18rem 0.42rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f4f6fb;
	line-height: 1;
	white-space: nowrap;
	clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	z-index: 15;
	pointer-events: none;
	user-select: none;
	transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.ArkLaserFloatingLabel::before {
	content: "";
	width: 0.3rem;
	height: 0.3rem;
	background: var(--color-detect, #ff3ba6);
	box-shadow: 0 0 6px var(--color-detect, #ff3ba6);
	flex-shrink: 0;
}

.ArkLaserFloatingLabel.is-below {
	margin-top: 6px;
}

.ArkLaserFloatingLabel.is-above {
	transform: translateY(-100%);
	margin-top: -6px;
}

.ArkLaserFloatingLabel.is-green {
	border-color: rgba(63, 255, 151, 0.5);
}

.ArkLaserFloatingLabel.is-green::before {
	background: var(--color-detect-green, #3fff97);
	box-shadow: 0 0 6px var(--color-detect-green, #3fff97);
}

.ArkLaserFloatingLabel.is-yellow {
	border-color: rgba(255, 208, 0, 0.5);
}

.ArkLaserFloatingLabel.is-yellow::before {
	background: var(--color-detect-yellow, #ffd000);
	box-shadow: 0 0 6px var(--color-detect-yellow, #ffd000);
}

.ArkLaserFloatingLabel.is-cyan {
	border-color: rgba(0, 229, 255, 0.5);
}

.ArkLaserFloatingLabel.is-cyan::before {
	background: var(--color-detect-cyan, #00e5ff);
	box-shadow: 0 0 6px var(--color-detect-cyan, #00e5ff);
}

.ArkLaserFloatingLabel.is-magenta {
	border-color: rgba(255, 59, 166, 0.5);
}

.ArkLaserFloatingLabel.is-magenta::before {
	background: var(--color-detect-magenta, #ff3ba6);
	box-shadow: 0 0 6px var(--color-detect-magenta, #ff3ba6);
}

.ArkFloatingScore {
	color: var(--color-detect, #ff3ba6);
	font-weight: 600;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

.ArkLaserFloatingLabel.is-green .ArkFloatingScore {
	color: var(--color-detect-green, #3fff97);
}

.ArkLaserFloatingLabel.is-yellow .ArkFloatingScore {
	color: var(--color-detect-yellow, #ffd000);
}

.ArkLaserFloatingLabel.is-cyan .ArkFloatingScore {
	color: var(--color-detect-cyan, #00e5ff);
}

.ArkLaserFloatingLabel.is-magenta .ArkFloatingScore {
	color: var(--color-detect-magenta, #ff3ba6);
}

/* Floating HUD Chips */
.ArkLaserFloatingChip {
	position: absolute;
	display: inline-flex;
	flex-direction: column;
	gap: 0.14rem;
	background: rgba(11, 13, 18, 0.88);
	padding: 0.34rem 0.58rem 0.36rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	line-height: 1.1;
	white-space: nowrap;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-left: 2px solid var(--color-detect, #ff3ba6);
	clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.7);
	z-index: 15;
	pointer-events: none;
	user-select: none;
}

.ArkLaserFloatingChip.is-anchor-left {
	transform: translate(calc(-100% - 10px), -50%);
}

.ArkLaserFloatingChip.is-anchor-top {
	transform: translateY(-100%);
	margin-top: -8px;
}

.ArkLaserFloatingChip.is-above-center {
	transform: translate(-50%, -100%);
}

.ArkLaserFloatingChip.is-relation {
	transform: translate(-50%, calc(-50% - 16px));
}

.ArkLaserFloatingChip.is-permanencia,
.ArkLaserFloatingChip.is-cyan {
	border-left-color: var(--color-detect-cyan, #00e5ff);
}

.ArkLaserFloatingChip.is-cyan .ArkChipVal,
.ArkLaserFloatingChip.is-permanencia .ArkChipVal {
	color: var(--color-detect-cyan, #00e5ff);
}

.ArkLaserFloatingChip.is-magenta {
	border-left-color: var(--color-detect-magenta, #ff3ba6);
}

.ArkLaserFloatingChip.is-magenta .ArkChipVal {
	color: var(--color-detect-magenta, #ff3ba6);
}

.ArkLaserFloatingChip.is-yellow,
.ArkLaserFloatingChip.is-epi {
	border-left-color: var(--color-detect-yellow, #ffd000);
}

.ArkLaserFloatingChip.is-yellow .ArkChipVal,
.ArkLaserFloatingChip.is-epi .ArkChipVal {
	color: var(--color-detect-yellow, #ffd000);
}

.ArkLaserFloatingChip.is-green,
.ArkLaserFloatingChip.is-signal {
	border-left-color: var(--color-detect-green, #3fff97);
}

.ArkLaserFloatingChip.is-green .ArkChipVal,
.ArkLaserFloatingChip.is-signal .ArkChipVal {
	color: var(--color-detect-green, #3fff97);
}

.ArkChipKind {
	font-size: 0.48rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	display: block;
	line-height: 1;
}

.ArkChipVal {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: #f4f6fb;
	display: block;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
}

.ArkChipMeta {
	font-size: 0.48rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.52);
	display: block;
	line-height: 1;
}

/* Compact Ordinal Markers (Shelf Inventory) */
.ArkLaserOrdinal {
	position: absolute;
	transform: translate(-50%, -100%);
	margin-top: -0.25rem;
	padding: 0.1rem 0.32rem;
	background: rgba(11, 13, 18, 0.85);
	border: 1px solid rgba(63, 255, 151, 0.45);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.52rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	color: var(--color-detect-green, #3fff97);
	font-variant-numeric: tabular-nums;
	clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 0 100%);
	pointer-events: none;
	user-select: none;
	z-index: 15;
}

/* Frame Summary Telemetry Box (Bottom-Left) */
.ArkLaserFrameMetrics {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 16;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 11rem;
	padding: 0.5rem 0.7rem 0.55rem;
	background: rgba(11, 13, 18, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-left: 2px solid var(--laser-accent, #3fff97);
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
	backdrop-filter: blur(8px);
	box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.75);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	pointer-events: none;
	user-select: none;
}

.ArkLaserFrameMetricsHead {
	font-size: 0.48rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--laser-accent, #3fff97);
	padding-bottom: 0.28rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ArkLaserFrameMetricsRow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.9rem;
	line-height: 1.15;
}

.ArkLaserFrameMetricsKey {
	font-size: 0.5rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
}

.ArkLaserFrameMetricsVal {
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #f4f6fb;
	font-variant-numeric: tabular-nums;
}

.ArkLaserFrameMetricsVal.is-green {
	color: var(--color-detect-green, #3fff97);
}

.ArkLaserFrameMetricsVal.is-yellow {
	color: var(--color-detect-yellow, #ffd000);
}

.ArkLaserFrameMetricsVal.is-cyan {
	color: var(--color-detect-cyan, #00e5ff);
}

.ArkLaserFrameMetricsVal.is-magenta {
	color: var(--color-detect-magenta, #ff3ba6);
}

/* Detected Regions Bottom Tray */
.ArkLaserRegionsTray {
	width: 100%;
	background: rgba(15, 15, 22, 0.96);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 16px 20px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-sizing: border-box;
}

.ArkLaserRegionsHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.ArkLaserRegionsTitle {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
	font-weight: 600;
}

.ArkLaserRegionsSubtitle {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.58rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.38);
	font-variant-numeric: tabular-nums;
}

/* Cards Grid */
.ArkLaserCardsGrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

@media (max-width: 768px) {
	.ArkLaserCardsGrid {
		grid-template-columns: 1fr;
	}
}

.ArkLaserCard {
	position: relative;
	background: rgba(22, 22, 30, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0.55rem;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 0.7rem;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
	box-sizing: border-box;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.ArkLaserCard.is-green:hover {
	border-color: rgba(63, 255, 151, 0.55);
	background: rgba(26, 26, 36, 0.95);
}

.ArkLaserCard.is-yellow:hover {
	border-color: rgba(255, 208, 0, 0.55);
	background: rgba(26, 26, 36, 0.95);
}

.ArkLaserCard.is-cyan:hover {
	border-color: rgba(0, 229, 255, 0.55);
	background: rgba(26, 26, 36, 0.95);
}

.ArkLaserCard.is-magenta:hover {
	border-color: rgba(255, 59, 166, 0.55);
	background: rgba(26, 26, 36, 0.95);
}

/* Bounding-Box Cropped Region Thumbnail */
.ArkLaserCardThumb {
	position: relative;
	width: 72px;
	height: 54px;
	overflow: hidden;
	background-color: #0b0d12;
	background-repeat: no-repeat;
	border: 1px solid rgba(255, 255, 255, 0.14);
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
	flex-shrink: 0;
}

.ArkLaserCardThumbImg {
	position: absolute;
	max-width: none;
	display: block;
	filter: saturate(0.95) contrast(1.06);
	pointer-events: none;
	user-select: none;
}

.ArkLaserCardThumbTint {
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 59, 166, 0.55);
	background: linear-gradient(135deg, rgba(255, 59, 166, 0.18), transparent 60%);
}

.ArkLaserCardThumb.is-green .ArkLaserCardThumbTint {
	box-shadow: inset 0 0 0 1px rgba(63, 255, 151, 0.55);
	background: linear-gradient(135deg, rgba(63, 255, 151, 0.18), transparent 60%);
}

.ArkLaserCardThumb.is-yellow .ArkLaserCardThumbTint {
	box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.55);
	background: linear-gradient(135deg, rgba(255, 208, 0, 0.18), transparent 60%);
}

.ArkLaserCardThumb.is-cyan .ArkLaserCardThumbTint {
	box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.55);
	background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), transparent 60%);
}

.ArkLaserCardThumb.is-magenta .ArkLaserCardThumbTint {
	box-shadow: inset 0 0 0 1px rgba(255, 59, 166, 0.55);
	background: linear-gradient(135deg, rgba(255, 59, 166, 0.18), transparent 60%);
}

.ArkLaserCardMeta {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	overflow: hidden;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.ArkLaserCardNameRow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem;
}

.ArkLaserCardName {
	font-size: 0.62rem;
	font-weight: 600;
	color: #f4f6fb;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ArkLaserCardTypeBadge {
	font-size: 0.5rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-detect, #ff3ba6);
	flex-shrink: 0;
}

.ArkLaserCardTypeBadge.is-green {
	color: var(--color-detect-green, #3fff97);
}

.ArkLaserCardTypeBadge.is-yellow {
	color: var(--color-detect-yellow, #ffd000);
}

.ArkLaserCardTypeBadge.is-cyan {
	color: var(--color-detect-cyan, #00e5ff);
}

.ArkLaserCardTypeBadge.is-magenta {
	color: var(--color-detect-magenta, #ff3ba6);
}

.ArkLaserCardCoords {
	font-size: 0.54rem;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ArkLaserCardAngle {
	font-size: 0.54rem;
	color: rgba(255, 255, 255, 0.42);
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

