.ksn-pl {
	--ksn-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--ksn-cols), minmax(0, 1fr));
	gap: 20px;
}

.ksn-pl__card {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ksn-pl-lift-yes .ksn-pl__card:hover {
	transform: translateY(-4px);
}

.ksn-pl__photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #e9ecef;
}

.ksn-pl__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	margin: 0;
	border-radius: 0;
}

.ksn-pl__initials {
	font-size: 2em;
	font-weight: 600;
	color: #6c757d;
}

.ksn-pl__name {
	margin: 10px 0 0;
	font-size: 1rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ksn-pl__meta {
	margin-top: 4px;
	font-size: .85rem;
	opacity: .8;
}

.ksn-pl__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	min-width: 24px;
	padding: 2px 6px;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	background: #f5b301;
	color: #1a1a1a;
}

.ksn-pl__badge--inline {
	position: static;
	display: inline-block;
	vertical-align: middle;
	opacity: 1;
}

/* Overlay layout */
.ksn-pl--overlay .ksn-pl__card {
	overflow: hidden;
	padding: 0;
}

.ksn-pl--overlay .ksn-pl__text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 12px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
	color: #fff;
	pointer-events: none;
}

.ksn-pl--overlay .ksn-pl__name,
.ksn-pl--overlay .ksn-pl__meta {
	color: #fff;
	margin-top: 0;
}

/* List layout */
.ksn-pl--list {
	grid-template-columns: repeat(var(--ksn-cols), minmax(0, 1fr));
}

.ksn-pl--list .ksn-pl__card {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
}

.ksn-pl--list .ksn-pl__photo {
	flex: 0 0 auto;
	width: 80px;
}

.ksn-pl--list .ksn-pl__name {
	margin-top: 0;
}

.ksn-pl-empty,
.ksn-pl-notice {
	margin: 0;
	padding: 12px 14px;
	border-radius: 6px;
	background: #f1f3f5;
	color: #495057;
	font-size: .9rem;
}

.ksn-pl-notice {
	background: #fff3cd;
	color: #664d03;
}

@media (prefers-reduced-motion: reduce) {
	.ksn-pl__card { transition: none; }
}
