:root {
	--krea3-mi-theme: #1663d7;
	--krea3-mi-bg: #ffffff;
	--krea3-mi-text: #172033;
	--krea3-mi-muted: #59657a;
	--krea3-mi-line: #d9e0ea;
	--krea3-mi-panel: #ffffff;
	--krea3-mi-success: #16805d;
	--krea3-mi-accent: #f2b84b;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: #f4f7fb;
}

body {
	min-height: 100%;
	margin: 0;
	color: var(--krea3-mi-text);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--krea3-mi-theme) 12%, #ffffff), #f4f7fb 42%),
		var(--krea3-mi-bg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

button,
input,
textarea {
	font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--krea3-mi-accent);
	outline-offset: 3px;
}

.krea3-mi-installer-page {
	min-height: 100vh;
	padding: clamp(1rem, 3vw, 3rem);
	display: grid;
	align-items: center;
}

.krea3-mi-installer-page--embed {
	min-height: auto;
	padding: 1rem 0;
}

.krea3-mi-shell {
	width: min(100%, 980px);
	margin: 0 auto;
	display: grid;
	gap: 1rem;
}

.krea3-mi-card {
	border: 1px solid color-mix(in srgb, var(--krea3-mi-line) 88%, transparent);
	border-radius: 8px;
	background: color-mix(in srgb, var(--krea3-mi-panel) 96%, transparent);
	box-shadow: 0 18px 55px rgba(23, 32, 51, 0.11);
}

.krea3-mi-card--intro {
	padding: clamp(1.25rem, 4vw, 2.5rem);
}

.krea3-mi-card--steps {
	padding: clamp(1.25rem, 4vw, 2.25rem);
	display: grid;
	align-content: center;
	min-height: 420px;
}

.krea3-mi-installer-page.is-installed .krea3-mi-shell {
	width: min(100%, 520px);
	grid-template-columns: 1fr;
}

.krea3-mi-installer-page.is-installed .krea3-mi-card--intro {
	display: none;
}

.krea3-mi-installer-page.is-installed .krea3-mi-card--steps {
	min-height: 280px;
	text-align: center;
}

.krea3-mi-installer-page.is-installed .krea3-mi-view > svg {
	margin-right: auto;
	margin-left: auto;
}

.krea3-mi-logo {
	width: 76px;
	height: 76px;
	margin-bottom: 1.25rem;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid var(--krea3-mi-line);
	overflow: hidden;
}

.krea3-mi-logo--fallback {
	color: #ffffff;
	background: linear-gradient(135deg, var(--krea3-mi-theme), #16805d);
	font-weight: 800;
	font-size: 1.3rem;
}

.krea3-mi-logo__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.35rem;
}

.krea3-mi-card h1,
.krea3-mi-card h2 {
	margin: 0;
	color: var(--krea3-mi-text);
	line-height: 1.1;
	letter-spacing: 0;
}

.krea3-mi-card h1 {
	max-width: 12ch;
	font-size: clamp(2rem, 8vw, 4.2rem);
}

.krea3-mi-card h2 {
	font-size: clamp(1.35rem, 4vw, 2rem);
}

.krea3-mi-lead {
	max-width: 38rem;
	margin: 1rem 0 0;
	color: var(--krea3-mi-muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.krea3-mi-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
	padding: 0;
	margin: 1.5rem 0 0;
	list-style: none;
}

.krea3-mi-benefits li {
	min-width: 0;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	background: #f7f9fc;
	color: #263247;
	font-weight: 650;
}

.krea3-mi-benefits li::before {
	content: "\2713";
	width: 1.25rem;
	height: 1.25rem;
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	border-radius: 50%;
	color: #ffffff;
	background: var(--krea3-mi-success);
	font-size: 0.82rem;
}

.krea3-mi-view {
	animation: krea3MiIn 220ms ease-out both;
}

.krea3-mi-view[hidden] {
	display: none;
}

.krea3-mi-view p {
	margin: 0.8rem 0 0;
	color: var(--krea3-mi-muted);
}

.krea3-mi-view > svg {
	width: 58px;
	height: 58px;
	margin-bottom: 1rem;
	padding: 0.8rem;
	border-radius: 50%;
	fill: #ffffff;
	background: var(--krea3-mi-success);
}

.krea3-mi-loader {
	width: 52px;
	height: 52px;
	border: 4px solid #dbe5f2;
	border-top-color: var(--krea3-mi-theme);
	border-radius: 50%;
	animation: krea3MiSpin 900ms linear infinite;
}

.krea3-mi-button {
	width: 100%;
	margin-top: 1.35rem;
	border: 0;
	border-radius: 8px;
	padding: 1rem 1.1rem;
	color: #ffffff;
	background: var(--krea3-mi-theme);
	box-shadow: 0 14px 28px color-mix(in srgb, var(--krea3-mi-theme) 35%, transparent);
	font-weight: 800;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.krea3-mi-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 34px color-mix(in srgb, var(--krea3-mi-theme) 42%, transparent);
}

.krea3-mi-button:disabled {
	opacity: 0.58;
	cursor: wait;
	transform: none;
}

.krea3-mi-success {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	color: #0f513b;
	background: #dff6ec;
	font-weight: 750;
}

.krea3-mi-steps {
	display: grid;
	gap: 0.9rem;
	padding: 0;
	margin: 1.3rem 0 0;
	list-style: none;
	counter-reset: krea3-mi-step;
}

.krea3-mi-step {
	position: relative;
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem;
	border: 1px solid var(--krea3-mi-line);
	border-radius: 8px;
	background: #ffffff;
}

.krea3-mi-step:not(:last-child)::after {
	content: "\2193";
	position: absolute;
	left: 1.45rem;
	bottom: -1.05rem;
	color: var(--krea3-mi-theme);
	font-weight: 800;
}

.krea3-mi-step__number {
	width: 1.45rem;
	height: 1.45rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #ffffff;
	background: var(--krea3-mi-theme);
	font-weight: 800;
	font-size: 0.8rem;
}

.krea3-mi-step__icon {
	width: 2.4rem;
	height: 2.4rem;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: #edf4ff;
	color: var(--krea3-mi-theme);
}

.krea3-mi-step__icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: currentColor;
}

.krea3-mi-step__label {
	min-width: 0;
	font-weight: 720;
	color: #263247;
}

.krea3-mi-step__hint {
	justify-self: end;
	font-size: 1.35rem;
	font-weight: 900;
	color: var(--krea3-mi-theme);
}

.krea3-mi-qrcode {
	width: var(--krea3-mi-qr-size, 240px);
	max-width: 100%;
	margin-top: 1.2rem;
}

.krea3-mi-qrcode--center {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.krea3-mi-qrcode--left {
	margin-right: auto;
}

.krea3-mi-qrcode--right {
	margin-left: auto;
}

.krea3-mi-qrcode__svg {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(23, 32, 51, 0.14);
}

.krea3-mi-qrcode__text {
	margin: 0.75rem 0 0;
	color: var(--krea3-mi-muted);
	font-size: 0.95rem;
}

@media (min-width: 820px) {
	.krea3-mi-shell {
		grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
		align-items: stretch;
	}

	.krea3-mi-card--intro,
	.krea3-mi-card--steps {
		min-height: 620px;
	}
}

@media (max-width: 420px) {
	.krea3-mi-installer-page {
		padding: 0.75rem;
		align-items: start;
	}

	.krea3-mi-card h1 {
		max-width: 11ch;
	}

	.krea3-mi-benefits {
		grid-template-columns: 1fr;
	}

	.krea3-mi-step {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.krea3-mi-step__icon {
		grid-row: span 2;
	}

	.krea3-mi-step__number {
		position: absolute;
		top: 0.5rem;
		right: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@keyframes krea3MiIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes krea3MiSpin {
	to {
		transform: rotate(360deg);
	}
}
