.dgrl-widget {
	--dgrl-text: #1f2937;
	--dgrl-muted: #6b7280;
	--dgrl-border: rgba(18, 48, 79, 0.08);
	--dgrl-blue: #2563eb;
	--dgrl-star: #fbbc04;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	color: var(--dgrl-text);
}

.dgrl-widget__header {
	display: grid;
	grid-template-columns: 180px 1fr 180px;
	align-items: start;
	gap: 18px;
	margin-bottom: 22px;
	padding: 0 2px;
}

.dgrl-widget__header > div:first-child {
	min-width: 0;
	grid-column: 2;
	text-align: center;
}

.dgrl-widget__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: 0;
	color: var(--dgrl-text);
}

.dgrl-widget__subtitle {
	margin: 6px 0 0;
	color: var(--dgrl-muted);
	font-size: 14px;
	line-height: 1.55;
}

.dgrl-summary {
	display: grid;
	justify-items: start;
	gap: 2px;
	flex-shrink: 0;
	color: var(--dgrl-muted);
	font-size: 12px;
	min-width: 76px;
	grid-column: 3;
	grid-row: 1;
	justify-self: start;
}

.dgrl-summary strong {
	color: var(--dgrl-text);
	font-size: 28px;
	line-height: 1;
}

.dgrl-track-wrap {
	position: relative;
}

.dgrl-track {
	display: grid;
	grid-auto-columns: minmax(270px, 1fr);
	grid-auto-flow: column;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 6px 2px 18px;
}

.dgrl-track::-webkit-scrollbar {
	display: none;
}

.dgrl-widget--grid .dgrl-track {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	grid-auto-flow: row;
	overflow: visible;
}

.dgrl-card {
	position: relative;
	scroll-snap-align: start;
	background: #fff;
	border: 0;
	outline: 0;
	border-radius: 8px;
	padding: 20px;
	min-height: 238px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 3px 0 rgba(18, 48, 79, 0.18), 0 14px 24px rgba(18, 48, 79, 0.045);
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.dgrl-card:hover {
	background: #fff;
	box-shadow: 0 4px 0 rgba(18, 48, 79, 0.20), 0 16px 26px rgba(18, 48, 79, 0.055);
}

.dgrl-card__top {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding-right: 88px;
}

.dgrl-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 44px;
	background: #eef2ff;
	color: var(--dgrl-blue);
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.dgrl-avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
}

.dgrl-card__person {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.dgrl-card__person strong {
	color: var(--dgrl-text);
	font-size: 14px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.dgrl-card__person span {
	color: var(--dgrl-muted);
	font-size: 12px;
	line-height: 1.35;
}

.dgrl-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 22px;
}

.dgrl-stars {
	color: var(--dgrl-star);
	letter-spacing: 0;
	font-size: 15px;
	white-space: nowrap;
}

.dgrl-verified {
	color: #0f766e;
	background: #ecfdf5;
	border: 1px solid rgba(15, 118, 110, 0.16);
	border-radius: 999px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 800;
}

.dgrl-card__title {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	color: var(--dgrl-text);
	letter-spacing: 0;
}

.dgrl-card__body {
	color: #374151;
	font-size: 13.5px;
	line-height: 1.7;
}

.dgrl-card__body p {
	margin: 0;
}

.dgrl-card__source {
	margin-top: auto;
	color: var(--dgrl-blue);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.dgrl-card__source:hover {
	text-decoration: underline;
}

.dgrl-source-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 92px;
	min-height: 26px;
	padding: 5px 9px;
	border: 0;
	border-radius: 999px;
	background: #eef2f8;
	color: #334155;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: none;
}

.dgrl-source-badge--google {
	background: #fff;
	color: #1f2937;
	box-shadow: 0 2px 0 rgba(18, 48, 79, 0.10), 0 8px 16px rgba(18, 48, 79, 0.08);
}

.dgrl-source-badge--image {
	width: 74px;
	height: 30px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 0 rgba(18, 48, 79, 0.10), 0 8px 16px rgba(18, 48, 79, 0.08);
}

.dgrl-source-badge--image img {
	display: block;
	max-width: 100%;
	max-height: 20px;
	object-fit: contain;
}

.dgrl-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	margin-top: 4px;
}

.dgrl-nav {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #374151;
	box-shadow: 0 10px 20px rgba(18, 48, 79, 0.12), 0 1px 0 rgba(18, 48, 79, 0.06);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 2px;
	transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.dgrl-nav:hover,
.dgrl-nav:focus-visible {
	background: var(--dgrl-blue);
	color: #ffffff;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
	outline: none;
}

.dgrl-nav:focus:not(:focus-visible) {
	background: #fff;
	color: #374151;
	box-shadow: 0 10px 20px rgba(18, 48, 79, 0.12), 0 1px 0 rgba(18, 48, 79, 0.06);
}

@media (min-width: 700px) {
	.dgrl-track {
		grid-auto-columns: calc((100% - 20px) / 2);
	}
}

@media (min-width: 1024px) {
	.dgrl-track {
		grid-auto-columns: calc((100% - 40px) / 3);
	}
}

@media (min-width: 1360px) {
	.dgrl-track {
		grid-auto-columns: calc((100% - 60px) / 4);
	}
}

@media (max-width: 640px) {
	.dgrl-widget {
		padding: 0;
	}

	.dgrl-widget__header {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: start;
		text-align: left;
	}

	.dgrl-widget__header > div:first-child {
		grid-column: 1;
		text-align: left;
	}

	.dgrl-summary {
		justify-items: start;
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: start;
	}

	.dgrl-track {
		grid-auto-columns: minmax(250px, 88%);
	}

	.dgrl-actions {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		margin-top: 0;
	}

	.dgrl-nav {
		width: 32px;
		height: 32px;
	}

	.dgrl-card {
		min-height: 250px;
	}

	.dgrl-card__top {
		padding-right: 78px;
	}
}
