/* ============================================================
   ICT ACADEMIE – stijl
   Rustig, contrastrijk en goed leesbaar (Atkinson Hyperlegible)
   ============================================================ */
:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #17202b; --muted: #5b6472; --line: #e3dfd6; --soft: #efece5;
  --brand: #4338ca; --brand-2: #312e81; --ok: #15803d; --okL: #dcfce7; --bad: #b91c1c; --badL: #fee2e2; --mid: #b45309; --midL: #fef3c7;
  --c: var(--brand); --r: 18px; --shadow: 0 1px 2px rgba(23, 32, 43, .06), 0 6px 20px rgba(23, 32, 43, .06);
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 17px;
}
html.bigtext { font-size: 21px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; margin-top: 1.4em; } h3 { font-size: 1.15rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .mono { font-family: var(--mono); }
.loading { padding: 4rem; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* ---------- knoppen ---------- */
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: .7em 1.3em; background: var(--brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; text-decoration: none; min-height: 48px; transition: transform .1s, background .2s; }
.btn:hover { background: var(--brand-2); } .btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn.big { font-size: 1.15rem; padding: .85em 1.8em; min-height: 58px; }
.btn.small { min-height: 38px; padding: .4em .9em; font-size: .9rem; }
.btn.danger { color: var(--bad); }
.mini { font: inherit; font-size: .8rem; border: 0; background: rgba(255, 255, 255, .15); color: inherit; border-radius: 8px; padding: .2em .6em; cursor: pointer; }

/* ---------- kop ---------- */
.demo-bar { background: #fde68a; color: #422006; padding: .5em 1em; font-size: .85rem; text-align: center; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 2.5rem); background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand b { display: block; font-size: 1.05rem; } .brand small { color: var(--muted); font-size: .8rem; }
.logo { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.top nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink); padding: .45em .8em; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.top nav a.on, .top nav a:hover { background: var(--soft); }
.who { color: var(--muted); font-size: .9rem; }
.fontbtn { font: inherit; font-weight: 700; border: 2px solid var(--line); background: var(--card); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 5rem; }
.wrap.center { display: grid; place-items: center; min-height: 75vh; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; } .crumbs a { text-decoration: none; font-weight: 700; }
.card { background: var(--card); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--shadow); margin-bottom: 1rem; }
.card.narrow { max-width: 460px; width: 100%; }
label { display: block; font-weight: 700; margin-bottom: .9rem; }
input, select, textarea { font: inherit; width: 100%; padding: .7em .9em; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); margin-top: .3em; min-height: 48px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--brand); flex: none; }
input[type=color] { padding: 2px; height: 48px; }
.err { color: var(--bad); font-weight: 700; min-height: 1.2em; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; align-items: end; }
.grid2 input, .grid2 .btn { margin-bottom: .9rem; }
.chk { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; cursor: pointer; padding: .35rem 0; margin: 0; }
.badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--soft); }
.badge.ok { background: var(--okL); color: var(--ok); } .badge.mid { background: var(--midL); color: var(--mid); } .badge.no { background: var(--badL); color: var(--bad); }
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: 999px; font-weight: 700; z-index: 99; box-shadow: var(--shadow); animation: up .3s; }
.toast.bad { background: var(--bad); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 20px); } }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; width: 100%; max-width: 980px; }
.login-art { background: var(--card); border-radius: 28px; padding: 1.5rem; box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.2rem; }
.pwrow { display: flex; gap: .5rem; } .eye { border: 2px solid var(--line); background: #fff; border-radius: 12px; width: 52px; margin-top: .3em; cursor: pointer; font-size: 1.2rem; }
@media (max-width: 760px) { .login { grid-template-columns: 1fr; } .login-art { order: 2; } }

/* ---------- overzicht deelnemer ---------- */
.hello { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg, #4338ca, #7c3aed); color: #fff; border-radius: 26px; padding: 1.6rem 2rem; margin-bottom: 1.5rem; }
.hello h1 { font-size: 2.1rem; } .hello p { margin: 0; opacity: .9; font-size: 1.1rem; } .hello-art { font-size: 4rem; }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.modcard { background: var(--card); border-radius: 22px; padding: 1.3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 8px solid var(--c); transition: transform .15s; display: flex; flex-direction: column; }
.modcard:hover { transform: translateY(-3px); }
.modcard h3 { font-size: 1.3rem; margin: .5rem 0 .2rem; } .modcard p { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.mc-top { display: flex; justify-content: space-between; align-items: center; } .mc-icon { font-size: 2.6rem; }
.mc-foot { font-weight: 700; font-size: .9rem; margin-top: .6rem; }
.bar { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; } .bar span { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: width .4s; }
.lvl { font-size: .78rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; }
.lvl-basics { background: #dcfce7; color: #166534; } .lvl-plus { background: #dbeafe; color: #1e40af; } .lvl-pro, .lvl-advanced { background: #ede9fe; color: #5b21b6; }
.empty { text-align: center; font-size: 1.2rem; padding: 3rem; }

/* ---------- lespakket ---------- */
.modhead { display: flex; gap: 1.2rem; align-items: center; background: var(--card); border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); border-left: 10px solid var(--c); margin-bottom: 1.2rem; }
.modhead > div { flex: 1; } .mh-icon { font-size: 3.4rem; } .modhead p { color: var(--muted); margin: 0 0 .8rem; }
.steps { display: grid; gap: .7rem; }
.step { display: flex; align-items: center; gap: 1rem; background: var(--card); border-radius: 18px; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 3px solid transparent; }
.step:hover { border-color: var(--c); } .step.done { background: #f0fdf4; } .step.wait { background: #fffbeb; }
.step.locked { opacity: .55; pointer-events: none; }
.si { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--soft); border-radius: 14px; flex: none; }
.st { flex: 1; } .st b { display: block; font-size: 1.08rem; } .st small { color: var(--muted); } .ss { font-size: 1.5rem; }

/* ---------- les ---------- */
.lesson { max-width: 860px; margin: 0 auto; }
.lhead { display: flex; align-items: center; gap: 1rem; background: var(--card); padding: 1.2rem 1.4rem; border-radius: 22px; box-shadow: var(--shadow); border-bottom: 6px solid var(--c); margin-bottom: 1.2rem; }
.lhead > div { flex: 1; } .lhead h1 { margin: 0; } .lhead small { color: var(--muted); font-weight: 700; } .lh-icon { font-size: 3rem; }
.goalbox { background: #eef2ff; border-radius: 16px; padding: .9rem 1.2rem; margin-bottom: 1.2rem; font-size: 1.05rem; }
.blocks > * { margin: 0 0 1.1rem; }
.bp { font-size: 1.1rem; } .bh { font-size: 1.3rem; margin-top: 1.6rem; }
.blist li, .bsteps li { margin-bottom: .35rem; font-size: 1.05rem; }
.bsteps { list-style: none; padding: 0; display: grid; gap: .5rem; }
.bsteps li { display: flex; gap: .8rem; align-items: flex-start; background: var(--card); padding: .7rem 1rem; border-radius: 14px; box-shadow: var(--shadow); }
.sn { background: var(--c); color: #fff; font-weight: 700; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.say { float: right; border: 0; background: var(--soft); border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; margin-left: .5rem; }
.callout { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-radius: 16px; align-items: flex-start; font-size: 1.05rem; }
.callout > div { flex: 1; } .ci { font-size: 1.6rem; line-height: 1; }
.callout.tip { background: #ecfdf5; } .callout.warn { background: #fff7ed; } .callout.like { background: #f5f3ff; } .callout.wait { background: #fffbeb; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }
.cards .say { position: absolute; } .cards { position: relative; }
.pcard { background: var(--card); border-radius: 18px; padding: 1rem; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.pcard .pe { font-size: 2.8rem; line-height: 1.2; } .pcard .pt { font-weight: 700; margin: .3rem 0; font-size: 1.05rem; } .pcard .pd { color: var(--muted); font-size: .92rem; }
.flow { display: flex; align-items: stretch; gap: .4rem; flex-wrap: wrap; justify-content: center; background: var(--card); padding: 1rem; border-radius: 18px; box-shadow: var(--shadow); }
.fstep { background: var(--soft); border-radius: 14px; padding: .8rem; text-align: center; flex: 1 1 110px; max-width: 170px; }
.fe { font-size: 2.2rem; } .ft { font-weight: 700; font-size: .95rem; } .farrow { align-self: center; font-size: 1.6rem; color: var(--c); }
@media (max-width: 560px) { .flow { flex-direction: column; align-items: center; } .fstep { max-width: none; width: 100%; } .farrow { transform: rotate(90deg); } }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dodont > div { border-radius: 16px; padding: 1rem 1.2rem; } .dodont .do { background: #ecfdf5; } .dodont .dont { background: #fef2f2; }
.dodont ul { margin: 0; padding-left: 1.2rem; } .dodont h4 { margin-bottom: .4rem; }
@media (max-width: 560px) { .dodont { grid-template-columns: 1fr; } }
.bpic { margin: 0 0 1.2rem; background: var(--card); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); text-align: center; }
.bpic figcaption { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.bpic.photo img { max-width: 100%; border-radius: 12px; }
.illu { width: 100%; height: auto; max-height: 360px; display: block; font-family: var(--font); }
.ex-pic { margin: .6rem 0 1rem; } .ex-pic .illu { max-height: 240px; }
.tblwrap { overflow-x: auto; } .btable { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.btable th, .btable td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--line); } .btable th { background: var(--soft); }
.bcode { background: #0f172a; border-radius: 16px; overflow: hidden; color: #e2e8f0; }
.bcode pre { margin: 0; padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--mono); font-size: .92rem; line-height: 1.6; }
.bcode code { background: none; padding: 0; color: inherit; }
.bprev { width: 100%; min-height: 140px; border: 0; background: #fff; display: block; }
.code-bar { display: flex; justify-content: space-between; align-items: center; background: #1e293b; color: #cbd5e1; padding: .45rem 1rem; font-size: .82rem; font-weight: 700; }

/* ---------- oefeningen ---------- */
.exh { margin-top: 2rem; }
.ex { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 1.2rem; overflow: hidden; border: 3px solid transparent; }
.ex.solved { border-color: #86efac; }
.ex-head { display: flex; justify-content: space-between; background: var(--soft); padding: .6rem 1.2rem; font-weight: 700; color: var(--muted); }
.ex-body { padding: 1.2rem; } .ex-inner { margin-top: 1rem; }
.q { font-size: 1.15rem; font-weight: 700; margin: 0 0 .8rem; } .howto { color: var(--muted); font-size: .92rem; margin: -.4rem 0 .8rem; }
.opts { display: grid; gap: .6rem; } .opts.grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.opt { font: inherit; font-size: 1.05rem; text-align: left; background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: .85rem 1.1rem; cursor: pointer; min-height: 56px; color: var(--ink); }
.opts.grid .opt { text-align: center; }
.opt:hover:not(:disabled) { border-color: var(--brand); } .opt.right { border-color: var(--ok); background: var(--okL); } .opt.wrong { border-color: var(--bad); background: var(--badL); opacity: .7; }
.opt.picked { border-color: var(--brand); background: #eef2ff; }
.fb { margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 14px; font-weight: 700; font-size: 1.02rem; }
.fb.ok { background: var(--okL); color: #14532d; } .fb.no { background: var(--midL); color: #78350f; }
.shake { animation: shake .4s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ord { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.ord-item { display: flex; align-items: center; gap: .7rem; background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: .5rem .7rem; }
.ord-item.ok { border-color: #86efac; background: #f0fdf4; } .ord-item.bad { border-color: #fca5a5; background: #fef2f2; }
.ord-item .num { background: var(--soft); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; }
.ord-item .txt { flex: 1; font-size: 1.02rem; }
.mv { display: flex; gap: .3rem; } .mv button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 1rem; cursor: pointer; }
.mv button:disabled { opacity: .3; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .col { display: grid; gap: .5rem; align-content: start; }
.mi { font: inherit; background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: .7rem; cursor: pointer; min-height: 56px; color: var(--ink); font-size: 1rem; }
.mi.sel { border-color: var(--brand); background: #eef2ff; } .mi.wrong { border-color: var(--bad); animation: shake .4s; }
.mi.done { cursor: default; } .mi[data-c="0"] { background: #dbeafe; border-color: #60a5fa; } .mi[data-c="1"] { background: #dcfce7; border-color: #4ade80; } .mi[data-c="2"] { background: #fef3c7; border-color: #fbbf24; }
.mi[data-c="3"] { background: #fce7f3; border-color: #f472b6; } .mi[data-c="4"] { background: #ede9fe; border-color: #a78bfa; } .mi[data-c="5"] { background: #ccfbf1; border-color: #2dd4bf; }
.pool { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; min-height: 20px; }
.chip { font: inherit; background: #fff; border: 3px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; color: var(--ink); }
.chip.card { border-radius: 14px; text-align: left; max-width: 100%; } .chip.sel { border-color: var(--brand); background: #eef2ff; transform: scale(1.04); }
.chip.placed { cursor: default; border-color: #86efac; background: #f0fdf4; font-size: .9rem; }
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.bucket { background: var(--soft); border-radius: 16px; padding: .6rem; min-height: 110px; border: 3px dashed var(--line); cursor: pointer; }
.bhead { font: inherit; font-weight: 700; width: 100%; background: var(--card); border: 0; border-radius: 12px; padding: .7rem; cursor: pointer; font-size: 1.05rem; color: var(--ink); }
.bin { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.inrow { display: flex; gap: .5rem; } .inrow input { margin: 0; } .in.right { border-color: var(--ok); background: var(--okL); }
.tasks { display: grid; gap: .3rem; margin-bottom: 1rem; } .task { padding: .4rem .8rem; border-radius: 10px; background: var(--soft); } .task.ok { background: var(--okL); }

/* code-editor */
.code-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 760px) { .code-wrap { grid-template-columns: 1fr; } }
.code-ed, .code-out { border-radius: 14px; overflow: hidden; background: #0f172a; display: flex; flex-direction: column; }
textarea.code { font-family: var(--mono); font-size: .92rem; background: #0f172a; color: #e2e8f0; border: 0; border-radius: 0; margin: 0; min-height: 230px; resize: vertical; line-height: 1.6; padding: .9rem; tab-size: 2; }
.code-out iframe { width: 100%; flex: 1; min-height: 230px; border: 0; background: #fff; }
.console { margin: 0; background: #020617; color: #86efac; font-family: var(--mono); font-size: .85rem; padding: .7rem; min-height: 60px; max-height: 160px; overflow: auto; white-space: pre-wrap; }
.code-actions { display: flex; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; } .checks li { padding: .35rem .7rem; border-radius: 10px; background: var(--soft); } .checks li.ok { background: var(--okL); }

/* pc-bouw */
.board-wrap { max-width: 620px; margin: 0 auto 1rem; }
.board { position: relative; aspect-ratio: 16 / 11; background: #14532d; border-radius: 16px; background-image: radial-gradient(#166534 1.5px, transparent 1.5px); background-size: 14px 14px; }
.board-label { position: absolute; bottom: 8px; right: 12px; color: #bbf7d0; font-size: .8rem; font-weight: 700; }
.slot { position: absolute; border: 3px dashed #bbf7d0; background: rgba(255, 255, 255, .08); color: #ecfdf5; border-radius: 8px; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2px; overflow: hidden; line-height: 1.1; }
.slot:hover { background: rgba(255, 255, 255, .2); } .slot.filled { border-style: solid; border-color: #fde68a; background: #1e293b; cursor: default; }
.slot .pe { font-size: 1.2rem; }
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.part { font: inherit; background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: .6rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .9rem; color: var(--ink); }
.part .pe { font-size: 1.8rem; } .part.sel { border-color: var(--brand); background: #eef2ff; } .part.used { opacity: .35; }

/* netwerk */
.net-tools { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.tool { font: inherit; font-weight: 700; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem .9rem; cursor: pointer; color: var(--ink); }
.tool.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.net { position: relative; height: 380px; background: #f8fafc; border-radius: 16px; border: 2px solid var(--line); background-image: linear-gradient(#e2e8f0 1px, transparent 1px), linear-gradient(90deg, #e2e8f0 1px, transparent 1px); background-size: 24px 24px; }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.net-lines .cable { stroke: #334155; stroke-width: 4; stroke-linecap: round; } .net-lines .plab { font-size: 11px; fill: #7c3aed; font-weight: 700; text-anchor: middle; }
.dev { position: absolute; transform: translate(-50%, -50%); background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: .3rem .5rem; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 92px; z-index: 2; color: var(--ink); }
.dev.sel { border-color: var(--brand); box-shadow: 0 0 0 4px #c7d2fe; } .dev.k-router { border-color: #c4b5fd; } .dev.k-switch { border-color: #cbd5e1; }
.de { font-size: 1.7rem; line-height: 1.2; } .dn { font-weight: 700; font-size: .82rem; } .dip { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.net-panel { margin-top: .7rem; background: var(--soft); border-radius: 14px; padding: .8rem 1rem; min-height: 50px; }
.cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 .8rem; } .cfg label { font-size: .88rem; }
.pingrow { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .pingrow select { width: auto; margin: 0; } .pingrow input { flex: 1; min-width: 150px; margin: 0; }
.goals { margin-top: .8rem; } .goal { padding: .4rem .8rem; border-radius: 10px; background: var(--soft); margin-bottom: .3rem; } .goal.ok { background: var(--okL); }
.warn { color: var(--mid); font-weight: 700; } .okmsg { color: var(--ok); font-weight: 700; }
@media (max-width: 560px) { .net { height: 460px; } .dev { min-width: 74px; } .dip { font-size: .6rem; } }

/* terminal */
.term-wrap { background: #0c0c0c; border-radius: 14px; padding: .8rem; cursor: text; }
.term { margin: 0; color: #d4d4d4; font-family: var(--mono); font-size: .85rem; white-space: pre-wrap; max-height: 320px; overflow: auto; background: #0c0c0c; }
.term.small { max-height: 200px; padding: .7rem; border-radius: 10px; margin-top: .6rem; }
.term-in { display: flex; align-items: center; gap: .4rem; color: #d4d4d4; font-size: .85rem; }
.term-in input { background: transparent; border: 0; color: #fff; padding: .3rem; margin: 0; min-height: 36px; font-size: .9rem; } .term-in input:focus { border: 0; }

/* ticket */
.ticket { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 1rem; }
.tk-head { display: flex; justify-content: space-between; background: #1e293b; color: #fff; padding: .6rem 1rem; font-weight: 700; }
.prio { padding: .1em .6em; border-radius: 99px; font-size: .8rem; background: #64748b; } .prio.p-hoog { background: #dc2626; } .prio.p-normaal { background: #2563eb; } .prio.p-laag { background: #16a34a; }
.tk-from { padding: .6rem 1rem 0; font-weight: 700; } .tk-msg { padding: .4rem 1rem 1rem; font-style: italic; font-size: 1.05rem; }
.tk-step p { font-size: 1.08rem; font-weight: 700; } .tk-prog { color: var(--muted); font-size: .85rem; margin-top: .8rem; }

/* robot */
.rb-lv { font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.rb-grid { display: grid; gap: 4px; max-width: 420px; margin: 0 auto 1rem; background: #cbd5e1; padding: 4px; border-radius: 14px; }
.cell { aspect-ratio: 1; background: #f8fafc; border-radius: 8px; display: grid; place-items: center; font-size: 1.6rem; position: relative; }
.cell.wall { background: #fde68a; } .bot { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; }
.bot small { position: absolute; bottom: 0; right: 2px; font-size: .8rem; }
.rb-prog { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 44px; background: var(--soft); border-radius: 12px; padding: .5rem; margin-bottom: .7rem; }
.pc { background: #fff; border-radius: 8px; padding: .25rem .6rem; font-weight: 700; font-size: .88rem; } .pc.now { background: var(--brand); color: #fff; }
.rb-cmds { display: flex; gap: .4rem; flex-wrap: wrap; }

/* pixel */
.px-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; }
@media (max-width: 640px) { .px-wrap { grid-template-columns: 1fr; } }
.px-grid { display: grid; gap: 1px; background: #cbd5e1; border: 1px solid #cbd5e1; aspect-ratio: 1; max-width: 460px; touch-action: none; user-select: none; }
.px { background: #fff; aspect-ratio: 1; }
.px-side { display: flex; flex-direction: column; gap: .5rem; }
.pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.sw { aspect-ratio: 1; border-radius: 12px; border: 3px solid var(--line); cursor: pointer; font-size: 1.2rem; background: #fff; } .sw.on { border-color: var(--ink); transform: scale(1.1); }

/* kleur */
.col-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 640px) { .col-wrap { grid-template-columns: 1fr; } }
.hset { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; } .hset span { width: 110px; font-size: .88rem; font-weight: 700; }
.hsw { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.sample { border-radius: 16px; padding: 1.5rem; border: 2px solid var(--line); display: flex; flex-direction: column; gap: .4rem; font-size: 1.1rem; }
.sample strong { font-size: 1.5rem; } .ratio { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; } .ratio .big { font-size: 1.6rem; font-weight: 700; }

/* wachtwoord */
.meter { height: 14px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: .6rem 0; } .meter span { display: block; height: 100%; width: 0; transition: width .3s; }
.rules { list-style: none; padding: 0; display: grid; gap: .3rem; } .rules li { padding: .35rem .7rem; border-radius: 10px; background: var(--soft); } .rules li.ok { background: var(--okL); }
.crack { font-weight: 700; }

/* bestanden */
.fx { display: grid; grid-template-columns: 200px 1fr; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; min-height: 300px; }
@media (max-width: 600px) { .fx { grid-template-columns: 1fr; } .fx-side { display: flex; flex-wrap: wrap; } }
.fx-side { background: var(--soft); padding: .5rem; display: grid; align-content: start; gap: .3rem; }
.fx-nav { font: inherit; text-align: left; border: 0; background: transparent; padding: .55rem .7rem; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--ink); }
.fx-nav.on { background: #fff; box-shadow: var(--shadow); }
.fx-main { padding: .8rem; } .fx-bar { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; } .fx-bar .mini { background: var(--soft); color: var(--ink); }
.fx-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; min-height: 110px; }
.fx-item { font: inherit; background: #fff; border: 3px solid transparent; border-radius: 12px; padding: .5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; font-size: .85rem; word-break: break-word; color: var(--ink); }
.fx-item:hover { background: var(--soft); } .fx-item.sel { border-color: var(--brand); background: #eef2ff; } .fe { font-size: 2.2rem; }
.fx-acts { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; } .fx-panel { margin-top: .6rem; }

/* muis */
.ms-step { font-weight: 700; font-size: 1.15rem; background: #eef2ff; padding: .7rem 1rem; border-radius: 14px; margin-bottom: .6rem; }
.ms-area { position: relative; height: 320px; background: #f0f9ff; border-radius: 16px; border: 2px dashed #bae6fd; overflow: hidden; touch-action: none; }
.ms-t { position: absolute; font-size: 3rem; background: none; border: 0; cursor: pointer; transition: transform .2s; user-select: none; padding: 0; line-height: 1; }
.ms-t:hover { transform: scale(1.15); } .ms-t.pop { transform: scale(1.8); opacity: 0; } .ms-t.drag { transition: none; cursor: grabbing; }
.ms-goal { position: absolute; font-size: 3.6rem; padding: .3rem; border: 3px dashed #16a34a; border-radius: 16px; }
.ms-done { font-size: 5rem; text-align: center; }

/* typen */
.ty-line { font-family: var(--mono); font-size: 1.6rem; background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: .8rem 1rem; letter-spacing: .05em; margin-bottom: .6rem; word-break: break-all; }
.ty-line .g { color: var(--ok); } .ty-line .b { color: #fff; background: var(--bad); border-radius: 3px; } .ty-line .cur { border-bottom: 3px solid var(--brand); } .ty-line span { color: #94a3b8; } .ty-line span.g { color: var(--ok); }
.ty-in { font-size: 1.3rem; } .ty-stats { margin-top: .5rem; color: var(--muted); }

/* praktijk / examen / afronden */
.checklist h3 { margin-bottom: .6rem; } .checklist .chk { font-size: 1.05rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.lfoot { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 2rem 0; }
.exam-intro, .exam, .exam-res { max-width: 720px; margin: 0 auto; border-top: 8px solid var(--c); }
.big-emoji { font-size: 4rem; text-align: center; } .exam-intro h1, .exam-res h1 { text-align: center; }
.dots { display: flex; gap: .35rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--soft); } .dots span.ans { background: #a5b4fc; } .dots span.cur { background: var(--brand); transform: scale(1.3); }
.eq-n { color: var(--muted); font-weight: 700; } .eq { font-size: 1.35rem; margin: .4rem 0 1rem; }
.eq-nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.2rem; }
.score { text-align: center; font-size: 1.8rem; font-weight: 700; margin-bottom: .6rem; } .exam-res p { text-align: center; }
.exam-res.pass { border-top-color: var(--ok); } .exam-res.fail { border-top-color: var(--mid); }
.review { display: grid; gap: .5rem; margin-top: 1rem; } .rv { padding: .7rem 1rem; border-radius: 12px; } .rv.ok { background: #f0fdf4; } .rv.no { background: #fef2f2; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* certificaat */
.cert-actions { display: flex; gap: .6rem; justify-content: center; margin-bottom: 1rem; }
.cert { background: #fff; max-width: 1000px; margin: 0 auto; aspect-ratio: 297 / 210; padding: 2.2%; box-shadow: var(--shadow); }
.cert-in { height: 100%; border: 3px solid var(--c); outline: 1px solid var(--c); outline-offset: -10px; padding: 4% 6%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .3em; }
.cert-org { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.1rem; } .cert-org .logo { width: 34px; height: 34px; font-size: 1.1rem; }
.cert-title { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); line-height: 1.1; }
.cert-sub { color: var(--muted); } .cert-name { font-size: clamp(1.6rem, 4.5vw, 2.8rem); font-weight: 700; border-bottom: 2px solid var(--line); padding: 0 1.5rem .1em; }
.cert-mod { font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 700; } .cert-mbo { font-size: .9rem; color: var(--muted); }
.cert-les { font-size: .82rem; color: var(--muted); max-width: 85%; } .cert-score { font-weight: 700; }
.cert-sign { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; width: 100%; margin-top: 1.2em; align-items: end; font-weight: 700; font-size: .9rem; }
.cert-sign small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; } .cert-sign .line { border-bottom: 1.5px solid var(--ink); height: 2.4em; margin-bottom: .3em; }
.seal { width: 86px; height: 86px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 2rem; line-height: 1; padding-top: 10px; }
.seal small { color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .06em; }
.cert-note { font-size: .7rem; color: var(--muted); margin-top: .8em; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; } .top, .demo-bar, .noprint, .crumbs, .sticky-save { display: none !important; }
  .wrap { padding: 0; max-width: none; } .certpage .cert { box-shadow: none; width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; padding: 8mm; }
  .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- beheer ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; } .admin-head h1 { margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ulist { display: grid; gap: .5rem; margin-top: 1rem; }
.urow { display: flex; align-items: center; gap: 1rem; background: var(--card); border-radius: 16px; padding: .8rem 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.urow > span:nth-child(2) { flex: 1; } .urow:hover { outline: 2px solid var(--brand); }
.av { width: 44px; height: 44px; border-radius: 50%; background: #e0e7ff; color: var(--brand); font-weight: 700; display: grid; place-items: center; flex: none; } .av.big { width: 52px; height: 52px; font-size: 1.4rem; }
.prow { background: var(--card); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); margin-bottom: .6rem; border-left: 8px solid var(--c); display: grid; gap: .5rem; }
.pr-t .bar { margin-top: .4rem; } .pr-s { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; } .pr-a { display: flex; gap: .4rem; flex-wrap: wrap; }
.as-track { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: .6rem; border-left: 8px solid var(--c); }
.as-track summary { padding: 1rem 1.2rem; cursor: pointer; font-size: 1.1rem; }
.as-lvl { padding: .4rem 1.2rem .8rem; border-top: 1px solid var(--line); } .as-detail { display: none; padding-left: 2.2rem; } .as-lvl.on .as-detail { display: block; }
.as-main { font-size: 1.02rem; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 1.2rem 0 .8rem; text-align: right; }
.audgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1rem 0; } .aud p { margin: .3rem 0; color: var(--muted); }
.prog { margin-top: 2rem; } .prog h2 { border-left: 8px solid var(--c); padding-left: .7rem; }
.proglv { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: .8rem; }
.plv { font-size: .93rem; margin: 0; } .plv ul, .plv ol { padding-left: 1.2rem; margin: .3rem 0 .7rem; } .plv p { margin: .2rem 0 .7rem; } .plv-h { margin-bottom: .4rem; }
.plain { list-style: none; padding: 0; } .plain li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
code.key { display: block; word-break: break-all; padding: .5rem; margin: .4rem 0; background: #fff; border: 2px solid var(--line); user-select: all; }
.term-in input::placeholder { color: #6b7280; }

/* ---------- telefoon ---------- */
@media (max-width: 560px) {
  h1 { font-size: 1.5rem; } .lhead { flex-wrap: wrap; padding: 1rem; } .lhead h1 { font-size: 1.45rem; } .lh-icon { font-size: 2.2rem; }
  .lhead .sayall { width: 100%; justify-content: center; }
  .hello { padding: 1.2rem; } .hello h1 { font-size: 1.6rem; } .hello-art { font-size: 2.6rem; }
  .bpic { padding: .5rem; } .modhead { padding: 1rem; } .mh-icon { font-size: 2.4rem; }
  .top nav { width: 100%; } .cert-sign { gap: .6rem; font-size: .7rem; } .seal { width: 60px; height: 60px; font-size: 1.4rem; }
}

/* aanbieders */
.orgh { display: flex; align-items: center; gap: .5rem; border-left: 8px solid var(--oc, var(--brand)); padding-left: .7rem; margin: 1.6rem 0 .8rem; }
.orgtag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: color-mix(in srgb, var(--oc) 12%, white); color: var(--oc); }
