.nhe-explorer {
	--nhe-bg: #07101a;
	--nhe-panel: rgba(11, 18, 28, 0.86);
	--nhe-panel-2: rgba(8, 14, 23, 0.92);
	--nhe-border: rgba(130, 166, 207, 0.18);
	--nhe-border-strong: rgba(127, 200, 255, 0.52);
	--nhe-text: #edf6ff;
	--nhe-muted: #a9bfd7;
	--nhe-accent: #73d4ff;
	--nhe-success: #78f8ae;
	--nhe-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
	position: relative;
	margin: 2rem 0;
	padding: 1.25rem;
	border-radius: 28px;
	background:
		radial-gradient(circle at top left, rgba(70, 150, 220, 0.16), transparent 34%),
		radial-gradient(circle at top right, rgba(56, 177, 255, 0.12), transparent 28%),
		linear-gradient(180deg, #0a1421 0%, #07101a 100%);
	border: 1px solid var(--nhe-border);
	box-shadow: var(--nhe-shadow);
	color: var(--nhe-text);
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow: hidden;
}

.nhe-explorer::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 34px 34px,
		linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 34px 34px;
	pointer-events: none;
	mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent);
	opacity: 0.35;
}

.nhe-header,
.nhe-layout,
.nhe-sidebar,
.nhe-stage-card {
	position: relative;
	z-index: 1;
}

.nhe-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.nhe-eyebrow,
.nhe-sidebar-heading,
.nhe-info-panel__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #82c9ff;
}

.nhe-title {
	margin: 0;
	font-size: clamp(1.5rem, 2vw, 2.1rem);
	line-height: 1.1;
}

.nhe-subtitle {
	max-width: 48rem;
	margin: 0.55rem 0 0;
	color: var(--nhe-muted);
	line-height: 1.55;
	font-size: 0.98rem;
}

.nhe-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.7rem 0.95rem;
	border-radius: 999px;
	background: rgba(9, 18, 30, 0.86);
	border: 1px solid rgba(126, 166, 203, 0.16);
	color: #dceeff;
	white-space: nowrap;
}

.nhe-status-pill__dot {
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 50%;
	background: var(--nhe-success);
	box-shadow:
		0 0 0 0 rgba(120, 248, 174, 0.7),
		0 0 18px rgba(120, 248, 174, 0.95);
	animation: nhePulse 2.2s infinite;
}

.nhe-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.8fr);
	gap: 1.2rem;
	align-items: stretch;
}

.nhe-stage-card,
.nhe-sidebar-section,
.nhe-info-panel {
	border-radius: 22px;
	border: 1px solid var(--nhe-border);
	background:
		linear-gradient(180deg, rgba(16, 27, 40, 0.9), rgba(6, 11, 19, 0.95));
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.nhe-stage-card {
	padding: 1rem;
}

.nhe-stage-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	padding: 0.85rem 0.95rem;
	border-radius: 16px;
	background: rgba(4, 10, 18, 0.62);
	border: 1px solid rgba(120, 160, 198, 0.1);
	color: var(--nhe-muted);
	font-size: 0.92rem;
}

.nhe-stage-caption__name {
	color: #f4fbff;
	font-size: 1rem;
}

.nhe-stage {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
}

.nhe-sidebar {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 1rem;
}

.nhe-sidebar-section {
	padding: 1rem;
}

.nhe-device-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.7rem;
}

.nhe-device-button {
	display: grid;
	gap: 0.18rem;
	width: 100%;
	padding: 0.9rem 0.95rem;
	border-radius: 16px;
	border: 1px solid rgba(120, 156, 192, 0.14);
	background: rgba(3, 9, 15, 0.66);
	color: var(--nhe-text);
	text-align: left;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.nhe-device-button:hover,
.nhe-device-button:focus-visible,
.nhe-device-button.is-active {
	outline: none;
	border-color: var(--nhe-border-strong);
	background: linear-gradient(180deg, rgba(10, 20, 32, 0.98), rgba(5, 11, 18, 0.98));
	box-shadow:
		0 0 0 1px rgba(95, 183, 255, 0.16),
		0 16px 32px rgba(0, 0, 0, 0.22);
	transform: translateY(-1px);
}

.nhe-device-button__name {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.nhe-device-button__tag {
	color: #8fb2cf;
	font-size: 0.9rem;
}

.nhe-info-panel {
	padding: 1.1rem;
	display: flex;
	flex-direction: column;
}

.nhe-info-name {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.12;
}

.nhe-info-role {
	margin: 0.4rem 0 0.8rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: #8fd7ff;
}

.nhe-info-purpose {
	margin: 0;
	line-height: 1.65;
	color: #d7e6f7;
}

.nhe-info-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin-top: 1rem;
}

.nhe-info-card {
	padding: 0.95rem;
	border-radius: 16px;
	border: 1px solid rgba(120, 156, 192, 0.14);
	background: rgba(4, 10, 18, 0.7);
}

.nhe-info-card__label {
	display: block;
	margin-bottom: 0.4rem;
	color: #88aac8;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nhe-info-card__value {
	display: block;
	line-height: 1.55;
	color: #f4fbff;
}

.nhe-info-tag {
	color: #9ee9ff;
	font-weight: 700;
}

.nhe-device {
	cursor: pointer;
	transition: opacity 0.22s ease, filter 0.22s ease;
}

.nhe-device .nhe-hitbox {
	fill: rgba(255, 255, 255, 0.001);
}

.nhe-device .nhe-outline {
	stroke: rgba(128, 150, 182, 0.55);
	stroke-width: 1.35;
	transition: stroke 0.22s ease, filter 0.22s ease;
}

.nhe-device text {
	pointer-events: none;
	user-select: none;
}

.nhe-device:hover,
.nhe-device:focus-visible,
.nhe-device.is-active {
	outline: none;
	filter: drop-shadow(0 0 16px rgba(89, 191, 255, 0.2));
}

.nhe-device:hover .nhe-outline,
.nhe-device:focus-visible .nhe-outline,
.nhe-device.is-active .nhe-outline {
	stroke: #77d4ff;
	filter: drop-shadow(0 0 8px rgba(119, 212, 255, 0.35));
}

.nhe-device:hover .nhe-status-led,
.nhe-device:focus-visible .nhe-status-led,
.nhe-device.is-active .nhe-status-led {
	filter: drop-shadow(0 0 8px rgba(121, 248, 174, 0.85));
}

.nhe-stage .nhe-status-led {
	animation: nheBlink 2.8s infinite ease-in-out;
}

.nhe-stage .nhe-device:nth-of-type(3n) .nhe-status-led {
	animation-delay: 0.4s;
}

.nhe-stage .nhe-device:nth-of-type(4n) .nhe-status-led {
	animation-delay: 0.8s;
}

@keyframes nheBlink {
	0%, 100% { opacity: 0.72; }
	45% { opacity: 1; }
	60% { opacity: 0.45; }
}

@keyframes nhePulse {
	0% {
		box-shadow:
			0 0 0 0 rgba(120, 248, 174, 0.58),
			0 0 18px rgba(120, 248, 174, 0.88);
	}
	70% {
		box-shadow:
			0 0 0 12px rgba(120, 248, 174, 0),
			0 0 18px rgba(120, 248, 174, 0.65);
	}
	100% {
		box-shadow:
			0 0 0 0 rgba(120, 248, 174, 0),
			0 0 18px rgba(120, 248, 174, 0.88);
	}
}

@media (max-width: 980px) {
	.nhe-layout {
		grid-template-columns: 1fr;
	}

	.nhe-status-pill {
		align-self: flex-start;
	}

	.nhe-header {
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.nhe-explorer {
		padding: 0.95rem;
		border-radius: 22px;
	}

	.nhe-stage-card,
	.nhe-sidebar-section,
	.nhe-info-panel {
		border-radius: 18px;
	}

	.nhe-stage-caption {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nhe-device,
	.nhe-device-button,
	.nhe-status-pill__dot,
	.nhe-stage .nhe-status-led {
		animation: none !important;
		transition: none !important;
	}
}
