.audio-cutter-page {
	padding: 0;
}

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

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

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

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

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

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

.ac-section h3 {
	margin: 0 0 10px;
	color: #17212f;
	font-size: 1rem;
	line-height: 1.3;
}

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

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

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

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

.ac-dropzone[hidden],
.ac-upload-meta-row[hidden],
.ac-status[hidden],
.ac-waveform-empty[hidden],
.ac-waveform-loading[hidden],
.ac-selection-mask[hidden] {
	display: none;
}

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

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

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

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

.ac-file-meta,
.ac-preview-time,
.ac-selection-grid input,
.ac-selection-grid strong {
	font-variant-numeric: tabular-nums;
}

.ac-button {
	display: inline-flex;
	padding: 9px 14px;
	border: 1px solid #b9cad8;
	border-radius: 6px;
	background: #fff;
	color: #17212f;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.ac-button:hover,
.ac-button:focus {
	border-color: #0090c5;
	box-shadow: 0 0 0 3px rgba(0, 144, 197, .12);
}

.ac-button:disabled,
.ac-selection-grid input:disabled,
.ac-action-section input:disabled,
.ac-action-section select:disabled,
.ac-export-section select:disabled,
.ac-action-button:disabled {
	cursor: not-allowed;
	opacity: .58;
}

.ac-button-primary {
	border-color: #0090c5;
	background: #0090c5;
	color: #fff;
}

.ac-button-primary:hover,
.ac-button-primary:focus {
	background: #007fab;
	color: #fff;
}

.ac-button-secondary {
	background: #f7fafc;
}

.ac-preview-wave-row {
	display: grid;
	gap: 14px;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
}

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

.ac-waveform {
	position: relative;
	min-height: 126px;
}

.ac-result-waveform[hidden],
.ac-waveform[hidden] {
	display: none;
}

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

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

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

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

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

.ac-selection-mask {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	background: rgba(238, 244, 248, .74);
	pointer-events: none;
}

.ac-selection-mask-left {
	left: 0;
}

.ac-selection-mask-right {
	right: 0;
}

.ac-waveform-empty,
.ac-waveform-loading {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	padding: 18px;
	color: #6a7a8d;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
	line-height: 1.45;
	text-align: center;
	pointer-events: none;
}

.ac-waveform-loading {
	background: rgba(247, 250, 252, .86);
	color: #30425b;
	font-weight: 800;
	gap: 8px;
}

.ac-preview-bar {
	display: grid;
	margin-top: 14px;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
}

.ac-play-toggle {
	display: inline-flex;
	width: 54px;
	height: 54px;
	border: 0;
	border-radius: 50%;
	background: #0090c5;
	box-shadow: 0 8px 22px rgba(0, 144, 197, .25);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transition: background-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.ac-play-toggle:hover,
.ac-play-toggle:focus {
	background: #007fab;
	box-shadow: 0 0 0 4px rgba(0, 144, 197, .16), 0 8px 22px rgba(0, 144, 197, .25);
}

.ac-play-toggle:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.ac-play-icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 18px solid #fff;
}

.ac-play-toggle.is-playing .ac-play-icon {
	width: 18px;
	height: 20px;
	margin-left: 0;
	border: 0;
	background: linear-gradient(to right, #fff 0 35%, transparent 35% 65%, #fff 65% 100%);
}

.ac-preview-time {
	margin-bottom: 4px;
	color: #17212f;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
}

.ac-selection-grid,
.ac-action-grid,
.ac-export-grid {
	display: grid;
	margin-top: 16px;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-selection-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ac-selection-grid label,
.ac-selection-grid div,
.ac-action-card,
.ac-export-card {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #f7fafc;
}

.ac-selection-grid span,
.ac-action-control > span {
	color: #6a7a8d;
	font-size: .86rem;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.ac-selection-grid input,
.ac-action-control select {
	width: 100%;
	min-height: 36px;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid #b9cad8;
	border-radius: 5px;
	background: #fff;
	color: #17212f;
	font: inherit;
}

.ac-selection-grid strong {
	color: #17212f;
	font-size: 1.12rem;
	line-height: 1.2;
}

.ac-action-card {
	align-content: start;
}

.ac-action-button {
	display: inline-flex;
	min-height: 76px;
	width: 100%;
	border: 1px solid #0090c5;
	border-radius: 8px;
	background: #0090c5;
	color: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
	transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.ac-action-button:hover,
.ac-action-button:focus,
.ac-action-button.is-active {
	border-color: #007fab;
	background: #007fab;
	box-shadow: 0 0 0 4px rgba(0, 144, 197, .16);
}

.ac-fade-controls {
	display: grid;
	gap: 8px;
	margin-top: 2px;
}

.ac-check {
	display: flex;
	gap: 8px;
	align-items: center;
	color: #30425b;
	font-weight: 700;
	line-height: 1.3;
}

.ac-preview-actions {
	display: flex;
	margin-top: 20px;
	gap: 10px;
	flex-wrap: wrap;
}

.ac-download-jump {
	text-decoration: none;
}

.ac-download-jump:hover,
.ac-download-jump:focus {
	color: #fff;
	text-decoration: none;
}

.ac-export-ad {
	margin: 0 0 18px;
}

.ac-export-scroll-target {
	display: block;
	position: relative;
	top: -10px;
}

.ac-export-card {
	align-content: start;
}

.ac-export-card .ac-button {
	width: 100%;
	margin-top: 4px;
}

.ac-ad-login-message {
	margin: 8px 0 0;
	color: #6a7a8d;
	font-size: .92rem;
}

.ac-status {
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px solid #d6e1ea;
	border-radius: 6px;
	background: #f7fafc;
	color: #30425b;
	font-size: .95rem;
	line-height: 1.45;
}

.ac-status.is-error {
	border-color: #e2b3b3;
	background: #fff4f4;
	color: #8a2d2d;
}

.ac-status.is-success {
	border-color: #b8d9c7;
	background: #f0f8f5;
	color: #235144;
}

@media (max-width: 860px) {
	.ac-action-grid,
	.ac-export-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.audio-cutter {
		margin-bottom: 28px;
	}

	.ac-section {
		padding: 18px;
	}

	.ac-section-heading {
		display: block;
	}

	.ac-upload-meta-row,
	.ac-selection-grid,
	.ac-action-grid,
	.ac-export-grid {
		display: grid;
		grid-template-columns: 1fr;
	}

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

	.ac-preview-actions {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ac-preview-actions .ac-button {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

}
