.tsl {
	--tsl-card-bg: #fff;
	--tsl-radius: 12px;
	--tsl-pad: 8px;
	--tsl-img-radius: 6px;
	--tsl-ratio: 4 / 3;
	--tsl-clip: #1b3a7a;
	--tsl-string: #cfd4da;
	--tsl-string-w: 1px;
	--tsl-name: #111;
	--tsl-role: #7a7a7a;
	--tsl-arrow-color: #1b3a7a;
	--tsl-arrow-bg: #fff;
	--tsl-dot: #cbd2dc;
	--tsl-dot-active: #1b3a7a;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}
.tsl *, .tsl *::before, .tsl *::after { box-sizing: border-box; }

.tsl-stage {
	position: relative;
	width: 100%;
	min-height: 220px;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}
.tsl-stage:focus-visible { outline: 2px solid var(--tsl-clip); outline-offset: 2px; }
.tsl-stage.is-dragging { cursor: grabbing; }

.tsl-string {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}
.tsl-string path {
	fill: none;
	stroke: var(--tsl-string);
	stroke-width: var(--tsl-string-w);
	vector-effect: non-scaling-stroke;
}

.tsl-track { position: absolute; inset: 0; }

.tsl-card {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: var(--tsl-pad);
	background: var(--tsl-card-bg);
	border-radius: var(--tsl-radius);
	box-shadow: 0 6px 20px rgba(16, 24, 40, .12);
	transform-origin: 50% 0;
	will-change: transform;
	backface-visibility: hidden;
}
.tsl:not(.is-ready) .tsl-card { visibility: hidden; }

.tsl-clip {
	position: absolute;
	top: -13px;
	left: 50%;
	width: 16px;
	height: 24px;
	margin-left: -8px;
	border-radius: 3px;
	background: var(--tsl-clip);
	z-index: 2;
}
.tsl-clip::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 62%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

.tsl-photo {
	margin: 0;
	aspect-ratio: var(--tsl-ratio);
	overflow: hidden;
	border-radius: var(--tsl-img-radius);
	background: #e9edf2;
	display: block;
}
.tsl-img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 20%;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}
.tsl-ph {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-size: 2.4rem;
	font-weight: 700;
	color: #9aa5b4;
}

.tsl-meta { padding: 10px 4px 4px; }
.tsl-name {
	margin: 0;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--tsl-name);
	overflow-wrap: anywhere;
}
.tsl-name a, .tsl-name a:hover, .tsl-name a:focus {
	color: inherit;
	text-decoration: none;
}
.tsl-link { position: static; }
.tsl-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tsl-card:has(.tsl-link) { cursor: pointer; }
.tsl-role {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.3;
	color: var(--tsl-role);
}

.tsl-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 8px;
}
.tsl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: var(--tsl-arrow-color);
	background: var(--tsl-arrow-bg);
	box-shadow: 0 2px 10px rgba(16, 24, 40, .15);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tsl-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(16, 24, 40, .2); }
.tsl-btn:focus-visible { outline: 2px solid var(--tsl-arrow-color); outline-offset: 2px; }
.tsl-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tsl-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tsl-dot);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.tsl-dot.is-active { background: var(--tsl-dot-active); transform: scale(1.3); }
.tsl-empty { padding: 16px; text-align: center; color: #666; border: 1px dashed #ccd; }

@media (max-width: 767px) {
	.tsl-name { font-size: 13px; }
	.tsl-role { font-size: 11px; }
	.tsl-btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.tsl-btn, .tsl-dot { transition: none; }
}
