/* ---------- 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; }

/* ---------- LetterLezer ---------- */
.hero-logo.app { height: 88px; width: 88px; border-radius: 22px; box-shadow: var(--shadow-btn); }
.hero-note { color: var(--muted); font-weight: 700; font-size: 14px; margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.mode-grid { max-width: 860px; margin: 0 auto; }
.tips, .app-promo { max-width: 860px; margin: 22px auto 0; padding: 20px 24px; }
.tips h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 8px; }
.tips h2 .ic { color: var(--gold); }
.tips ul { margin: 0; padding-left: 20px; line-height: 1.6; font-weight: 600; }
.app-promo { display: flex; gap: 20px; align-items: center; }
.app-promo .app-icon { border-radius: 18px; flex: none; }
.app-promo h2 { margin: 0 0 4px; }
.app-promo p { margin: 0 0 12px; font-weight: 600; }
@media (max-width: 640px) { .app-promo { flex-direction: column; text-align: center; } }

/* Exercise layout */
.run { position: relative; }
.ex-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 4px 0 14px; }
.circle-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); text-decoration: none; }
.circle-btn:hover, .circle-btn.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-mid); }
.ex-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ex-title h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); }
.ex-title p { margin: 0; color: var(--muted); font-weight: 700; }
.mode-icon.sm { width: 46px; height: 46px; border-radius: 12px; }
.mode-icon.sm .ic { width: 24px; height: 24px; }
.mode-icon.big { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto; }
.mode-icon.big .ic { width: 40px; height: 40px; }
.goal-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 20px; font-weight: 700; }
.ex-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .ex-body { grid-template-columns: 1fr; } }
.ex-side { display: grid; gap: 14px; }

/* Camera */
.scanner { padding: 12px; }
.cam-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #1b1610; aspect-ratio: 16 / 9; }
.cam-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.cam-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-guide { position: absolute; border: 3px dashed rgba(255, 255, 255, 0.9); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28); 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: 20px; text-align: center; }
.cam-msg .ic { width: 40px; height: 40px; color: var(--danger); }
.cam-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.cam-tools .circle-btn { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.9); }
.cam-status { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px); background: rgba(255, 255, 255, 0.94); color: var(--text); border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow-btn); }
.cam-status.ok { background: var(--success); color: #fff; }
.cam-status.err { background: var(--danger); color: #fff; white-space: normal; text-align: center; }
.ocr-debug { margin-top: 10px; display: grid; gap: 4px; }
.ocr-img { display: flex; align-items: center; gap: 12px; overflow-x: auto; }
.ocr-canvas { height: 64px; width: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.type-row { display: flex; gap: 8px; margin-top: 10px; }
.type-row input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font-weight: 700; font-size: 17px; background: var(--surface-2); }
.type-row .btn { min-height: 46px; padding: 0 16px; }

/* Result card */
.result { padding: 22px; min-height: 360px; display: grid; place-items: center; text-align: center; }
.result.pop { animation: pop 0.35s; }
.idle { display: grid; justify-items: center; gap: 4px; }
.idle h2 { margin: 6px 0 0; font-size: 28px; }
.idle p { margin: 0; font-weight: 600; max-width: 320px; }
.idle-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; border: 1px solid var(--gold-mid); }
.idle-icon .ic { width: 44px; height: 44px; }
.idle-icon.ok { background: var(--success-soft); color: var(--success); border-color: var(--success); animation: pop 0.4s; }
.big-word { font-family: var(--display); font-size: 44px; font-weight: 600; color: var(--success) !important; }
.word-card { width: 100%; display: grid; justify-items: center; gap: 12px; }
.word-img { width: min(220px, 60%); aspect-ratio: 1; display: grid; place-items: center; }
.word-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.word-img.none { display: none; }
.word-text { font-family: var(--display); font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.word-text b { font-weight: 600; }
.word-text .lid { color: var(--muted); font-weight: 500; }
.klank-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.klank { min-width: 52px; height: 52px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); font-family: var(--display); font-size: 26px; font-weight: 600; }
.klank:hover { border-color: var(--gold-mid); }
.klank.on { background: var(--gold); border-color: var(--gold); color: #fff; transform: scale(1.08); }
.word-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.word-actions .btn { min-height: 46px; }

/* Microphone */
.mic { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--gold-light); border: 1px solid var(--line); font-weight: 800; font-size: 18px; }
.mic .ic { width: 26px; height: 26px; color: var(--muted); }
.mic.listening { background: var(--gold-soft); border-color: var(--gold-mid); color: var(--gold); }
.mic.listening .ic { color: var(--gold); animation: pulse 1.1s ease-in-out infinite; }
.mic.off { background: var(--danger-soft); border-color: var(--danger); font-size: 14px; text-align: left; border-radius: 14px; }
.mic.off .ic { color: var(--danger); }
.speech-fb { min-height: 1.6em; }
.speech-fb p { margin: 0; font-weight: 700; color: var(--muted); }
.speech-fb .near { color: var(--gold); font-size: 18px; }

/* History */
.history { padding: 14px 16px; }
.history h3 { margin: 0 0 10px; font-size: 18px; }
.history-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hist { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 800; font-size: 15px; }
.hist img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: #fff; }
.hist:hover { border-color: var(--gold-mid); background: var(--gold-light); }

/* Start gate */
.start-gate { position: absolute; inset: 70px 0 0; display: grid; place-items: start center; padding-top: 60px; background: rgba(250, 246, 238, 0.82); backdrop-filter: blur(3px); z-index: 5; }
.start-card { width: min(440px, calc(100% - 32px)); padding: 28px; text-align: center; }
.start-card h2 { font-size: 30px; margin: 12px 0 6px; }
.start-card p { font-weight: 600; margin: 0 0 18px; }
.start-card .btn { width: 100%; }
@media (max-width: 600px) {
  .ex-title p { display: none; }
  .ex-title .mode-icon.sm { display: none; }
  .result { min-height: 260px; padding: 16px; }
  .start-gate { padding-top: 24px; }
}

/* ---------- Werkblad (scan a page → word list) ---------- */
.ws, .ws-review, .zoom { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ws .ex-head, .ws-review .ex-head, .zoom .ex-head { margin-bottom: 0; }
.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; padding: 0; }
.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; }
.ws .resume { align-self: center; }
.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; cursor: pointer; }
.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; }

.wl-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; font-weight: 700; }
.wl-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.lg.rec { background: var(--success-soft); border: 2px solid var(--success); }
.lg.norec { background: #EFEBE4; border: 2px solid #C9C0B0; }
.wl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.wl-item { display: grid; grid-template-columns: auto 64px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; border: 2px solid var(--line); border-left-width: 8px; background: var(--surface); transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.wl-item.rec { background: #F2FAF3; border-color: #A9D9B5; border-left-color: var(--success); }
.wl-item.norec { background: #F6F3EE; border-color: #DDD5C7; border-left-color: #C9C0B0; }
.wl-item.off { opacity: 0.5; }
.wl-check input { width: 22px; height: 22px; accent-color: var(--gold); cursor: pointer; }
.wl-img { width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.wl-img img { width: 100%; height: 100%; object-fit: contain; }
.wl-noimg { display: none; color: #C9C0B0; }
.wl-item.noimg .wl-noimg { display: grid; }
.wl-word { min-width: 0; display: grid; }
.wl-word b { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; overflow-wrap: break-word; }
.wl-word .lid { color: var(--muted); font-weight: 500; font-size: 18px; }
.wl-word small { color: var(--muted); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wl-word small .ic { width: 14px; height: 14px; }
.wl-item.rec small { color: var(--success); }
.wl-item .circle-btn.small:disabled { opacity: 0.35; cursor: default; }
.wl-unknown { padding: 12px 16px; }
.wl-unknown summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.wl-unknown .chips { margin-top: 10px; }
.wl-add { margin-top: 0; }
@media (max-width: 520px) { .wl-item { grid-template-columns: auto 48px 1fr auto; } .wl-item .del { display: none; } .wl-img { width: 48px; height: 48px; } }

/* ---------- Hakken en plakken (zoom) ---------- */
.zoom-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 9px 14px; font: 700 15px Nunito, sans-serif; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--gold); color: #fff; }
.seg .ic { width: 18px; height: 18px; }
.zoom-list { display: flex; flex-direction: column; gap: 14px; }
.zoom-word { padding: 14px 16px; }
.zoom-word-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.zoom-title { border: 0; background: none; color: var(--muted); font: 800 13px Nunito, sans-serif; text-transform: uppercase; letter-spacing: 0.6px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.zoom-title:hover { color: var(--gold); }
.zoom-title .ic { width: 16px; height: 16px; }
.zoom-reset { border: 0; background: none; color: var(--gold); padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.zoom-reset:hover { background: var(--gold-light); }
.zoom-track { position: relative; overflow-x: auto; overflow-y: hidden; padding: 10px 0 16px; margin: -10px 0 -16px; }
.zoom-boxes { position: relative; display: inline-flex; gap: 6px; width: max-content; margin-right: 64px; user-select: none; -webkit-user-select: none; }
.zbox { position: relative; min-width: 58px; min-height: 96px; padding: 8px 14px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-family: var(--display); font-size: 36px; font-weight: 600; color: var(--text); transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s; }
.zbox.ph { cursor: pointer; }
.zbox.played { border-color: var(--gold-mid); }
.zbox.active { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(148, 107, 41, 0.25); }
.zbox.start { background: #E3F5E6; border-color: var(--success); color: var(--success); min-width: 46px; padding: 8px; }
.zbox.finish { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); min-width: 46px; padding: 8px; }
.zbox.reveal { flex-direction: column; gap: 4px; min-width: 110px; border-style: dashed; }
.zbox.reveal img { width: 76px; height: 54px; object-fit: contain; visibility: hidden; }
.zbox.reveal .reveal-word { font-size: 32px; line-height: 1.1; white-space: nowrap; visibility: hidden; }
.zbox.reveal .ph-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-mid); opacity: 0.5; }
.zbox.reveal.revealed, .zbox.reveal.word-first { border-style: solid; }
.zbox.reveal.revealed img, .zbox.reveal.revealed .reveal-word, .zbox.reveal.word-first img, .zbox.reveal.word-first .reveal-word { visibility: visible; }
.zbox.reveal.revealed .ph-placeholder, .zbox.reveal.word-first .ph-placeholder { display: none; }
.zbox.reveal.word-first { cursor: pointer; }
.ph-mask { position: absolute; top: 0; bottom: 0; background: #CFCFCF; border: 2px solid #BDBDBD; border-radius: 12px; z-index: 3; pointer-events: none; }
.zoom-cover { position: absolute; top: 2px; left: 0; width: 64px; height: 112px; z-index: 5; touch-action: none; cursor: grab; border-radius: 12px; background: rgba(199, 154, 78, 0.22); border: 1px solid rgba(148, 107, 41, 0.4); box-shadow: 0 4px 12px rgba(148, 107, 41, 0.18); }
.zoom-cover.dragging { cursor: grabbing; background: rgba(199, 154, 78, 0.32); box-shadow: 0 6px 20px rgba(148, 107, 41, 0.28); }
.zoom-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* "Glas-effect" (as on woordenschat.be): a white, glossy window instead of the
   gold one. No blur, so the letters under it stay sharp. */
.zoom.glass .zoom-cover { overflow: hidden; background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.zoom.glass .zoom-cover::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); pointer-events: none; }
.zoom.glass .zoom-cover.dragging { background: rgba(255, 255, 255, 0.32); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(0, 0, 0, 0.05); }
.zoom-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.zoom-nav .counter { font-weight: 800; color: var(--muted); min-width: 70px; text-align: center; }
body.zoom-fullscreen .zoom-bar { display: none; }
body.zoom-fullscreen .zoom .ex-title, body.zoom-fullscreen .zoom .back { visibility: hidden; }
body.zoom-fullscreen .site-nav { display: none; }
body.zoom-fullscreen .zoom { max-width: 100%; }

/* ---------- Accounts (copied from Rekenclub web) ---------- */
.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; }
.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; }
@media (max-width: 1080px) { .nav-links .nav-pill span { display: none; } .nav-links .nav-pill { padding: 6px 9px; } }
.site-nav { min-width: 0; }

/* Werkblad: whose list is this + save status */
.wl-owner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
.wl-owner > div:first-of-type { flex: 1; min-width: 200px; display: grid; }
.wl-owner b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.wl-owner small { color: var(--muted); font-weight: 600; }
.wl-owner.guest { background: var(--gold-light); border-style: dashed; }
.wl-owner-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--gold); border: 1px solid var(--line); }
.wl-owner-links { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-owner-links .btn { min-height: 40px; font-size: 15px; padding: 0 14px; }
.wl-save { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
.wl-save .ic { width: 18px; height: 18px; }
.wl-save.pending .ic { animation: spin 1s linear infinite; }
.wl-save.saved { color: var(--success); }
.wl-save.error { color: var(--danger); }
.wl-keep { padding: 12px 16px; }
.wl-keep summary { cursor: pointer; font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.wl-keep summary .ic { width: 18px; height: 18px; }
.wl-keep p { margin: 8px 0 0; }
.ws .resume-slot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.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; }
.ws .pdf-pager { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; }
.ws .pdf-pager .circle-btn:disabled { opacity: 0.35; cursor: default; }
