/* Mobilism Downloads */
.mda-box { margin: 1.4em 0 1.8em; text-align: center; }

.mda-btn {
	box-sizing: border-box;
	position: relative;
	display: flex;
	width: 100%;
	margin: 0 auto;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	max-width: 440px;
	padding: 14px 28px;
	border-radius: 12px;
	background: var(--mz-accent, #0e7c4a);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(14, 124, 74, .25);
	transition: background .15s ease, transform .15s ease;
}
.mda-btn:hover { background: var(--mz-accent-dark, #0a5c37); transform: translateY(-1px); }
.mda-btn-sub { font-size: 13px; font-weight: 500; opacity: .85; }
.mda-btn .mda-bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 0;
	background: rgba(255, 255, 255, .7);
	transition: width .25s linear;
}
.mda-btn.is-waiting { cursor: progress; background: #374151; box-shadow: none; transform: none; }
.mda-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Stage 2 */
.mda-stage2 {
	text-align: center;
	margin: 0 0 1.6em;
}
.mda-start:disabled { opacity: .7; cursor: progress; }
.mda-progress {
	padding: 24px 16px;
	border: 1.5px solid var(--mz-accent-line, #b9e0c9);
	border-radius: 16px;
	background: var(--mz-accent-soft, #e9f6ef);
}
.mda-progress[hidden] { display: none; }
.mda-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 12px; }
.mda-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mda-ring circle { fill: none; stroke-width: 9; }
.mda-ring-bg { stroke: #e5e7eb; }
.mda-ring-fg { stroke: var(--mz-accent, #0e7c4a); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.mda-count {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 800;
	color: #111827;
}
.mda-status { font-weight: 600; margin: 0; }
.mda-fallback { margin: 10px 0 0; }
.mda-stage2.is-done .mda-count { color: var(--mz-accent, #0e7c4a); }
.mda-stage2.is-error .mda-status { color: #b91c1c; margin-top: 10px; }

.mda-area { margin: 0 0 1.4em; text-align: center; }
.mda-info td.mda-hash, .mda-hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.mda-info th { width: 34%; background: #f9fafb; }
.mda-error { color: #b91c1c; font-weight: 600; }
.mda-stage2.is-error .mda-ring { display: none; }
.mda-stage2.is-error .mda-progress { background: #fef2f2; border-color: #fca5a5; margin-top: 12px; padding: 12px; }
.mda-btn[hidden] { display: none !important; }
