 .epv-viewer{
	--epv-bg: #f5f6f8;
	--epv-border: #d9dde3;
	--epv-text: #17202a;
	--epv-accent: #3a67f7;
	--epv-accent-soft: #e8eeff;
	--epv-radius: 18px;
	--epv-btn-bg: #ffffff;
	--epv-btn-text: #17202a;
	--epv-btn-border: #ffffff;
	--epv-btn-active-bg: #3a67f7;
	--epv-btn-active-text: #ffffff;
	--epv-btn-hover-bg: #f3f5f8;
	--epv-btn-hover-text: #17202a;
	max-width: 1500px;
	margin: 0 auto;
	color: var(--epv-text);
}

.epv-topbar{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.epv-tabs{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.epv-tab,
.epv-btn{
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 11px 16px;
	background: var(--epv-btn-bg);
	color: var(--epv-btn-text);
	border: 1px solid var(--epv-btn-border);
	box-shadow: none;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}


.epv-tab.is-active{
	background: var(--epv-btn-active-bg);
	color: var(--epv-btn-active-text);
	border-color: var(--epv-btn-active-bg);
}

.epv-tab:hover,
.epv-btn:hover{
	background: var(--epv-btn-hover-bg);
	color: var(--epv-btn-hover-text);
	border-color: var(--epv-btn-hover-bg);
}

.epv-tab.is-active:hover{
	background: var(--epv-btn-active-bg);
	color: var(--epv-btn-active-text);
	border-color: var(--epv-btn-active-bg);
}

.epv-controls{
	display: flex;
	gap: 8px;
}

.epv-btn{
	min-width: 44px;
	font-weight: 700;
}

.epv-btn-reset{
	font-weight: 600;
}

.epv-help{
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 10px;
	font-size: 13px;
	opacity: .85;
}

.epv-stage{
	position: relative;
	height: var(--epv-desktop-height, 78vh);
	overflow: hidden;
	border: 1px solid var(--epv-border);
	border-radius: var(--epv-radius);
	background: var(--epv-bg);
	touch-action: none;
}

.epv-pane{
	position: absolute;
	inset: 0;
	display: none;
	overflow: hidden;
	touch-action: none;
}

.epv-pane.is-active{
	display: block;
}

.epv-panzoom{
	position: absolute;
	inset: 0;
	overflow: hidden;
	touch-action: none;
	cursor: grab;
}

.epv-panzoom-content{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto;
	transform-origin: 0 0;
	will-change: transform;
	cursor: grab;
}

.epv-panzoom-content img{
	display: block;
	max-width: none;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
	pointer-events: none;
}

@media (max-width: 980px){
	.epv-topbar{
		align-items: center;
	}
	.epv-controls{
		width: auto;
		justify-content: flex-start;
		margin-left: auto;
	}
	.epv-stage{
		height: var(--epv-mobile-height, 72vh);
	}
}

@media (max-width: 640px){
	.epv-topbar{
		align-items: stretch;
	}
	.epv-controls{
		width: 100%;
		justify-content: flex-start;
		margin-left: 0;
	}
	.epv-tab,
	.epv-btn{
		padding: 10px 14px;
		font-size: 13px;
	}
	.epv-help{
		font-size: 12px;
		gap: 8px;
	}
}


.epv-minimap{
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 12;
	width: 180px;
	max-width: 28vw;
	padding: 8px;
	border-radius: 14px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 10px 24px rgba(23,32,42,.14);
	backdrop-filter: blur(4px);
}

.epv-minimap-inner{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 8px;
	background: #eef1f5;
	cursor: pointer;
}

.epv-minimap-inner img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
	opacity: .96;
}

.epv-minimap-viewport{
	position: absolute;
	border: 2px solid #3a67f7;
	border-radius: 6px;
	background: rgba(58,103,247,.12);
	box-shadow: 0 0 0 9999px rgba(255,255,255,.06);
	pointer-events: none;
	min-width: 12px;
	min-height: 12px;
}

@media (max-width: 980px){
	.epv-minimap{
		width: 140px;
		right: 10px;
		bottom: 10px;
		padding: 6px;
		border-radius: 12px;
	}
}

@media (max-width: 640px){
	.epv-minimap{
		width: 110px;
		max-width: 32vw;
	}
}
