.mtps-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 18px 0;
}

.mtps-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.mtps-actions .is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.mtps-action-status {
	font-size: 0.9em;
}

.mtps-modal[hidden] {
	display: none;
}

.mtps-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.mtps-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 18, 38, 0.72);
}

.mtps-modal-panel {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 28px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
	color: #20222a;
}

.mtps-modal-panel h2 {
	margin-top: 0;
	padding-right: 40px;
}

.mtps-content-check {
	margin: 0 0 18px;
	padding: 10px 12px;
	border-left: 4px solid #18864b;
	background: #f1f8f4;
	font-size: 13px;
	line-height: 1.45;
}

.mtps-content-check.has-warning {
	border-left-color: #d08a00;
	background: #fff8e8;
}

.mtps-content-check span {
	display: block;
	margin-top: 3px;
	color: #5f636c;
}

.mtps-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.mtps-field {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
}

.mtps-modal-panel .description {
	margin-top: 5px;
	color: #5f636c;
	font-size: 13px;
}

.mtps-ai-row,
.mtps-modal-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 18px;
}

.mtps-writing-row {
	margin-top: 8px;
}

#mtps-prospect-message,
#mtps-manual-price {
	margin-top: 6px;
}

#mtps-prospect-message {
	margin-bottom: 0;
}

.mtps-modal-actions {
	justify-content: flex-end;
	padding-top: 18px;
	border-top: 1px solid #e1e3e7;
}

.mtps-analysis,
.mtps-options {
	margin-top: 18px;
	padding: 14px;
	border: 1px solid #d9dce2;
	border-radius: 5px;
	background: #f7f8fa;
}

.mtps-analysis-notes {
	margin-top: 10px;
	font-size: 13px;
}

.mtps-requirements-toggle,
.mtps-recommendations-toggle {
	display: block;
	margin-top: 10px;
}

.mtps-fit-card {
	margin-top: 12px;
	padding: 10px 12px;
	border-left: 4px solid #777;
	background: #fff;
	font-size: 13px;
}

.mtps-fit-card.is-match {
	border-left-color: #18864b;
}

.mtps-fit-card.is-partial,
.mtps-fit-card.is-uncertain {
	border-left-color: #d08a00;
}

.mtps-fit-card.is-mismatch {
	border-left-color: #b32d2e;
}

.mtps-fit-card p {
	margin: 4px 0 0;
}

.mtps-analysis-notes ul {
	margin: 5px 0 0 18px;
}

.mtps-recommendations section {
	margin-top: 12px;
}

.mtps-recommendations ul {
	margin: 5px 0 0 18px;
}

.mtps-recommendations li + li {
	margin-top: 6px;
}

.mtps-option-list {
	display: grid;
	gap: 7px;
	margin-top: 8px;
}

.mtps-option-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 8px;
	align-items: start;
}

.mtps-price-toggle {
	display: block;
	margin-top: 18px;
}

body.mtps-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.mtps-modal {
		padding: 10px;
	}

	.mtps-modal-panel {
		max-height: calc(100vh - 20px);
		padding: 22px 18px;
	}

	.mtps-option-row {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.mtps-option-price {
		grid-column: 2;
	}
}
