/* =========================================================================
   AI Computer Science Academy - single stylesheet
   Orange #FF6A00 | Black #0B0B0D | White dominant | Light grey #F7F7F8
   ========================================================================= */

:root {
	--orange: #FF6A00;
	--orange-dark: #E05C00;
	--orange-soft: #FFF1E6;
	--black: #0B0B0D;
	--ink: #1C1C21;
	--muted: #5C5C66;
	--line: #E4E4E7;
	--grey: #F7F7F8;
	--white: #fff;
	--ok: #17803D;
	--bad: #B42318;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 1px 2px rgba(11,11,13,.05), 0 10px 30px rgba(11,11,13,.06);
	--wrap: 1180px;
	--header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { color: var(--black); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--black); }
small { font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	background: var(--black); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	transition: top .18s ease;
}
.skip:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- header */
.topbar {
	position: sticky; top: 0; z-index: 90;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text strong { font-size: .98rem; letter-spacing: -.01em; }
.brand__text span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
	font-size: .92rem; font-weight: 600; color: var(--ink); border-radius: var(--radius-sm);
	position: relative;
}
.nav__list a:hover { background: var(--grey); color: var(--black); }
.nav__list a[aria-current="page"] { color: var(--orange-dark); }
.nav__list a[aria-current="page"]::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--orange); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line);
	background: #fff; border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: var(--black); border-radius: 2px; position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

@media (max-width: 1080px) {
	.nav { gap: 10px; }
	.nav__list a { padding: 0 7px; font-size: .86rem; }
}
@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.nav {
		position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
		background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
		box-shadow: var(--shadow); display: none;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 0 12px; font-size: 1rem; }
	.nav__list a[aria-current="page"]::after { display: none; }
	.nav__list a[aria-current="page"] { background: var(--orange-soft); }
	.nav__actions { flex-direction: column; align-items: stretch; margin-top: 10px; }
	.nav__actions .btn { justify-content: center; }
}

/* ------------------------------------------------------------ buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm);
	font-size: .95rem; font-weight: 700; border: 1px solid transparent;
	cursor: pointer; text-align: center; transition: transform .12s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #232329; color: #fff; }
.btn--outline { border-color: var(--black); color: var(--black); background: #fff; }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--ghost { color: var(--black); background: var(--grey); }
.btn--ghost:hover { background: #ececef; color: var(--black); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* -------------------------------------------------------------- hero */
.hero { padding: 56px 0 44px; background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--grey) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.hero__proof strong { display: block; font-size: 1.3rem; color: var(--black); }
.hero__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero__badge {
	position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.95);
	border-radius: 12px; padding: 10px 14px; font-size: .82rem; font-weight: 700; color: var(--black);
	border-left: 4px solid var(--orange);
}
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.hero { padding: 34px 0 30px; }
}

/* ----------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section--grey { background: var(--grey); }
.section--tight { padding: 40px 0; }
.section__head { max-width: 62ch; margin-bottom: 32px; }
.section__head h2 { margin-bottom: .35em; }
.section__head p { color: var(--muted); margin: 0; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }

.eyebrow {
	display: inline-block; margin: 0 0 10px; padding: 5px 11px; border-radius: 999px;
	background: var(--orange-soft); color: var(--orange-dark);
	font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
}

/* ------------------------------------------------------------- grids */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- cards */
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8d8dd; }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--grey); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
	position: absolute; top: 12px; left: 12px; background: rgba(11,11,13,.86); color: #fff;
	font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	padding: 5px 10px; border-radius: 999px;
}
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.08rem; }
.card__body h3 a { color: inherit; }
.card__body p { margin: 0; color: var(--muted); font-size: .93rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--muted); }
.card__meta span { background: var(--grey); border-radius: 999px; padding: 3px 10px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-weight: 800; color: var(--black); font-size: 1.05rem; }
.price small { color: var(--muted); font-weight: 600; font-size: .76rem; }
.price del { color: var(--muted); font-weight: 500; font-size: .84rem; margin-right: 6px; }

/* -------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat strong { display: block; font-size: 1.9rem; color: var(--orange); line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips a, .chips button {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--line); background: #fff; border-radius: 999px;
	font-size: .86rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chips a:hover, .chips button:hover { border-color: var(--orange); color: var(--orange-dark); }
.chips .is-active { background: var(--black); border-color: var(--black); color: #fff; }
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.searchbar input {
	flex: 1 1 240px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); font: inherit; background: #fff;
}

/* -------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: .86rem; font-weight: 700; color: var(--black); }
.field .hint { font-size: .78rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
	width: 100%; min-height: 46px; padding: 11px 13px; font: inherit; color: var(--ink);
	background: #fff; border: 1px solid #D6D6DB; border-radius: var(--radius-sm);
	transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.16); outline: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkline input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; }

.authshell { max-width: 460px; margin: 46px auto 64px; padding: 0 20px; }
.authcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); background: #fff; }
.authcard h1 { font-size: 1.55rem; }
.authcard .switch { margin: 16px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------ notices */
.flash { max-width: var(--wrap); margin: 18px auto 0; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .93rem; border: 1px solid; }
.flash--ok { background: #EAF7EF; border-color: #B3E2C4; color: #14602F; }
.flash--info { background: var(--orange-soft); border-color: #FFD3B0; color: #8A3A00; }
.flash--bad { background: #FDECEA; border-color: #F5C2BC; color: var(--bad); }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem; margin: 0 0 18px; }
.alert--bad { background: #FDECEA; border-color: #F5C2BC; color: var(--bad); }
.alert--info { background: var(--grey); border-color: var(--line); color: var(--ink); }

/* ----------------------------------------------------------- pagehead */
.pagehead { padding: 34px 0 30px; background: var(--grey); border-bottom: 1px solid var(--line); }
.pagehead h1 { margin-bottom: .3em; max-width: 26ch; }
.pagehead__lead { margin: 0; color: var(--muted); max-width: 70ch; font-size: 1.02rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--orange-dark); }

/* ------------------------------------------------------------- prose */
.prose { max-width: 72ch; }
.prose > h2 { margin-top: 1.8em; }
.prose > h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote {
	margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid var(--orange);
	background: var(--grey); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--grey); }

.layout-split { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 940px) { .layout-split { grid-template-columns: 1fr; } }

.sidecard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; position: sticky; top: calc(var(--header-h) + 16px); }
.sidecard h2 { font-size: 1.05rem; }
.sidecard ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: .93rem; }
.sidecard li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.sidecard li:last-child { border-bottom: 0; }
.sidecard .btn { width: 100%; }

/* ------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--grey); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.table--striped tbody tr:nth-child(even) { background: #FCFCFD; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* ------------------------------------------------------------- pills */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pill--ok { background: #E7F6EC; color: #14602F; }
.pill--new { background: var(--orange-soft); color: #8A3A00; }
.pill--off { background: #F1F1F3; color: var(--muted); }
.pill--warn { background: #FFF6E0; color: #7A5300; }

/* -------------------------------------------------------------- lab */
.labhead { background: var(--black); color: #fff; padding: 26px 0 22px; }
.labhead h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.labhead p { color: #C9C9CF; margin: 0; }
.labhead a { color: #fff; }
.labhead .eyebrow { background: rgba(255,106,0,.18); color: #FFB37A; }
.labbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 14px; }
.labbar__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.labbar__meta span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px 11px; color: #E8E8EC; }
.progressbar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; min-width: 160px; flex: 1 1 160px; }
.progressbar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s ease; }

/* three panes: topic | editor | results */
.labpane {
	display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(300px, 380px);
	gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	background: #fff; box-shadow: var(--shadow); min-height: 560px;
}
.labpane > section { min-width: 0; display: flex; flex-direction: column; }
.labpane__topic { border-right: 1px solid var(--line); background: #FCFCFD; }
.labpane__results { border-left: 1px solid var(--line); background: #FCFCFD; }
.pane-head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fff;
	font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.pane-body { padding: 16px; overflow: auto; flex: 1; }
.labpane__topic h2 { font-size: 1.12rem; margin-bottom: .5em; }
.labpane__topic .teach { font-size: .93rem; color: var(--ink); }
.labpane__topic .teach p:last-child { margin-bottom: 0; }
.task-q { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.task-q h3 { font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5em; }
.task-q .statement { font-weight: 600; color: var(--black); }
.starter-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge-row span { font-size: .72rem; background: var(--grey); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--muted); }

.editor-shell { display: flex; flex-direction: column; min-height: 420px; background: #0F1115; }
.editor-shell .pane-head { background: #151821; border-color: #24262F; color: #9AA0AE; }
.editor-shell textarea.code {
	flex: 1; width: 100%; min-height: 340px; padding: 16px 18px; border: 0; border-radius: 0;
	background: #0F1115; color: #E7E9EE; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: .9rem; line-height: 1.6; tab-size: 2; resize: none;
}
.editor-shell textarea.code:focus { box-shadow: none; border: 0; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid #24262F; background: #151821; }
.editor-actions .btn--primary { background: var(--orange); }
.editor-actions .btn--ghost { background: #24262F; color: #E7E9EE; border-color: #2F323D; }
.editor-actions .btn--ghost:hover { background: #2F323D; color: #fff; }
.editor-hint { margin-left: auto; font-size: .76rem; color: #8A90A0; align-self: center; }

.verdict { padding: 13px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 11px; align-items: flex-start; }
.verdict__icon {
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
	background: var(--grey); color: var(--muted); flex: 0 0 auto; font-size: .95rem;
}
.verdict[data-state="pass"] .verdict__icon { background: #E7F6EC; color: var(--ok); }
.verdict[data-state="fail"] .verdict__icon { background: #FDECEA; color: var(--bad); }
.verdict__title { font-weight: 800; font-size: .94rem; color: var(--black); }
.verdict__text { font-size: .86rem; color: var(--muted); white-space: pre-wrap; }

.checks { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.checks li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.checks li:last-child { border-bottom: 0; }
.checks .mark { font-weight: 800; width: 16px; flex: 0 0 auto; }
.checks .pass .mark { color: var(--ok); }
.checks .fail .mark { color: var(--bad); }

.console {
	margin: 0; padding: 12px 14px; background: #0F1115; color: #D7DBE3; font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: .82rem; line-height: 1.55; border-radius: var(--radius-sm); min-height: 90px; max-height: 260px; overflow: auto; white-space: pre-wrap;
}
.console--err { color: #FFB4A8; }
.preview-frame { width: 100%; min-height: 210px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }

.labpane__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.labpane__foot .next-cta { display: none; }
.labpane__foot.is-passed .next-cta { display: inline-flex; }

.hintbox { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; padding: 12px 14px; font-size: .9rem; margin-top: 14px; }
.hintbox summary { cursor: pointer; font-weight: 800; color: var(--orange-dark); font-size: .88rem; }
.hintbox[open] summary { margin-bottom: 8px; }

@media (max-width: 1080px) {
	.labpane { grid-template-columns: 1fr; }
	.labpane__topic, .labpane__results { border: 0; border-top: 1px solid var(--line); }
	.labpane__topic { border-top: 0; }
	.editor-shell { min-height: 300px; }
	.labpane > section { min-height: 0; }
}

/* track listing */
.trackcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.trackcard h3 { margin: 0; }
.trackcard .trackcard__top { display: flex; align-items: center; gap: 12px; }
.trackcard__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.trackcard__icon svg { width: 22px; height: 22px; }
.trackcard ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.trackcard li { padding: 4px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.trackcard li:last-child { border-bottom: 0; }
.mini-progress { height: 6px; border-radius: 999px; background: var(--grey); overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--orange); }

/* quiz + exam */
.quizwrap { max-width: 820px; margin: 0 auto; }
.qcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: #fff; }
.qcard__num { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-dark); }
.qcard h2 { font-size: 1.08rem; margin: 6px 0 14px; }
.qopts { display: grid; gap: 9px; }
.qopt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .93rem; background: #fff; }
.qopt:hover { border-color: #C9C9D0; }
.qopt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.qopt.is-right { border-color: #9FD8B4; background: #F2FBF5; }
.qopt.is-wrong { border-color: #F0BDB7; background: #FEF5F4; }
.qreview-note { font-size: .88rem; color: var(--muted); margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--orange-dark); }

/* certificate */
.cert {
	position: relative; background: #fff; border: 2px solid var(--black); border-radius: 8px; padding: 46px 44px;
	max-width: 900px; margin: 0 auto; overflow: hidden;
}
.cert::before {
	content: ""; position: absolute; inset: 12px; border: 1px solid var(--orange); border-radius: 4px; pointer-events: none;
}
.cert__wm {
	position: absolute; inset: 0; display: grid; place-items: center; opacity: .06; pointer-events: none;
}
.cert__wm img { width: 62%; }
.cert__head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.cert__head img { width: 190px; height: auto; }
.cert__head div { margin-left: auto; text-align: right; font-size: .8rem; color: var(--muted); }
.cert h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 10px; }
.cert__name { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--black); border-bottom: 1.5px dashed var(--line); display: inline-block; padding-bottom: 4px; margin: 6px 0 18px; }
.cert__body { text-align: center; position: relative; z-index: 1; }
.cert__meta { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; margin: 24px 0 8px; font-size: .9rem; color: var(--muted); }
.cert__meta strong { display: block; color: var(--black); font-size: 1.1rem; }
.cert__sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; text-align: left; }
.cert__sign-name { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.7rem; color: var(--black); border-bottom: 1px solid var(--black); padding: 0 18px 2px; }
.cert__sign small { display: block; color: var(--muted); font-size: .78rem; }
.cert__code { font-size: .76rem; color: var(--muted); }
@media (max-width: 700px) { .cert { padding: 26px 20px; } .cert__sign { flex-direction: column; align-items: flex-start; } }
@media print {
	.topbar, .footer, .wa-float, .noprint { display: none !important; }
	.cert { border-color: #000; box-shadow: none; margin: 0; max-width: none; }
	body { background: #fff; }
}

/* -------------------------------------------------------------- table of contents */
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; margin-bottom: 26px; }
.toc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.toc li { margin-bottom: 5px; }

.lessonlist { list-style: none; padding: 0; margin: 0; }
.lessonlist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.lessonlist li:last-child { border-bottom: 0; }
.lessonlist .num { width: 26px; flex: 0 0 auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lessonlist a { flex: 1; }
.lessonlist .tick { color: var(--ok); font-weight: 800; }
.lessonlist .lock { color: var(--muted); font-size: .78rem; }

/* ------------------------------------------------------------- footer */
.footer { background: var(--black); color: #C9C9CF; padding: 48px 0 22px; margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.footer__h { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.footer li { margin-bottom: 8px; }
.footer a { color: #C9C9CF; }
.footer a:hover { color: var(--orange); }
.footer__col--brand img { margin-bottom: 14px; }
.footer__col--brand p { font-size: .9rem; color: #A9A9B2; }
.footer__hours { color: #C9C9CF !important; }
.footer__base { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid #232329; margin-top: 34px; padding-top: 16px; font-size: .82rem; color: #8C8C96; }
.footer__base-links a { color: #A9A9B2; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- whatsapp float */
.wa-float {
	position: fixed; left: 18px; bottom: 18px; z-index: 80;
	width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff;
	display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37,211,102,.36);
	transition: transform .16s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ----------------------------------------------------------- utilities */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.stack > * + * { margin-top: 14px; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.inline-list li { background: var(--grey); border-radius: 999px; padding: 5px 12px; font-size: .82rem; color: var(--ink); }
.cta-band { background: var(--grey); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- admin */
.admin { display: grid; grid-template-columns: 240px minmax(0,1fr); min-height: 100vh; background: var(--grey); }
.admin__side { background: var(--black); color: #C9C9CF; padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin__side a { color: #C9C9CF; display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.admin__side a:hover { background: #1B1B21; color: #fff; }
.admin__side a.is-active { background: var(--orange); color: #fff; }
.admin__side h1 { color: #fff; font-size: .95rem; padding: 0 12px 14px; border-bottom: 1px solid #232329; margin-bottom: 12px; }
.admin__side h1 span { display: block; font-size: .7rem; color: #8C8C96; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.admin__side .admin__sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #6E6E78; padding: 16px 12px 6px; }
.admin__main { padding: 26px 30px 60px; min-width: 0; }
.admin__top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin__top h2 { margin: 0; font-size: 1.5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h3 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi strong { display: block; font-size: 1.7rem; color: var(--black); line-height: 1.1; }
.kpi span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
	.admin { grid-template-columns: 1fr; }
	.admin__side { position: static; height: auto; }
	.admin__main { padding: 20px 16px 50px; }
}

.adminlogin { max-width: 400px; margin: 9vh auto; padding: 0 20px; }

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

/* ------------------------------------------------- quiz presentation layer */
.quizchrome { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.quizchrome[hidden] { display: none; }
fieldset.qcard { border: 1px solid var(--line); margin: 0 0 16px; }
fieldset.qcard legend { padding: 0 6px; }
.qcard[hidden] { display: none; }
.timer.is-low { color: var(--bad); }
.timer.is-done { color: var(--muted); }
.aicsalab-quiz__warn { font-size: .85rem; color: var(--bad); font-weight: 600; }
.aicsalab-lesson__nextlocked { display: inline-flex; gap: 6px; align-items: center; }
.aicsalab-lesson__nextlocked small { font-weight: 500; }
.aicsalab-verdict__link { color: var(--orange-dark); font-weight: 700; }
.mini-progress i[data-aicsalab-progress-fill] { display: block; height: 100%; background: var(--orange); }
.textarea-dark { background: #0F1115; color: #E7E9EE; }
