:root {
	--tm-indigo: #4F46E5;
	--tm-indigo-dark: #4338CA;
	--tm-emerald: #10B981;
	--tm-emerald-dark: #059669;
	--tm-violet: #7C3AED;
	--tm-text: #1F2937;
	--tm-muted: #6B7280;
	--tm-border: #E5E7EB;
	--tm-bg-soft: #F9FAFB;
}

.tm-tool {
	max-width: 720px;
	margin: 24px 0 40px;
	padding: 24px;
	border: 1px solid var(--tm-border);
	border-radius: 14px;
	background: #fff;
}

.tm-tool-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 16px;
}

.tm-field {
	flex: 1 1 200px;
}

.tm-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--tm-text);
	margin-bottom: 4px;
}

.tm-field input,
.tm-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}

.tm-field input:focus,
.tm-field select:focus {
	outline: none;
	border-color: var(--tm-indigo);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.tm-btn {
	background: var(--tm-emerald);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tm-btn:hover {
	background: var(--tm-emerald-dark);
}

.tm-result {
	margin-top: 20px;
	padding: 18px;
	background: #EEF2FF;
	border: 1px solid #C7D2FE;
	border-radius: 10px;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.tm-result.show {
	opacity: 1;
}

.tm-result .tm-line {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-top: 1px solid #E0E7FF;
	font-size: 14px;
	color: var(--tm-text);
}

.tm-result .tm-line:first-child {
	border-top: none;
}

.tm-result .tm-line-primary .tm-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--tm-indigo-dark);
}

.tm-error {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #FEF2F2;
	color: #B91C1C;
	font-size: 13px;
}

.tm-content {
	max-width: 720px;
	margin: 0 0 40px;
	color: var(--tm-text);
	line-height: 1.7;
}

.tm-content h2 {
	margin-top: 36px;
	margin-bottom: 12px;
	font-size: 22px;
}

.tm-faq-item {
	border-bottom: 1px solid var(--tm-border);
	padding: 14px 0;
}

.tm-faq-item strong {
	display: block;
	margin-bottom: 4px;
}

.tm-related ul {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tm-related a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 20px;
	background: var(--tm-bg-soft);
	border: 1px solid var(--tm-border);
	color: var(--tm-indigo-dark);
	font-size: 13px;
	text-decoration: none;
}

.tm-related a:hover {
	border-color: var(--tm-indigo);
}

.tm-updated {
	margin-top: 24px;
	font-size: 12px;
	color: var(--tm-muted);
}

.tm-pro-badge {
	display: inline-block;
	background: var(--tm-violet);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
	margin-left: 6px;
	vertical-align: middle;
}
