@font-face { font-family:"Poppins"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Poppins"; font-style:normal; font-weight:600; font-display:swap; src:url("/static/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family:"Poppins"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("/static/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("/static/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("/static/fonts/inter-latin-700-normal.woff2") format("woff2"); }
:root { --bg:#F8F7FD; --card:#fff; --text:#1A1919; --muted:#676766; --brand:#17225A; --accent:#FF4801; --accent-hover:#FF7450; --lila:#EAECFF; --link:#243B88; --focus:#5B77D2; --ok:#1d7a3a; --bad:#b3261e; --border:#EFEFEF; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, sans-serif; background:var(--bg); color:var(--text); line-height:1.5; }
header.topbar { background:var(--brand); color:#fff; padding:.75rem 1rem; display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
header.topbar a { color:#fff; text-decoration:none; font-weight:600; }
header.topbar .spacer { flex:1; }
header.topbar form { margin:0; }
main { max-width: 900px; margin: 1.5rem auto; padding: 0 1rem; }
.card { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:1.25rem; margin-bottom:1rem; }
.muted { color:var(--muted); }
.btn { display:inline-block; background:var(--accent); font-family:Inter, system-ui, sans-serif; font-weight:600; color:#fff; border:0; border-radius:8px; padding:.6rem 1rem; font-size:1rem; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--accent-hover); }
.btn.secondary { background:var(--lila); color:var(--brand); }
.btn.secondary:hover { background:#dde0fb; }
.btn.danger { background:var(--bad); }
.btn.danger:hover { background:#8f1e18; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.option { display:block; border:1px solid var(--border); border-radius:8px; padding:.75rem; margin:.5rem 0; cursor:pointer; background:#fff; }
.option:hover { border-color:var(--focus); }
.option.correct { border-color:var(--ok); background:#eaf6ee; }
.option.wrong { border-color:var(--bad); background:#fbeae9; }
.feedback { border-left:4px solid var(--border); padding:.75rem 1rem; margin-top:1rem; }
.feedback.ok { border-color:var(--focus); }
.feedback.bad { border-color:var(--bad); }
.progress { height:8px; background:var(--lila); border-radius:4px; overflow:hidden; margin:.5rem 0 1rem; }
.progress > div { height:100%; background:var(--accent); }
progress { accent-color:var(--accent); }
progress::-webkit-progress-value { background:var(--accent); }
progress::-moz-progress-bar { background:var(--accent); }
table { width:100%; border-collapse:collapse; background:#fff; }
th, td { text-align:left; padding:.5rem .6rem; border-bottom:1px solid var(--border); vertical-align:top; }
th { background:#EAECFF; font-family:Inter, system-ui, sans-serif; font-weight:600; }
label { display:block; font-weight:600; margin-top:.75rem; }
input[type=text], input[type=number], input[type=email], textarea, select { width:100%; padding:.5rem; border:1px solid var(--border); border-radius:6px; font-size:1rem; font-family:inherit; }
textarea { min-height:6rem; }
.row { display:flex; gap:1rem; flex-wrap:wrap; }
.row > * { flex:1 1 200px; }
.badge { display:inline-block; padding:.1rem .5rem; border-radius:999px; font-size:.85rem; background:var(--lila); color:var(--brand); }
.badge.ok { background:#eaf6ee; color:var(--ok); }
.badge.bad { background:#fbeae9; color:var(--bad); }
.flash { padding:.75rem 1rem; border-radius:8px; margin-bottom:1rem; background:#eaf6ee; color:var(--ok); }
.flash.error { background:#fbeae9; color:var(--bad); }
video { width:100%; border-radius:10px; background:#000; }
.htmx-request .btn { opacity:.6; }
.subnav { padding:.5rem 1rem; }
h1, h2, h3 { font-family: Poppins, Inter, system-ui, sans-serif; font-weight:700; color:var(--brand); }
a { color:var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .option:focus-within { outline:2px solid var(--focus); outline-offset:2px; }
header.topbar .logo { height:28px; width:auto; margin-right:.25rem; display:block; }
