/* Nepsite "Oefenwidget": een verzonnen oefenplatform in eigen kleuren (indigo, hemelsblauw, koraal).
   Daarbovenop Katerns eigen knop zoals content.js hem op een oefening zet (ow-k-…). Vlak: geen verlopen, geen gloed. */
.t-page.ow-host { background: #eef0f8; }
.ow-fav { background: #2b2f77; }
.ow { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; overflow: hidden; background: #eef0f8; color: #1f2340; font: 15px/1.45 "Segoe UI", system-ui, sans-serif; }
.ow-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Bovenbalk */
.ow-top { position: relative; z-index: 1; flex: none; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 18px 0 66px; background: #2b2f77; color: #fff; }
.ow-brand { display: flex; align-items: center; gap: 9px; }
.ow-brand b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.ow-mark { display: flex; align-items: flex-end; gap: 3px; width: 26px; height: 26px; padding: 4px 5px; border-radius: 7px; background: #fff; }
.ow-mark i { flex: 1; border-radius: 2px; background: #4f7cff; height: 55%; }
.ow-mark i:nth-child(2) { height: 100%; background: #f05a46; }
.ow-mark i:nth-child(3) { height: 75%; background: #2b2f77; }
.ow-title { margin: 0 auto; display: grid; text-align: center; line-height: 1.25; }
.ow-title b { font-size: 16px; }
.ow-title span { font-size: 12px; color: #c3c6ee; }
.ow-top-r { display: flex; align-items: center; gap: 10px; }
.ow-pager { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; font-size: 13px; }
.ow-ico-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 9px; background: transparent; color: #fff; font: 600 13.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ow-ico-btn .k-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.ow-hand { height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: #f05a46; color: #fff; font: 700 14px "Segoe UI", system-ui, sans-serif; cursor: pointer; }

/* Vragen */
.ow-body { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; justify-items: center; align-content: start; padding: 18px 0 10px; overflow: hidden; }
.ow-qs { width: 780px; display: grid; gap: 14px; align-content: start; }
.ow-qs.three { gap: 12px; }
.ow-q { position: relative; padding: 14px 22px 16px; border: 1px solid #dde1f0; border-radius: 14px; background: #fff; }
.ow-qn { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #6b70a6; }
.ow-qt { margin: 3px 0 10px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.ow-line { margin: 0; font-size: 16px; line-height: 2.2; }
.ow-in { width: 180px; height: 36px; padding: 0 10px; border: 2px solid #c9cde6; border-radius: 8px; background: #fff; color: #1f2340; font: 16px "Segoe UI", system-ui, sans-serif; vertical-align: middle; outline: none; }
.ow-in.ow-focus, .ow-in:focus { border-color: #4f7cff; }
.ow-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ow-opt { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border: 2px solid #c9cde6; border-radius: 10px; background: #fff; color: #1f2340; font: 600 15px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ow-opt i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8a8fbf; }
.ow-opt[aria-checked="true"] { border-color: #4f7cff; background: #eef2ff; }
.ow-opt[aria-checked="true"] i { border: 6px solid #4f7cff; }
.ow-sel-wrap { position: relative; display: inline-block; vertical-align: middle; }
.ow-sel { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 160px; height: 36px; padding: 0 12px; border: 2px solid #c9cde6; border-radius: 8px; background: #fff; color: #7a7fa8; font: 16px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ow-sel.set { color: #1f2340; border-color: #4f7cff; }
.ow-caret { width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid #6b70a6; border-bottom: 2px solid #6b70a6; transform: rotate(45deg); }
.ow-sel-list { position: absolute; left: 0; top: 40px; z-index: 6; min-width: 100%; display: grid; padding: 4px; border: 1px solid #c9cde6; border-radius: 9px; background: #fff; box-shadow: 0 10px 24px rgba(30, 35, 80, .18); }
.ow-sel-o { padding: 7px 12px; border: 0; border-radius: 6px; background: none; color: #1f2340; text-align: left; font: 15px "Segoe UI", system-ui, sans-serif; line-height: 1.3; cursor: pointer; }
.ow-sel-o:hover { background: #eef2ff; }
.ow-words-line { line-height: 2.5; }
.ow-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; height: 36px; padding: 0 3px; border: 2px dashed #b4b9dc; border-radius: 8px; background: #f6f7fc; vertical-align: middle; }
.ow-gap.full { min-width: 0; border-style: solid; border-color: #4f7cff; background: #eef2ff; }
.ow-bank { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ow-bank.col { flex-direction: column; align-items: flex-start; margin: 0; }
.ow-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: #2b2f77; color: #fff; font: 600 14px "Segoe UI", system-ui, sans-serif; line-height: 1; white-space: nowrap; cursor: grab; }
.ow-moving { z-index: 7; box-shadow: 0 8px 18px rgba(20, 22, 60, .25); }
.ow-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 130px; }
.ow-col { display: grid; gap: 10px; }
.ow-m { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 2px solid #dde1f0; border-radius: 10px; background: #fff; font-weight: 600; font-size: 15px; }
.ow-col.r .ow-m { justify-content: flex-start; }
.ow-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #4f7cff; background: #fff; }
.ow-dot.on { background: #4f7cff; }
.ow-lines { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ow-lines line { stroke: #4f7cff; stroke-width: 3; stroke-linecap: round; }
.ow-pic-row { display: flex; align-items: center; gap: 30px; }
.ow-pic { position: relative; flex: none; width: 344px; height: 230px; border: 1px solid #dde1f0; border-radius: 12px; background: #e6f1fb; overflow: hidden; }
.ow-plant { position: absolute; left: 10px; top: 0; width: 220px; height: 230px; }
.ow-zone { position: absolute; left: 228px; width: 106px; height: 36px; display: flex; align-items: center; justify-content: center; border: 2px dashed #8a8fbf; border-radius: 8px; background: rgba(255, 255, 255, .9); }
.ow-zone.z0 { top: 22px; } .ow-zone.z1 { top: 86px; } .ow-zone.z2 { top: 176px; }
.ow-zone.full { border-style: solid; border-color: #4f7cff; }
.ow-arrow { position: absolute; height: 2px; background: #6b70a6; }
.ow-arrow.a0 { left: 140px; top: 40px; width: 88px; } .ow-arrow.a1 { left: 186px; top: 104px; width: 42px; } .ow-arrow.a2 { left: 152px; top: 194px; width: 76px; }
.ow-math { display: inline-block; min-width: 74px; height: 40px; padding: 0 12px; border: 2px solid #c9cde6; border-radius: 6px; background: #fff; font: 20px/36px "Cambria Math", "Times New Roman", serif; text-align: center; vertical-align: middle; }
.ow-expr { font: 21px "Cambria Math", "Times New Roman", serif; }
.ow-mline { line-height: 2.4; }
.ow-flash { animation: owFlash .7s ease; }
@keyframes owFlash { 0% { background-color: #dff5e5; border-color: #2fbe4f; } 100% { } }

/* Onderbalk */
.ow-foot { position: relative; z-index: 1; flex: none; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 128px 0 28px; border-top: 1px solid #dde1f0; background: #fff; }
.ow-nav { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 2px solid #2b2f77; border-radius: 10px; background: #fff; color: #2b2f77; font: 700 14px "Segoe UI", system-ui, sans-serif; cursor: pointer; transition: transform .12s; }
.ow-nav .k-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.ow-nav.next { background: #2b2f77; color: #fff; }
.ow-nav:disabled { opacity: .35; cursor: default; }
.ow-nav.ow-press { transform: scale(.94); }
.ow-where { font-size: 13px; color: #6b70a6; }

/* Kruiswoord */
.ow-cross { display: flex; align-items: flex-start; justify-content: center; gap: 36px; width: 940px; padding-top: 8px; }
.ow-cross-grid { padding: 18px; border: 1px solid #dde1f0; border-radius: 14px; background: #fff; }
.ow-grid { display: grid; gap: 4px; }
.ow-box { position: relative; width: 54px; height: 54px; }
.ow-box.box { display: grid; place-items: center; border: 2px solid #2b2f77; border-radius: 6px; background: #fff; font: 800 24px "Segoe UI", system-ui, sans-serif; color: #1f2340; }
.ow-box.sel { background: #dfe7ff; }
.ow-box.none { visibility: hidden; }
.ow-nbox { position: absolute; left: 4px; top: 1px; font-size: 11px; font-weight: 700; color: #6b70a6; }
.ow-clues { width: 400px; display: grid; gap: 14px; }
.ow-clue-box { padding: 14px 16px; border: 1px solid #dde1f0; border-radius: 14px; background: #fff; }
.ow-clue-box h4 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6b70a6; }
.ow-wd { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: #1f2340; text-align: left; font: 15px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ow-wd b { margin-right: 2px; }
.ow-wd.on { background: #dfe7ff; }

/* Inleveren: de site vraagt het nog eens */
.ow-notice { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(20, 22, 60, .38); }
.ow-notice-card { width: 380px; display: grid; gap: 8px; padding: 22px 24px; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(20, 22, 60, .3); }
.ow-notice-card b { font-size: 18px; }
.ow-notice-card p { margin: 0; color: #55597f; }
.ow-notice-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ow-ghost { height: 36px; padding: 0 14px; border: 1px solid #c9cde6; border-radius: 9px; background: #fff; color: #1f2340; font: 600 14px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.ow-notice-card.done { justify-items: center; text-align: center; }
.ow-ok { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #2fbe4f; color: #fff; }
.ow-ok .k-ico { width: 24px; height: 24px; stroke-width: 3; }

/* Thema's (themes.js), vlak getekend: een eigen achtergrond en de vragen op een glazen vlak */
.ow.ow-th .ow-body::before { content: ""; position: absolute; left: 220px; right: 220px; top: 8px; bottom: 0; border-radius: 18px; background: rgba(255, 255, 255, .5); }
.ow.ow-th .ow-qs, .ow.ow-th .ow-cross { position: relative; }
.ow.ow-th .ow-foot { background: rgba(255, 255, 255, .88); border-color: transparent; }
.ow-th-ocean, .ow-th-ocean .ow-scene { background: #0c4a6e; }
.ow-th-ocean .ow-top { background: #075985; }
.ow-th-ocean .ow-sc-dot { position: absolute; border-radius: 50%; border: 2px solid rgba(186, 230, 253, .55); }
.ow-sc-wave { position: absolute; left: -10%; right: -10%; height: 46%; border-radius: 50% 50% 0 0; }
.ow-sc-wave.w1 { bottom: -18%; background: #0369a1; }
.ow-sc-wave.w2 { bottom: -30%; left: 20%; background: #075985; }
.ow-th-galaxy, .ow-th-galaxy .ow-scene { background: #0b0620; }
.ow-th-galaxy .ow-top { background: #3b1d70; }
.ow-th-galaxy .ow-sc-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e9e3ff; }
.ow-sc-planet { position: absolute; right: 6%; top: 14%; width: 120px; height: 120px; border-radius: 50%; background: #f59e0b; box-shadow: inset -26px -18px 0 #c2410c; }
.ow-th-sakura, .ow-th-sakura .ow-scene { background: #fde2ec; }
.ow-th-sakura .ow-top { background: #be185d; }
.ow-th-sakura .ow-sc-dot { position: absolute; border-radius: 70% 0 70% 0; background: #f9a8d4; transform: rotate(30deg); }
.ow-th-aurora, .ow-th-aurora .ow-scene { background: #04121f; }
.ow-th-aurora .ow-top { background: #065f46; }
.ow-sc-band { position: absolute; left: -10%; right: -10%; height: 90px; border-radius: 50%; }
.ow-sc-band.b1 { top: 18%; background: #10b981; transform: rotate(-6deg); opacity: .55; }
.ow-sc-band.b2 { top: 30%; background: #8b5cf6; transform: rotate(4deg); opacity: .4; }

/* ---------- Katerns knop op de oefening (content.js #bwai-app) ---------- */
.ow-k-app { position: absolute; z-index: 20; display: flex; flex-direction: column; gap: 8px; }
.ow-k-app.pos-top-left { top: 8px; left: 8px; align-items: flex-start; }
.ow-k-app.pos-top-right { top: 8px; right: 8px; align-items: flex-end; }
.ow-k-app.pos-bottom-left { bottom: 8px; left: 8px; align-items: flex-start; }
.ow-k-app.pos-bottom-right { bottom: 8px; right: 8px; align-items: flex-end; }
.ow-k-row { display: flex; }
.ow-k-logo { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: grab; }
.ow-k-logo img { display: block; width: 42px; height: 42px; border-radius: 12px; }
.ow-k-panel { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.ow-k-fill { width: 100%; padding: 8px 14px; border: 2px solid #1a140c; border-radius: 10px; background: #ffe14a; color: #1a140c; box-shadow: 2px 2px 0 #1a140c; font: 800 14px "Segoe UI", system-ui, sans-serif; cursor: pointer; transition: transform .12s; }
.ow-k-fill:hover { background: #ffd21a; }
.ow-k-fill:active, .ow-k-fill.ow-press { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #1a140c; }
.ow-k-meter { height: 8px; border: 2px solid #1a140c; border-radius: 999px; background: #e7f6df; overflow: hidden; }
.ow-k-meter > div { width: 0; height: 100%; border-radius: 999px; background: #2fbe4f; transition: width .4s; }
.ow-k-mlabel { display: block; align-self: center; padding: 1px 7px; border-radius: 999px; background: #fffdf6; color: #1a140c; font: 800 10.5px/1.3 "Segoe UI", system-ui, sans-serif; text-align: center; }
.ow:not(.ow-filling) .ow-k-meter, .ow:not(.ow-filling) .ow-k-mlabel { display: none; }
.ow-k-toast { position: relative; display: flex; align-items: center; gap: 10px; max-width: 340px; padding: 9px 16px 9px 9px; border-radius: 999px; background: #1a140c; color: #fffaf1; box-shadow: 0 10px 28px rgba(26, 20, 12, .28); overflow: hidden; cursor: pointer; animation: owToast .38s cubic-bezier(.2, .9, .3, 1.15); }
.ow-k-tmark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffe14a; color: #1a140c; }
.ow-k-tmark .k-ico { width: 14px; height: 14px; stroke-width: 3; }
.ow-k-ttext { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ow-k-ttext b { font-size: 13px; font-weight: 800; white-space: nowrap; }
.ow-k-ttext small { font-size: 11px; color: #b9ad98; white-space: nowrap; }
.ow-k-toast .ow-k-life { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: #ffe14a; opacity: .55; transform-origin: left; animation: owLife 5.2s linear forwards; }
.ow-k-toast.stop .ow-k-tmark { background: #3a3128; color: #fffaf1; }
.ow-k-sq { width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
.ow.ow-c-top-right .ow-top { padding: 0 66px 0 18px; }
.ow-k-ball { position: absolute; right: 18px; bottom: 76px; z-index: 19; width: 58px; height: 58px; padding: 3px; border: 0; border-radius: 50%; background: #ffe14a; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); cursor: pointer; }
.ow-k-ball img { display: block; width: 52px; height: 52px; border-radius: 50%; }
.ow-k-float { position: absolute; left: 0; right: 0; top: 0; z-index: 21; height: 5px; background: rgba(26, 20, 12, .15); pointer-events: none; }
.ow-k-float > div { width: 0; height: 100%; background: #2fbe4f; transition: width .4s; }
.ow-k-mark { position: absolute; z-index: 9; border: 2px solid #ffb43c; border-radius: 16px; pointer-events: none; transition: left .35s, top .35s, width .35s, height .35s; }
.ow-k-mark span { position: absolute; left: 12px; top: -14px; padding: 2px 10px; border: 2px solid #1a140c; border-radius: 999px; background: #ffe14a; color: #17130b; font: 700 11px/1.5 "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.ow-k-cur { position: absolute; left: 0; top: 0; z-index: 30; width: 0; height: 0; pointer-events: none; will-change: transform; }
.ow-k-arrow { position: absolute; left: -1px; top: -1px; width: 19px; height: 27px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); transition: transform .1s; transform-origin: 1px 1px; }
.ow-k-cur.press .ow-k-arrow { transform: scale(.88); }
.ow-k-tap { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ffcf2e; background: rgba(255, 225, 74, .22); opacity: 0; }
.ow-k-tap.go { animation: owTap .45s ease-out; }
@keyframes owTap { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.3); } }
@keyframes owToast { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes owLife { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .ow-flash, .ow-k-toast, .ow-k-tap.go { animation: none !important; } }
