.loading {
	display: block;
	min-width: 50px;
	min-height: 50px;
	background: url(../img/ajax-loader.gif) no-repeat;
}
.cloak {
	display: none;
}
.attachments {
	font-size: 11px;
	list-style: none;
	margin: 0 0 15px 0;
}
.attachments li.image_att img {
	max-width: 250px;
	height: auto;
	float: left;
	margin-right: 25px;
}
.attachments li.file_att {
	display: inline-block;
	margin: 0 .4em .5em 0;
	position: relative;
	font-size: 11px;
	line-height: 20px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #dadada;
}
.attachments li.file_att a {
	padding: 8px;
}
.attachments_wrap {
	display: block;
	clear: both;
}

/* ── Subject search dropdown ── */
.hsd-form-group--subject {
	position: relative;
}
.hsd-subject-results {
	position: absolute;
	z-index: 100;
	left: 0;
	right: 0;
	top: 100%;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.1);
	max-height: 300px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}
.hsd-subject-results__loading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	color: #64748b;
	font-size: 14px;
}
.hsd-subject-results__loading .hsd-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #e2e8f0;
	border-top-color: #6366f1;
	border-radius: 50%;
	animation: hsd-spin .6s linear infinite;
	flex-shrink: 0;
}
@keyframes hsd-spin {
	to { transform: rotate(360deg); }
}
.hsd-subject-results__list {
	flex: 1 1 auto;
	overflow-y: auto;
}
.hsd-subject-results__item {
	display: block;
	padding: 10px 16px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f1f5f9;
	transition: background .15s;
}
.hsd-subject-results__item:hover,
.hsd-subject-results__item:focus {
	background: #f8fafc;
}
.hsd-subject-results__title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
	line-height: 1.3;
}
.hsd-subject-results__preview {
	display: block;
	font-size: 13px;
	color: #94a3b8;
	margin-top: 2px;
	line-height: 1.4;
}
.hsd-subject-results__empty {
	padding: 14px 16px;
	color: #94a3b8;
	font-size: 14px;
	text-align: center;
}
.hsd-subject-results__dismiss {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	position: sticky;
	bottom: 0;
	width: 100%;
	padding: 10px 16px;
	background: #f8fafc;
	border: none;
	border-top: 1px solid #e2e8f0;
	color: #6366f1;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s;
}
.hsd-subject-results__dismiss:hover {
	background: #eef2ff;
}