.ai-tech-modal .modal-body {
	background: #f8fafc;
}

.ai-tech-modal .form-label {
	font-weight: 600;
	color: #334155;
}

.ai-tech-answer-panel {
	border: 1px solid #d9e2ec;
	background: #ffffff;
	border-radius: 8px;
	padding: 14px;
}

.ai-tech-answer-text {
	white-space: pre-wrap;
	margin: 0;
	padding: 12px;
	min-height: 180px;
	max-height: 420px;
	overflow: auto;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #f8fafc;
	color: #1f2937;
	font-family: inherit;
	font-size: 0.94rem;
	line-height: 1.45;
}

/* ── Shared history item (used in modal + WIP card) ──────────────────── */
.ai-history-item {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 6px;
	background: #fff;
}

.ai-history-item-header {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	cursor: pointer;
	user-select: none;
}

.ai-history-item-header:hover {
	background: #f1f5f9;
	border-radius: 6px;
}

.ai-history-item-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
}

.ai-history-item-body {
	padding: 0 12px 10px;
}

.ai-history-item-answer {
	min-height: 80px;
	max-height: 340px;
}

/* ── Modal previous sessions section ────────────────────────────────── */
.ai-tech-history-section {
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

.ai-tech-history-list {
	max-height: 360px;
	overflow-y: auto;
}

/* ── WIP card AI history panel ───────────────────────────────────────── */
.ai-history-panel {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-top: 10px;
	/* background: #fff; */
	background-color: #FAF8F2;
}

.ai-history-panel-header {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	cursor: pointer;
	user-select: none;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
}

.ai-history-panel-header:hover {
	background: #f1f5f9;
	border-radius: 6px;
}

.ai-history-panel-body {
	padding: 6px 10px 10px;
	max-height: 400px;
	overflow-y: auto;
}