.tempo-detector-page {
	padding: 0;
}

.tempo-detector {
	margin: 0 auto 40px;
	max-width: 960px;
	color: #17212f;
	text-align: left;
}

.td-header {
	padding: 30px 0 18px;
	text-align: center;
}

.td-header h1 {
	margin: 0 0 12px;
	color: #000;
}

.td-intro {
	margin: 0 auto 14px;
	max-width: 720px;
	color: #30425b;
	font-size: 1.08rem;
	line-height: 1.55;
}

.td-privacy {
	display: inline-block;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #cfe1dc;
	border-radius: 5px;
	background: #f0f8f5;
	color: #235144;
	font-size: .95rem;
	line-height: 1.45;
}

.td-section {
	margin: 0 0 18px;
	padding: 22px;
	border: 1px solid #d6e1ea;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 14px rgba(23, 33, 47, .07);
}

.td-section[hidden] {
	display: none;
}

.td-section h2 {
	margin: 0 0 14px;
	color: #17212f;
	font-size: 1.2rem;
	line-height: 1.3;
}

.td-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.td-dropzone {
	display: flex;
	min-height: 170px;
	padding: 24px;
	border: 2px dashed #9cb2c4;
	border-radius: 8px;
	background: #f7fafc;
	color: #30425b;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.td-dropzone[hidden] {
	display: none;
}

.td-dropzone:hover,
.td-dropzone:focus-within,
.td-dropzone.is-dragging {
	border-color: #0090c5;
	background: #eef8fb;
	box-shadow: 0 0 0 3px rgba(0, 144, 197, .12);
}

.td-dropzone-title {
	display: block;
	margin-bottom: 8px;
	font-size: 1.25rem;
	font-weight: 700;
}

.td-dropzone-subtitle,
.td-muted {
	color: #6a7a8d;
	font-size: .95rem;
	line-height: 1.45;
}

.td-upload-meta-row {
	display: flex;
	margin-top: 12px;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}

.td-upload-meta-row[hidden],
.td-file-meta[hidden],
.td-alternatives[hidden] {
	display: none;
}

.td-file-meta {
	margin: 0;
	color: #30425b;
	font-size: .95rem;
	line-height: 1.4;
	flex: 1 1 auto;
	min-width: 0;
}

.td-result-heading {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	justify-content: space-between;
}

.td-result-heading h2 {
	margin-bottom: 6px;
}

.td-result-heading p {
	margin: 0;
}

.td-result-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.td-bpm-card,
.td-metric-card {
	display: flex;
	min-height: 124px;
	padding: 18px;
	border-radius: 8px;
	background: #f7fafc;
	flex-direction: column;
	justify-content: center;
}

.td-bpm-card {
	background: #6a7a8d;
	color: #fff;
	text-align: center;
}

.td-bpm-value {
	font-size: 4rem;
	font-weight: 800;
	line-height: .95;
	font-variant-numeric: tabular-nums;
}

.td-bpm-label,
.td-metric-label {
	margin-top: 8px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.td-metric-label {
	margin: 0 0 8px;
	color: #6a7a8d;
}

.td-metric-card strong {
	color: #17212f;
	font-size: 1.2rem;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

.td-recalculate-button {
	align-self: stretch;
	padding-right: 12px;
	padding-left: 12px;
	text-transform: uppercase;
}

.td-alternatives {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.td-alternative {
	padding: 10px 12px;
	border-radius: 5px;
	background: #eef4f8;
	color: #30425b;
	font-size: .95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.td-manual-counter a {
	color: orange;
	text-decoration: none;
}

.td-help-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.td-help-grid h3 {
	margin: 0 0 8px;
	color: #17212f;
	font-size: 1rem;
}

.td-help-grid p {
	margin: 0;
	color: #30425b;
	font-size: .95rem;
	line-height: 1.45;
}

.td-button {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 5px;
	background: #30425b;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease;
}

.td-button:hover:not(:disabled),
.td-button:focus:not(:disabled) {
	background: #1f2d40;
}

.td-button-secondary {
	background: #6a7a8d;
}

.td-button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.td-status {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 5px;
	background: #eef4f8;
	color: #30425b;
	line-height: 1.45;
}

.td-status[hidden] {
	display: none;
}

.td-status.is-error {
	background: #fff0f0;
	color: #8a2020;
}

.td-status.is-success {
	background: #f0f8f5;
	color: #235144;
}

@media screen and (max-width: 860px) {
	.tempo-detector {
		margin-right: 12px;
		margin-left: 12px;
	}

	.td-result-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.td-help-grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 560px) {
	.td-section {
		padding: 18px;
	}

	.td-upload-meta-row,
	.td-result-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.td-result-grid {
		grid-template-columns: 1fr;
	}

	.td-bpm-value {
		font-size: 3.4rem;
	}

	.td-button {
		width: 100%;
	}
}
