.cdlp { margin-top: 28px; }

.cdlp__invite {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: #0a0a0a;
	color: #fff;
	border: 2px solid #9ec53b;
	box-shadow:
		0 0 0 6px rgba(158, 197, 59, .18),
		0 22px 48px rgba(10, 10, 10, .16);
}

.cdlp__invite-glow {
	position: absolute;
	inset: -40% auto auto 50%;
	width: 70%;
	height: 70%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(158, 197, 59, .28) 0%, transparent 68%);
	pointer-events: none;
}

.cdlp__invite-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(380px, 1.35fr) minmax(280px, 1fr);
	gap: 22px;
	align-items: stretch;
	padding: 22px;
}

.cdlp__demo {
	min-height: 520px;
	height: 100%;
	border-radius: 18px;
	border: 2px solid #9ec53b;
	background:
		radial-gradient(circle at 50% 30%, rgba(158, 197, 59, .16), transparent 55%),
		#11150c;
	overflow: hidden;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(158, 197, 59, .2);
}

.cdlp__demo canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.cdlp__invite-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 24px 24px;
	text-align: center;
}

.cdlp__invite-kicker {
	display: inline-flex;
	margin: 0 0 14px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #9ec53b;
	color: #0a0a0a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cdlp__invite h3 {
	margin: 0 0 12px;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.12;
	color: #fff;
	letter-spacing: -0.03em;
	font-weight: 800;
}

.cdlp__invite-lead {
	margin: 0 auto 22px;
	max-width: 560px;
	color: #e8ecd4;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.45;
}

.cdlp__open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 30px;
	border: 0;
	border-radius: 999px;
	background: #9ec53b;
	color: #0a0a0a;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 0 #6d8a22;
	transition: transform .2s ease, box-shadow .2s ease;
}

.cdlp__open:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 0 #6d8a22;
}

.cdlp__open:active {
	transform: translateY(2px);
	box-shadow: 0 4px 0 #6d8a22;
}

.cdlp__notice {
	width: min(520px, calc(100vw - 32px));
	padding: 28px 26px 24px;
	border-radius: 22px;
	background: #0a0a0a;
	color: #fff;
	border: 2px solid #9ec53b;
	box-shadow: 0 0 0 6px rgba(158, 197, 59, .2), 0 24px 50px rgba(0, 0, 0, .35);
	position: fixed;
	top: 50%;
	left: 50%;
	right: auto;
	bottom: auto;
	transform: translate(-50%, -50%);
	margin: 0;
	z-index: 100001;
}

.cdlp__notice::backdrop { background: rgba(10, 10, 10, .78); }

.cdlp__notice-kicker {
	display: inline-flex;
	margin: 0 0 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #9ec53b;
	color: #0a0a0a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.cdlp__notice h3 {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
}

.cdlp__notice-list {
	margin: 0 0 22px;
	padding: 0 0 0 18px;
	color: #e8ecd4;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.cdlp__notice-list li + li { margin-top: 12px; }
.cdlp__notice-list strong { color: #fff; font-weight: 800; }

.cdlp__notice-accept {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: center;
	padding: 15px 22px;
	border: 0;
	border-radius: 999px;
	background: #9ec53b;
	color: #0a0a0a;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 6px 0 #6d8a22;
}

.cdlp__notice-accept:hover { transform: translateY(-1px); }

.cdlp__dialog {
	width: min(1180px, calc(100vw - 16px));
	max-height: calc(100dvh - 12px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: transparent;
	color: #0a0a0a;
	position: fixed;
	top: 50%;
	left: 50%;
	right: auto;
	bottom: auto;
	transform: translate(-50%, -50%);
	margin: 0;
	z-index: 100000;
	overflow: hidden;
}

.cdlp__dialog::backdrop { background: rgba(8, 10, 4, .8); }

.cdlp__dialog-shell {
	display: flex;
	flex-direction: column;
	max-height: calc(100dvh - 12px);
	overflow: hidden;
	border-radius: 20px;
	background:
		linear-gradient(180deg, #10140c 0 58px, #f7f8f1 58px);
	border: 2px solid #9ec53b;
	box-shadow: 0 0 0 6px rgba(158, 197, 59, .16), 0 28px 60px rgba(0, 0, 0, .35);
}

.cdlp__dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	color: #fff;
	flex: 0 0 auto;
}

.cdlp__dialog-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.cdlp__dialog-kicker {
	margin: 0 0 2px;
	color: #9ec53b;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cdlp__dialog-head h3 {
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.02em;
	color: #fff;
}

.cdlp__dialog-logo {
	height: 30px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	flex: 0 0 auto;
}

.cdlp__close {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	flex: 0 0 auto;
}

.cdlp__close:hover { background: rgba(255, 255, 255, .14); }

.cdlp__toolbar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: stretch;
	margin: 0 16px 8px;
	padding: 8px 10px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e4e7d4;
	box-shadow: 0 8px 18px rgba(10, 10, 10, .04);
	flex: 0 0 auto;
}

.cdlp__upload {
	position: relative;
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 8px;
	max-width: 168px;
	padding: 8px 12px;
	border: 0;
	border-radius: 12px;
	background: #9ec53b;
	color: #0a0a0a;
	cursor: pointer;
	box-shadow: 0 4px 0 #6d8a22;
	transition: transform .18s ease, box-shadow .18s ease;
}

.cdlp__upload:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 0 #6d8a22;
}

.cdlp__upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.cdlp__upload-ico {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: #d8ec8d;
	color: #0a0a0a;
}

.cdlp__upload-ico svg {
	display: block;
	width: 18px;
	height: 18px;
}

.cdlp__upload-txt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	text-align: left;
	min-width: 0;
}

.cdlp__upload-txt strong {
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
}

.cdlp__upload-txt small {
	font-size: 10px;
	font-weight: 650;
	opacity: .78;
	line-height: 1.2;
}

.cdlp__formats {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	padding: 6px 8px 8px;
	border-radius: 12px;
	background: #f4f6ea;
	border: 1px solid #dde3c4;
	transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.cdlp__formats.is-disabled {
	opacity: .68;
	background: #eef0e4;
}

.cdlp__formats.is-disabled .cdlp__pack {
	cursor: not-allowed;
	filter: grayscale(.35);
}

.cdlp__formats.is-ready {
	animation: cdlp-select-blink 0.45s ease-in-out 3;
	border-color: #9ec53b;
	background: #e8f6c9;
	box-shadow: 0 0 0 3px rgba(158, 197, 59, .28);
}

@keyframes cdlp-select-blink {
	0%, 100% { box-shadow: 0 0 0 3px rgba(158, 197, 59, .18); background: #e8f6c9; }
	50% { box-shadow: 0 0 0 7px rgba(158, 197, 59, .08); background: #f7ffe8; }
}

.cdlp__formats-label {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6d8a22;
	line-height: 1.2;
}

.cdlp__formats-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.cdlp__pack {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 8px 4px 6px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	background: #fff;
	color: #0a0a0a;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(10, 10, 10, .04);
	transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.cdlp__pack:hover:not(:disabled) {
	border-color: #c5d98a;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(109, 138, 34, .12);
}

.cdlp__pack.is-active {
	border-color: #9ec53b;
	background: #f3fad9;
	box-shadow: 0 0 0 2px rgba(158, 197, 59, .22);
}

.cdlp__pack:disabled {
	pointer-events: none;
}

.cdlp__pack img {
	display: block;
	width: 100%;
	max-width: 72px;
	height: 68px;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
}

.cdlp__pack span {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: .01em;
}

.cdlp__error {
	margin: 0 16px 6px;
	color: #9a3412;
	font-size: 12px;
	font-weight: 700;
	flex: 0 0 auto;
}

.cdlp__size {
	margin: 0 16px 8px;
	padding: 8px 12px;
	border-radius: 12px;
	background: #f4f6e8;
	border: 2px solid #9ec53b;
	color: #24300c;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	box-shadow: inset 0 0 0 1px rgba(158, 197, 59, .25);
	flex: 0 0 auto;
}

.cdlp__size strong { color: #0a0a0a; font-weight: 800; }

.cdlp__size--ok {
	background: #e8f6c9;
	border-color: #9ec53b;
	color: #1f3208;
}

.cdlp__size--warn {
	background: #fff1d6;
	border-color: #f0a429;
	color: #6a3d08;
	box-shadow: 0 0 0 4px rgba(240, 164, 41, .18);
	animation: cdlp-pulse 1.6s ease-in-out infinite;
}

@keyframes cdlp-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(240, 164, 41, .16); }
	50% { box-shadow: 0 0 0 8px rgba(240, 164, 41, .08); }
}

.cdlp__hint {
	margin: 4px 16px 0;
	color: #5a5a55;
	font-size: 11px;
	font-weight: 600;
	flex: 0 0 auto;
}

.cdlp__stage-wrap {
	position: relative;
	margin: 0 16px;
	flex: 1 1 auto;
	min-height: 0;
}

.cdlp__stage {
	height: min(520px, calc(100dvh - 250px));
	min-height: 280px;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 18%, rgba(158, 197, 59, .18), transparent 42%),
		#e8ebd8;
	border: 1px solid #d7dcc0;
	touch-action: none;
	cursor: grab;
}

.cdlp__stage:active { cursor: grabbing; }
.cdlp__stage canvas { display: block; width: 100%; height: 100%; }

.cdlp__loading {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border-radius: 16px;
	background: rgba(232, 235, 216, .72);
	backdrop-filter: blur(2px);
	pointer-events: all;
}

.cdlp__loading[hidden] { display: none !important; }

.cdlp__loading-spin {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 3px solid rgba(10, 10, 10, .12);
	border-top-color: #9ec53b;
	border-right-color: #9ec53b;
	animation: cdlp-spin .75s linear infinite;
	box-sizing: border-box;
}

.cdlp__loading-txt {
	font-size: 14px;
	font-weight: 750;
	letter-spacing: .04em;
	color: #0a0a0a;
}

@keyframes cdlp-spin {
	to { transform: rotate(360deg); }
}

.cdlp__guide {
	position: absolute;
	left: 50%;
	bottom: 14px;
	right: auto;
	top: auto;
	transform: translateX(-50%);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 16px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(10, 10, 10, .78);
	border: 1px solid rgba(158, 197, 59, .45);
	color: #f3f6e4;
	backdrop-filter: blur(6px);
	pointer-events: none;
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
	z-index: 2;
	max-width: calc(100% - 24px);
}

.cdlp__guide.is-hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(8px);
}

.cdlp__guide-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.cdlp__guide-ico {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: #9ec53b;
	position: relative;
}

.cdlp__guide-ico--drag::before,
.cdlp__guide-ico--drag::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	background: #0a0a0a;
}

.cdlp__guide-ico--drag::before {
	width: 14px;
	height: 2px;
}

.cdlp__guide-ico--drag::after {
	width: 2px;
	height: 14px;
}

.cdlp__guide-ico--zoom::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 7px;
	width: 11px;
	height: 11px;
	border: 2px solid #0a0a0a;
	border-radius: 50%;
}

.cdlp__guide-ico--zoom::after {
	content: "";
	position: absolute;
	right: 7px;
	bottom: 7px;
	width: 7px;
	height: 2px;
	background: #0a0a0a;
	transform: rotate(45deg);
	transform-origin: left center;
}

.cdlp__dialog-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 8px 16px 12px;
	padding: 8px 12px;
	border-radius: 14px;
	background: #0a0a0a;
	color: #eef2da;
	flex: 0 0 auto;
}

.cdlp__dialog-note {
	margin: 0;
	flex: 1 1 200px;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
}

.cdlp__dialog-note strong { color: #9ec53b; }

.cdlp__download {
	flex: 0 0 auto;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: #9ec53b;
	color: #0a0a0a;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 5px 0 #6d8a22;
}

.cdlp__download:hover:not(:disabled) { transform: translateY(-1px); }

.cdlp__download:disabled {
	opacity: .45;
	cursor: not-allowed;
	box-shadow: none;
}

@media (max-width: 980px) {
	.cdlp__invite-grid {
		grid-template-columns: minmax(280px, 1.2fr) 1fr;
		padding: 16px;
		gap: 16px;
	}
	.cdlp__demo { min-height: 400px; }
	.cdlp__dialog {
		width: min(980px, calc(100vw - 12px));
	}
	.cdlp__pack img { max-width: 64px; height: 60px; }
	.cdlp__stage { height: min(440px, calc(100dvh - 280px)); }
}

@media (max-width: 820px) {
	.cdlp__toolbar {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.cdlp__upload {
		max-width: none;
		width: 100%;
		justify-content: center;
		padding: 9px 12px;
	}
	.cdlp__formats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}
	.cdlp__pack img { max-width: 70px; height: 66px; }
	.cdlp__pack span { font-size: 11px; }
	.cdlp__stage { height: min(380px, calc(100dvh - 320px)); min-height: 240px; }
}

@media (max-width: 720px) {
	.cdlp__invite-grid {
		grid-template-columns: 1fr;
		padding: 14px;
	}
	.cdlp__demo { min-height: 280px; height: auto; }
	.cdlp__invite-inner { padding: 18px 12px 16px; }
	.cdlp__invite h3 { font-size: 24px; }
	.cdlp__invite-lead { font-size: 15px; }
	.cdlp__dialog {
		width: calc(100vw - 8px);
		max-height: calc(100dvh - 8px);
		border-radius: 16px;
	}
	.cdlp__dialog-shell {
		border-radius: 16px;
		max-height: calc(100dvh - 8px);
		background: linear-gradient(180deg, #10140c 0 54px, #f7f8f1 54px);
	}
	.cdlp__dialog-head {
		padding: 8px 10px;
	}
	.cdlp__dialog-brand { gap: 8px; }
	.cdlp__dialog-logo { height: 24px; max-width: 88px; }
	.cdlp__dialog-head h3 { font-size: 15px; }
	.cdlp__close { padding: 6px 10px; font-size: 11px; }
	.cdlp__toolbar {
		grid-template-columns: 1fr;
		margin: 0 8px 6px;
		padding: 8px;
		gap: 8px;
	}
	.cdlp__formats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}
	.cdlp__pack { padding: 6px 3px 5px; border-radius: 10px; }
	.cdlp__pack img { max-width: 56px; height: 52px; }
	.cdlp__pack span { font-size: 10px; }
	.cdlp__hint,
	.cdlp__error,
	.cdlp__size { margin-left: 8px; margin-right: 8px; }
	.cdlp__stage-wrap { margin: 0 8px; }
	.cdlp__stage {
		height: min(42dvh, calc(100dvh - 340px));
		min-height: 200px;
		border-radius: 12px;
	}
	.cdlp__guide {
		left: 50%;
		bottom: 10px;
		padding: 7px 10px;
		gap: 8px 12px;
		border-radius: 14px;
		max-width: calc(100% - 16px);
	}
	.cdlp__guide-item {
		font-size: 11px;
		white-space: normal;
	}
	.cdlp__guide.is-hidden {
		transform: translateX(-50%) translateY(8px);
	}
	.cdlp__dialog-foot {
		margin: 6px 8px 8px;
		padding: 8px 10px;
		gap: 8px;
	}
	.cdlp__dialog-note { font-size: 11px; flex: 1 1 100%; }
	.cdlp__download { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
	.cdlp__formats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cdlp__pack img { max-width: 64px; height: 58px; }
	.cdlp__stage { min-height: 180px; height: min(38dvh, calc(100dvh - 360px)); }
}
