.audio-loop-maker-page {
	padding: 0;
}

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

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

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

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

.alm-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;
}

.alm-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);
}

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

.alm-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.alm-zoom-controls {
	display: flex;
	margin: 24px 0 0;
	gap: 10px;
	align-items: center;
	justify-content: center;
	color: #30425b;
	font-size: .95rem;
	font-weight: 700;
}

.alm-export-jump {
	min-height: 36px;
	padding: 0 14px;
}

.alm-icon-button {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: #30425b;
	color: #fff;
	cursor: pointer;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
	transition: background-color .2s ease, opacity .2s ease;
}

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

.alm-icon-button:disabled {
	cursor: not-allowed;
	opacity: .45;
}

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

.alm-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;
}

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

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

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

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

.alm-suggestions > :not(.alm-suggestion) {
	justify-self: start;
	white-space: nowrap;
}

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

.alm-upload-meta-row[hidden] {
	display: none;
}

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

.alm-file-meta,
.alm-preview-time,
.alm-control-grid input,
.alm-crossfade-control output,
.alm-suggestion {
	font-variant-numeric: tabular-nums;
}

.alm-waveform-row {
	display: flex;
	gap: 14px;
	align-items: center;
}

.alm-preview-stack {
	display: flex;
	gap: 7px;
	align-items: center;
	flex: 0 0 auto;
	flex-direction: column;
}

.alm-wave-help {
	margin: 0 0 14px;
	color: #6a7a8d;
	font-size: .95rem;
	line-height: 1.45;
}

.alm-wave-toggle {
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #0090c5;
	color: #fff;
	cursor: pointer;
	flex: 0 0 48px;
	transition: background-color .2s ease, opacity .2s ease;
}

.alm-wave-toggle:hover:not(:disabled),
.alm-wave-toggle:focus:not(:disabled) {
	background: #007aa8;
}

.alm-wave-toggle:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.alm-wave-toggle-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 17px solid #fff;
	transform: translate(-38%, -50%);
}

.alm-wave-toggle.is-playing .alm-wave-toggle-icon {
	width: 17px;
	height: 17px;
	border: 0;
	background: #fff;
	transform: translate(-50%, -50%);
}

.alm-preview-time {
	color: #30425b;
	font-size: .85rem;
	font-weight: 700;
	font-family: Consolas, Monaco, "Courier New", monospace;
	line-height: 1;
	text-align: center;
	min-width: 48px;
}

.alm-waveform-shell {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.alm-waveform {
	position: relative;
	min-height: 112px;
	border: 1px solid #d6e1ea;
	border-radius: 5px;
	background: #f7fafc;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	cursor: default;
}

.alm-waveform-loading {
	position: absolute;
	inset: 1px;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	background: rgba(247, 250, 252, .92);
	color: #30425b;
	font-size: .95rem;
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

.alm-waveform-loading[hidden] {
	display: none;
}

.alm-waveform .alm-loop-region {
	cursor: pointer;
}

.alm-waveform ::part(cursor) {
	display: none;
}

.alm-playhead {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 5;
	width: 3px;
	background: #f4c430;
	box-shadow: 0 0 0 1px rgba(122, 89, 0, .35), 0 0 10px rgba(244, 196, 48, .5);
	pointer-events: none;
	transform: translateX(-50%);
}

.alm-suggestions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.alm-suggestion {
	min-height: 58px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px;
	background: #6a7a8d !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.alm-suggestion:hover,
.alm-suggestion:focus {
	background: #4f5d6d !important;
	box-shadow: 0 8px 20px rgba(48, 66, 91, .1);
	transform: translateY(-1px);
	outline: none;
}

.alm-suggestion.is-active {
	background: #0090c5 !important;
	box-shadow: none;
	transform: none;
}

.alm-suggestion.is-active:hover,
.alm-suggestion.is-active:focus {
	background: #0090c5 !important;
	box-shadow: none;
}

.alm-control-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.alm-control-grid label {
	display: flex;
	gap: 7px;
	flex-direction: column;
	color: #30425b;
	font-weight: 700;
}

.alm-control-grid input[type="number"],
.alm-control-grid input[type="text"] {
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #c6d6e2;
	border-radius: 5px;
	color: #17212f;
	font: inherit;
}

.alm-crossfade-control {
	display: flex;
	min-height: 44px;
	gap: 10px;
	align-items: center;
}

.alm-crossfade-control input {
	width: 100%;
}

.alm-crossfade-control output {
	min-width: 62px;
	color: #17212f;
	font-weight: 400;
	text-align: right;
}

.alm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.alm-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;
}

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

.alm-button-primary {
	background: #008760;
}

.alm-button-primary:hover:not(:disabled),
.alm-button-primary:focus:not(:disabled) {
	background: #006f4f;
}

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

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

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

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

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

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

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

	.alm-suggestions,
	.alm-control-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.alm-section-heading,
	.alm-waveform-row,
	.alm-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.alm-preview-stack {
		align-self: center;
	}

	.alm-wave-toggle {
		align-self: center;
	}

	.alm-suggestions,
	.alm-control-grid {
		grid-template-columns: 1fr;
	}

	.alm-suggestions > :not(.alm-suggestion) {
		white-space: normal;
	}

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