:root {
	--tm-max-width: 1440px;
}

body {
	min-height: 100vh;
}

.tm-container {
	max-width: var(--tm-max-width);
}

.tm-login-body {
	background:
		radial-gradient(circle at top left, rgba(13,110,253,.08), transparent 32rem),
		#f5f7fa;
}

.tm-login-card {
	width: min(100%, 430px);
	border: 0;
	border-radius: 1rem;
}

.tm-tool-card {
	border: 1px solid var(--bs-border-color);
	background: var(--bs-body-bg);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tm-tool-card:hover,
.tm-tool-card.active {
	border-color: var(--bs-primary);
	box-shadow: 0 .25rem 1rem rgba(0,0,0,.06);
}

.tm-tool-card.active {
	transform: translateY(-1px);
}

.tm-step,
.tm-section-label {
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .075em;
	text-transform: uppercase;
	color: var(--bs-secondary-color);
	margin-bottom: 1rem;
}

.tm-stat {
	border: 1px solid var(--bs-border-color);
	border-radius: .65rem;
	text-align: center;
	padding: .65rem;
	background: var(--bs-tertiary-bg);
}

.tm-stat strong,
.tm-stat small {
	display: block;
}

.tm-preview-scroll {
	max-height: 500px;
	overflow-y: auto;
}

.tm-exercise {
	padding: .7rem 0;
	border-bottom: 1px solid var(--bs-border-color);
}

.tm-exercise:last-child {
	border-bottom: 0;
}

.tm-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1040;
	background: rgba(0,0,0,.5);
}

.tm-modal {
	position: fixed;
	inset: 0;
	z-index: 1050;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1rem;
}

.tm-modal-dialog {
	width: min(100%, 720px);
	margin: 4rem auto;
}

.tm-modal-dialog-sm {
	width: min(100%, 480px);
}

.tm-modal-card {
	background: var(--bs-body-bg);
	border-radius: .8rem;
	box-shadow: 0 1rem 3rem rgba(0,0,0,.2);
}

.tm-modal-header,
.tm-modal-footer {
	display: flex;
	align-items: center;
	padding: 1rem 1.25rem;
}

.tm-modal-header {
	justify-content: space-between;
	border-bottom: 1px solid var(--bs-border-color);
}

.tm-modal-footer {
	justify-content: flex-end;
	gap: .75rem;
	border-top: 1px solid var(--bs-border-color);
}

.tm-modal-body {
	padding: 1.25rem;
}

.tm-modal-open {
	overflow: hidden;
}

.tm-summary {
	padding: .75rem 0;
	border-bottom: 1px solid var(--bs-border-color);
}

.tm-summary:last-child {
	border-bottom: 0;
}

.tm-result-icon {
	width: 3rem;
	height: 3rem;
	margin-inline: auto;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 1.7rem;
	font-weight: 700;
}

.tm-result-icon.success {
	background: #d1e7dd;
	color: #0f5132;
}

.tm-result-icon.error {
	background: #f8d7da;
	color: #842029;
}
