/* Rekenclub web — visual style matches tafelvierkant.be (bijleren.eu family):
   Fredoka for headings/buttons, Nunito for body, cream background with a faint
   gold hexagon pattern, white cards with a warm border, solid gold buttons. */

:root {
  --gold: #946B29;
  --gold-mid: #C79A4E;       /* active pill border */
  --gold-soft: #F3E9D6;      /* active pill / highlight fill */
  --gold-light: #FBF3E3;
  --cream: #FAF6EE;
  --surface: #FFFFFF;
  --surface-2: #FFFDF8;
  --text: #2F2A22;
  --muted: #756A58;
  --line: #E8DDC8;
  --success: #2E9E4F;
  --success-soft: #D6F0D6;
  --danger: #C0392B;
  --danger-soft: #F7D9D2;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --gold-grad: #946B29;
  --on-gold: #fff;
  --radius: 16px;
  --radius-lg: 16px;
  --display: Fredoka, Nunito, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Nunito, -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
.hex-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23946B29' stroke-width='1.5'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23946B29' stroke-width='1.5'/%3E%3C/svg%3E");
}
h1, h2, h3, .display, dialog h2, .op-card b, .step-label b, .ws-items input, .ws-items .op, .review-list .res, .btn, .validate, .key, .typed, .question, .goal-pill, .top-chip, .done-card h2, .done-stats b, .op-card span, .tile b { font-family: var(--display); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold-mid); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { width: 1.1em; height: 1.1em; flex: none; }
svg.ic { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }

/* ---------- Top nav (as on tafelvierkant.be) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 10; height: 66px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: 4px; }
.brand img { height: 26px; width: auto; display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.nav-links { display: flex; gap: 8px; flex: 1; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.nav-pill:hover { background: var(--gold-light); }
.nav-pill.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-mid); }
@media (max-width: 640px) {
  .brand img { display: none; }
  .nav-pill span { display: none; }
  .site-nav { padding: 0 12px; }
}

/* ---------- Layout ---------- */
.screen { max-width: 1240px; margin: 0 auto; padding: 16px 16px 40px; min-height: calc(100vh - 66px); }
.screen.narrow { max-width: 720px; }
.screen.center { display: grid; place-items: center; }

.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; margin-bottom: 8px; }
.top-center { display: flex; justify-content: center; min-width: 0; }
.top-right { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.screen-title { text-align: center; margin: 4px 0 18px; }
.screen-title h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; margin: 0; }
.screen-title p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.circle-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted);
}
.circle-btn.small { width: 36px; height: 36px; box-shadow: none; }
.circle-btn .ic { width: 22px; height: 22px; }
.circle-btn.small .ic { width: 18px; height: 18px; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px;
}
.top-chip, .goal-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: 17px; white-space: nowrap;
}
.top-chip { border: 2px solid var(--accent, var(--line)); }
.goal-pill .ic { color: var(--success); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid var(--line); font-weight: 600; font-size: 18px; text-decoration: none;
}
.btn.primary { background: var(--gold); color: #fff; border: none; box-shadow: var(--shadow-btn); }
.btn.primary:hover { background: #825D22; }
.btn.secondary { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.btn.secondary:hover { background: var(--gold-light); }
.btn.big { min-height: 56px; font-size: 18px; padding: 0 32px; }
.setup > .btn.big { width: 100%; margin-top: 8px; }
.row-actions { display: flex; gap: 10px; margin-top: 12px; }
.row-actions .btn { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-weight: 700; font-size: 15px; min-height: 40px;
}
.chip.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-mid); }
.op-sym { font-family: var(--display); font-weight: 600; font-size: 1.15em; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.warn { color: var(--danger); font-weight: 700; margin: 8px 0 0; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--gold-light); border-top-color: var(--gold); animation: spin 0.9s linear infinite; margin: auto; }
.spinner.big { width: 52px; height: 52px; border-width: 5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: 0.25s;
  background: var(--text); color: var(--cream); padding: 12px 18px; border-radius: 14px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.switch { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-weight: 700; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 28px; text-align: center; color: var(--muted); font-weight: 700; }
.empty .ic { width: 44px; height: 44px; color: var(--gold); }

/* ---------- Home ---------- */
.home-hero { text-align: center; margin: 28px auto 26px; max-width: 760px; }
.hero-logo { height: 62px; width: auto; }
.home-hero h1.display { font-size: clamp(44px, 8vw, 64px); font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.01em; }
.tagline { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin: 0 auto; max-width: 600px; line-height: 1.4; }
.tagline strong { color: var(--gold); font-weight: 700; }
.range-card { max-width: 860px; margin: 0 auto 22px; padding: 20px; text-align: center; }
.range-card h2 { font-size: 24px; font-weight: 600; margin: 0 0 10px; }
.range-label { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.range-chips { justify-content: center; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mode-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mode-card:hover { transform: translateY(-2px); border-color: var(--gold-mid); box-shadow: var(--shadow-btn); }
.mode-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.mode-icon .ic { width: 30px; height: 30px; }
.mode-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.mode-text b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.mode-text small { color: var(--muted); font-weight: 600; font-size: 15px; }
.mode-card .chev { color: var(--gold); }
.home-foot { text-align: center; color: var(--muted); font-weight: 600; margin-top: 28px; font-size: 14px; }

/* ---------- Runner ---------- */
.run { display: flex; flex-direction: column; }
.run-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .run-body { grid-template-columns: 1fr; } }

.question-card {
  position: sticky; top: 82px; min-height: min(62vh, 520px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px 20px; gap: 12px; text-align: center;
}
@media (max-width: 860px) { .question-card { position: static; min-height: 220px; } }
.question { width: 100%; font-size: var(--qsize, 64px); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .question { font-size: calc(var(--qsize, 64px) * 0.62); } }
.eq { overflow-wrap: anywhere; }
.eq.sentence { font-size: 0.6em; line-height: 1.25; }
.slot { color: var(--gold); display: inline-block; min-width: 0.7em; }
.slot.ok { color: var(--success); animation: pop 0.4s; }
.answer-box { margin-top: 14px; display: inline-flex; min-width: 2.2em; padding: 0 0.3em; justify-content: center; border: 3px dashed var(--line); border-radius: 18px; }
.check { color: var(--success); opacity: 0; transform: scale(0.6); transition: 0.35s cubic-bezier(.2, 1.4, .4, 1); }
.check .ic { width: 72px; height: 72px; }
.solved .check { opacity: 1; transform: scale(1); }
.q-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
@keyframes pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

.inputs { display: grid; gap: 12px; }
.toggles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.toggle {
  display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 13px; color: var(--muted);
}
.toggle .ic { width: 22px; height: 22px; }
.toggle.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-mid); }
.panel { padding: 14px; border-radius: 20px; }
.status { color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; min-height: 1.3em; }
.status.warn { color: var(--danger); }

.cam-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; margin-bottom: 8px; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-guide { position: absolute; left: 15%; top: 25%; width: 70%; height: 50%; border: 3px dashed rgba(255, 255, 255, 0.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25); pointer-events: none; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 700; padding: 16px; text-align: center; }
.cam-msg.err { color: var(--danger); }
.cam-switch { position: absolute; top: 8px; right: 8px; }

.mic-line { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 16px; }
.mic-line .wave { color: var(--muted); width: 26px; height: 26px; }
.mic-panel.listening .wave { color: var(--gold); animation: pulse 1.1s ease-in-out infinite; }
.mic-label.err { color: var(--danger); }
@keyframes pulse { 50% { opacity: 0.35; } }

.typed {
  height: 60px; display: grid; place-items: center; font-size: 38px; font-weight: 600; border-radius: 14px;
  background: var(--surface-2); border: 2px solid var(--line); margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.typed.wrong { border-color: var(--danger); animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.key {
  height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-size: 26px; font-weight: 600; display: grid; place-items: center; box-shadow: var(--shadow);
}
.key:hover { background: var(--gold-light); }
.key:active { transform: scale(0.96); background: var(--gold-soft); }
.validate {
  width: 100%; margin-top: 8px; height: 54px; border: none; border-radius: 12px; background: var(--success); color: #fff;
  font-size: 19px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--shadow-btn);
}

.draw-wrap { position: relative; height: 230px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.draw-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.draw-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #9CA3AF; font-weight: 800; pointer-events: none; }
.draw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.draw-foot .status { text-align: left; }
.clear-draw.pulse { animation: wiggle 0.6s 2; border-color: var(--danger); color: var(--danger); }
@keyframes wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); display: grid; place-items: center; padding: 16px; z-index: 20; }
.done-card { width: min(460px, 100%); padding: 26px; text-align: center; max-height: calc(100vh - 32px); overflow: auto; }
.done-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-mid); display: grid; place-items: center; margin: 0 auto; }
.done-badge .ic { width: 38px; height: 38px; }
.done-card h2 { font-size: 32px; font-weight: 700; margin: 12px 0; }
.done-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 12px; }
.done-stats div { display: grid; }
.done-stats b { font-size: 28px; font-weight: 600; }
.done-stats span { color: var(--muted); font-weight: 700; }
.done-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.done-list li { background: var(--success-soft); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 15px; }
.done-actions { display: flex; gap: 10px; }
.done-actions .btn { flex: 1; }

/* ---------- Rekenmuur ---------- */
.wall-rows { display: grid; gap: 10px; }
.wall-row { display: flex; gap: 10px; justify-content: center; }
.tile {
  position: relative; flex: 1 1 0; max-width: 150px; min-width: 0; min-height: 84px; padding: 10px 6px; border-radius: 14px;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--accent) 35%, transparent);
  display: grid; align-content: center; gap: 4px; text-align: center;
}
.tile b { font-size: clamp(14px, 2vw, 20px); font-weight: 600; }
.tile small { color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.tile .badge { position: absolute; top: -8px; right: -6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 7px; }
@media (max-width: 700px) {
  .wall-row { flex-wrap: wrap; gap: 6px; }
  .tile { flex: 1 1 calc(25% - 6px); min-height: 70px; }
  .tile small { display: none; }
}

/* ---------- Leerlijn ---------- */
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.op-card {
  display: grid; justify-items: center; gap: 4px; padding: 26px 10px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.op-card span { font-size: 60px; font-weight: 600; color: var(--gold); line-height: 1; }
.op-card b { font-size: 18px; font-weight: 800; }
.op-card:hover { transform: translateY(-2px); }
.step-nav { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; }
.step-label { display: grid; text-align: center; min-width: 96px; }
.step-label b { font-size: 15px; font-weight: 800; }
.step-label small { color: var(--muted); font-weight: 800; font-size: 12px; }
.nav-arrow { width: 38px; height: 38px; border: none; background: none; color: var(--gold); display: grid; place-items: center; border-radius: 50%; }
.nav-arrow:disabled { color: var(--muted); }
@media (max-width: 560px) { .too-hard { padding: 10px; font-size: 0; gap: 0; } .too-hard .ic { font-size: 18px; } }

/* ---------- Setup screens ---------- */
.setup-card { padding: 18px; margin-bottom: 14px; }
.setup-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.setup-card h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.custom-goal { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; color: var(--muted); }
.custom-goal input { width: 96px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 800; }
.builder-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; }
@media (max-width: 620px) { .builder-grid { grid-template-columns: 1fr; } }
.rank-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rank {
  min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line); 
  background: #fff; font-weight: 700; font-size: 16px; color: var(--muted);
}
.rank.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-mid); }
.rank.dec { font-style: italic; }
.draft-example { margin: 14px 0; padding: 12px; border-radius: 12px; background: var(--gold-light); border: 1px solid var(--line); font-weight: 700; text-align: center; }
.struct-list, .preview-list, .review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.struct-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.struct-list li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.struct-list small { color: var(--muted); font-weight: 700; width: 100%; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--gold-light); }
.preview-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.preview-list li { font-weight: 800; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.typed-input { width: 100%; min-height: 220px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 20px; font-weight: 700; line-height: 1.5; resize: vertical; }
.count { color: var(--muted); font-weight: 700; font-size: 14px; }
.review-list li { display: grid; grid-template-columns: 1fr auto 1.2fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.review-list .src { color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.review-list .arrow { color: var(--gold); }
.review-list .res { font-weight: 800; }
.review-list li.bad .res { color: var(--danger); font-weight: 700; font-size: 14px; }

/* ---------- Worksheet ---------- */
.ws { display: flex; flex-direction: column; gap: 12px; }
.ws-hint { text-align: center; color: var(--gold); font-weight: 800; font-size: 18px; margin: 0; }
.ws-cam { position: relative; overflow: hidden; background: #000; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; margin: 0 auto; border-width: 2px; }
.ws-cam video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ws-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ws-actions .btn.big { flex: 1; max-width: 420px; }
.upload { cursor: pointer; }
.crop-stage { display: grid; place-items: center; }
.crop-box { position: relative; max-width: 100%; max-height: 64vh; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.crop-img { display: block; width: 100%; height: 100%; }
.crop-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.crop-rect { position: absolute; border: 3px solid var(--gold-mid); background: rgba(184, 135, 66, 0.18); border-radius: 6px; }
.crop-rect.live { border-style: dashed; }
.crop-num { position: absolute; top: -2px; left: -2px; background: var(--gold-mid); color: #fff; font-weight: 800; font-size: 13px; padding: 1px 7px; border-radius: 6px 0 6px 0; }
.crop-del { position: absolute; top: -12px; right: -12px; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--danger); color: #fff; font-weight: 800; font-size: 18px; line-height: 1; }
.processing { padding: 32px; text-align: center; width: min(420px, 100%); display: grid; gap: 10px; }
.processing h3 { margin: 6px 0 0; font-weight: 800; }
.progress { height: 10px; border-radius: 999px; background: var(--gold-light); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--gold); transition: width 0.3s; }
.ws-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ws-items li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; }
.ws-items li.bad { border-color: var(--danger); }
.ws-items .num { width: 26px; color: var(--muted); font-weight: 800; }
.ws-items input { width: 92px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 22px; font-weight: 800; text-align: center; }
.ws-items .op { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--gold-light); font-size: 24px; font-weight: 800; color: var(--gold); }
.ws-items .eq { flex: 1; font-size: 20px; font-weight: 700; color: var(--muted); }
.ws-items .eq b { color: var(--text); }
.setup > .btn.add { width: 100%; }
@media (max-width: 520px) { .ws-items input { width: 70px; font-size: 18px; } .ws-items .num { display: none; } }

/* ---------- Settings dialog ---------- */
dialog.settings { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); padding: 22px; width: min(460px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
dialog.settings::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog.settings header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
dialog.settings h2 { margin: 0; font-weight: 800; }
dialog.settings .row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
dialog.settings .row span { display: grid; }
dialog.settings small { color: var(--muted); font-weight: 600; }
dialog.settings select { padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; }

/* ---------- Landing (merged from the reken.club landing page) ---------- */
.tagline-sub { color: var(--muted); margin: 8px auto 0; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; margin: 14px 0 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; flex: none; }
#oefenen { scroll-margin-top: 82px; }

.promo { margin: 56px auto 0; max-width: 1000px; text-align: center; }
.section-title { font-size: clamp(26px, 4vw, 34px); font-weight: 700; margin: 0; }
.section-sub { color: var(--muted); margin: 6px 0 20px; font-size: 17px; }
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 820px) { .ways { grid-template-columns: repeat(2, 1fr); } }
.way { padding: 18px 14px; display: grid; justify-items: center; gap: 6px; }
.way b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.way small { color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.35; }
.video { overflow: hidden; aspect-ratio: 16 / 9; padding: 0; position: relative; max-width: 820px; margin: 0 auto; }
.video iframe, .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { padding: 0; background: #000; cursor: pointer; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; display: block; }
.video-poster .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-btn); }
.video-poster .play .ic { width: 34px; height: 34px; margin-left: 4px; }
.video-poster:hover .play { background: #825D22; }
.video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }

.app-promo { max-width: 1000px; margin: 40px auto 0; padding: 26px; display: flex; gap: 26px; align-items: center; }
.app-icon { border-radius: 22px; box-shadow: var(--shadow-btn); flex: none; }
.app-text h2 { font-size: 28px; font-weight: 700; margin: 10px 0 8px; }
.app-text ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-weight: 600; }
.app-text li .ic { color: var(--success); }
.app-text .muted { margin: 10px 0 0; }
.badge-now { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-mid); color: var(--gold); font-weight: 700; font-size: 13px; }
@media (max-width: 640px) { .app-promo { flex-direction: column; text-align: center; } .app-text ul { justify-items: center; } }

.privacy { max-width: 1000px; margin: 20px auto 0; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; background: #EEF8EF; border-color: #CBE8CF; }
.privacy > .ic { color: var(--success); width: 22px; height: 22px; margin-top: 2px; }
.privacy p { margin: 0; font-size: 15px; line-height: 1.45; }

/* ---------- Accounts (tafelvierkant.be login model) ---------- */
.nav-account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-pill.solid { background: var(--gold); color: #fff; border-color: var(--gold); }
.nav-pill.solid:hover { background: #825D22; }
.nav-pill.icon-only { padding: 6px 9px; }
.avatar {
  width: var(--sz, 40px); height: var(--sz, 40px); border-radius: calc(var(--sz, 40px) * 0.28); flex: none;
  display: inline-grid; place-items: center; background: var(--av); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: calc(var(--sz, 40px) * 0.4); line-height: 1; vertical-align: middle;
}
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--text); }
.acct-btn:hover { background: var(--gold-light); }
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 8px; z-index: 30; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); }
.menu-sec { padding: 8px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.menu-sec small { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.menu-sec b { display: flex; align-items: center; gap: 8px; font-weight: 700; overflow-wrap: anywhere; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; border: none; background: none; text-align: left; color: var(--text); font-weight: 700; text-decoration: none; font-size: 15px; }
.menu-item:hover { background: var(--gold-light); }
.menu-item .ic { color: var(--gold); }
@media (max-width: 640px) { .acct-name, .nav-account .nav-pill span { display: none; } }

.screen.auth { max-width: 460px; display: flex; flex-direction: column; justify-content: center; padding-top: 32px; }
.auth-head { text-align: center; display: grid; justify-items: center; gap: 10px; margin-bottom: 18px; }
.auth-head img { height: 54px; width: auto; }
.auth-head h1 { font-size: 26px; font-weight: 600; margin: 0; }
.auth-head p { margin: 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.platform-pill { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.platform-pill span { flex: 1; height: 1px; background: var(--line); }
.platform-pill b { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.auth-card { padding: 28px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label, .field { display: grid; gap: 6px; font-size: 14px; font-weight: 800; }
.auth-form input:not([type=checkbox]), .field input, .search {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 16px;
}
.auth-form input:focus, .field input:focus, .search:focus { outline: none; box-shadow: 0 0 0 3px var(--gold-soft); border-color: var(--gold-mid); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 12px; font-weight: 700; text-decoration: none; }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--muted); padding: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 600 !important; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.btn.wide { width: 100%; }
.btn.dashed { background: #fff; border: 2px dashed var(--gold-mid); color: var(--gold); box-shadow: none; }
.btn.dashed:hover { background: var(--gold-soft); border-color: var(--gold); }
.auth-split { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.eyebrow { text-align: center; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; }
.auth-alt { text-align: center; color: var(--muted); font-weight: 700; margin: 18px 0 0; font-size: 15px; }
.auth-alt a { font-weight: 800; text-decoration: none; }
.auth-note { margin-top: 16px; padding: 14px; border-radius: 12px; background: rgba(243, 233, 214, 0.6); border: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.auth-note a { font-weight: 800; }
.auth-links { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.auth-links a:hover { color: var(--text); }
.form-error { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px; border-radius: 12px; background: var(--danger-soft); border: 1px solid #E8A99C; font-weight: 700; font-size: 14px; }
.form-error .ic { color: var(--danger); }
.done-msg { text-align: center; display: grid; gap: 10px; justify-items: center; }
.done-msg > .ic { width: 44px; height: 44px; color: var(--success); }
.done-msg h2 { margin: 0; font-weight: 600; }
.spinner.small { width: 20px; height: 20px; border-width: 3px; border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; margin: 0; }
.link { border: none; background: none; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.link:hover { color: var(--text); }

.qr-box { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #111; }
.qr-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-frame { position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }
.qr-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: var(--gold-light); color: var(--text); font-weight: 700; }
.qr-msg.err { color: var(--danger); }
.qr-status { margin: 10px 0 0; }

.picker .screen-title { text-align: left; }
.picker-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.picker-head h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; margin: 0; }
.picker-head p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.picker-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.picker-actions .btn { min-height: 44px; font-size: 16px; padding: 0 16px; }
.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.card.student { display: grid; justify-items: center; gap: 10px; padding: 18px 10px; text-align: center; cursor: pointer; transition: 0.15s; }
.card.student:hover, .card.student.on { border-color: var(--gold-mid); transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.card.student b { font-family: var(--display); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.group-list { display: grid; gap: 10px; margin-bottom: 14px; }
.card.group { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; cursor: pointer; }
.card.group > .ic:first-child { width: 28px; height: 28px; color: var(--gold); }
.card.group span { flex: 1; display: grid; }
.card.group b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.card.group small { color: var(--muted); font-weight: 700; }
.card.group:hover { border-color: var(--gold-mid); }
.card.group .chev { color: var(--gold); }
.new-group, .new-student { display: grid; gap: 14px; }
.new-group h3, .new-student h3 { margin: 0; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; background: var(--av); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch.on { box-shadow: 0 0 0 3px var(--gold); }
.search { margin-bottom: 14px; }

.progress-head { display: flex; align-items: center; gap: 16px; margin: 4px 0 20px; }
.progress-head h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 700; }
.progress-head p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 600px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 16px; text-align: center; display: grid; gap: 2px; }
.stat b { font-family: var(--display); font-size: 26px; font-weight: 600; }
.stat span { color: var(--muted); font-weight: 700; font-size: 13px; }
.ex-progress { padding: 18px; margin-bottom: 12px; }
.ex-progress h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; font-weight: 600; flex-wrap: wrap; }
.ex-progress h3 small { margin-left: auto; color: var(--muted); font-family: Nunito, sans-serif; font-weight: 700; font-size: 14px; }
.mode-icon.small { width: 36px; height: 36px; border-radius: 10px; }
.mode-icon.small .ic { width: 20px; height: 20px; }
.skill-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-weight: 700; }
.skill-table td { padding: 8px 6px; border-top: 1px solid var(--line); }
.skill-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-cell { width: 40%; }
.bar-cell .num { margin-left: 8px; font-size: 13px; color: var(--muted); }
.meter { display: inline-block; width: calc(100% - 52px); height: 8px; border-radius: 999px; background: var(--gold-soft); overflow: hidden; vertical-align: middle; }
.meter span { display: block; height: 100%; background: var(--success); border-radius: 999px; }
@media (max-width: 1080px) { .nav-links .nav-pill span { display: none; } .nav-links .nav-pill { padding: 6px 9px; } }
@media (max-width: 820px) { .nav-account .nav-pill:not(.solid) span { display: none; } .nav-account .nav-pill:not(.solid) { padding: 6px 9px; } }
.site-nav { min-width: 0; }

/* ---------- Snel oefenen: quick rows ---------- */
.quick-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin: 0 auto 12px; max-width: 1000px; }
.quick-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line); flex: none; }
.quick-label { font-family: var(--display); font-weight: 600; font-size: 20px; }
.quick-select { padding: 8px 34px 8px 12px; border-radius: 12px; border: 1px solid var(--gold-mid); background: var(--gold-soft); color: var(--gold); font-family: var(--display); font-weight: 600; font-size: 20px; cursor: pointer; }
.quick-example { color: var(--muted); font-weight: 700; flex: 1; min-width: 120px; }
.play-btn { margin-left: auto; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-btn); flex: none; }
.play-btn:hover:not(:disabled) { background: #825D22; }
.play-btn .ic { width: 24px; height: 24px; margin-left: 3px; }
.op-toggle { display: flex; gap: 6px; }
.op-btn, .num-btn { position: relative; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 12px; font-weight: 700; }
.op-btn { padding: 8px 12px; font-size: 15px; }
.op-btn b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.num-btn { min-width: 42px; height: 42px; padding: 0 8px; font-family: var(--display); font-size: 18px; font-weight: 600; }
.op-btn.on, .num-btn.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-mid); }
.num-btn.all-btn { font-family: Nunito, sans-serif; font-size: 14px; font-weight: 800; }
.num-btn .badge { position: absolute; top: -8px; right: -6px; background: #6B5C9E; color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 6px; font-family: Nunito, sans-serif; }
.table-nums { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.wall-heading { text-align: center; font-size: 22px; font-weight: 600; margin: 26px 0 12px; }
@media (max-width: 700px) {
  .quick-row { gap: 10px; }
  .quick-icon { display: none; }
  .tables-row .table-nums { order: 3; flex-basis: 100%; }
}
.quick-select.small { font-size: 16px; padding: 8px 30px 8px 10px; }
.hr-row .op-btn { min-width: 44px; }

/* ---------- Cookie banner + legal footer (as on tafelvierkant.be) ---------- */
.cookie-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 16px; pointer-events: none; transform: translateY(30px); opacity: 0; transition: 0.25s; }
.cookie-wrap.show { transform: none; opacity: 1; }
.cookie-banner { pointer-events: auto; max-width: 672px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); padding: 16px 20px; display: flex; align-items: center; gap: 16px; }
.cookie-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-mid); color: var(--gold); display: grid; place-items: center; flex: none; }
.cookie-icon .ic { width: 20px; height: 20px; }
.cookie-text { flex: 1; min-width: 0; }
.cookie-text b { font-family: var(--display); font-weight: 700; font-size: 16px; }
.cookie-text p { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.cookie-text a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cookie-decline { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: 14px; }
.cookie-decline:hover { color: var(--text); }
.cookie-accept { padding: 8px 16px; border-radius: 12px; border: none; background: var(--gold); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; }
.cookie-accept:hover { background: #825D22; }
.cookie-close { padding: 8px; border: none; background: none; color: var(--muted); border-radius: 12px; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: flex-start; } }
.legal-foot { margin-top: 32px; padding-bottom: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); display: grid; gap: 8px; }
.legal-foot > div:first-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.legal-foot span { opacity: 0.4; }
.legal-foot a, .legal-foot button { color: var(--muted); text-decoration: none; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.legal-foot a:hover, .legal-foot button:hover { color: var(--text); }
.legal-copy { opacity: 0.75; }

/* ---------- Feedback (tafelvierkant "Feedback geven" + iPad "Mijn feedback") ---------- */
.site-nav > .open-feedback { margin-left: auto; }
.site-nav > .open-feedback + .nav-account { margin-left: 0; }
@media (max-width: 1080px) { .site-nav > .open-feedback span { display: none; } .site-nav > .open-feedback { padding: 6px 9px; } }
.fb-overlay { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.2s; }
.fb-overlay.show { opacity: 1; }
.fb-modal { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; }
.fb-modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.fb-modal h2 { margin: 0; font-size: 20px; font-weight: 600; }
.fb-close { border: none; background: none; color: var(--muted); padding: 6px; border-radius: 8px; }
.fb-close:hover { background: var(--gold-light); color: var(--text); }
.fb-body { padding: 18px 22px 22px; }
.fb-form { display: grid; gap: 16px; }
.fb-label { font-size: 14px; font-weight: 800; margin-bottom: -6px; }
.fb-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fb-type { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; }
.fb-type .ic { color: var(--gold); width: 18px; height: 18px; }
.fb-type b { font-family: var(--display); font-weight: 600; font-size: 13px; }
.fb-type small { font-size: 10px; font-weight: 700; color: var(--muted); }
.fb-type.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.fb-type.on .ic, .fb-type.on small { color: rgba(255, 255, 255, 0.85); }
.fb-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; resize: vertical; }
.fb-form textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--gold-soft); border-color: var(--gold-mid); }
.fb-error { padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); font-weight: 700; font-size: 14px; }
.fb-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fb-actions > div { display: flex; gap: 8px; }
.fb-actions .btn { min-height: 44px; font-size: 16px; padding: 0 16px; }
.fb-done { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 20px 0; }
.fb-done > .ic { width: 56px; height: 56px; color: var(--success); }
.fb-done h3 { margin: 0; font-size: 22px; font-weight: 600; }
.fb-done p { margin: 0 0 8px; color: var(--muted); font-weight: 600; }
.fb-list { display: grid; gap: 12px; }
.fb-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.fb-kind { color: var(--gold); display: inline-flex; align-items: center; gap: 4px; }
.fb-status { color: var(--c); display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.fb-meta .ic { width: 14px; height: 14px; }
.fb-desc { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.fb-reply { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: #EEF8F8; border: 1px solid #BFE3E3; }
.fb-reply small { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #1F8A8A; }
.fb-reply p { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; }

/* ---------- Splitsen card ---------- */
.split-card { max-width: 1000px; margin: 0 auto 12px; padding: 14px 16px; display: grid; gap: 10px; }
.split-head { display: flex; align-items: center; gap: 12px; }
.sentence { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: var(--gold-light); border: 1px solid var(--line); }
.sentence > span { font-family: var(--display); font-weight: 600; font-size: 18px; }
.sentence .quick-example { flex: 1; min-width: 110px; }
.sentence .play-btn { width: 46px; height: 46px; }

/* ---------- Snel oefenen: rows as sentences ---------- */
.sentence-card { max-width: 1000px; margin: 0 auto 12px; padding: 10px; }
.sentence-card .sentence { background: none; border: none; padding: 4px 6px; }
.sentence > label { font-family: var(--display); font-weight: 600; font-size: 18px; }
.sentence .quick-icon { width: 40px; height: 40px; }
.sentence .op-toggle, .sentence .table-nums { display: inline-flex; flex-wrap: wrap; gap: 6px; flex: 0 1 auto; }
.sentence .play-btn { margin-left: auto; }
.sentence select.quick-select { flex: 0 0 auto; width: auto; max-width: 100%; }
