.audio-joiner-page {
	padding-bottom: 30px;
}

.audio-joiner-page .aleft {
	text-align: left !important;
}

.audio-joiner [hidden] {
	display: none !important;
}

.audio-joiner {
	--ajm-blue: #1877b8;
	--ajm-blue-dark: #0f5f99;
	--ajm-blue-light: #eaf5fc;
	--ajm-orange: #e85d04;
	--ajm-red: #b42318;
	--ajm-green: #176b3a;
	--ajm-border: #d6e1e8;
	--ajm-text: #1c2b36;
	--ajm-muted: #60717d;
	max-width: 920px;
	margin: 0 auto;
	color: var(--ajm-text);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.ajm-header {
	margin-bottom: 24px;
	text-align: center;
}

.ajm-header .entry-title {
	margin-bottom: 10px;
}

.ajm-intro {
	max-width: 720px;
	margin: 0 auto 12px;
	font-size: 18px;
}

.ajm-card {
	margin: 0 0 20px;
	padding: 22px;
	border: 1px solid var(--ajm-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(35, 66, 86, .07);
}

.ajm-card h2 {
	margin: 0 0 15px;
	color: var(--ajm-text);
	font-size: 20px;
}

.ajm-card h2 > span {
	display: inline-flex;
	width: 28px;
	height: 28px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--ajm-blue);
	color: #fff;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	vertical-align: 2px;
}

.ajm-section-heading {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	justify-content: space-between;
}

.ajm-section-heading h2 {
	margin-bottom: 4px;
}

.ajm-section-heading p {
	margin: 0 0 15px;
	color: var(--ajm-muted);
	font-size: 14px;
}

.ajm-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ajm-dropzone {
	display: flex;
	min-height: 145px;
	box-sizing: border-box;
	padding: 24px;
	border: 2px dashed #8ab5d2;
	border-radius: 9px;
	background: #f7fbfe;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	transition: background-color .2s, border-color .2s, transform .2s;
}

.ajm-dropzone:hover,
.ajm-dropzone.is-dragging,
.ajm-file-input:focus + .ajm-dropzone {
	border-color: var(--ajm-blue);
	background: var(--ajm-blue-light);
}

.ajm-dropzone.is-dragging {
	transform: scale(1.01);
}

.ajm-dropzone-title {
	color: #174f75;
	font-size: 19px;
	font-weight: 700;
}

.ajm-dropzone-subtitle {
	margin-top: 7px;
	color: var(--ajm-muted);
	font-size: 14px;
}

.ajm-tool-ad {
	max-width: 740px;
	margin: 12px auto 20px;
	text-align: center;
}

.ajm-ad-login-message {
	margin-top: 6px;
	font-size: 13px;
}

.ajm-status {
	margin-top: 14px;
	padding: 10px 12px;
	border: 1px solid #bed9eb;
	border-radius: 6px;
	background: #eef6fc;
	color: #225d83;
	font-size: 14px;
}

.ajm-status.is-error {
	border-color: #f0bbb6;
	background: #fff0ef;
	color: var(--ajm-red);
}

.ajm-status.is-success {
	border-color: #b9dfc6;
	background: #edf8f1;
	color: var(--ajm-green);
}

.ajm-file-list {
	display: grid;
	margin: 0;
	padding: 0;
	gap: 13px;
	list-style: none;
}

.ajm-file-item {
	position: relative;
	margin: 0;
	padding: 15px;
	border: 1px solid #cbd9e2;
	border-radius: 8px;
	background: #f8fafb;
	transition: border-color .15s, box-shadow .15s, opacity .15s;
}

.ajm-file-item.is-dragging {
	opacity: .45;
}

.ajm-file-item.is-drop-target {
	border-color: var(--ajm-blue);
	box-shadow: 0 0 0 3px rgba(24, 119, 184, .14);
}

.ajm-file-header {
	display: grid;
	gap: 10px;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
}

.ajm-drag-handle {
	display: inline-flex;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #b9cad6;
	border-radius: 6px;
	background: #fff;
	color: #fff !important;
	cursor: grab;
	align-items: center;
	justify-content: center;
	font-size: 22px !important;
	font-weight: 700;
	line-height: 1;
}

.ajm-drag-handle:active {
	cursor: grabbing;
}

.ajm-drag-handle .fa {
	color: inherit;
	font-size: inherit;
}

.ajm-file-title {
	min-width: 0;
}

.ajm-file-name {
	display: block;
	overflow: hidden;
	color: var(--ajm-text);
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ajm-file-meta {
	display: flex;
	margin-top: 3px;
	gap: 8px;
	color: var(--ajm-muted);
	font-size: 12px;
	flex-wrap: wrap;
}

.ajm-file-actions {
	display: flex;
	gap: 5px;
}

.ajm-icon-button {
	display: inline-flex;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #b9cad6;
	border-radius: 5px;
	background: #fff;
	color: #fff !important;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font-size: 22px !important;
	font-weight: 700;
}

.ajm-icon-button:hover,
.ajm-icon-button:focus {
	border-color: var(--ajm-blue);
	color: #fff !important;
}

.ajm-icon-button:disabled {
	cursor: not-allowed;
	opacity: .4;
}

.ajm-remove-button {
	color: #fff !important;
}

.ajm-wave-row {
	display: grid;
	margin-top: 13px;
	gap: 14px;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
}

.ajm-item-player {
	display: flex;
	gap: 7px;
	align-items: center;
	flex-direction: column;
}

.ajm-item-time {
	color: var(--ajm-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
}

.ajm-play-button {
	display: inline-flex;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ajm-blue);
	box-shadow: 0 3px 8px rgba(24, 119, 184, .25);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.ajm-play-button:hover:not(:disabled),
.ajm-play-button:focus:not(:disabled) {
	background: var(--ajm-blue-dark);
}

.ajm-play-button:disabled {
	cursor: not-allowed;
	opacity: .5;
}

.ajm-play-button span {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 15px solid #fff;
}

.ajm-play-button.is-playing span {
	width: 16px;
	height: 18px;
	margin: 0;
	border: 0;
	box-shadow: inset 5px 0 #fff, inset -5px 0 #fff;
}

.ajm-waveform-shell {
	position: relative;
	min-height: 126px;
	overflow: hidden;
	border: 1px solid #d6e1ea;
	border-radius: 8px;
	background: #f7fafc;
}

.ajm-waveform {
	position: relative;
	min-height: 126px;
	cursor: pointer;
}

.ajm-waveform ::part(region) {
	cursor: pointer;
	z-index: 4;
}

.ajm-waveform ::part(region-handle-left),
.ajm-waveform ::part(region-handle-right) {
	width: 5px;
	background: #eea541;
	cursor: ew-resize;
}

.ajm-waveform ::part(region-drag-flap) {
	position: absolute;
	top: 50%;
	display: flex;
	width: 14px;
	height: 38px;
	border: 1px solid #d88c24;
	background: #eea541;
	color: #17212f;
	cursor: ew-resize;
	align-items: center;
	justify-content: center;
	font-size: 8px;
	font-weight: 800;
	line-height: 1;
	text-orientation: upright;
	user-select: none;
	writing-mode: vertical-rl;
	transform: translateY(-50%);
}

.ajm-waveform ::part(region-drag-flap-left) {
	left: 5px;
	border-radius: 0 3px 3px 0;
}

.ajm-waveform ::part(region-drag-flap-right) {
	right: 5px;
	border-radius: 3px 0 0 3px;
}

.ajm-waveform-loading {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	padding: 18px;
	background: rgba(247, 250, 252, .86);
	color: #30425b;
	pointer-events: none;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.45;
	text-align: center;
}

.audio-joiner.is-busy .ajm-waveform {
	pointer-events: none;
}

.ajm-transition-detail label,
.ajm-edge-fades > label:not(.ajm-check),
.ajm-export-settings label {
	display: flex;
	gap: 5px;
	flex-direction: column;
	color: #405867;
	font-size: 13px;
	font-weight: 700;
}

.ajm-transition-detail input,
.ajm-transition-detail select,
.ajm-edge-fades select,
.ajm-export-settings select {
	width: 100%;
	min-height: 40px;
	box-sizing: border-box;
	padding: 7px 9px;
	border: 1px solid #aebfca;
	border-radius: 5px;
	background: #fff;
	color: var(--ajm-text);
	font: inherit;
}
.ajm-transition-options {
	display: grid;
	gap: 11px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ajm-transition-card {
	display: grid;
	position: relative;
	min-height: 96px;
	box-sizing: border-box;
	padding: 17px;
	border: 2px solid #dbe4e9;
	border-radius: 8px;
	background: #f8fafb;
	cursor: pointer;
	align-content: start;
}

.ajm-transition-card:hover {
	border-color: #9fc9e4;
	background: #f4f9fc;
}

.ajm-transition-card:has(input:checked) {
	border-color: var(--ajm-blue);
	background: #f1f8fd;
}

.ajm-transition-card:has(input:focus-visible) {
	outline: 3px solid rgba(24, 119, 184, .24);
	outline-offset: 2px;
}

.ajm-transition-card input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ajm-transition-card strong {
	font-size: 16px;
}

.ajm-transition-card small {
	margin-top: 4px;
	color: var(--ajm-muted);
	font-size: 13px;
	line-height: 1.35;
}

.ajm-transition-detail,
.ajm-edge-fades {
	display: grid;
	margin-top: 14px;
	padding: 15px;
	border: 1px solid #dbe4e9;
	border-radius: 7px;
	background: #f8fafb;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ajm-edge-fades {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, .8fr);
	align-items: center;
}

.ajm-check {
	display: flex;
	gap: 8px;
	cursor: pointer;
	align-items: center;
	font-weight: 700;
}

.ajm-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ajm-blue);
}

.ajm-summary-grid,
.ajm-result-details {
	display: grid;
	margin: 0;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ajm-summary-grid div,
.ajm-result-details div {
	padding: 11px;
	border-radius: 6px;
	background: #f3f7f9;
}

.ajm-summary-grid dt,
.ajm-result-details dt {
	margin-bottom: 3px;
	color: var(--ajm-muted);
	font-size: 12px;
	font-weight: 600;
}

.ajm-summary-grid dd,
.ajm-result-details dd {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.ajm-preview-player {
	display: grid;
	margin-top: 17px;
	gap: 15px;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
}

.ajm-preview-track input {
	width: 100%;
	accent-color: var(--ajm-blue);
}

.ajm-preview-time {
	margin-top: 4px;
	color: var(--ajm-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.ajm-export-settings {
	display: flex;
	gap: 12px;
	align-items: end;
	justify-content: center;
	flex-wrap: wrap;
}

.ajm-export-settings label {
	width: 180px;
}

.ajm-button {
	display: inline-flex;
	min-height: 42px;
	box-sizing: border-box;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--ajm-blue);
	color: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s, opacity .2s, transform .1s;
}

.ajm-button:hover:not(:disabled),
.ajm-button:focus:not(:disabled) {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ajm-button:disabled {
	cursor: not-allowed;
	opacity: .5;
	transform: none;
}

.ajm-button-primary {
	min-height: 48px;
	padding: 13px 23px;
	background: var(--ajm-orange);
	font-size: 16px;
}

.ajm-button-primary:hover:not(:disabled),
.ajm-button-primary:focus:not(:disabled) {
	background: #c94f00;
}

.ajm-button-secondary:hover:not(:disabled),
.ajm-button-secondary:focus:not(:disabled) {
	background: var(--ajm-blue-dark);
}

.ajm-button-danger {
	background: var(--ajm-red);
}

.ajm-progress {
	margin-top: 18px;
}

.ajm-progress-track {
	height: 12px;
	overflow: hidden;
	border-radius: 20px;
	background: #e3e9ed;
}

.ajm-progress-bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ajm-blue), #44a2df);
	transition: width .2s ease;
}

.ajm-progress-row {
	display: flex;
	margin-top: 7px;
	color: var(--ajm-muted);
	font-size: 13px;
	justify-content: space-between;
}

.ajm-result {
	margin-top: 18px;
	padding: 18px;
	border: 1px solid #b9dfc6;
	border-radius: 8px;
	background: #edf8f1;
}

.ajm-result h3 {
	margin: 0 0 13px;
	color: var(--ajm-green);
}

.ajm-result-details {
	margin-bottom: 16px;
}

.ajm-result-details div {
	background: rgba(255, 255, 255, .7);
}

.ajm-result .ajm-button {
	display: flex;
	width: max-content;
	margin: 0 auto;
}

@media (max-width: 780px) {
	.ajm-transition-options,
	.ajm-edge-fades {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.audio-joiner {
		font-size: 15px;
	}

	.ajm-card {
		padding: 17px;
	}

	.ajm-section-heading,
	.ajm-export-settings {
		align-items: stretch;
		flex-direction: column;
	}

	.ajm-section-heading .ajm-button,
	.ajm-export-settings label,
	.ajm-export-settings .ajm-button {
		width: 100%;
	}

	.ajm-file-header {
		grid-template-columns: 38px minmax(0, 1fr);
	}

	.ajm-file-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}

	.ajm-transition-detail,
	.ajm-summary-grid,
	.ajm-result-details {
		grid-template-columns: 1fr;
	}

	.ajm-wave-row {
		grid-template-columns: 54px minmax(0, 1fr);
	}

	.ajm-wave-row .ajm-play-button {
		width: 44px;
		height: 44px;
	}

	.ajm-result .ajm-button {
		width: 100%;
	}
}
