.ttm-page {
	--ttm-ink: #181512;
	--ttm-muted: #675f57;
	--ttm-line: #ded6cb;
	--ttm-soft: #f8f3eb;
	--ttm-paper: #fffaf2;
	--ttm-accent: #ff5a3d;
	--ttm-accent-soft: #ffe0d8;
	--ttm-charcoal: #2b2926;
	overflow-x: clip;
}

.ttm-page .ttm-hero,
.ttm-page .ttm-tool,
.ttm-page .ttm-section {
	background: var(--ttm-paper);
	border: 1px solid var(--ttm-line);
	border-radius: 8px;
}

.ttm-page .ttm-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
	gap: 30px;
	align-items: stretch;
	margin-bottom: 22px;
	padding: 34px;
}

.ttm-page .ttm-hero h1 {
	margin: 8px 0 14px;
	color: var(--ttm-ink);
	font-size: clamp(42px, 7vw, 78px);
	line-height: .95;
	letter-spacing: 0;
}

.ttm-page p {
	color: var(--ttm-muted);
	line-height: 1.72;
}

.ttm-page .trust-note {
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--ttm-line);
	border-left: 5px solid var(--ttm-accent);
	border-radius: 6px;
	font-weight: 800;
}

.ttm-page .hero-proof {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
	background: var(--ttm-charcoal);
	border-radius: 8px;
	color: #fff;
}

.ttm-page .hero-proof span,
.ttm-page .result-card span,
.ttm-page .result-grid span,
.ttm-page .related-grid span {
	display: block;
	color: var(--ttm-accent);
	font-size: 12px;
	font-weight: 950;
	text-transform: uppercase;
}

.ttm-page .hero-proof strong {
	display: block;
	margin: 8px 0;
	font-size: 34px;
	line-height: 1;
}

.ttm-page .hero-proof p,
.ttm-page .result-card p {
	color: rgba(255,255,255,.82);
}

.ttm-page .ttm-tool,
.ttm-page .ttm-section {
	margin-bottom: 22px;
	padding: 26px;
}

.ttm-page .tool-grid {
	display: grid;
	grid-template-columns: minmax(320px, .98fr) minmax(0, 1.02fr);
	gap: 22px;
	align-items: start;
}

.ttm-page .result-panel {
	position: sticky;
	top: 14px;
	display: grid;
	gap: 14px;
}

.ttm-page .input-panel,
.ttm-page .result-grid div,
.ttm-page .conditional-group,
.ttm-page .advanced-panel,
.ttm-page .module-card,
.ttm-page .method-grid div,
.ttm-page .source-grid div,
.ttm-page .related-grid a {
	background: #fff;
	border: 1px solid var(--ttm-line);
	border-radius: 8px;
}

.ttm-page .input-panel {
	padding: 20px;
}

.ttm-page .field-grid,
.ttm-page .result-grid,
.ttm-page .module-grid,
.ttm-page .method-grid,
.ttm-page .source-grid,
.ttm-page .related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
}

.ttm-page .field {
	display: grid;
	gap: 7px;
	color: var(--ttm-ink);
	font-size: 13px;
	font-weight: 900;
}

.ttm-page .field input,
.ttm-page .field select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	color: var(--ttm-ink);
	background: var(--ttm-soft);
	border: 1px solid var(--ttm-line);
	border-radius: 6px;
	font: inherit;
	font-weight: 850;
}

.ttm-page .field input:focus,
.ttm-page .field select:focus {
	outline: 3px solid rgba(255,90,61,.16);
	border-color: var(--ttm-accent);
	background: #fff;
}

.ttm-page .field small {
	color: var(--ttm-muted);
	font-weight: 700;
}

.ttm-page .method-box {
	display: grid;
	gap: 10px;
	margin: 18px 0;
	padding: 15px;
	background: #fff;
	border: 1px solid var(--ttm-line);
	border-radius: 8px;
}

.ttm-page .method-box legend {
	padding: 0 6px;
	color: var(--ttm-ink);
	font-weight: 950;
}

.ttm-page .method-box label {
	display: flex;
	gap: 9px;
	align-items: center;
	color: var(--ttm-ink);
	font-weight: 850;
}

.ttm-page .conditional-groups {
	display: grid;
	gap: 12px;
}

.ttm-page .conditional-group,
.ttm-page .advanced-panel {
	padding: 15px;
}

.ttm-page .conditional-group.is-hidden,
.ttm-page .source-card.is-hidden,
.ttm-page .scenario-card.is-hidden {
	display: none;
}

.ttm-page .advanced-panel summary {
	cursor: pointer;
	color: var(--ttm-ink);
	font-weight: 950;
}

.ttm-page .modified-badge {
	display: none;
	margin-left: 8px;
	padding: 2px 7px;
	color: #fff;
	background: var(--ttm-accent);
	border-radius: 999px;
	font-size: 11px;
}

.ttm-page .advanced-panel.is-modified .modified-badge {
	display: inline-block;
}

.ttm-page .result-card {
	padding: 24px;
	background: var(--ttm-charcoal);
	border-radius: 8px;
	color: #fff;
}

.ttm-page .result-card strong {
	display: block;
	margin: 8px 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(36px, 5vw, 58px);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.ttm-page .result-grid div,
.ttm-page .module-card,
.ttm-page .method-grid div,
.ttm-page .source-grid div,
.ttm-page .related-grid a {
	padding: 16px;
}

.ttm-page .result-grid strong,
.ttm-page .related-grid strong {
	display: block;
	margin-top: 8px;
	color: var(--ttm-ink);
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.ttm-page .source-cards,
.ttm-page .scenario-grid {
	display: grid;
	gap: 12px;
}

.ttm-page .source-card,
.ttm-page .scenario-card {
	padding: 14px;
	background: #fff;
	border: 1px solid var(--ttm-line);
	border-left: 5px solid var(--ttm-accent);
	border-radius: 8px;
}

.ttm-page .source-card strong,
.ttm-page .scenario-card strong {
	display: block;
	color: var(--ttm-ink);
	font-variant-numeric: tabular-nums;
}

.ttm-page .mix-chart {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--ttm-line);
	border-radius: 8px;
}

.ttm-page .mix-chart svg {
	display: block;
	width: 100%;
	height: auto;
}

.ttm-page .mix-chart text {
	fill: var(--ttm-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 850;
}

.ttm-page .mix-segment {
	transition: width .3s ease-out;
}

.ttm-page .mix-chart.is-settled .mix-segment {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.ttm-page .mix-segment {
		transition: none;
	}
}

.ttm-page .mix-legend {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.ttm-page .mix-legend div {
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--ttm-muted);
	font-size: 13px;
	font-weight: 800;
}

.ttm-page .mix-legend span {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.ttm-page .progress {
	margin: 12px 0;
}

.ttm-page .progress span {
	display: flex;
	justify-content: space-between;
	color: var(--ttm-ink);
	font-size: 13px;
	font-weight: 900;
}

.ttm-page .progress-track {
	height: 12px;
	background: var(--ttm-soft);
	border: 1px solid var(--ttm-line);
}

.ttm-page .progress-fill {
	height: 100%;
	background: var(--ttm-accent);
}

.ttm-page .two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
	gap: 22px;
}

.ttm-page .source-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ttm-page .related-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ttm-page .related-grid a {
	color: inherit;
	text-decoration: none;
}

.ttm-page a {
	color: #b53725;
	font-weight: 900;
}

.ttm-page .action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.ttm-page button {
	min-height: 44px;
	padding: 10px 16px;
	color: #fff;
	background: var(--ttm-charcoal);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	font: inherit;
	font-weight: 950;
}

.ttm-page .copy-button {
	background: var(--ttm-accent);
}

.ttm-page .validation-message,
.ttm-page .copy-status,
.ttm-page .scenario-note {
	color: #9b3a2a;
	font-weight: 850;
}

.ttm-page .faq-section details {
	padding: 16px 0;
	border-bottom: 1px solid var(--ttm-line);
}

.ttm-page .faq-section summary {
	color: var(--ttm-ink);
	cursor: pointer;
	font-weight: 950;
}

@media (max-width: 1080px) {
	.ttm-page .ttm-hero,
	.ttm-page .tool-grid,
	.ttm-page .two-col {
		grid-template-columns: 1fr;
	}

	.ttm-page .result-panel {
		position: static;
	}

	.ttm-page .source-grid,
	.ttm-page .related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.ttm-page .field-grid,
	.ttm-page .result-grid,
	.ttm-page .module-grid,
	.ttm-page .method-grid,
	.ttm-page .source-grid,
	.ttm-page .related-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.ttm-page .ttm-hero,
	.ttm-page .ttm-tool,
	.ttm-page .ttm-section {
		padding: 18px;
	}

	.ttm-page .ttm-hero h1 {
		font-size: 42px;
	}
}
