#legacyBootFailure[hidden],
#legacyShareNotice[hidden],
#legacyShareRetry[hidden] {
	display: none !important;
}

#legacyBootFailure {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 24px;
	box-sizing: border-box;
	background: #07120e;
	color: #eef6f0;
}

.legacy-recovery-card {
	width: min(460px, 100%);
	margin: auto;
	padding: 24px;
	box-sizing: border-box;
	border: 1px solid #577367;
	border-radius: 20px;
	background: #13271e;
}

#legacyBootFailureMessage {
	margin: 0 0 20px;
	font-size: 1.1rem;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.legacy-recovery-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#legacyBootRetry,
#legacyBootExit,
#legacyShareRetry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	box-sizing: border-box;
	border: 1px solid #82b59b;
	border-radius: 12px;
	background: #183c2b;
	color: #eef6f0;
	font: inherit;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}

#legacyBootRetry:focus-visible,
#legacyBootExit:focus-visible,
#legacyShareRetry:focus-visible {
	outline: 3px solid #78f0b0;
	outline-offset: 3px;
}

#legacyShareNotice {
	width: 100%;
	box-sizing: border-box;
	padding: 12px;
	text-align: center;
}

#legacyShareMessage {
	margin: 0 0 8px;
	background: transparent;
	font-size: 0.9rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

#legacyShareRetry:disabled {
	opacity: 0.65;
	cursor: wait;
}
