/* Hoofdstuk 11: Katern leert jou kennen. Panelen in de chat zoals in popup.css (.ag-mem, .ag-tk, .ag-bots), de rode
   balk van "Doe het voor" (rec.js). Vlak, geen verlopen, geen gloed. */

/* ---- Kop van de chat: Menu en de rode bol "Taken" ---- */
.h11-hbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: #ececf1; font: 700 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-hbtn .k-ico { width: 16px; height: 16px; }
.h11-hbtn.red { margin-left: auto; }
.h11-ball { fill: none; stroke: currentColor; }
.h11-ball .dot { fill: #ff4d5e; stroke: none; }

/* Melding onderaan in de popup */
.h11-msg { position: absolute; left: 14px; right: 14px; bottom: 78px; z-index: 6; padding: 10px 14px; border-radius: 12px; background: #2a2a33; color: #fff; font: 600 13px/1.4 "Segoe UI", system-ui, sans-serif; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); animation: h11-in .25s ease; }

/* ---- Paneel over de chat ---- */
.h11-panel { position: absolute; z-index: 4; top: 58px; left: 10px; right: 10px; bottom: 76px; overflow-y: auto; padding: 12px 14px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; background: #16161c; color: #ececf1; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; scrollbar-width: thin; scrollbar-color: #3a3a44 transparent; animation: h11-in .2s ease; }
.h11-phead { display: flex; align-items: center; gap: 8px; }
.h11-phead h4 { flex: 1; margin: 0; color: #fff; font: 800 14px/1.3 "Segoe UI", system-ui, sans-serif; }
.h11-back { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #ececf1; cursor: pointer; }
.h11-back .k-ico { width: 16px; height: 16px; }
.h11-lead { margin: 8px 2px 10px; color: #a3a3b0; font-size: 12px; line-height: 1.4; }
.h11-sum { margin: 0 2px 6px; color: #ffd23f; font-weight: 700; font-size: 12px; }
.h11-mhead { margin: 12px 2px 6px; color: #8e8e9c; font: 800 10.5px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.h11-mlist { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.h11-mlist li { display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, .05); }
.h11-mlist li b { flex: 1; min-width: 0; color: #f2f2f7; font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
.h11-mlist li small { display: block; color: #8e8e9c; font-size: 11px; font-weight: 600; }
.h11-x { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 92, 92, .16); color: #ff8a8a; cursor: pointer; }
.h11-x .k-ico { width: 11px; height: 11px; stroke-width: 3; }
.h11-madd { display: flex; gap: 6px; margin: 10px 0 0; }
.h11-madd input, .h11-form input, .h11-form textarea { box-sizing: border-box; min-width: 0; width: 100%; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: #0f0f14; color: #fff; font: 13px "Segoe UI", system-ui, sans-serif; resize: none; color-scheme: dark; }
.h11-madd button { flex: none; padding: 6px 12px; border: 0; border-radius: 10px; background: #ffe14a; color: #14110a; font: 800 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-mnote { margin: 0 2px; color: #b9b9c6; font-size: 12px; }
.h11-wipe { margin: 12px 0 0; padding: 6px 12px; border: 0; border-radius: 10px; background: rgba(255, 92, 92, .16); color: #ff9c9c; font: 800 11.5px "Segoe UI", system-ui, sans-serif; }

/* Notitie onder een antwoord: "Onthouden: …", "Geleerd: …" */
.h11-note { display: inline-block; margin: 8px 0 0; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 210, 63, .12); color: #ffd23f; font: 700 11.5px/1.35 "Segoe UI", system-ui, sans-serif; text-align: left; white-space: normal; cursor: pointer; }

/* Knoppen onder een antwoord en "Wat kon beter?" */
.h11-acts { display: flex; gap: 4px; margin-top: 6px; white-space: normal; }
.h11-act { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8e8e9c; cursor: pointer; }
.h11-act .k-ico { width: 16px; height: 16px; }
.h11-act.on { background: rgba(255, 92, 92, .16); color: #ff8a8a; }
.h11-fb { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 14px; background: #16161c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); white-space: normal; }
.h11-fb b { font-size: 12.5px; }
.h11-fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h11-fb-chips button { padding: 6px 11px; border: 1px solid rgba(255, 225, 74, .5); border-radius: 999px; background: rgba(255, 225, 74, .12); color: #fff; font: 700 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-fb-own { display: flex; gap: 6px; }
.h11-fb-own input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: #0f0f14; color: #fff; font: 12.5px "Segoe UI", system-ui, sans-serif; }
.h11-fb-own button { flex: none; padding: 6px 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font: 700 12px "Segoe UI", system-ui, sans-serif; }

/* Taakkaart in de chat (zoals .ag-task) */
.h11-task { min-width: 320px; margin-top: 8px; padding: 11px 12px 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: #131319; white-space: normal; }
.h11-task-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.h11-task-head > i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .14); border-top-color: #ffe14a; animation: h11-spin .8s linear infinite; }
.h11-task.done .h11-task-head > i { border: 0; background: #3ddc84; color: #08130c; animation: none; }
.h11-task-head .k-ico, .h11-trw > i .k-ico { width: 11px; height: 11px; stroke-width: 3.2; }
.h11-task-head b { flex: 1; color: #fff; font-size: 12.5px; font-weight: 750; }
.h11-task-head span { color: #8e8e9c; font-size: 11.5px; font-weight: 650; }
.h11-trw { display: flex; align-items: flex-start; gap: 10px; padding: 6px 2px; }
.h11-trw > i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .14); border-top-color: #ffe14a; animation: h11-spin .75s linear infinite; }
.h11-trw.ok > i { border: 0; background: #3ddc84; color: #06120a; animation: none; }
.h11-trw > div { flex: 1; min-width: 0; }
.h11-trw b { display: block; color: #f2f2f7; font-size: 12.5px; font-weight: 650; }
.h11-trw span { display: block; color: #a3a3b0; font-size: 11.5px; line-height: 1.35; }
.h11-trw span:empty { display: none; }

/* ---- Taken ---- */
.h11-tk-add { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 9px; border: 0; border-radius: 999px; background: #ffe14a; color: #16130a; font: 800 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-tk-add .k-ico { width: 14px; height: 14px; stroke-width: 2.6; }
.h11-tk-add.ghost { padding: 6px 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.h11-tk-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.h11-tk { padding: 10px 11px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; background: rgba(255, 255, 255, .035); animation: h11-in .25s ease; }
.h11-tk-top { display: flex; align-items: center; gap: 10px; }
.h11-tk-top span { flex: 1; min-width: 0; }
.h11-tk-top b { display: block; overflow: hidden; color: #fff; font: 750 13.5px/1.3 "Segoe UI", system-ui, sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.h11-tk-top small { display: block; color: #a3a3b0; font-size: 11.5px; }
.h11-tk-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; }
.h11-tk-ic .k-ico { width: 16px; height: 16px; }
.h11-tk-ic.tell { background: rgba(255, 225, 74, .12); color: #ffe14a; }
.h11-tk-ic.show { background: rgba(255, 77, 94, .13); color: #ff8a95; }
.h11-sw { position: relative; flex: none; width: 34px; height: 20px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); cursor: pointer; }
.h11-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
.h11-sw.on { background: #3ddc84; }
.h11-sw.on::after { left: 17px; }
.h11-tk-last { margin: 8px 0 0 40px; color: #b9b9c6; font-size: 12px; }
.h11-tk-last em { font-style: normal; font-weight: 700; color: #8fe0b0; }
.h11-see { padding: 0; border: 0; background: none; color: #ffe14a; font: 700 12px "Segoe UI", system-ui, sans-serif; }
.h11-tk-acts { display: flex; gap: 6px; margin: 8px 0 0 40px; }
.h11-tk-acts button { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d5d5de; font: 700 11.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-tk-acts button.run { background: rgba(255, 225, 74, .14); color: #ffe14a; }
.h11-tk-acts .k-ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* Het formulier: vertel het of doe het voor */
.h11-form { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.h11-form label { margin-top: 4px; color: #a3a3b0; font-size: 11.5px; font-weight: 700; }
.h11-how { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.h11-how button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; background: transparent; color: #d5d5de; font: 750 12.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-how button .k-ico { width: 15px; height: 15px; }
.h11-how button.on { border-color: #ffe14a; background: rgba(255, 225, 74, .12); color: #fff; }
.h11-showbox .h11-lead { margin: 4px 2px 8px; }
.h11-showgo { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border: 0; border-radius: 10px; background: #ff4d5e; color: #fff; font: 800 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-showgo i { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.h11-steps { padding: 8px 10px; border-radius: 10px; background: #0f0f14; }
.h11-steps b { font-size: 12px; color: #ff8a95; }
.h11-steps ol { margin: 6px 0 0; padding-left: 18px; color: #d5d5de; font-size: 11.5px; line-height: 1.45; }
.h11-frest { display: flex; flex-direction: column; gap: 6px; }
.h11-kinds { display: flex; flex-wrap: wrap; gap: 5px; }
.h11-kinds button { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: #d5d5de; font: 700 11.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-kinds button.on { border-color: #ffe14a; background: #ffe14a; color: #14110a; }
.h11-trow { display: flex; align-items: center; gap: 6px; }
.h11-form .h11-trow input[type="time"] { width: 110px; }
.h11-form .h11-emoji { flex: none; width: 46px; }
.h11-form .h11-notify { display: flex; align-items: center; gap: 8px; color: #d5d5de; font-weight: 600; }
.h11-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: #ffe14a; color: #14110a; }
.h11-check .k-ico { width: 11px; height: 11px; stroke-width: 3.2; }
.h11-save { padding: 7px 14px; border: 0; border-radius: 999px; background: #ffe14a; color: #14110a; font: 800 12.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-cancel { padding: 6px 11px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d5d5de; font: 750 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }

/* ---- De rode balk: Katern kijkt mee ---- */
.h11-rec { position: absolute; left: 50%; top: 94px; z-index: 15; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; animation: h11-fade .3s ease; }
.h11-rec-bar { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; background: rgba(17, 15, 28, .94); color: #fff; font: 700 13px/1.2 "Segoe UI", system-ui, sans-serif; box-shadow: 0 0 0 2px rgba(229, 16, 29, .55); white-space: nowrap; }
.h11-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #e5101d; animation: h11-blink 1.3s ease-in-out infinite; }
.h11-rec-bar small { color: rgba(255, 255, 255, .65); font-weight: 600; }
.h11-rec-bar button { padding: 7px 12px; border: 0; border-radius: 999px; font: 800 12.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h11-rec-bar .done { background: #ffe14a; color: #17130b; }
.h11-rec-bar .stop { background: rgba(255, 255, 255, .12); color: #fff; }
.h11-rec-hint { padding: 4px 10px; border-radius: 999px; background: rgba(17, 15, 28, .92); color: #fff; font: 600 11.5px/1.3 "Segoe UI", system-ui, sans-serif; }

/* ---- Bots ---- */
.h11-blist { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.h11-blist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); cursor: pointer; }
.h11-blist li > div { flex: 1; min-width: 0; }
.h11-blist li b { display: block; overflow: hidden; color: #f2f2f7; font-size: 12.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.h11-blist li small { display: block; overflow: hidden; color: #8e8e9c; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.h11-blist li.none { padding: 6px 4px; background: transparent; color: #9c9caa; font-size: 12px; cursor: default; }
.h11-blist li.bot { box-shadow: inset 0 0 0 1px rgba(255, 225, 74, .35); animation: h11-in .25s ease; }
.h11-face, .k-chat-top .h11-face { flex: none; display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: #2f7d5b; color: #fff; font: 800 13px/1 "Segoe UI", system-ui, sans-serif; }
.h11-face.kat { background: transparent; }
.h11-face img { width: 28px; height: 28px; border-radius: 8px; }
.h11-face.big { width: 46px; height: 46px; font-size: 20px; }
.h11-off { flex: none; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #d5d5de; font: 700 11px "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.h11-off img { width: 14px; height: 14px; border-radius: 50%; }
.h11-hello { display: grid; justify-items: center; gap: 6px; margin: 10px 0 4px; padding: 0 10px; text-align: center; }
.h11-hello b { color: #fff; font-size: 17px; }
.h11-hello p { margin: 0; color: #a3a3b0; font-size: 12.5px; line-height: 1.45; }

/* ---- Een klokje: de tijd springt ---- */
.h11-time { position: absolute; left: 50%; top: 300px; z-index: 22; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px; background: rgba(16, 14, 26, .94); color: #fff; font: 800 22px/1.2 "Segoe UI", system-ui, sans-serif; white-space: nowrap; animation: h11-fade .3s ease; transition: opacity .25s; }
.h11-time .k-ico { width: 26px; height: 26px; color: #ffe14a; }
.h11-time.out { opacity: 0; }

@keyframes h11-spin { to { transform: rotate(360deg); } }
@keyframes h11-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes h11-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes h11-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .h11-panel, .h11-msg, .h11-tk, .h11-blist li.bot, .h11-rec, .h11-time, .h11-task-head > i, .h11-trw > i, .h11-rec-dot { animation: none !important; }
}
