:root{--bg:#F3F1FB;--surface:#fff;--ink:#1E2147;--muted:#5C5F85;--line:#DAD6EE;--saffron:#FFB020;--on-saffron:#1E2147;--coral:#C8283E;--bubble:#E8E5F7}
@media (prefers-color-scheme: dark){:root{--bg:#14152B;--surface:#1E2040;--ink:#F1F0FA;--muted:#B3B5D6;--line:#35386A;--saffron:#FFB020;--on-saffron:#1E2147;--coral:#FF7A8C;--bubble:#2A2C55}}
[hidden]{display:none!important}
body.plain *,body.plain *::before,body.plain *::after{box-sizing:border-box}
a.btn{text-decoration:none}
.navlink{position:relative}
.navico{display:none;width:20px;height:20px}
@media(max-width:520px){.navlink[data-act="account"]{padding:2px 10px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}.navlink[data-act="account"] .navico{display:block}.navlink[data-act="account"] .navtxt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.site-banner{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 18px;border-radius:99px;font-weight:600;font-size:.92rem;z-index:50;max-width:92vw}
.site-banner.error{background:var(--coral);color:#fff}
.site-input{box-sizing:border-box;display:block;width:100%;max-width:420px;padding:12px 14px;border:1.5px solid var(--ink);border-radius:12px;font:inherit;background:var(--surface);color:var(--ink);min-height:48px}
.site-input:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.paywall .price{font-size:1.6rem;margin:12px 0}
.panel.danger{border-color:var(--coral)}
.legal{max-width:720px;margin:0 auto;padding:24px 20px 60px;font-family:'Instrument Sans',system-ui,sans-serif;color:var(--ink);line-height:1.6}
.legal h1,.legal h2{font-family:'Bricolage Grotesque',system-ui,sans-serif}.legal .muted{color:var(--muted)}.legal a{color:inherit}
body.plain{margin:0;background:var(--bg);color:var(--ink);font-family:'Instrument Sans',system-ui,sans-serif;line-height:1.55}
.auth{min-height:100vh;display:grid;place-items:center;padding:24px 16px}
.auth-card{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:32px 28px;box-shadow:0 1px 2px rgba(30,33,71,.06),0 18px 40px -22px rgba(30,33,71,.35)}
.auth-logo{display:flex;align-items:center;justify-content:center;gap:10px;font-family:'Bricolage Grotesque',system-ui,sans-serif;font-weight:800;font-size:1.5rem;margin-bottom:6px}
.auth-logo svg{width:38px;height:38px}
.auth h1{font-family:'Bricolage Grotesque',system-ui,sans-serif;font-size:1.7rem;text-align:center;margin:10px 0 4px;letter-spacing:-.02em}
.auth p.sub{color:var(--muted);text-align:center;margin:0 0 18px}
.auth .btn{text-decoration:none;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border:2px solid var(--ink);border-radius:12px;font:600 1rem 'Instrument Sans',system-ui,sans-serif;cursor:pointer;background:var(--saffron);color:var(--on-saffron);box-shadow:0 3px 0 var(--ink);margin-top:12px}
.auth .btn.ghost{background:var(--surface);color:var(--ink)}
.auth .btn[disabled]{opacity:.6;cursor:wait}
.auth .or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.9rem;margin:16px 0 4px}
.auth .or::before,.auth .or::after{content:'';flex:1;height:1px;background:var(--line)}
.auth label{display:block;font-weight:600;margin-bottom:6px}
.auth .err{color:var(--coral);font-weight:600;min-height:1.4em;margin:8px 0 0;text-align:center}
.auth .code{letter-spacing:.5em;text-align:center;font-size:1.5rem}
.auth .fine{font-size:.82rem;color:var(--muted);text-align:center;margin:18px 0 0}.auth .fine a{color:inherit}
.auth .linkbtn{background:none;border:0;color:var(--ink);text-decoration:underline;font:inherit;cursor:pointer;padding:10px;min-height:44px}
.admin{max-width:980px;margin:0 auto;padding:24px 20px 60px}
.admin table{width:100%;border-collapse:collapse;margin:8px 0 24px;background:var(--surface);border-radius:12px;overflow:hidden}
.admin th,.admin td{text-align:left;padding:8px 12px;border-bottom:1px solid var(--line);font-size:.92rem}
.admin .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:12px 0 24px}
.admin .card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px}.admin .card b{display:block;font-size:1.6rem}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--bg);padding:10px 14px;border-radius:10px;z-index:99;font-weight:600}
.skip:focus{left:8px}
[tabindex="-1"]:focus{outline:none}
@media(max-width:360px){.logo{font-size:0;min-width:44px;justify-content:center}.logo svg{width:32px;height:32px}}   /* the narrowest phones: the logo is just the mascot (its button still says "Skillyard home" to screen readers) */
.load-failed .navlink,.load-failed .lvl{display:none}
/* while the course is still drawing, the footer, the tab bar and the course itself stay out of sight: otherwise the footer sits near the top of the short page and then jumps to the bottom, and text jumps when the fonts arrive */
body.loading .footwrap,body.loading .tabbar{display:none}
body.loading #app > *{visibility:hidden}
.lvl:empty{visibility:hidden}
