:root {
	--pcdp-ink: #121212;
	--pcdp-paper: #f5f2eb;
	--pcdp-panel: #ebe6dc;
	--pcdp-violet: #7352ff;
	--pcdp-violet-dark: #4d2dcc;
	--pcdp-lime: #c9ff45;
	--pcdp-orange: #ff6535;
	--pcdp-line: rgba(18, 18, 18, 0.14);
}

.pcdp-shell,
.pcdp-shell * {
	box-sizing: border-box;
}

.pcdp-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 40px auto 80px;
	color: var(--pcdp-ink);
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.pcdp-hero {
	position: relative;
	min-height: 260px;
	padding: clamp(30px, 5vw, 64px);
	overflow: hidden;
	border-radius: 28px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	color: white;
	background:
		radial-gradient(circle at 78% 22%, rgba(201, 255, 69, 0.28), transparent 22%),
		linear-gradient(135deg, #171717, #4a2ab6);
}

.pcdp-hero::after {
	content: "";
	position: absolute;
	width: 240px;
	height: 240px;
	right: -58px;
	top: -74px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	box-shadow:
		0 0 0 44px rgba(255, 255, 255, 0.04),
		0 0 0 88px rgba(255, 255, 255, 0.025);
}

.pcdp-hero > * {
	position: relative;
	z-index: 1;
}

.pcdp-kicker {
	margin: 0 0 16px;
	color: var(--pcdp-lime);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.pcdp-hero h1 {
	margin: 0;
	font-size: clamp(48px, 7vw, 88px);
	line-height: 0.9;
	letter-spacing: -0.065em;
}

.pcdp-hero div > p:last-child {
	max-width: 640px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 16px;
	line-height: 1.5;
}

.pcdp-market-label {
	flex: 0 0 auto;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 9px;
	color: var(--pcdp-lime);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.pcdp-notice {
	position: sticky;
	z-index: 20;
	top: 20px;
	margin: 18px 0;
	padding: 14px 17px;
	border-radius: 12px;
	color: white;
	background: var(--pcdp-violet-dark);
	box-shadow: 0 14px 34px rgba(18, 18, 18, 0.16);
	font-size: 13px;
	font-weight: 750;
}

.pcdp-notice.is-error {
	background: #b72d2d;
}

.pcdp-loading,
.pcdp-empty {
	margin-top: 18px;
	padding: 34px;
	border: 1px solid var(--pcdp-line);
	border-radius: 20px;
	background: var(--pcdp-paper);
	text-align: center;
	font-weight: 700;
}

.pcdp-loading.is-error {
	color: #9c2828;
}

.pcdp-list {
	display: grid;
	gap: 18px;
	margin-top: 18px;
}

.pcdp-card {
	position: relative;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--pcdp-line);
	border-radius: 24px;
	background: var(--pcdp-paper);
	box-shadow: 0 20px 60px rgba(18, 18, 18, 0.07);
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		opacity 180ms ease;
}

.pcdp-card.is-enabled {
	border-color: rgba(115, 82, 255, 0.4);
	box-shadow: 0 22px 64px rgba(78, 45, 204, 0.13);
}

.pcdp-card.is-saving {
	opacity: 0.72;
}

.pcdp-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--pcdp-line);
}

.pcdp-event {
	display: flex;
	align-items: center;
	gap: 15px;
}

.pcdp-event-mark {
	width: 62px;
	height: 62px;
	flex: 0 0 auto;
	border-radius: 16px;
	display: grid;
	place-items: center;
	color: white;
	background:
		radial-gradient(circle at 70% 25%, var(--pcdp-orange), transparent 28%),
		var(--pcdp-violet);
	font-size: 22px;
	font-weight: 900;
}

.pcdp-source {
	display: block;
	margin-bottom: 6px;
	color: var(--pcdp-violet-dark);
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.14em;
}

.pcdp-event h2 {
	margin: 0 0 4px;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1;
	letter-spacing: -0.045em;
}

.pcdp-event p {
	margin: 0;
	opacity: 0.58;
	font-size: 11px;
}

.pcdp-listing-status {
	padding: 8px 10px;
	border-radius: 8px;
	background: #e2ddd3;
	font-size: 9px;
	font-weight: 850;
	text-transform: capitalize;
}

.pcdp-listing-status[data-status="publish"] {
	background: rgba(70, 190, 104, 0.16);
	color: #186f32;
}

.pcdp-setting-row {
	padding: 27px 0 2px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.pcdp-setting-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pcdp-setting-title strong {
	font-size: 18px;
	letter-spacing: -0.025em;
}

.pcdp-setting-title span {
	padding: 5px 7px;
	border-radius: 6px;
	color: var(--pcdp-violet-dark);
	background: rgba(115, 82, 255, 0.11);
	font-size: 7px;
	font-weight: 900;
	letter-spacing: 0.1em;
}

.pcdp-setting-row p {
	margin: 7px 0 4px;
	opacity: 0.58;
	font-size: 12px;
}

.pcdp-state {
	color: rgba(18, 18, 18, 0.58);
	font-size: 10px;
	font-weight: 800;
}

.is-enabled .pcdp-state {
	color: var(--pcdp-violet-dark);
}

.pcdp-toggle {
	position: relative;
	width: 62px;
	height: 34px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: #c9c3b8;
	transition:
		background 180ms ease,
		box-shadow 180ms ease;
}

.pcdp-toggle span {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: white;
	box-shadow: 0 2px 8px rgba(18, 18, 18, 0.24);
	transition: transform 180ms ease;
}

.pcdp-toggle[aria-checked="true"] {
	background: var(--pcdp-violet);
	box-shadow: 0 0 0 5px rgba(115, 82, 255, 0.12);
}

.pcdp-toggle[aria-checked="true"] span {
	transform: translateX(28px);
}

.pcdp-toggle:focus-visible,
.pcdp-save:focus-visible,
.pcdp-button:focus-visible {
	outline: 3px solid var(--pcdp-orange);
	outline-offset: 4px;
}

.pcdp-controls {
	margin-top: 24px;
	padding: 22px;
	border-radius: 18px;
	background: var(--pcdp-panel);
}

.pcdp-price-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.pcdp-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pcdp-money-input {
	position: relative;
	display: block;
}

.pcdp-money-input b {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
}

.pcdp-field input {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--pcdp-line);
	border-radius: 10px;
	color: var(--pcdp-ink);
	background: rgba(255, 255, 255, 0.74);
	font: 750 13px/1 Inter, sans-serif;
}

.pcdp-money-input input {
	padding-left: 29px;
}

.pcdp-field input:focus {
	outline: 2px solid var(--pcdp-violet);
	border-color: transparent;
}

.pcdp-market {
	margin-top: 16px;
	padding: 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.55);
}

.pcdp-market-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.pcdp-market-top span {
	display: block;
	margin-bottom: 4px;
	opacity: 0.52;
	font-size: 9px;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pcdp-market-top strong {
	font-size: 24px;
	letter-spacing: -0.045em;
}

.pcdp-demand-copy {
	text-align: right;
}

.pcdp-demand-track {
	height: 8px;
	margin-top: 14px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(18, 18, 18, 0.1);
}

.pcdp-demand-track i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--pcdp-violet), var(--pcdp-orange));
	transition: width 280ms ease;
}

.pcdp-boundary-note {
	margin: 11px 0 0;
	opacity: 0.54;
	font-size: 10px;
}

.pcdp-save,
.pcdp-button {
	min-height: 44px;
	margin-top: 16px;
	padding: 0 17px;
	border: 0;
	border-radius: 11px;
	cursor: pointer;
	color: white;
	background: var(--pcdp-ink);
	font-size: 12px;
	font-weight: 850;
	text-decoration: none;
}

.pcdp-button {
	display: inline-flex;
	align-items: center;
}

.pcdp-save:disabled,
.pcdp-toggle:disabled {
	cursor: wait;
}

.pcdp-signin {
	padding: 60px;
	border-radius: 24px;
	background: var(--pcdp-paper);
	text-align: center;
}

.pcdp-signin h2 {
	margin-top: 0;
	font-size: 38px;
	letter-spacing: -0.05em;
}

@media (max-width: 760px) {
	.pcdp-shell {
		width: min(100% - 20px, 1180px);
		margin-top: 12px;
	}

	.pcdp-hero {
		min-height: 300px;
		padding: 28px 22px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
	}

	.pcdp-hero h1 {
		font-size: 52px;
	}

	.pcdp-market-label {
		order: -1;
	}

	.pcdp-card {
		padding: 20px;
	}

	.pcdp-listing-status {
		display: none;
	}

	.pcdp-setting-row {
		align-items: flex-start;
	}

	.pcdp-setting-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.pcdp-price-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 460px) {
	.pcdp-event-mark {
		width: 52px;
		height: 52px;
	}

	.pcdp-price-grid {
		grid-template-columns: 1fr;
	}

	.pcdp-controls {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcdp-shell *,
	.pcdp-shell *::before,
	.pcdp-shell *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
