:root {
	--bg: #f7f5f1;
	--card: #ffffff;
	--text: #1d2421;
	--muted: #5b6662;
	--border: #e2ded6;
	--accent: #2f7d6d;
	--accent-text: #ffffff;
	--ok: #1f7a4d;
	--ok-bg: #e5f4ec;
	--warn-bg: #fbf0dc;
	--r: 14px;
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121614;
		--card: #1b211e;
		--text: #e9eeeb;
		--muted: #a6b1ac;
		--border: #2c3531;
		--accent: #4fb39c;
		--accent-text: #0d1311;
		--ok: #7fd3a8;
		--ok-bg: #16322a;
		--warn-bg: #2e2413;
	}
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	-webkit-text-size-adjust: 100%;
}
main {
	max-width: 560px;
	margin: 0 auto;
	padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
}
.top {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
}
h1 {
	font-size: 1.4rem;
	margin: 0 0 4px;
}
h2 {
	font-size: 1.08rem;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
p {
	margin: 0 0 12px;
}
.muted {
	color: var(--muted);
}
.small {
	font-size: 0.9rem;
}
.steps {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.step {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 14px 16px;
}
.step.current {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}
.step .body {
	margin-top: 12px;
}
.n {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	background: var(--border);
	font-size: 0.9rem;
	font-weight: 700;
	flex: none;
}
.step.current .n {
	background: var(--accent);
	color: var(--accent-text);
}
.step.done .n {
	background: var(--ok-bg);
	color: var(--ok);
}
.step.done .n::before {
	content: '✓';
}
.step.done .n {
	font-size: 0;
}
.step.done .n::before {
	font-size: 0.95rem;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 18px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.btn.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-text);
}
.btn.big {
	width: 100%;
	min-height: 56px;
	font-size: 1.1rem;
}
.btn:focus-visible,
.link:focus-visible,
h2:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.howto {
	padding-left: 1.2rem;
	margin: 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.notice {
	border-radius: 12px;
	padding: 12px 14px;
	background: var(--warn-bg);
	margin: 0 0 12px;
}
.notice.ok {
	background: var(--ok-bg);
}
.notice ul {
	margin: 0 0 8px;
	padding-left: 1.2rem;
}
.help {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--r);
	padding: 12px 16px;
	margin-bottom: 16px;
}
.help summary {
	cursor: pointer;
	font-weight: 600;
}
.help ul {
	padding-left: 1.2rem;
	margin: 10px 0 0;
}
code {
	font-size: 0.95em;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--border);
}
.link {
	background: none;
	border: 0;
	color: var(--accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
@media (prefers-reduced-motion: no-preference) {
	.step {
		transition: border-color 0.2s;
	}
}
