/* AI Suli – zárt alkalmazás. Saját betűkészlet nincs: rendszerbetű, külső kérés nélkül (GDPR). */

:root {
	--bg: #f6f5fb;
	--surface: #ffffff;
	--surface-2: #f0eefa;
	--text: #1d1b2e;
	--muted: #6b6880;
	--line: #e3e0f0;
	--brand: #4338ca;
	--brand-ink: #ffffff;
	--brand-soft: #e7e5ff;
	--sun: #f59e0b;
	--sun-soft: #fff4dc;
	--mint: #059669;
	--mint-soft: #dcf7ec;
	--coral: #e11d48;
	--coral-soft: #ffe4ea;
	--sky: #0284c7;
	--sky-soft: #e0f2fe;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(29, 27, 46, .06), 0 8px 24px rgba(29, 27, 46, .06);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12111c;
		--surface: #1c1a2b;
		--surface-2: #252338;
		--text: #eceaf6;
		--muted: #a19db8;
		--line: #322f48;
		--brand: #8b85ff;
		--brand-ink: #12111c;
		--brand-soft: #2a2752;
		--sun-soft: #3a2c10;
		--mint-soft: #0f3326;
		--coral-soft: #3d1420;
		--sky-soft: #0c2a3d;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
button { font: inherit; }

/* ---------- Felső sáv ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 24px;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -.01em;
	white-space: nowrap;
	color: var(--text);
	text-decoration: none;
}

.logo-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--brand);
	color: var(--brand-ink);
	font-size: 18px;
}

.crumb { color: var(--muted); font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 14px; }

.badge-env {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--sun-soft);
	color: var(--sun);
}

/* ---------- Gombok ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, black); }
.btn-big { min-height: 64px; padding: 14px 32px; font-size: 20px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--coral); }

/* ---------- Oldalváz ---------- */

.page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 24px 64px;
}

.page h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.page h2 { font-size: 20px; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 60ch; }

/* ---------- Kezdőképernyő kártyái ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	min-height: 220px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	color: var(--text);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29, 27, 46, .08), 0 16px 36px rgba(29, 27, 46, .1); }
.card .icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	font-size: 28px;
}
.card h2 { margin-top: 6px; }
.card p { margin: 0; color: var(--muted); }
.card .go { margin-top: auto; font-weight: 700; color: var(--brand); }
.card.dev .icon { background: var(--sky-soft); }
.card.program .icon { background: var(--sun-soft); }
.card.admin .icon { background: var(--mint-soft); }
.card.locked { opacity: .5; pointer-events: none; }

/* ---------- Panelek ---------- */

.panel {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	margin-bottom: 20px;
}
.panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head .muted { margin-left: auto; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Fejlesztési áttekintő ---------- */

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 4px 0 16px; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }

.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}
.tasks li:first-child { border-top: 0; }
.tasks .t { flex: 1; }
.tasks .owner { color: var(--muted); font-size: 13px; white-space: nowrap; }

.pill {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.pill.kesz { background: var(--mint-soft); color: var(--mint); }
.pill.folyamatban { background: var(--sky-soft); color: var(--sky); }
.pill.kovetkezo { background: var(--sun-soft); color: var(--sun); }
.pill.kesobb { background: var(--surface-2); color: var(--muted); }

.questions { margin: 0; padding-left: 20px; }
.questions li { margin: 6px 0; }

/* ---------- Tananyagtérkép ---------- */

.card.curriculum .icon { background: var(--brand-soft); }
.card.parent .icon { background: var(--coral-soft); }
.card.chapter .icon { background: var(--mint-soft); }
.card.chapter .btn:disabled { opacity: .55; cursor: default; }

.who-list { display: flex; flex-wrap: wrap; gap: 8px; }
.who-chip {
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.who-chip.on { border-color: var(--brand); background: var(--brand-soft); }
.alert-list { margin: 0; padding-left: 20px; color: var(--coral); }
.alert-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); white-space: nowrap; }
.card.chapter:hover { transform: none; }

/* „Kezdd itt” – a használati útmutató kiemelt doboza */
.guide-callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 2px solid var(--brand);
	border-radius: 20px;
	background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%);
	color: var(--text);
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(67, 56, 202, .12);
	transition: transform .15s, box-shadow .15s;
}
.guide-callout:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(67, 56, 202, .18); }
.guide-callout:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.guide-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface); font-size: 28px; box-shadow: 0 2px 8px rgba(29, 27, 46, .08); }
.guide-body { display: grid; gap: 2px; min-width: 0; }
.guide-body b { font-size: 18px; }
.guide-body .muted { font-size: 14px; line-height: 1.4; }
.guide-kicker { color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.guide-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 20px; font-weight: 900; }
@media (max-width: 420px) {
	.guide-callout { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
	.guide-go { display: none; }
	.guide-icon { width: 44px; height: 44px; font-size: 24px; }
}

/* Megjelenítés-választó: rajzos (2D) / térbeli (3D) */
.view-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.view-option {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 14px;
	padding: 12px 14px 12px 12px;
	border: 2px solid var(--line);
	border-radius: 20px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.view-option:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29, 27, 46, .08); }
.view-option.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px rgba(67, 56, 202, .12); }
.view-option:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.view-option:disabled { opacity: .55; cursor: not-allowed; }
.view-body { display: grid; gap: 4px; min-width: 0; }
.view-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; }
.view-title b { padding: 1px 7px; border-radius: 7px; background: var(--text); color: var(--surface); font-size: 12px; letter-spacing: .05em; }
.view-badge { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--mint-soft); color: var(--mint); }
.view-badge.v3d { background: #e0f2fe; color: #0369a1; }
.view-badge.v2d { background: #f1f0f5; color: #6b6880; }
.view-desc { color: var(--muted); font-size: 14px; line-height: 1.4; }
.view-check { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; color: #fff; font-weight: 900; font-size: 15px; }
.view-option.on .view-check { border-color: var(--brand); background: var(--brand); }

/* Kis előnézeti kép: lapos rajz vs. térbeli, árnyékolt táj */
.view-art { position: relative; display: block; height: 78px; border-radius: 14px; overflow: hidden; background: #bfe8ff; }
.view-art i { position: absolute; display: block; }
.view-art .va-sun { top: 10px; right: 14px; width: 18px; height: 18px; border-radius: 50%; background: #ffd23f; }
.view-art .va-hill { bottom: -26px; width: 90px; height: 60px; border-radius: 50%; }
.view-art .va-hill.a { left: -20px; background: #7cc576; }
.view-art .va-hill.b { right: -26px; bottom: -32px; background: #5fae58; }
.view-art .va-frog { left: 44px; bottom: 12px; width: 22px; height: 16px; border-radius: 50% 50% 45% 45%; background: #7dc352; }
.view-art.v3d { background: linear-gradient(#6ec3f5, #d5f1ff 75%); perspective: 120px; }
.view-art.v3d::after { content: ''; position: absolute; left: -30%; right: -30%; bottom: -12px; height: 44px; background: linear-gradient(#8ad07a, #4f9c46); transform: rotateX(55deg); transform-origin: bottom; }
.view-art.v3d .va-sun { background: radial-gradient(circle at 35% 35%, #fff6c2, #ffcf33 60%, #f59e0b); box-shadow: 0 0 16px 4px rgba(255, 210, 63, .6); }
.view-art.v3d .va-hill { z-index: 1; background: radial-gradient(circle at 40% 30%, #9be08a, #4f9c46 70%); }
.view-art.v3d .va-hill.b { background: radial-gradient(circle at 40% 30%, #86d374, #3f8a3a 70%); }
.view-art.v3d .va-frog { z-index: 2; bottom: 14px; background: radial-gradient(circle at 35% 30%, #c4f0a0, #6cb342 55%, #3f7f22); box-shadow: 0 7px 5px -3px rgba(0, 0, 0, .35); }
.view-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 12px; font-size: 13px; }
.view-chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 700; }
.view-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
@media (max-width: 620px) {
	.view-options { grid-template-columns: 1fr; }
	.view-option { grid-template-columns: 84px minmax(0, 1fr) 26px; gap: 12px; }
	.view-art { height: 66px; }
}
@media (max-width: 420px) {
	.view-option { position: relative; grid-template-columns: 1fr; gap: 10px; padding: 10px; }
	.view-art { height: 84px; }
	.view-check { position: absolute; top: 18px; right: 18px; background: rgba(255, 255, 255, .85); }
}

.heat { font-size: 13px; min-width: 640px; }
.heat th, .heat td { padding: 4px; text-align: center; border-top: 1px solid var(--line); }
.heat thead th { border-top: 0; }
.heat tbody th { text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; font-size: 13px; }
.heat-cell {
	width: 100%;
	min-width: 34px;
	height: 30px;
	border: 0;
	border-radius: 8px;
	background: color-mix(in srgb, var(--brand) calc(var(--heat) * 100%), transparent);
	color: var(--text);
	font-weight: 700;
	cursor: pointer;
}
.heat-cell:hover { outline: 2px solid var(--brand); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters .field input { min-height: 40px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; flex: 1 1 100%; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }

.domain .domain-desc { margin: -6px 0 12px; }

.skill {
	padding: 16px;
	margin-top: 12px;
	border: 1px solid var(--line);
	border-left: 5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	transition: box-shadow .3s ease;
}
.skill.v-benne { border-left-color: var(--mint); }
.skill.v-kerdeses { border-left-color: var(--sun); }
.skill.v-kihagy { border-left-color: var(--coral); }
.skill.flash { box-shadow: 0 0 0 3px var(--brand); }
.skill-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.skill h3 { margin: 0; font-size: 17px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.age { background: var(--sky-soft); color: var(--sky); }
.badge.beta { background: var(--sun-soft); color: var(--sun); }
.examples { margin: 10px 0 6px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.examples li { margin: 2px 0; }
.prereq { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }

.review { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg-btn {
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.seg-btn:hover { background: var(--surface-2); }
.seg-btn.benne.on { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }
.seg-btn.kerdeses.on { background: var(--sun-soft); border-color: var(--sun); color: var(--sun); }
.seg-btn.kihagy.on { background: var(--coral-soft); border-color: var(--coral); color: var(--coral); }
.seg-btn.star.on { background: var(--sun-soft); border-color: var(--sun); color: var(--sun); }
.counts { margin-left: auto; white-space: pre; }

.comment-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.comment-row textarea {
	flex: 1;
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 14px;
	resize: vertical;
}
.save-status { display: block; min-height: 18px; margin-top: 4px; font-size: 13px; }
.others { margin: 6px 0 0; padding: 10px 12px 10px 28px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.others li { margin: 3px 0; }
.others .quote { color: var(--muted); }

/* ---------- Dokumentumok ---------- */

.doc-list { margin: 0; padding-left: 20px; }
.doc-list li { margin: 6px 0; }
.doc-list a { font-weight: 600; }

.doc { margin-top: 16px; padding: clamp(18px, 4vw, 40px); line-height: 1.65; overflow-wrap: anywhere; min-width: 0; }
.doc table { overflow-wrap: normal; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: clamp(24px, 3.5vw, 30px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
.doc h3 { font-size: 21px; margin: 36px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc h4 { font-size: 17px; margin: 26px 0 8px; }
.doc h5, .doc h6 { font-size: 15px; margin: 20px 0 6px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc li input { margin-right: 8px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: .9em; }
.doc pre { overflow-x: auto; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 14px; padding: 4px 16px; border-left: 4px solid var(--brand); color: var(--muted); }
.doc .table-wrap { margin: 0 0 18px; }
.doc-img { display: block; max-width: 100%; height: auto; margin: 8px 0 18px; border-radius: var(--radius-sm); background: #fff; }
.doc table { font-size: 14px; }
.doc td, .doc th { vertical-align: top; }

/* ---------- Program ---------- */

.program-hero {
	display: grid;
	place-items: center;
	text-align: center;
	gap: 18px;
	padding: 56px 24px;
	border-radius: 28px;
	background:
		radial-gradient(circle at 15% 20%, var(--sun-soft) 0 18%, transparent 19%),
		radial-gradient(circle at 85% 80%, var(--sky-soft) 0 22%, transparent 23%),
		var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.program-hero .big-emoji { font-size: 72px; line-height: 1; }
.program-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* A teljes képernyős „színpad” – ide kerül majd a kaland. */
.stage {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
	background: linear-gradient(160deg, #3b2fb8 0%, #6d28d9 55%, #db2777 100%);
	color: #fff;
	text-align: center;
}
.stage .bubble {
	max-width: 560px;
	padding: 28px 32px;
	border-radius: 28px;
	background: rgba(255, 255, 255, .14);
	backdrop-filter: blur(6px);
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 700;
}
.stage .bubble small { display: block; margin-top: 10px; font-size: 16px; font-weight: 500; opacity: .85; }
.scene {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 8px;
	width: min(720px, 100%);
}
.scene .speech { position: relative; margin-bottom: 14px; }
.scene .speech::after {
	content: "";
	position: absolute;
	bottom: -14px;
	left: 50%;
	border: 14px solid transparent;
	border-top-color: rgba(255, 255, 255, .14);
	border-bottom: 0;
	transform: translateX(-50%);
}

.stage .exit {
	position: absolute;
	top: max(16px, env(safe-area-inset-top));
	right: 16px;
	background: rgba(255, 255, 255, .18);
	border-color: transparent;
	color: #fff;
}
.stage .exit:hover { background: rgba(255, 255, 255, .28); }
.stage .pause {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(18, 17, 28, .72);
}
.stage .pause[hidden] { display: none; }
.pause-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.pause-actions .btn:not(.btn-primary) { background: rgba(255, 255, 255, .9); color: #1d1b2e; }

/* ---------- Admin ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; font-weight: 600; border-top: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
}
.note { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--sun-soft); font-size: 14px; margin-bottom: 14px; }
.error { color: var(--coral); font-size: 14px; margin-top: 8px; }

/* ---------- Nyilvános oldalak: regisztráció, tájékoztató ---------- */

.auth-wrap { max-width: 480px; margin: 0 auto; padding: 32px 16px 48px; }
.auth-wrap > .logo, .legal > .logo { margin-bottom: 20px; }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; }
.auth-card form { display: grid; gap: 14px; margin-top: 18px; }
.auth-card .field input { width: 100%; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { max-width: 820px; line-height: 1.65; }
.legal h2 { font-size: 21px; margin: 32px 0 10px; }
.legal table { font-size: 14px; }
.legal td, .legal th { vertical-align: top; }
mark { background: #fde68a; color: #1d1b2e; padding: 0 3px; border-radius: 4px; }

/* ---------- Első beállítás (varázsló) és szülői felület ---------- */

.wizard { max-width: 640px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 6px; margin: 0 0 18px; }
.wizard-steps span { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); }
.wizard-steps span.on { background: var(--brand); }
.wizard h1 { font-size: clamp(24px, 4vw, 30px); }
.wizard .field input, .wizard .field select { width: 100%; }
.wizard-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pick {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 14px 8px;
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.pick .big { font-size: 34px; line-height: 1; }
.pick small { font-weight: 500; color: var(--muted); }
.pick.on { border-color: var(--brand); background: var(--brand-soft); }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.days .pick { min-width: 56px; padding: 10px; }

/* ---------- Mobil ---------- */

@media (max-width: 640px) {
	.topbar { padding: 10px 16px; gap: 8px; }
	.topbar .who, .topbar .btn-ghost, .crumb { display: none; }
	.topbar .btn { min-height: 36px; padding: 6px 12px; }
	.summary { grid-template-columns: repeat(2, 1fr); }
	.page { padding: 24px 16px 48px; }
	.tasks .owner { display: none; }
	.counts { margin-left: 0; flex-basis: 100%; }
	.comment-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 360px) {
	.topbar .badge-env { display: none; }
	.logo { font-size: 16px; }
}
