.ii-suggest-topic-text {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	cursor: pointer;
	color: #006089;
	background: #fff;
	border: 1px solid #b8d4e0;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ii-suggest-topic-text:hover:not(:disabled) {
	background: #f0f7fa;
	border-color: #006089;
}

.ii-suggest-topic-text:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ii-stt-overlay {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 40, 55, 0.45);
	box-sizing: border-box;
}

.ii-stt-overlay[hidden] {
	display: none !important;
}

.ii-stt-modal {
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(88vh, 720px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 40, 70, 0.22);
	overflow: hidden;
}

.ii-stt-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #e4eef3;
}

.ii-stt-modal__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #1a2b36;
}

.ii-stt-modal__close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: #5a7380;
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.ii-stt-modal__close:hover {
	background: #f0f7fa;
	color: #006089;
}

.ii-stt-modal__search {
	padding: 10px 16px;
	border-bottom: 1px solid #e4eef3;
}

.ii-stt-modal__search input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	font: inherit;
	font-size: 14px;
	border: 1px solid #c5d8e2;
	border-radius: 4px;
}

.ii-stt-modal__search input:focus {
	outline: none;
	border-color: #006089;
}

.ii-stt-modal__body {
	display: grid;
	grid-template-columns: 200px 1fr;
	min-height: 0;
	flex: 1;
}

.ii-stt-cats,
.ii-stt-topics {
	overflow-y: auto;
	min-height: 0;
}

.ii-stt-cats {
	border-right: 1px solid #e4eef3;
	background: #f7fafc;
	padding: 8px 0;
}

.ii-stt-cat {
	display: block;
	width: 100%;
	padding: 8px 14px;
	text-align: left;
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	color: #2a3f4a;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	cursor: pointer;
}

.ii-stt-cat:hover {
	background: #eef6f9;
}

.ii-stt-cat.is-active {
	color: #006089;
	font-weight: 600;
	background: #fff;
	border-left-color: #006089;
}

.ii-stt-cat__count {
	display: inline-block;
	margin-left: 4px;
	font-weight: 400;
	font-size: 12px;
	color: #7a929e;
}

.ii-stt-topics {
	padding: 8px 0;
}

.ii-stt-topic {
	display: block;
	width: 100%;
	padding: 10px 16px;
	text-align: left;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	color: #1a2b36;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #f0f4f6;
	cursor: pointer;
}

.ii-stt-topic:hover {
	background: #f0f7fa;
}

.ii-stt-topic.is-active {
	background: #e8f4f9;
}

.ii-stt-topic__author {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: #6a8490;
}

.ii-stt-empty {
	padding: 24px 16px;
	font-size: 14px;
	color: #6a8490;
	text-align: center;
}

.ii-stt-modal__preview {
	padding: 12px 16px;
	border-top: 1px solid #e4eef3;
	background: #fafcfd;
}

.ii-stt-modal__preview-meta {
	margin: 0 0 6px;
	font-size: 13px;
	color: #5a7380;
}

.ii-stt-modal__preview-text {
	margin: 0;
	max-height: 88px;
	overflow: auto;
	font-size: 13px;
	line-height: 1.45;
	color: #2a3f4a;
	white-space: pre-wrap;
}

.ii-stt-modal__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 16px;
	border-top: 1px solid #e4eef3;
}

.ii-stt-modal__cancel {
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	color: #5a7380;
	background: #fff;
	border: 1px solid #c5d8e2;
	border-radius: 4px;
	cursor: pointer;
}

.ii-stt-modal__insert {
	padding: 8px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #006089;
	border: 1px solid #006089;
	border-radius: 4px;
	cursor: pointer;
}

.ii-stt-modal__insert:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ii-stt-modal__insert:hover:not(:disabled) {
	background: #004e6e;
}

.ii-stt-modal__status {
	margin-right: auto;
	font-size: 13px;
	color: #6a8490;
}

@media (max-width: 640px) {
	.ii-stt-overlay {
		padding: 0;
		align-items: stretch;
	}

	.ii-stt-modal {
		width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
	}

	.ii-stt-modal__body {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}

	.ii-stt-cats {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		border-right: 0;
		border-bottom: 1px solid #e4eef3;
		padding: 8px;
		gap: 4px;
	}

	.ii-stt-cat {
		flex: 0 0 auto;
		width: auto;
		padding: 6px 10px;
		border-left: 0;
		border-radius: 4px;
		white-space: nowrap;
		background: #fff;
		border: 1px solid #d5e4eb;
	}

	.ii-stt-cat.is-active {
		border-color: #006089;
		background: #e8f4f9;
	}
}
