* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	min-height: 100%;
}

body {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: var(--font-weight-normal);
	line-height: var(--leading-normal);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background:
		radial-gradient(circle at 90% -8%, rgba(255, 97, 39, 0.28), transparent 40%),
		radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.08), transparent 38%),
		linear-gradient(180deg, #090909 0%, #0d0d0d 100%);
	padding: 10px;
	min-height: 100svh;
	display: grid;
	place-items: center;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wizard-shell {
	width: min(var(--wizard-max-mobile), 100%);
	min-height: calc(100svh - 20px);
	max-height: calc(100svh - 20px);
	display: grid;
	grid-template-rows: auto auto auto 1fr auto;
	gap: 12px;
	padding: 16px 14px var(--step-safe-bottom);
	background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-1) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	overflow: hidden;
	position: relative;
}

.wizard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	min-height: 34px;
}

.wizard-brand {
	height: 26px;
	width: auto;
	max-width: 160px;
	display: block;
}

.wizard-header-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.wizard-step-chip {
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--border-soft);
	background: rgba(255, 255, 255, 0.06);
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-muted);
	white-space: nowrap;
}

.wizard-progress-wrap {
	display: grid;
	gap: 4px;
}

.wizard-progress-row {
	display: flex;
	align-items: center;
	width: 100%;
	height: 16px;
}

.wizard-progress-fill {
	height: 3px;
	background: var(--color-accent-gradient);
	border-radius: 999px;
	box-shadow: 0 0 8px rgba(255, 97, 39, 0.7);
	transition: width 0.25s ease;
}

.wizard-progress-rest {
	flex: 1;
	height: 2px;
	background: rgba(255, 255, 255, 0.36);
}

.wizard-progress-label {
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	color: var(--color-text-subtle);
}

.wizard-title-row h1 {
	font-size: var(--text-2xl);
	line-height: var(--leading-tight);
	font-weight: var(--font-weight-bold);
	letter-spacing: -0.01em;
}

.wizard-title-row p {
	margin-top: 6px;
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
	font-weight: var(--font-weight-normal);
	color: var(--muted);
}

.wizard-content {
	overflow: auto;
	padding-right: 2px;
	align-content: start;
	min-height: 0;
}

.wizard-content::-webkit-scrollbar {
	width: 4px;
}

.wizard-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
}

.wizard-footer {
	display: grid;
	gap: 8px;
	align-content: end;
}

.wizard-footer-actions {
	display: flex;
	gap: 8px;
}

.wizard-footer-actions .btn {
	flex: 1;
	min-height: var(--touch-target);
}

.wizard-footer-actions .btn-ghost {
	flex: 0 1 auto;
}

@media (min-width: 768px) {
	body {
		padding: 18px;
		overflow: auto;
	}

	.wizard-shell {
		width: min(var(--wizard-max-desktop), 100%);
		min-height: min(820px, calc(100svh - 36px));
		max-height: none;
		padding: 20px 18px var(--step-safe-bottom);
	}

	.wizard-title-row h1 {
		font-size: 1.75rem;
	}

	.wizard-footer-actions .btn-ghost {
		margin-right: auto;
		flex: 0 0 auto;
		min-width: 120px;
	}

	.wizard-footer-actions .btn-primary {
		flex: 0 0 auto;
		min-width: 160px;
		margin-left: auto;
	}
}

@media (max-width: 359px) {
	.wizard-footer-actions {
		flex-direction: column;
	}
}
