:root {
	color-scheme: light dark;
	--bg: #f5f6f8;
	--card: #ffffff;
	--text: #1a1d21;
	--muted: #6b7280;
	--border: #e2e5ea;
	--accent: #4f46e5;
	--accent-text: #ffffff;
	--error: #dc2626;
	--ok: #16a34a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1115;
		--card: #191c22;
		--text: #e6e8eb;
		--muted: #9aa1ab;
		--border: #2a2e37;
		--accent: #6366f1;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font:
		15px/1.5 system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		sans-serif;
}

.shell {
	max-width: 460px;
	margin: 0 auto;
	padding: 48px 20px 64px;
}

h1 {
	font-size: 1.5rem;
	margin: 0 0 20px;
}

h2 {
	font-size: 1rem;
	margin: 0 0 12px;
}

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
}

.tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.tabs button {
	flex: 1;
	background: transparent;
	border: 1px solid var(--border);
	color: var(--muted);
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
}

.tabs button.active {
	border-color: var(--accent);
	color: var(--text);
	font-weight: 600;
}

label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.85rem;
	color: var(--muted);
}

input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 9px 11px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
	font-size: 0.95rem;
}

input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 0;
	border-color: transparent;
}

button[type='submit'],
.ghost {
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 0.95rem;
	cursor: pointer;
}

button[type='submit'] {
	background: var(--accent);
	color: var(--accent-text);
	font-weight: 600;
	width: 100%;
}

button[type='submit']:disabled {
	opacity: 0.6;
	cursor: default;
}

.ghost {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--muted);
}

.row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.big {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 2px 0;
}

.muted {
	color: var(--muted);
	font-size: 0.85rem;
}

.error {
	color: var(--error);
	font-size: 0.85rem;
	margin: 0 0 12px;
}

.ok {
	color: var(--ok);
	font-size: 0.85rem;
	margin: 0 0 12px;
}
