/* Hoofdstuk 7: Katern op websites. Het paneel Katern-pc (zoals #agentPcPanel), het live beeld, "Alle vensters"
   (control.html) en de instelling Maximum per taak (popup-cap.js). Vlak, donker, geel als accent. */
.k-pop.h07-pop { background: #0d0d10; color: #f2f2f7; }
.h07-pcp, .h07-cap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: #14131b; overflow: hidden; font: 14px/1.4 "Segoe UI", system-ui, sans-serif; }
.h07-pcp-head, .h07-cap-head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.h07-pcp-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #ffe14a; color: #14110a; }
.h07-pcp-ic .k-ico { width: 24px; height: 24px; stroke-width: 2.2; }
.h07-pcp-head > div { flex: 1; min-width: 0; }
.h07-pcp-head h4, .h07-cap-head h4 { margin: 0; font: 800 16px/1.2 "Segoe UI", system-ui, sans-serif; color: #fff; }
.h07-pcp-head p { margin: 2px 0 0; color: #a3a3b2; font-size: 12px; line-height: 1.35; }
.h07-pcform { display: flex; flex-direction: column; gap: 8px; }
.h07-pcw { padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); --tint: #ffe14a; }
.h07-pcw.n2 { --tint: #ff8a3d; border-color: rgba(255, 138, 61, .35); background: rgba(255, 138, 61, .05); }
.h07-pcw.n3 { --tint: #22d36b; border-color: rgba(34, 211, 107, .35); background: rgba(34, 211, 107, .05); }
.h07-pcw label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 12.5px; }
.h07-pcw label b { flex: 1; font-weight: 750; }
.h07-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--tint); color: #14110a; font-size: 11.5px; font-weight: 900; }
.h07-pcta { display: block; width: 100%; min-height: 44px; margin: 0; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(0, 0, 0, .25); color: #fff; font: 500 13.5px/1.4 "Segoe UI", system-ui, sans-serif; resize: none; outline: none; }
.h07-pcadd { margin: 0; padding: 9px; border: 1.5px dashed rgba(255, 255, 255, .18); border-radius: 14px; background: transparent; color: #d7d7e2; font: 750 12.5px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h07-pcgo { height: 44px; border: 0; border-radius: 15px; background: #ffe14a; color: #14110a; font: 850 14px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h07-pcfine { margin: 0; color: #8d8d9c; font-size: 11px; line-height: 1.4; text-align: center; }

/* Katern-pc is bezig: een kaart per Katern */
.h07-pcrun-card { --tint: #ffe14a; display: grid; grid-template-columns: 1fr 132px; grid-template-areas: "head peek" "bar peek" "btns peek"; gap: 6px 10px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent); }
.h07-pcrun-head { grid-area: head; display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.h07-pcrun-head > div { min-width: 0; }
.h07-pcrun-head b { display: block; font-size: 12.5px; color: #c9c9d4; }
.h07-pcrun-head strong { display: block; font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-pcrun-head small { display: block; font-size: 11.5px; color: #a3a3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--tint, #ffe14a); color: #16130a; font: 800 14px/1 "Segoe UI", sans-serif; }
.h07-bar { grid-area: bar; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; align-self: center; }
.h07-bar u { display: block; width: 8%; height: 100%; background: var(--tint); }
.h07-peek { grid-area: peek; position: relative; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.h07-live { position: absolute; left: 6px; top: 6px; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 999px; background: #ff3b3b; color: #fff; font: 900 9px/1.2 "Segoe UI", sans-serif; letter-spacing: .5px; }
.h07-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: kRec 1.2s infinite; }
.h07-btns { grid-area: btns; display: flex; gap: 6px; }
.h07-btns button, .h07-pcrun-foot button { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #f2f2f7; font: 700 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h07-btns .stop, .h07-pcrun-foot .stop { border-color: rgba(255, 107, 107, .45); color: #ffd0d0; }
.h07-pcrun-foot { display: flex; gap: 8px; margin-top: auto; }
.h07-pcrun-foot .room { flex: 1; border-color: #ffe14a; background: #ffe14a; color: #16130a; }

/* Een klein, zelf getekend beeld van een venster */
.h07-mini { --tint: #ffe14a; position: absolute; inset: 0; background: #fbf8f3; border: 2px solid var(--tint); overflow: hidden; }
.h07-mini i { position: absolute; display: block; }
.h07-mini .top { left: 0; right: 0; top: 0; height: 14%; background: #3a2350; }
.h07-mini .h1 { left: 8%; top: 22%; width: 50%; height: 8%; border-radius: 2px; background: #3a2350; }
.h07-mini .pic { left: 8%; top: 36%; width: 40%; height: 30%; border-radius: 3px; background: #bfe0ee; }
.h07-mini .ln { left: 52%; width: 40%; height: 5%; border-radius: 2px; background: #cfc6d6; }
.h07-mini .ln:nth-of-type(4) { top: 38%; } .h07-mini .ln:nth-of-type(5) { top: 50%; } .h07-mini .ln.s { top: 62%; width: 26%; }
.h07-mini.page { background: #fff; }
.h07-mini.page .top { background: #d8dde4; height: 12%; }
.h07-mini.page .ln:nth-of-type(2) { top: 26%; left: 8%; width: 76%; } .h07-mini.page .ln:nth-of-type(3) { top: 40%; left: 8%; width: 70%; } .h07-mini.page .ln.s { top: 54%; left: 8%; width: 50%; }
.h07-mini.slides { background: #1d1c24; }
.h07-mini .side { left: 4%; top: 8%; bottom: 8%; width: 20%; display: grid; gap: 6%; align-content: start; }
.h07-mini .side u { display: block; height: 22px; border-radius: 3px; background: #3a3946; }
.h07-mini .side u:first-child { outline: 2px solid var(--tint); }
.h07-mini .slide { left: 30%; right: 5%; top: 12%; bottom: 14%; border-radius: 4px; background: #f4efe4; }
.h07-mini .slide u { position: absolute; display: block; border-radius: 2px; background: #8c3b2a; }
.h07-mini .slide u:nth-child(1) { left: 10%; top: 14%; width: 60%; height: 14%; }
.h07-mini .slide u:nth-child(2) { left: 10%; top: 40%; width: 40%; height: 6%; background: #b9ad97; }
.h07-mini .slide u:nth-child(3) { right: 8%; top: 36%; width: 34%; height: 46%; background: #c9a36a; }
.h07-mini.mindmap { background: #f6f3ec; }
.h07-mini .c { left: 38%; top: 40%; width: 24%; height: 20%; border-radius: 6px; background: #ffe14a; border: 2px solid #1d1a14; }
.h07-mini .b { width: 18%; height: 12%; border-radius: 5px; background: #fff; border: 2px solid #1d1a14; }
.h07-mini .b0 { left: 6%; top: 10%; } .h07-mini .b1 { left: 41%; top: 6%; } .h07-mini .b2 { right: 6%; top: 12%; }
.h07-mini .b3 { left: 6%; bottom: 12%; } .h07-mini .b4 { left: 41%; bottom: 6%; } .h07-mini .b5 { right: 6%; bottom: 14%; }
.h07-mini .cur { left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--tint); border: 2px solid #16130a; transition: left .25s, top .25s; }

/* Het venster "Alle vensters" (control.html) */
.h07-ct { position: absolute; left: 34px; right: 34px; top: 52px; bottom: 30px; z-index: 12; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #0c0c10; color: #f4f2ff; box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); font: 14px/1.4 "Segoe UI", system-ui, sans-serif; animation: kPop .3s ease; }
.h07-ct-titlebar { flex: none; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: #202024; color: #c9c9d4; font-size: 12.5px; }
.h07-ct-titlebar img { width: 16px; height: 16px; border-radius: 4px; }
.h07-ct-x { margin-left: auto; display: grid; color: #8b8b98; }
.h07-ct-x .k-ico { width: 15px; height: 15px; }
.h07-mm { position: absolute; inset: 0; width: 100%; height: 100%; }
.h07-mm path { stroke: #1d1a14; stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.h07-ct-bar0 { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.h07-ct-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.h07-ct-logo img { width: 22px; height: 22px; border-radius: 6px; }
.h07-ct-logo b { font-weight: 900; }
.h07-ct-logo span { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; background: #ffe14a; color: #17130b; }
.h07-ct-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.h07-ct-sum b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-ct-total { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.h07-ct-total u { display: block; height: 100%; width: 0; background: #2fbe4f; transition: width .5s; }
.h07-ct-left { color: rgba(244, 242, 255, .66); font-size: 11.5px; white-space: nowrap; }
.h07-ct-stopall, .h07-ct-btns button { padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .06); color: #f4f2ff; font: 700 12px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.h07-ct-stopall, .h07-ct-btns .stop { border-color: rgba(255, 107, 107, .45); color: #ffd0d0; }
.h07-ct-fin { display: flex; align-items: center; gap: 14px; margin: 12px 16px 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.h07-ct-fin > i { flex: none; color: #3ddc84; }
.h07-ct-fin > i .k-ico { width: 26px; height: 26px; }
.h07-ct-fin b { font-size: 15px; }
.h07-ct-fin p { margin: 2px 0 0; color: rgba(244, 242, 255, .66); font-size: 12.5px; }
.h07-ct-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 16px 16px; align-content: start; }
.h07-ct-tile { --tint: #ffe14a; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); min-width: 0; }
.h07-ct-tile.run { border-color: color-mix(in srgb, var(--tint) 55%, transparent); }
.h07-ct-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.h07-ct-head .h07-av { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
.h07-ct-who { flex: 1; min-width: 0; }
.h07-ct-who b { display: block; font-size: 13px; }
.h07-ct-who small { display: block; color: rgba(244, 242, 255, .66); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-ct-pill { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.h07-ct-tile.run .h07-ct-pill { background: color-mix(in srgb, var(--tint) 30%, transparent); }
.h07-ct-tile.done .h07-ct-pill { background: rgba(61, 220, 132, .2); border-color: rgba(61, 220, 132, .4); }
.h07-ct-tile.stopped .h07-ct-pill { background: rgba(255, 107, 107, .15); }
.h07-ct-peek { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 11px; overflow: hidden; background: #05040a; border: 1px solid rgba(255, 255, 255, .1); }
.h07-ct-now { font-size: 12px; min-height: 32px; }
.h07-ct-now b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-ct-now span { display: block; color: rgba(244, 242, 255, .66); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-ct-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.h07-ct-bar u { display: block; height: 100%; width: 0; background: #ffe14a; transition: width .25s; }
.h07-ct-tile ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.h07-ct-tile li { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: rgba(244, 242, 255, .66); min-width: 0; }
.h07-ct-tile li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h07-ct-tile li .mk { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); }
.h07-ct-tile li .mk .k-ico { width: 10px; height: 10px; stroke-width: 3; }
.h07-ct-tile li.run { color: #f4f2ff; font-weight: 700; }
.h07-ct-tile li.run .mk { border: 0; background: #f4f2ff; transform: scale(.6); }
.h07-ct-tile li.ok .mk { border-color: #3ddc84; color: #3ddc84; }
.h07-ct-tile li.skip .mk { border-color: rgba(255, 255, 255, .3); }
.h07-ct-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* Verbruik › Per taak (popup-cap.js) */
.h07-cap-head .h07-pcp-ic { width: 36px; height: 36px; border-radius: 12px; }
.h07-cap-head .k-ico { width: 20px; height: 20px; }
.h07-cap-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.h07-cap-box h5 { margin: 0; color: #a3a3b2; font: 800 11px/1.2 "Segoe UI", sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.h07-cap-box > p { margin: -4px 0 0; color: #a3a3b2; font-size: 12px; line-height: 1.4; }
.h07-cap-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h07-cap-row b { font-size: 14px; }
.h07-sel-wrap { position: relative; }
.h07-sel { display: flex; align-items: center; gap: 10px; min-width: 156px; height: 34px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: #1d1c25; color: #fff; font: 600 13px "Segoe UI", sans-serif; cursor: pointer; }
.h07-sel span { flex: 1; text-align: left; }
.h07-sel i { width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid #c9c9d4; border-bottom: 2px solid #c9c9d4; transform: rotate(45deg); }
.h07-sel-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 3; width: 180px; padding: 4px; border-radius: 10px; background: #24232d; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); }
.h07-sel-opt { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: 7px; background: none; color: #e6e6ee; text-align: left; font: 600 13px "Segoe UI", sans-serif; cursor: pointer; }
.h07-sel-opt:hover { background: rgba(255, 255, 255, .08); }
.h07-sel-opt.on { background: #ffe14a; color: #16130a; }
.h07-check { display: flex; align-items: flex-start; gap: 10px; padding: 0; border: 0; background: none; color: #f2f2f7; text-align: left; cursor: pointer; font: 14px/1.35 "Segoe UI", sans-serif; }
.h07-check > i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; background: #ffe14a; color: #16130a; }
.h07-check > i .k-ico { width: 13px; height: 13px; stroke-width: 3; }
.h07-check b { display: block; font-size: 14px; }
.h07-check span { display: block; margin-top: 2px; color: #a3a3b2; font-size: 12px; }
