.notes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	align-items: start;
	padding-bottom: 16px;
}
.notes-card {
	position: relative;
	background: #FFF7C2;
	border: 1px solid #F0E08A;
	border-radius: 4px 14px 14px 14px;
	padding: 18px 16px 14px;
	min-height: 160px;
	cursor: pointer;
	box-shadow: 2px 3px 0 rgba(180, 140, 40, .15);
}
.notes-card:nth-child(3n) { background: #FFE8C2; border-color: #F0C98A; }
.notes-card:nth-child(3n+1) { background: #E8F7C2; border-color: #C5E08A; }
.notes-card:nth-child(4n) { background: #E8F0FF; border-color: #B8C8F0; }
.notes-card.archived { opacity: .72; filter: grayscale(.25); }
.notes-card-pin {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #E25B4A;
}
.notes-card-body {
	font-weight: 400;
	font-size: 14px;
	color: #3D3418;
	line-height: 1.45;
	margin-bottom: 12px;
	padding-right: 16px;
	max-height: 7.2em;
	overflow: hidden;
	white-space: pre-wrap;
}
.notes-card-meta {
	font-size: 11px;
	color: #8A7A48;
	margin-bottom: 4px;
}
.notes-entity {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: 10px;
}
.notes-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.NotesSearch {
	flex: 0 0 180px;
	width: 180px;
	min-width: 140px;
}

html.theme-dark .notes-card {
	background: #2A2416;
	border-color: #5C4A28;
	box-shadow: 2px 3px 0 rgba(0, 0, 0, .28);
}
html.theme-dark .notes-card:nth-child(3n) {
	background: #2C1E16;
	border-color: #6A4630;
}
html.theme-dark .notes-card:nth-child(3n+1) {
	background: #222818;
	border-color: #4A5A30;
}
html.theme-dark .notes-card:nth-child(4n) {
	background: #1E2230;
	border-color: #3A4468;
}
html.theme-dark .notes-card-body { color: #F0E6C8; }
html.theme-dark .notes-card-meta { color: #B8A56A; }
html.theme-dark .notes-card.archived { opacity: .7; filter: grayscale(.2); }
