.dm {
	--dm-icon: #1c1b19;
	--dm-title: #1c1b19;
	--dm-muted: #646970;
	--dm-line: #e2e4e7;
	--dm-card: #fff;
	--dm-radius: 12px;
	--dm-gap: 10px;
	--dm-cols: 1;
	color: var(--dm-title);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.dm-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
}

.dm-search,
.dm-select {
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--dm-line);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}

.dm-search {
	flex: 1 1 220px;
	min-width: 0;
}

.dm-select {
	flex: 0 1 200px;
	max-width: 100%;
}

.dm-search:focus,
.dm-select:focus {
	border-color: #1c1b19;
	box-shadow: 0 0 0 3px rgba(28, 27, 25, 0.08);
	outline: none;
}

.dm-list {
	display: grid;
	grid-template-columns: repeat(var(--dm-cols, 1), minmax(0, 1fr));
	align-items: stretch;
	gap: var(--dm-gap);
}

.dm-stage {
	position: relative;
	min-height: 72px;
}

.dm.is-busy .dm-list {
	opacity: 0.38;
}

.dm-pending {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	justify-content: center;
	padding-top: 18px;
	pointer-events: none;
}

.dm-pending[hidden] {
	display: none;
}

.dm-pending__card {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: #1c1b19;
	color: #f6f4ef;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 8px 24px rgba(28, 27, 25, 0.18);
}

.dm-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(246, 244, 239, 0.35);
	border-top-color: #f6f4ef;
	border-radius: 50%;
	animation: dm-spin 0.6s linear infinite;
}

.dm.is-error .dm-spinner {
	display: none;
}

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

@media (prefers-reduced-motion: reduce) {
	.dm-spinner {
		animation: none;
		border-top-color: rgba(246, 244, 239, 0.35);
		border-right-color: #f6f4ef;
	}
}

.dm-item {
	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	height: 100%;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--dm-line);
	border-radius: var(--dm-radius);
	background: var(--dm-card);
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dm-item:hover,
.dm-item:focus-visible {
	border-color: #1c1b19;
	color: inherit;
}

.dm-item__icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #f0f0f1;
	color: var(--dm-icon);
}

.dm-item__svg {
	display: block;
}

.dm-item__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.dm-item__title {
	color: var(--dm-title);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.dm-item__meta {
	color: var(--dm-muted);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
}

.dm-item__action {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid #e2e4e7;
	border-radius: 999px;
	background: #fff;
	color: #1c1b19;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	font-style: normal;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.dm-item:hover .dm-item__action,
.dm-item:focus-visible .dm-item__action {
	border-color: #1c1b19;
}

.dm-empty {
	margin: 0;
	color: var(--dm-muted);
	font-size: 14px;
}

.dm-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

.dm-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid #1c1b19;
	border-radius: 999px;
	background: #1c1b19;
	color: #f6f4ef;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.dm-more:hover,
.dm-more:focus-visible {
	background: #34322c;
	border-color: #34322c;
	color: #f6f4ef;
}

.dm-more.is-loading,
.dm-more:disabled {
	cursor: progress;
}

.dm-more[hidden] {
	display: none;
}
