:root {
  --bg: #F5F3FB; --surface: #FFFFFF; --ink: #1F1B3A; --muted: #6A6687; --line: #E3DFF3;
  --pri: #5B45E0; --pri-d: #4130B5; --pri-soft: #ECE8FF;
  --gold: #F2B01E; --gold-d: #C98C06; --gold-soft: #FFF3D2;
  --teal: #0C9B86; --teal-d: #087766; --teal-soft: #DBF4EF;
  --coral: #E5603B; --coral-d: #BC4524; --coral-soft: #FFE7DF;
  --good: #2C9A58; --good-d: #1F7A43; --good-soft: #DFF4E7;
  --bad: #D5443D; --bad-d: #AD302A; --bad-soft: #FCE5E3;
  --radius: 16px;
  --sans: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131124; --surface: #1D1A34; --ink: #EFEDFA; --muted: #A6A2C2; --line: #343058;
    --pri: #8D7BFF; --pri-d: #6B58E2; --pri-soft: #2B2656;
    --gold: #F5BC3A; --gold-d: #C98C06; --gold-soft: #3D3113;
    --teal: #2CC4AC; --teal-d: #14937F; --teal-soft: #11362F;
    --coral: #F47C5A; --coral-d: #C7522F; --coral-soft: #40201A;
    --good: #46BD77; --good-d: #2C9A58; --good-soft: #143424;
    --bad: #EE6B64; --bad-d: #C2443D; --bad-soft: #401B19;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 10px; text-wrap: balance; }
h2 { font-size: 19px; margin: 28px 0 10px; }
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.latin { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { color: var(--muted); margin-bottom: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pri); }
.center { text-align: center; }
.ic { width: 22px; height: 22px; flex: none; }

/* ---------- Indeling ---------- */
#shell { min-height: 100vh; }
#side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 2px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.brand { display: none; }
#nav { display: flex; justify-content: space-around; max-width: 640px; margin: 0 auto; }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 12px; }
#nav a.on { color: var(--pri); }
#app { padding: 0 0 92px; }
.page { max-width: 720px; margin: 0 auto; padding: 22px 16px 24px; }
body.in-quiz #side, body.logged-out #side { display: none; }
body.logged-out #app { margin-left: 0; padding-bottom: 0; }
.auth { max-width: 420px; margin: 0 auto; padding: 40px 16px 32px; }
.authhead { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.authname { font-size: 26px; font-weight: 800; line-height: 1.1; }
.authname b { color: var(--pri); }
.authbox { background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 20px 18px 8px; }
.authbox.center { text-align: center; padding: 40px 18px; }
.authbox h1 { font-size: 22px; margin: 0 0 6px; }
.authbox .btn.wide { margin: 14px 0 12px; }
.autherr { color: var(--bad); font-size: 14px; font-weight: 700; min-height: 0; }
.autherr:not(:empty) { margin: 6px 0; }
.authfoot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.authfoot p { margin: 8px 0 0; }
.linkbtn { border: 0; background: none; padding: 4px; color: var(--pri); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
input[type=email], input[type=password] { width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 400; color: var(--ink); }
input[type=email]:focus, input[type=password]:focus { outline: 0; border-color: var(--pri); }
.syncstatus { display: block; margin-top: 4px; }
.syncstatus.warn { color: var(--bad); }
body.in-quiz #app { padding-bottom: 0; }

@media (min-width: 900px) {
  #side { top: 0; right: auto; width: 232px; border-top: 0; border-right: 2px solid var(--line); padding: 20px 14px; }
  .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-size: 21px; font-weight: 800; }
  .brand b { color: var(--pri); }
  #nav { flex-direction: column; gap: 4px; }
  #nav a { flex-direction: row; gap: 12px; padding: 11px 12px; font-size: 15px; justify-content: flex-start; }
  #nav a.on { background: var(--pri-soft); }
  #app { margin-left: 232px; padding-bottom: 32px; }
  body.in-quiz #app { margin-left: 0; }
  .page { padding-top: 34px; }
}

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--surface); font-weight: 800; font-size: 15px; transition: transform .05s; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.btn.primary { background: var(--pri); border-color: var(--pri-d); color: #fff; }
.btn.good { background: var(--good); border-color: var(--good-d); color: #fff; }
.btn.bad { background: var(--bad); border-color: var(--bad-d); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; margin: 12px 0; }
.btn .ic { width: 18px; height: 18px; }
.btnrow, .modes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.modes { margin: 16px 0 20px; }
.iconbtn { border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.iconbtn:hover { background: var(--pri-soft); color: var(--ink); }
.iconbtn:disabled { opacity: .3; cursor: default; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 700; font-size: 14px; margin: -6px 0 10px -6px; padding: 6px; border-radius: 10px; }
.back .ic { width: 18px; height: 18px; }

/* ---------- Start ---------- */
.hero { display: flex; align-items: center; gap: 16px; background: var(--pri-soft); border-radius: 22px; padding: 18px; }
.hero h1 { margin: 2px 0 6px; }
.hero .owl { flex: none; }
.spreuk { margin: 0; font-size: 14px; color: var(--muted); }
.spreuk .latin { display: block; font-size: 17px; font-style: italic; color: var(--ink); }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.stat .ic { color: var(--pri); grid-row: span 2; width: 26px; height: 26px; }
.stat.fire .ic { color: var(--coral); } .stat.xp .ic { color: var(--gold-d); }
.stat b { font-size: 21px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.review { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--pri); color: #fff; border: 2px solid var(--pri-d); border-bottom-width: 5px; border-radius: 20px; padding: 16px 18px; }
.review:active { transform: translateY(2px); border-bottom-width: 3px; }
.review > span { flex: 1; display: flex; flex-direction: column; }
.review b { font-size: 18px; }
.review span span { font-size: 14px; opacity: .9; }
.review .ic { width: 28px; height: 28px; }
.part { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; }
.part:hover, .row:not(.static):hover, .tile:hover { border-color: var(--pri); }
.picon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.picon .ic { width: 26px; height: 26px; }
.pmain { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pmain b { font-size: 17px; }
.ppct { font-weight: 800; color: var(--muted); font-size: 14px; }
.c-t .picon { background: var(--pri-soft); color: var(--pri); }
.c-r .picon { background: var(--teal-soft); color: var(--teal-d); }
.c-a .picon { background: var(--coral-soft); color: var(--coral-d); }
.pbar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.pbar div { height: 100%; border-radius: 6px; background: var(--pri); min-width: 0; transition: width .3s; }
.pbar.c-r div { background: var(--teal); } .pbar.c-a div { background: var(--coral); }

/* ---------- Lijsten, kaarten, tegels ---------- */
.shead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 10px; }
.shead h2 { margin: 0; }
.sdesc { margin: -4px 0 10px; font-size: 14px; }
.list { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0 solid var(--line); border-bottom-width: 2px; }
.row:last-child { border-bottom-width: 0; }
.row:not(.static):hover { background: var(--pri-soft); }
.row > .ic { color: var(--muted); width: 18px; height: 18px; }
.rmain { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rtitle { font-weight: 700; }
.rsub { font-size: 13.5px; color: var(--muted); }
.rsub.vb { font-style: italic; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; white-space: nowrap; flex: none; }
.tag.lat { background: var(--pri-soft); color: var(--pri); }
.tag.vert { background: var(--line); color: var(--muted); }
.tag.k-stijl { background: var(--pri-soft); color: var(--pri); }
.tag.k-gram { background: var(--teal-soft); color: var(--teal-d); }
.tag.k-eigen { background: var(--gold-soft); color: var(--gold-d); }
.count { font-size: 12px; font-weight: 800; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 2px 8px; min-width: 26px; text-align: center; }
h2 .count { margin-left: 6px; vertical-align: middle; }
.okdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); margin-left: 4px; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; display: flex; flex-direction: column; }
.card > b { font-size: 16px; }
.note { background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { text-align: left; background: var(--surface); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.tile:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.tile b { font-size: 19px; }
.tile span { font-size: 12px; color: var(--muted); }
.tile.ok { border-color: var(--good); background: var(--good-soft); }
.tile.off { opacity: .5; }
.card.tijden { margin: 0 0 12px; padding: 14px 16px; }
.tkop { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tkop2 { margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--line); }
.seg.vmode { display: flex; margin-top: 10px; }
.seg.vmode button { flex: 1; padding: 8px 6px; font-size: 13px; line-height: 1.25; }
.vmuitleg { display: block; margin-top: 6px; }
.tgroep { margin-top: 10px; }
.tgroep .chips { margin: 4px 0 0; gap: 6px; }
.tgroep .chip { padding: 6px 10px; font-size: 13px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.seg { display: inline-flex; background: var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--pri); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--pri); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips.grid2 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; }
.chip { border: 2px solid var(--line); border-bottom-width: 3px; background: var(--surface); border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.chip.sel { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); }
.chip.correct { border-color: var(--good); background: var(--good-soft); color: var(--good-d); }
.chip.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-d); }

/* ---------- Tekst lezen en annoteren ---------- */
.reader { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; font-size: 19px; line-height: 2; margin: 10px 0; }
.sec { display: block; font-family: var(--sans); font-size: 13px; font-weight: 800; color: var(--muted); line-height: 1.4; margin: 18px 0 4px; }
.sec:first-child { margin-top: 0; }
.sec .par { margin-right: 4px; }
.quizrow { margin: 12px 0; }
.quizrow .btn { flex: 1; }
.par { font-family: var(--sans); font-size: 11px; font-weight: 800; color: var(--pri); margin-right: 2px; }
.tok { border-radius: 5px; padding: 1px 1px; }
.reader.ann .tok { cursor: pointer; }
.reader.ann .tok:hover { background: var(--line); }
.tok.ann { cursor: pointer; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tok.k-stijl { text-decoration-color: var(--pri); }
.tok.k-gram { text-decoration-color: var(--teal); }
.tok.k-eigen { text-decoration-color: var(--gold); }
.tok.k-mix { text-decoration-color: var(--coral); text-decoration-style: double; }
.tok.sel, .reader.ann .tok.sel:hover { background: var(--gold); color: #1f1b3a; }
.tok.hl { background: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold); color: var(--ink); }
.tok.bad { background: var(--bad-soft); box-shadow: 0 0 0 2px var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 16px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg.k-stijl::before { background: var(--pri); } .lg.k-gram::before { background: var(--teal); } .lg.k-eigen::before { background: var(--gold); }
.annrow { align-items: flex-start; }
.annrow .tag { margin-top: 3px; }
.latin.small { font-size: 15px; font-style: italic; }
.selbar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; max-width: 696px; margin: 0 auto; background: var(--surface); border: 2px solid var(--pri); border-radius: 18px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(31, 27, 58, .25); }
@media (min-width: 900px) { .selbar { left: 244px; bottom: 16px; } }
.seltxt { flex: 1; min-width: 0; font-size: 16px; font-style: italic; background: var(--gold-soft); border-radius: 10px; padding: 6px 10px; max-height: 4.6em; overflow: auto; }

/* ---------- Formulieren en venster ---------- */
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0; }
label.check { flex-direction: row; margin: 0; }
input[type=text], select, textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; font-weight: 400; color: var(--ink); }
textarea { resize: vertical; line-height: 1.5; }
input[type=text]:focus, select:focus, textarea:focus { outline: 0; border-color: var(--pri); }
.filelab input { font-size: 14px; font-weight: 400; }
.filebtn { cursor: pointer; margin: 0; flex-direction: row; color: var(--ink); }
#modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 17, 40, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
#modal[hidden] { display: none; }
.mbox { background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
.mbox h2 { margin-top: 0; }
.mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
@media (min-width: 620px) { #modal { align-items: center; padding: 20px; } .mbox { border-radius: 22px; } }
#toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Oefenen ---------- */
.quiz { max-width: 680px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 12px 16px 0; }
.qtop { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 14px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bar div { height: 100%; background: var(--good); border-radius: 8px; transition: width .3s; }
.qcount { font-weight: 800; font-size: 13px; color: var(--muted); min-width: 38px; text-align: right; }
.qbody { flex: 1; padding: 18px 0 20px; }
.qbody.center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qsrc { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--pri); margin-bottom: 8px; }
.ctx { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 19px; line-height: 1.95; }
.ctx .tok[data-act] { cursor: pointer; }
.ctx .tok[data-act]:hover { background: var(--line); }
.ctx .tok.sel, .ctx .tok.sel:hover { background: var(--gold); color: #1f1b3a; }
.quote { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 18px; }
.qbig { font-size: 38px; font-weight: 700; text-align: center; margin: 14px 0 0; }
.qsub { text-align: center; color: var(--muted); font-size: 14px; }
.qprompt { font-size: 20px; margin: 18px 0 12px; text-wrap: balance; }
.qterm { display: inline-block; background: var(--pri-soft); color: var(--pri); font-weight: 800; padding: 6px 14px; border-radius: 12px; font-size: 17px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.long { grid-template-columns: 1fr; }
@media (max-width: 480px) { .opts { grid-template-columns: 1fr; } }
.opt { text-align: left; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--surface); border-radius: 14px; padding: 13px 14px; font-weight: 700; font-size: 16px; }
.opt:not(:disabled):hover { border-color: var(--pri); background: var(--pri-soft); }
.opt:not(:disabled):active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.opt.correct { border-color: var(--good); background: var(--good-soft); color: var(--good-d); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-d); }
.opt:disabled { cursor: default; }
.flashback { background: var(--surface); border: 2px solid var(--pri); border-radius: var(--radius); padding: 16px; font-size: 18px; margin-top: 8px; }
.flashback p { font-size: 14px; margin: 8px 0 0; }
.tin { font-size: 20px !important; padding: 14px !important; }
.tin.correct, .cell.correct { border-color: var(--good) !important; background: var(--good-soft) !important; }
.tin.wrong, .cell.wrong { border-color: var(--bad) !important; background: var(--bad-soft) !important; }
table.rij { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 10px -6px 0; }
.rij th { font-size: 12px; font-weight: 800; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .04em; padding: 2px 4px; }
.rij tbody th { width: 62px; }
.rij td { vertical-align: top; }
.rij td.given { font-size: 19px; padding: 9px 12px; background: var(--line); border-radius: 12px; }
.rij input.cell { font-family: var(--serif); font-size: 19px; padding: 8px 12px; }
.fix { font-size: 15px; color: var(--good-d); font-weight: 700; padding: 2px 6px; }
.order { list-style: none; counter-reset: o; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.order li { counter-increment: o; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px; }
.order li::before { content: counter(o); font-weight: 800; color: var(--pri); width: 18px; }
.olabel { flex: 1; font-weight: 700; }
.onote { font-size: 13px; color: var(--muted); font-weight: 700; padding-right: 8px; white-space: nowrap; }
.obtns { display: flex; }
.qfoot { position: sticky; bottom: 0; background: var(--bg); margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); min-height: 78px; display: flex; align-items: center; }
.qfoot .btn.wide { margin: 0; padding: 14px; font-size: 17px; }
.hint { color: var(--muted); font-weight: 700; font-size: 14px; margin: 0 auto; }
.fb { flex: 1; display: flex; align-items: center; gap: 14px; margin: -12px -16px calc(-14px - env(safe-area-inset-bottom)); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.fb.ok { background: var(--good-soft); } .fb.nok { background: var(--bad-soft); }
.fbt { flex: 1; min-width: 0; }
.fb.ok strong { color: var(--good-d); } .fb.nok strong { color: var(--bad-d); }
.fbt strong { font-size: 18px; }
.fbt { max-height: 46vh; overflow: auto; }
.fbbody { font-size: 14px; margin-top: 2px; }
.why { display: block; margin-top: 5px; }
.why i.latin, .fbbody i.latin { font-size: 15.5px; }
@media (max-width: 560px) {
  .fb { flex-direction: column; align-items: stretch; gap: 10px; }
  .fb .btn { width: 100%; padding: 13px; font-size: 16px; }
}
.setting { align-items: flex-start !important; gap: 12px !important; padding: 8px 0; color: var(--ink) !important; font-size: 15px !important; }
.setting input { margin-top: 3px; flex: none; }
.setting > span { display: flex; flex-direction: column; font-weight: 400; }
.setting + .setting { border-top: 2px solid var(--line); padding-top: 14px; margin-top: 6px !important; }
.self { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.self .btn { padding: 14px; font-size: 16px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 18px; }
.stats3 div { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; }
.stats3 b { font-size: 26px; color: var(--pri); }
.stats3 span { font-size: 12px; color: var(--muted); }

/* ---------- Voortgang ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.wbar { width: 100%; max-width: 34px; height: 90px; background: var(--line); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.wbar div { width: 100%; background: var(--gold); border-radius: 8px; }
.wv { color: var(--ink); }
.pline { margin-bottom: 14px; }
.plab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plab span { font-size: 13px; color: var(--muted); }
