.llpv-button {
	--llpv-accent: #2323ff;

	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid var(--llpv-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--llpv-accent);
	font-family: "Sora", "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.llpv-button:hover,
.llpv-button:focus-visible {
	background: var(--llpv-accent);
	color: #fff;
}

.llpv-button:focus-visible {
	outline: 2px solid var(--llpv-accent);
	outline-offset: 3px;
}

.llpv-button__icon {
	flex: none;
}

body.llpv-locked {
	overflow: hidden;
}

.llpv-box {
	--llpv-accent: #2323ff;
	--llpv-bar: #ffffff;
	--llpv-line: #e2e4ec;
	--llpv-text: #1b1d29;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: "Lexend", "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--llpv-text);
}

.llpv-box[hidden] {
	display: none;
}

.llpv-box__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 16, 28, 0.72);
	backdrop-filter: blur(2px);
}

.llpv-box__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(940px, 100%);
	height: min(92vh, 100%);
	border-radius: 18px;
	overflow: hidden;
	background: #eef0f6;
	box-shadow: 0 24px 60px rgba(11, 12, 24, 0.45);
}

.llpv-box__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--llpv-bar);
	border-bottom: 1px solid var(--llpv-line);
}

.llpv-box__title {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.llpv-box__counter {
	flex: none;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f0f1f7;
	color: var(--llpv-accent);
	white-space: nowrap;
}

.llpv-box__close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f1f7;
	color: var(--llpv-text);
	cursor: pointer;
}

.llpv-box__close:hover {
	background: var(--llpv-line);
}

.llpv-box__stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow: hidden;
	touch-action: pan-x pan-y;
}

.is-zoomed .llpv-box__stage {
	overflow: auto;
	align-items: flex-start;
	justify-content: flex-start;
	cursor: grab;
}

.is-zoomed .llpv-box__stage.is-dragging {
	cursor: grabbing;
}

.llpv-box__canvas {
	display: block;
	margin: auto;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(27, 29, 41, 0.18);
}

.llpv-box__status {
	position: absolute;
	margin: 0;
	padding: 0 24px;
	font-size: 14px;
	color: #5c6076;
	text-align: center;
}

.llpv-box__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--llpv-bar);
	border-top: 1px solid var(--llpv-line);
}

.llpv-box__group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.llpv-box__control,
.llpv-box__level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0;
	border: 1px solid var(--llpv-line);
	border-radius: 999px;
	background: #fff;
	color: var(--llpv-accent);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.llpv-box__control {
	width: 44px;
}

.llpv-box__level {
	min-width: 64px;
	padding: 0 12px;
}

.llpv-box__control:hover:not(:disabled),
.llpv-box__level:hover:not(:disabled) {
	background: #f0f1f7;
}

.llpv-box__control:disabled,
.llpv-box__level:disabled {
	opacity: 0.35;
	cursor: default;
}

.llpv-box__close:focus-visible,
.llpv-box__control:focus-visible,
.llpv-box__level:focus-visible {
	outline: 2px solid var(--llpv-accent);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.llpv-box {
		padding: 0;
	}

	.llpv-box__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}

	.llpv-box__stage {
		padding: 12px;
	}

	.llpv-box__title {
		font-size: 14px;
	}

	.llpv-box__nav {
		padding: 10px 12px;
	}

	.llpv-box__level {
		min-width: 56px;
	}
}
