.d4-loot [hidden] { display: none !important; }
.d4-loot__search {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}
.d4-loot__search label { font-weight: 600; }
.d4-loot__search input {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: inherit;
	font: inherit;
}
.d4-loot__search input:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.d4-loot__count { font-size: 14px; }
.entry-content .d4-loot table { margin-top: 0; }
.d4-loot tbody tr { scroll-margin-top: calc(var(--header-h) + 20px); }
.d4-loot tbody tr:target > * { background: #3b251b; color: #fff4e6; }
.d4-loot tbody td > span { display: none; }
.d4-loot .wh-link--d4 { display: inline !important; white-space: normal !important; overflow-wrap: anywhere; }

@media (max-width: 700px) {
	.entry-content .d4-loot table,
	.d4-loot tbody { display: block; }
	.d4-loot thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.d4-loot tbody tr {
		display: grid;
		padding: 8px 12px;
		margin-bottom: 8px;
		border: 1px solid var(--border);
		border-radius: var(--radius);
	}
	.entry-content .d4-loot tbody tr > * { border: 0; padding: 4px; }
	.d4-loot tbody td > span {
		display: inline-block;
		margin-right: 8px;
		font-size: 13px;
		font-weight: 600;
	}
}
