/* Hoofdstuk 2: Katern Agent. De agent in de popup (donker), de agent op de oefening, de schuif, het menu onder +. */
.h02-fav { background: #4f46e5; }

/* ---- De oefenpagina "Oefenhoek" (verzonnen) ---- */
.t-page.h02-ex { background: #f3f4f6; color: #111827; }
.h02-ex-app { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: "Segoe UI", system-ui, sans-serif; }
.h02-ex-top { flex: none; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: #312e81; color: #fff; }
.h02-ex-logo { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.h02-ex-logo i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #a5b4fc; color: #1e1b4b; font: 800 16px/1 "Segoe UI", sans-serif; font-style: normal; }
.h02-ex-vak { color: #c7d2fe; font-size: 14px; }
.h02-ex-body { flex: 1; padding: 54px 0 0 90px; }
.h02-ex-card { width: 620px; display: grid; gap: 22px; padding: 28px 32px; border-radius: 18px; background: #fff; border: 1px solid #e5e7eb; }
.h02-ex-step { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: #4b5563; }
.h02-ex-dots { display: flex; gap: 6px; }
.h02-ex-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; }
.h02-ex-dots i.on { background: #4f46e5; }
.h02-ex-q { margin: 0; font-size: 18px; }
.h02-ex-sum { display: flex; align-items: center; gap: 20px; font: 700 30px/1 "Segoe UI", sans-serif; }
.h02-frac { display: inline-grid; justify-items: center; gap: 4px; }
.h02-frac b { font-size: 30px; }
.h02-frac i { width: 34px; height: 3px; border-radius: 2px; background: #111827; }
.h02-ex-in { width: 120px; height: 60px; border: 2px solid #c7d2fe; border-radius: 12px; font: 700 26px "Segoe UI", sans-serif; text-align: center; color: #111827; background: #fff; }
.h02-ex-nav { display: flex; justify-content: space-between; }
.h02-ex-btn { height: 42px; padding: 0 20px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: 600 15px/1 "Segoe UI", sans-serif; color: #111827; cursor: pointer; }
.h02-ex-btn.main { background: #4f46e5; border-color: #4f46e5; color: #fff; }

/* ---- Katern Agent op de pagina (zoals content.js) ---- */
.h02-pa { position: absolute; right: 18px; bottom: 122px; z-index: 3; width: 372px; height: 470px; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #121217; border: 1px solid rgba(255, 255, 255, .09); color: #e6e6ee; font-family: "Segoe UI", system-ui, sans-serif; animation: kPop .3s ease; transform-origin: 100% 100%; }
.h02-pa-top { flex: none; display: flex; align-items: center; gap: 7px; padding: 12px 10px 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.h02-pa-ava { flex: none; display: block; width: 36px; height: 36px; padding: 2px; border-radius: 50%; background: #ffe14a; }
.h02-pa-ava img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #0e0e13; box-sizing: border-box; }
.h02-pa-ava.big { width: 54px; height: 54px; padding: 3px; }
.h02-pa-msg .h02-pa-ava { width: 24px; height: 24px; padding: 1.5px; margin-bottom: 2px; }
.h02-pa-who { flex: 1; min-width: 0; }
.h02-pa-who b { color: #fff; font-size: 14.5px; }
.h02-pa-persona { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 7px 0 4px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #e8e8ef; font: 650 12px/1 "Segoe UI", sans-serif; }
.h02-pa-persona .k-ico { width: 12px; height: 12px; opacity: .7; }
.h02-pa-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #c9c9d3; }
.h02-pa-icon .k-ico { width: 15px; height: 15px; }
.h02-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #17130b; font: 800 11.5px/1 "Segoe UI", sans-serif; font-style: normal; }
.h02-pa-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 8px; }
.h02-pa-hello { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 2px 2px; }
.h02-pa-hello h3 { margin: 10px 0 3px; color: #fff; font-size: 17px; font-weight: 700; }
.h02-pa-hello p { margin: 0 0 12px; max-width: 290px; color: #9c9caa; font-size: 12.5px; line-height: 1.45; }
.h02-pa-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 100%; }
.h02-pa-do { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .035); color: #ececf1; font: 650 12.5px/1.2 "Segoe UI", sans-serif; text-align: left; cursor: pointer; }
.h02-pa-do i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 225, 74, .14); color: #ffe14a; }
.h02-pa-do .k-ico { width: 15px; height: 15px; }
.h02-pa-msg { display: flex; gap: 8px; align-items: flex-end; animation: kPop .2s ease; }
.h02-pa-msg.me { justify-content: flex-end; }
.h02-pa-bub { min-width: 0; max-width: 86%; padding: 9px 12px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .065); border: 1px solid rgba(255, 255, 255, .06); color: #e6e6ee; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.h02-pa-msg.me .h02-pa-bub { max-width: 82%; border: 0; border-radius: 18px 18px 6px 18px; background: #ffe14a; color: #17130b; font-weight: 550; }
.h02-pa-typing i { display: inline-flex; gap: 4px; font-style: normal; }
.h02-pa-typing b { width: 6px; height: 6px; border-radius: 50%; background: #ffe14a; animation: kDot 1s infinite; }
.h02-pa-typing b:nth-child(2) { animation-delay: .15s; } .h02-pa-typing b:nth-child(3) { animation-delay: .3s; }
.h02-pa-chips { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px; }
.h02-pa-chips button { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: transparent; color: #dcdce6; font: 600 12px/1.2 "Segoe UI", sans-serif; cursor: pointer; }
.h02-pa-form { flex: none; margin: 0 10px 10px; padding: 8px 10px; border-radius: 18px; background: #1a1a21; border: 1px solid rgba(255, 255, 255, .1); }
.h02-pa-in { width: 100%; height: 30px; border: 0; outline: none; background: transparent; color: #fff; font: 13.5px "Segoe UI", sans-serif; }
.h02-pa-tools { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.h02-pa-tool { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #c9c9d3; }
.h02-pa-tool .k-ico, .h02-pa-think .k-ico { width: 15px; height: 15px; }
.h02-pa-think { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255, 225, 74, .14); color: #ffe14a; font: 700 11.5px/1 "Segoe UI", sans-serif; }
.h02-pa-send { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffe14a; color: #16130a; cursor: pointer; }
.h02-pa-send .k-ico { width: 16px; height: 16px; }
.h02-pa-ball { position: absolute; right: 18px; bottom: 52px; z-index: 3; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: #0e0e13; cursor: pointer; }
.h02-pa-ball img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #0e0e13; box-sizing: border-box; }
.h02-pa-ball i { position: absolute; inset: 3px; display: grid; place-items: center; border-radius: 50%; background: #0e0e13; color: #fff; opacity: 0; }
.h02-pa-ball i .k-ico { width: 22px; height: 22px; }
.h02-pa-ball::after { content: ""; position: absolute; right: 1px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: #3ddc84; border: 2.5px solid #0e0e13; box-sizing: border-box; }
.h02-pa-ball.open img { opacity: 0; }
.h02-pa-ball.open i { opacity: 1; }
.h02-pa-ball.open::after { display: none; }

/* ---- De agent in de popup: bovenaan, de onderste rij ---- */
.h02-ag .k-chat-top { gap: 8px; padding: 10px 12px; }
.h02-ag .k-chat-top > div { display: grid; justify-items: start; gap: 2px; }
.h02-ag .k-chat-top > div > b { line-height: 1.1; }
.h02-model { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 6px 0 2px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #dcdce6; font: 650 11.5px/1 "Segoe UI", sans-serif; cursor: pointer; }
.h02-model .h02-letter { width: 18px; height: 18px; font-size: 10px; }
.h02-model .k-ico { width: 11px; height: 11px; opacity: .7; }
.h02-sp { flex: 1; }
.h02-hbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #dcdce6; font: 650 12px/1 "Segoe UI", sans-serif; cursor: pointer; }
.h02-hbtn .k-ico { width: 15px; height: 15px; }
.h02-hbtn.icon { width: 30px; padding: 0; justify-content: center; }
.h02-hbtn.on { background: #ffe14a; color: #16130a; }
.k-chat-bar.h02-bar { flex-wrap: wrap; align-items: center; }
.h02-bar .k-chat-in { order: -1; flex: 1 1 100%; min-height: 30px; padding: 4px 6px; }
button.h02-pill { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; font: 700 12.5px/1 "Segoe UI", sans-serif; }
button.h02-pill .k-ico { width: 15px; height: 15px; }
button.h02-pill.on { background: rgba(255, 225, 74, .2); color: #ffe14a; }
button.h02-pill.ultra { background: rgba(255, 77, 94, .22); color: #ff8a96; }
.h02-bar .k-chat-plus.on { background: #ffe14a; color: #16130a; }
.h02-is-secret .k-chat-bar { border-color: rgba(196, 181, 253, .6); }

/* ---- Onder een antwoord ---- */
.h02-acts { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.h02-act { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #9a9aa6; }
.h02-act .k-ico { width: 15px; height: 15px; }
.h02-cost { margin-left: 8px; color: #8b8b98; font-size: 12px; }
.h02-wait { color: #9a9aa6; font-size: 13.5px; }
.h02-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.h02-src span { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; color: #cfcfda; font-size: 11.5px; font-weight: 600; }

/* ---- Sneller ↔ Slimmer ---- */
.h02-eff { position: absolute; left: 12px; right: 12px; bottom: 116px; z-index: 6; padding: 14px 16px 12px; border-radius: 18px; background: #1b1b22; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); color: #ececf1; animation: kPop .2s ease; }
.h02-eff-head b { display: block; font-size: 15px; }
.h02-eff-head span { display: block; margin-top: 3px; min-height: 36px; color: #b5b5c2; font-size: 12.5px; line-height: 1.4; }
.h02-eff-track { position: relative; height: 30px; margin: 12px 0 6px; }
.h02-eff-track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.h02-eff-fill { position: absolute; left: 0; top: 12px; height: 6px; border-radius: 9px; background: #ffe14a; }
.h02-eff-dots { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.h02-eff-dots u { width: 6px; height: 6px; margin-top: 12px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.h02-eff-dots u.on { background: rgba(22, 19, 10, .55); }
.h02-eff-dots u:last-child { background: #ff4d5e; }
.h02-eff-knob { position: absolute; top: 0; width: 30px; height: 30px; border-radius: 50%; background: #ffe14a; border: 4px solid #1b1b22; box-sizing: border-box; pointer-events: none; }
.h02-eff-range { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.h02-eff.ultra .h02-eff-fill, .h02-eff.ultra .h02-eff-knob { background: #ff4d5e; }
.h02-eff-ends { display: flex; justify-content: space-between; color: #9a9aa6; font-size: 12px; font-weight: 600; }
.h02-eff-warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .3); }
.h02-eff-warn p { margin: 0 0 8px; color: #ffd9dd; font-size: 12px; line-height: 1.4; }
.h02-eff-warn div { display: flex; gap: 6px; }
.h02-eff-warn button { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: transparent; color: #fff; font: 700 12px/1 "Segoe UI", sans-serif; cursor: pointer; }
.h02-eff-warn button.main { background: #ff4d5e; border-color: #ff4d5e; }

/* ---- "Wat wil je doen?" onder + ---- */
.h02-make { position: absolute; left: 12px; right: 12px; bottom: 116px; z-index: 6; padding: 12px; border-radius: 18px; background: #1b1b22; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); color: #ececf1; animation: kPop .2s ease; }
.h02-make-title { display: block; margin: 0 2px 10px; font-size: 13px; }
.h02-make-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.h02-make-tile { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; min-height: 84px; padding: 10px 3px 8px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 14px; background: rgba(255, 255, 255, .045); color: #ececf1; font: 700 11.5px/1.2 "Segoe UI", sans-serif; text-align: center; cursor: pointer; }
.h02-make-tile i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 225, 74, .14); color: #ffe14a; }
.h02-make-tile .k-ico { width: 18px; height: 18px; }
.h02-make-tile em { position: absolute; top: 5px; right: 5px; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #e5e5ee; font: 700 9.5px/1.4 "Segoe UI", sans-serif; font-style: normal; }
.h02-make-tile.locked { color: #a7a7b3; }
.h02-make-tile.locked i { background: rgba(255, 255, 255, .07); color: #a7a7b3; }
.h02-toolon { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 12px -2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: rgba(255, 225, 74, .16); color: #ffe14a; font: 700 12.5px/1 "Segoe UI", sans-serif; }
.h02-toolon button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 225, 74, .2); color: #ffe14a; }
.h02-toolon .k-ico { width: 12px; height: 12px; }
.h02-toast { position: absolute; left: 50%; bottom: 122px; z-index: 7; transform: translateX(-50%); width: max-content; max-width: 340px; padding: 9px 14px; border-radius: 12px; background: #2a2a33; color: #fff; font: 600 13px/1.35 "Segoe UI", sans-serif; text-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }

/* ---- Foto's en bestanden ---- */
.h02-prev { flex: none; display: flex; align-items: center; gap: 10px; margin: 0 12px -2px; padding: 8px; border-radius: 14px; background: #16161b; border: 1px solid rgba(255, 255, 255, .1); animation: kPop .2s ease; }
.h02-prev svg { width: 110px; height: auto; border-radius: 8px; }
.h02-prev button { margin-left: auto; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #dcdce6; font: 600 12px/1 "Segoe UI", sans-serif; }
.h02-paper { display: block; width: 100%; height: auto; }
.h02-hand { font: 600 17px "Segoe Print", "Comic Sans MS", cursive; }
.h02-me-photo { display: grid; gap: 7px; }
.h02-me-photo svg { width: 190px; height: auto; border-radius: 10px; }
.h02-file { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; }
.h02-file i { display: grid; place-items: center; width: 18px; height: 22px; border-radius: 3px; background: #2b5797; color: #fff; font: 800 10px/1 "Segoe UI", sans-serif; font-style: normal; }
.h02-me-t { display: block; margin-top: 6px; }
.h02-photo { display: block; width: 200px; height: auto; border-radius: 12px; }
.h02-photo.small { width: 96px; border-radius: 8px; }
.h02-result { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.h02-result .h02-photo { width: 250px; }
.h02-dl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #ececf1; font: 700 12.5px/1 "Segoe UI", sans-serif; }
.h02-dl .k-ico { width: 15px; height: 15px; }

/* ---- Hoe Katern praat en jouw regels ---- */
.h02-pers { position: absolute; left: 0; right: 0; top: 59px; bottom: 0; z-index: 6; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: #0d0d10; color: #ececf1; overflow: hidden; animation: kPop .2s ease; }
.h02-pers-head { display: flex; align-items: center; justify-content: space-between; }
.h02-pers-head h4 { margin: 0; font-size: 15px; }
.h02-pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h02-pgrid button { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .04); color: #fff; text-align: left; font-family: "Segoe UI", sans-serif; cursor: pointer; }
.h02-pgrid button.on { border-color: #ffe14a; background: rgba(255, 225, 74, .1); }
.h02-pe { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #17130b; font: 800 15px/1 "Segoe UI", sans-serif; }
.h02-pgrid b { display: block; font-size: 13px; }
.h02-pgrid small { display: block; margin-top: 1px; color: #aaa4c6; font-size: 11px; line-height: 1.25; }
.h02-style { display: grid; gap: 6px; margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.h02-style > b { font-size: 14px; }
.h02-style > small { color: #9a9aa6; font-size: 11.5px; line-height: 1.35; }
.h02-style-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h02-style-chips button { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: #dcdce6; font: 600 12px/1.2 "Segoe UI", sans-serif; cursor: pointer; }
.h02-style-in { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: #16161b; color: #ececf1; font: 13px/1.4 "Segoe UI", sans-serif; resize: none; outline: none; }
.h02-style-save { justify-self: start; padding: 8px 18px; border: 0; border-radius: 999px; background: #ffe14a; color: #16130a; font: 800 13px/1 "Segoe UI", sans-serif; cursor: pointer; }

/* ---- Geheime chat ---- */
.h02-secret { flex: none; display: flex; align-items: flex-start; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border-radius: 14px; background: rgba(196, 181, 253, .1); border: 1px solid rgba(196, 181, 253, .25); color: #ddd6fe; font-size: 11.5px; line-height: 1.4; animation: kPop .2s ease; }
.h02-secret button { flex: none; padding: 6px 12px; border: 0; border-radius: 999px; background: #ddd6fe; color: #1e1b4b; font: 700 12px/1 "Segoe UI", sans-serif; cursor: pointer; }
