/* Het brein — mindmap (persoonlijk + groep), detailpaneel, cockpit en de deel-sluis. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.brain-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.brain-bar { display: flex; align-items: center; gap: 12px; padding: 14px 22px 10px; flex-wrap: wrap; }
.brain-tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.brain-tab { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.brain-tab.active { background: var(--accent); color: var(--on-accent); }
.brain-tab .tn-lock { font-size: 11px; font-weight: 600; opacity: .8; }
.brain-search { flex: 1 1 200px; max-width: 320px; }
.brain-idea { flex: 1 1 220px; max-width: 360px; }
.brain-idea .input, .brain-search .input { height: 36px; font-size: 13px; }
.brain-actions { display: flex; gap: 8px; margin-left: auto; }

.brain-cockpit { display: flex; gap: 8px; padding: 0 22px 10px; flex-wrap: wrap; }
.bc-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bc-chip b { color: var(--text); font-size: 13px; }
.bc-chip.crit b { color: var(--danger); } .bc-chip.acc b { color: var(--accent); } .bc-chip.warn b { color: var(--warning); }
.bc-chip.zero { opacity: .55; }
.bc-chip:hover { border-color: var(--accent); }

.brain-body { flex: 1; min-height: 0; display: flex; position: relative; }
.brain-stage { flex: 1; min-width: 0; position: relative; overflow: hidden; cursor: grab; touch-action: none; outline: none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px; border-top: 1px solid var(--border); }
.brain-stage.dragging { cursor: grabbing; }
.brain-stage.as-list .brain-world, .brain-stage.as-list .brain-zoom { display: none; }
.brain-stage.as-list { flex: 0 0 0; min-width: 0; overflow: visible; border: 0; }
.brain-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.brain-lines { position: absolute; overflow: visible; pointer-events: none; }
.brain-lines path { fill: none; stroke-width: 2; opacity: .55; stroke-linecap: round; }
.brain-lines path.l2 { stroke-width: 1.5; opacity: .45; }
.brain-lines path.lx { stroke-dasharray: 5 6; stroke-width: 1.6; opacity: .7; pointer-events: stroke; }

/* Knopen */
.bn { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; max-width: 230px;
  padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-card);
  font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; transition: box-shadow .15s, border-color .15s, opacity .15s; }
.bn:hover, .bn:focus-visible { border-color: var(--nc, var(--accent)); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--nc, var(--accent)) 18%, transparent), var(--shadow-card); }
.bn.sel { border-color: var(--nc, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--nc, var(--accent)) 28%, transparent), var(--shadow-card); }
.bn.dim { opacity: .3; }
/* Bollen zweven zacht op en neer (eigen `translate`, dus los van het centreren met
   `transform`). Elke bol op een eigen tempo, zodat de kaart leeft zonder te dansen. */
@keyframes bnFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--fa, -4px); } }
.bn { animation: bnFloat var(--fd, 6s) ease-in-out var(--fdl, 0s) infinite; }
.bn:nth-child(2n) { --fd: 7s; --fdl: -2.5s; --fa: -5px; }
.bn:nth-child(3n) { --fd: 5.5s; --fdl: -1.2s; }
.bn:nth-child(5n) { --fd: 8s; --fdl: -4s; --fa: -3px; }
.bn:nth-child(7n) { --fd: 6.5s; --fdl: -3.3s; --fa: -6px; }
.bn:hover, .bn:focus-visible, .bn.sel, .bn.drg { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .bn { animation: none; } }
.bn.hit { border-color: var(--accent); }
.bn.d1 { font-size: 14px; padding: 9px 14px 9px 10px; border-width: 2px; border-color: color-mix(in srgb, var(--nc) 45%, var(--border)); }
.bn.d3 { font-size: 12px; font-weight: 600; padding: 5px 10px 5px 8px; }
.bn-t { overflow: hidden; text-overflow: ellipsis; }
.bn-sub { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.bn-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--nc, var(--accent)); }
.bn.st-warn .bn-dot { box-shadow: 0 0 0 3px var(--warning-bg), 0 0 0 4.5px var(--warning); }
.bn.st-crit .bn-dot { box-shadow: 0 0 0 3px var(--danger-bg), 0 0 0 4.5px var(--danger); }
.bn.st-done { opacity: .6; } .bn.st-done .bn-t { text-decoration: line-through; }
.bn-bs { display: inline-flex; gap: 4px; }
.bn-bs:empty { display: none; }
.bn-b { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--purple-150); color: var(--accent-soft-text); }
.bn-b.crit { background: var(--danger); color: #fff; }
.bn-b.mail { background: var(--outlook-bg); color: var(--outlook); }
.bn-b.soft { background: var(--surface-2); color: var(--muted); }
.bn-b.share { background: var(--success-bg); color: var(--success-text); }
.bn-b.share.pend { background: var(--warning-bg); color: var(--warning); }
.bn-me { flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 22px; border: 2px solid var(--accent); background: var(--purple-50); font-size: 15px; }
.bn-org { cursor: default; text-align: center; white-space: normal; max-width: 220px; }
.bn-av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; }
.bn-av.sm { width: 22px; height: 22px; font-size: 10px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.bn-av.sm.mine { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.bn-gen { border-style: dashed; }

.brain-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.brain-zoom button, .brain-modes button { font: inherit; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.brain-zoom button { width: 36px; height: 34px; font-size: 17px; font-weight: 700; }
.brain-zoom button + button { border-top: 1px solid var(--border); }
.brain-zoom button:hover, .brain-modes button:hover { background: var(--purple-50); color: var(--accent); }
.brain-modes { position: absolute; left: 14px; bottom: 14px; display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-card); z-index: 3; }
.brain-stage.as-list .brain-modes { position: fixed; left: auto; right: 18px; bottom: 18px; }
.brain-modes[hidden] { display: none; }
.brain-modes button { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.brain-modes button.active { background: var(--accent); color: var(--on-accent); }

.brain-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; gap: 6px; max-width: 520px; margin: auto; cursor: default; }
.brain-empty[hidden] { display: none; }
.brain-empty h2 { margin: 0; font-size: 20px; }
.brain-empty p { margin: 4px 0 10px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.be-ico { font-size: 40px; }
.be-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.brain-upsell { max-width: 560px; margin: 40px auto; text-align: center; }
.brain-upsell h2 { margin: 6px 0; } .brain-upsell p { color: var(--text-2); line-height: 1.55; }
.brain-upsell-ico { font-size: 36px; }

/* Lijstweergave */
.brain-listview { flex: 1; min-width: 0; overflow-y: auto; padding: 8px 22px 70px; border-top: 1px solid var(--border); }
.bl-tree, .bl-tree ul { list-style: none; margin: 0; padding: 0; }
.bl-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--divider); background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.bl-row:hover, .bl-row.sel { background: var(--purple-50); }
.bl-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Detailpaneel */
.brain-panel { flex: 0 0 420px; max-width: 100%; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.brain-panel[hidden] { display: none; }
.bp-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 18px 20px 14px; border-bottom: 1px solid var(--divider); border-top: 4px solid var(--nc, var(--accent)); }
.bp-head h2 { margin: 2px 0 0; font-size: 20px; letter-spacing: -.01em; padding-right: 32px; }
.bp-eb { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bp-crumb { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-transform: none; letter-spacing: 0; }
.bp-title { width: calc(100% - 32px); border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 20px; font-weight: 800; color: var(--text); padding: 2px 6px; margin: 2px 0 0 -6px; }
.bp-title:hover, .bp-title:focus { border-color: var(--border); outline: none; background: var(--field-bg); }
.bp-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); font-size: 18px; cursor: pointer; }
.bp-x:hover { background: var(--purple-150); color: var(--accent); }
.bp-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.bp-kind { height: 30px; width: auto; font-size: 12.5px; padding: 0 8px; margin-left: 4px; }
.bp-sts { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.bp-st { font: inherit; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.bp-st.st-ok { --c: var(--st-ok); } .bp-st.st-warn { --c: var(--st-warn); } .bp-st.st-crit { --c: var(--st-crit); } .bp-st.st-done { --c: var(--st-done); }
.bp-st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
.bp-st.on { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); border-color: var(--c); }
.bp-sws { display: flex; gap: 6px; margin-top: 10px; }
.bp-sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.bp-sw.on { box-shadow: 0 0 0 2px var(--text); }
.bp-sec { padding: 14px 20px; border-bottom: 1px solid var(--divider); }
.bp-sec h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.bp-n { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.bp-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.bp-notes { min-height: 90px; resize: vertical; height: auto; padding: 9px 11px; line-height: 1.45; font: inherit; font-size: 13.5px; }
.bp-child { display: flex; align-items: baseline; gap: 6px; width: 100%; text-align: left; border: 0; border-radius: 8px; background: transparent; padding: 7px 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.bp-child:hover { background: var(--purple-50); }
.bp-child small { color: var(--muted); font-weight: 500; }
.bp-share { font-size: 13px; margin: 0 0 8px; }
.bp-share.on { color: var(--success-text); font-weight: 700; }
.bp-share.pend { color: var(--warning); }
.bp-danger { border-bottom: 0; }
.bp-done summary { cursor: pointer; font-size: 12.5px; color: var(--muted); margin: 8px 0 4px; }
.bp-sum { white-space: pre-wrap; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--body-text-2); }
.bp-people { display: flex; gap: 6px; flex-wrap: wrap; }
.bp-people .pill { background: var(--surface-2); color: var(--text-2); }
.bp-new { display: flex; flex-direction: column; gap: 10px; }
.bp-new label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }

/* Taken in het paneel */
.bt-add { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bt-add .input { height: 36px; font-size: 13.5px; }
.bt-add-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; align-items: end; }
.bt-add-row label, .bt-grid label, .bt-notes { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; }
.bt-add-row .input, .bt-grid .input { height: 32px; font-size: 12.5px; padding: 0 8px; }
.bt { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--divider); }
.bt:first-of-type { border-top: 0; }
.bt-check { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--border-2); background: var(--surface); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bt-check.on { background: var(--success); border-color: var(--success); }
.bt.ro .bt-check { cursor: default; }
.bt-main { flex: 1; min-width: 0; }
.bt-title { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; overflow-wrap: anywhere; }
.bt.done .bt-title { color: var(--muted); text-decoration: line-through; }
.bt-star { color: #E2B100; margin-right: 4px; }
.bt-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.bt-chip { font: inherit; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 0; background: var(--surface-2); color: var(--text-2); }
.bt-chip.crit { background: var(--danger-bg); color: var(--danger); }
.bt-chip.acc { background: var(--purple-150); color: var(--accent); }
.bt-chip.warn { background: var(--warning-bg); color: var(--warning); }
.bt-chip.node { background: var(--outlook-bg); color: var(--outlook); cursor: pointer; }
.bt-edit { margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.bt-edit[hidden] { display: none; }
.bt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bt-notes textarea { min-height: 60px; height: auto; padding: 7px 9px; font: inherit; font-size: 13px; resize: vertical; }
.bt-steps { display: flex; flex-direction: column; gap: 4px; }
.bt-step { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bt-steps .input { height: 30px; font-size: 12.5px; }
.bt-src { font-size: 12px; color: var(--accent); text-decoration: none; }
.bt-acts { display: flex; gap: 8px; }

/* Mail & ingevingen */
.bm { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--divider); }
.bm:first-of-type { border-top: 0; }
.bm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 7px 0; text-decoration: none; color: inherit; }
.bm-s { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm.unread .bm-s { font-weight: 800; }
.bm-f { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-main:hover .bm-s { color: var(--accent); }
.bi { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--divider); flex-wrap: wrap; }
.bi:first-of-type { border-top: 0; }
.bi-t { flex: 1 1 160px; font-size: 13.5px; }
.bi-sel { height: 30px; width: auto; max-width: 160px; font-size: 12px; padding: 0 6px; }
.bi-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.bi-x:hover { background: var(--danger-bg); color: var(--danger); }

/* Brein-chip in de inbox en op de takenpagina */
.brain-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--purple-150); color: var(--accent-soft-text); text-decoration: none; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.brain-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nc, var(--accent)); flex: none; }
.brain-link-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.brain-link-row select { height: 30px; width: auto; max-width: 220px; font-size: 12.5px; padding: 0 8px; }

/* Deel-sluis */
.sluis-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 18px; }
.sluis-step { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; }
.sluis-step b { color: var(--accent); }
.sluis-card { padding: 16px 18px; margin-bottom: 14px; }
.sluis-card h3 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sluis-card .sub { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sluis-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--divider); }
.sluis-row:first-of-type { border-top: 0; }
.sluis-row input[type=checkbox] { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.sluis-row .t { flex: 1; min-width: 0; }
.sluis-row .s { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.sluis-row .m { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.sluis-row.flagged { background: var(--danger-bg); margin: 0 -10px; padding: 9px 10px; border-radius: 10px; }
.sluis-flag { display: inline-flex; font-size: 11px; font-weight: 700; color: var(--danger); background: var(--surface); border: 1px solid var(--danger); border-radius: 999px; padding: 1px 7px; margin: 4px 4px 0 0; }
.sluis-new { font-size: 10.5px; font-weight: 800; color: var(--warning); background: var(--warning-bg); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.sluis-bulk { display: flex; gap: 10px; font-size: 12px; margin-bottom: 4px; }
.sluis-bulk button { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.sluis-summary { width: 100%; min-height: 90px; height: auto; padding: 10px 12px; font: inherit; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.sluis-suggest { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.sluis-preview { position: sticky; bottom: 0; background: var(--surface); border: 1px solid var(--border-purple); border-radius: var(--r-card); padding: 14px 18px; box-shadow: var(--shadow-draft); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sluis-preview .count { flex: 1 1 260px; font-size: 13.5px; line-height: 1.5; }
.sluis-preview label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 600; flex: 1 1 100%; }
.sluis-warn { padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.shared-mail-body { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--body-text-3); overflow-wrap: anywhere; }

/* ── Documenten per knoop ─────────────────────────────────────────────── */
.bd-drop.over { outline: 2px dashed var(--accent); outline-offset: -6px; background: var(--purple-50); }
.bd { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--divider); }
.bd:first-of-type { border-top: 0; }
.bd-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 0; text-decoration: none; color: inherit; }
.bd-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 15px; }
.bd-t { min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-t small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.bd-main:hover .bd-t { color: var(--accent); }
.bd-pin { border: 0; background: none; cursor: pointer; opacity: .25; font-size: 13px; padding: 4px; }
.bd-pin.on, .bd-pin:hover { opacity: 1; }
.bd-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.bd-up { cursor: pointer; }
.bd-link { display: flex; gap: 6px; flex: 1 1 260px; }
.bd-link .input { height: 32px; font-size: 12.5px; padding: 0 8px; }

/* ── Kaart: werkbalk, openvouwen, verslepen, zoekpalet, gsm ──────────── */
.brain-maptool { position: absolute; left: 14px; top: 12px; right: 70px; z-index: 3; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.brain-maptool > * { pointer-events: auto; }
.mt-crumb { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow-card); }
.mt-crumb button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--text-2); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.mt-crumb button:last-child { color: var(--accent); }
.mt-filters { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-card); }
.mt-filters button, .mt-xp { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--text-2); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.mt-filters button.on { background: var(--accent); color: var(--on-accent); }
.mt-xp { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.bn { position: absolute; }
.bn-xp { position: absolute; right: -9px; top: -9px; min-width: 20px; height: 20px; border-radius: 999px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  background: var(--nc, var(--accent)); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; border: 2px solid var(--surface); cursor: pointer; }
.bn-xp small { font-size: 9.5px; font-weight: 700; opacity: .9; }
.bn.drg { cursor: grabbing; box-shadow: 0 0 0 4px color-mix(in srgb, var(--nc, var(--accent)) 30%, transparent), var(--shadow-pop); z-index: 4; }
.bn-focus { border-color: var(--nc) !important; background: color-mix(in srgb, var(--nc) 10%, var(--surface)); }
.bp-zoom { display: flex; gap: 6px; margin-top: 10px; }
.brain-k { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.brain-k kbd { font: inherit; font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; }
.brain-pal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 30, .38); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.brain-pal[hidden] { display: none; }
.bpal-box { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.bpal-in { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; height: 52px; font-size: 15px; padding: 0 16px; }
.bpal-list { overflow-y: auto; padding: 6px; }
.bpal-it { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.bpal-it.on, .bpal-it:hover { background: var(--purple-50); }
.bpal-ic { width: 22px; text-align: center; }
.bpal-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpal-l small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.bpal-k { font-size: 11px; color: var(--muted); font-weight: 700; }
.bpal-foot { border-top: 1px solid var(--border); padding: 8px 14px; font-size: 11.5px; color: var(--muted); }
.brain-bnav { display: none; }
@media (max-width: 760px) {
  .brain-maptool { left: 8px; right: 8px; top: 8px; gap: 6px; }
  .mt-filters button, .mt-xp { padding: 4px 8px; font-size: 11.5px; }
  .brain-k { display: none; }
  .brain-bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 60px; background: var(--surface); border-top: 1px solid var(--border);
    justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom); }
  .brain-bnav a, .brain-bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 18px; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .brain-bnav span { font-size: 10.5px; font-weight: 700; }
  .brain-bnav .on { color: var(--accent); }
  .brain-bnav .bnav-add { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 24px; margin-top: -18px; box-shadow: var(--shadow-card); }
  .brain-shell { padding-bottom: 60px; }
  .brain-modes { bottom: 72px; }
  .brain-zoom { bottom: 72px; }
  .brain-panel { top: auto !important; bottom: 60px !important; height: min(78vh, calc(100vh - var(--topbar-h) - 70px)); border-radius: 18px 18px 0 0; border-left: 0; box-shadow: var(--shadow-pop); }
  .brain-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border-2); margin: 8px auto 0; }
}

/* ── Vereenvoudiging: balk, menu, postvak-zijbalk ─────────────────────── */
.brain-find { flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.brain-find:hover { border-color: var(--accent); }
.brain-find kbd { font: inherit; font-size: 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; }
.brain-menu { position: relative; }
.brain-menu > summary { list-style: none; cursor: pointer; }
.brain-menu > summary::-webkit-details-marker { display: none; }
.bmenu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.bc-more .bmenu-pop { left: 0; right: auto; }
.bmenu-pop button { text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.bmenu-pop button:hover { background: var(--purple-50); }
.brain-inbox { flex: 0 0 300px; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
.inbox-min .brain-inbox { flex-basis: 52px; }
.bi-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.bi-head > b { font-size: 14px; }
.bi-tabs { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 2px; margin-left: auto; }
.bi-tabs button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--text-2); padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.bi-tabs button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bi-tabs small { color: var(--muted); }
.bi-min { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }
.bi-list { flex: 1; overflow-y: auto; }
.bi-row { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--divider); background: none; padding: 9px 14px; font: inherit; color: var(--text); cursor: pointer; }
.bi-row:hover { background: var(--purple-50); }
.bi-row.sel { background: var(--purple-150); }
.bi-row.unread .bi-from, .bi-row.unread .bi-subj { font-weight: 800; }
.bi-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.bi-from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi-when { color: var(--muted); flex: none; font-size: 11.5px; }
.bi-subj { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body-text-2); }
.bi-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.bi-meta .brain-chip { font-size: 10.5px; padding: 1px 7px; }
.bi-empty { padding: 16px; }
.bi-full { display: block; padding: 10px 14px; font-size: 12.5px; color: var(--accent); text-decoration: none; border-top: 1px solid var(--divider); }
.bi-rail { width: 100%; height: 100%; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; color: var(--text-2); font: inherit; cursor: pointer; }
.bi-rail b { font-size: 12px; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 1px 7px; }
.bi-rail span { writing-mode: vertical-rl; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.bm-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.bm-links .brain-chip { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 700; }
.bm-body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; color: var(--body-text-3); overflow-wrap: anywhere; }
.bm-body.clip { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.bm-draft { min-height: 160px; font-size: 13.5px; line-height: 1.5; }
.bn.pulse { box-shadow: 0 0 0 6px color-mix(in srgb, var(--nc, var(--accent)) 35%, transparent), var(--shadow-card); border-color: var(--nc, var(--accent)); }
@media (max-width: 1100px) { .brain-inbox { flex-basis: 260px; } }
@media (max-width: 760px) {
  .brain-inbox { display: none; }
  .inbox-open .brain-inbox { display: flex; position: fixed; inset: var(--topbar-h) 0 60px 0; z-index: 42; flex-basis: auto; }
  .brain-find span { font-size: 12.5px; }
}

/* ── Stap 3: fiche-tabs, logo, deelstappen, notitietijdlijn ──────────── */
.bp-titlerow { display: flex; align-items: center; gap: 10px; }
.bp-logo { max-height: 46px; max-width: 160px; object-fit: contain; background: #fff; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); }
.bp-logo.sm { max-height: 32px; max-width: 110px; }
.bp-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.bp-head .bp-sts { margin-top: 8px; }
.bm-btn { border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.bt-step2 { display: grid; grid-template-columns: 20px minmax(0, 1fr) 130px 70px; gap: 6px; align-items: center; padding: 4px 0; }
.bt-step2 .st-note { grid-column: 2 / -1; height: 28px; font-size: 12px; }
.bt-step2 .input { height: 30px; font-size: 12.5px; padding: 0 7px; }
.bt-step2.done .st-title { text-decoration: line-through; color: var(--muted); }
.bt-step2 input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.bt-tl { display: flex; flex-direction: column; gap: 6px; }
.bt-tl-add .input { height: 32px; font-size: 12.5px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.tl li { position: relative; display: flex; gap: 8px; font-size: 12.5px; }
.tl li::before { content: ""; position: absolute; left: -17px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl-d { flex: none; color: var(--muted); font-weight: 700; min-width: 38px; }
.tl-t { white-space: pre-wrap; color: var(--body-text-2); }
@media (max-width: 760px) { .bt-step2 { grid-template-columns: 20px minmax(0, 1fr) 110px; } .bt-step2 .st-est { display: none; } }

/* ── Automatisatie ───────────────────────────────────────────────────── */
.brain-brief { display: flex; gap: 12px; align-items: flex-start; margin: 0 22px 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--purple-50); border: 1px solid var(--border-purple); }
.brain-brief[hidden] { display: none; }
.bb-ic { font-size: 20px; line-height: 1; }
.bb-t { flex: 1; min-width: 0; font-size: 13.5px; }
.bb-t p { margin: 3px 0 0; color: var(--body-text-2); line-height: 1.5; }
.bb-acts { display: flex; align-items: center; gap: 8px; }
.bb-acts .bp-x { position: static; width: 28px; height: 28px; }
.wl-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wl-out { margin-top: 8px; }
.bt.wl { border-top: 1px solid var(--divider); }
@media (max-width: 760px) { .brain-brief { margin: 0 14px 8px; } }

/* ── Gedeelde postvakken & afgehandelde mail ──────────────────────────── */
.bc-chip.ok b { color: var(--success-text); }
.bt-chip.ok { background: var(--success-bg); color: var(--success-text); }
.bm-mb { font-weight: 700; color: var(--outlook); }
.bm .bt-chip.node { flex: none; }
.mb-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--divider); cursor: pointer; }
.mb-row:first-child { border-top: 0; }
.mb-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.mb-row small { display: block; color: var(--muted); font-size: 12px; }

/* ── Mensen-kaart (fase 2) ─────────────────────────────────────────────── */
.bc-sep { width: 1px; height: 22px; background: var(--border); margin: 4px 2px; }
a.bc-chip { text-decoration: none; }
.bc-chip.on { border-color: var(--accent); background: var(--purple-150); color: var(--accent-soft-text); }
.bn-b.warn { background: var(--warning-bg); color: var(--warning); }
.bn-person .bn-av.sm { width: 24px; height: 24px; }
.crit-t { color: var(--danger); }
.bpp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.bpp i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc); flex: none; }
.bpp b { font-size: 11px; color: var(--accent); }
.bpp:hover { border-color: var(--sc); }
.bs-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--divider); font-size: 13px; flex-wrap: wrap; }
.bs-row:first-of-type { border-top: 0; }
.bs-row > span:not(.bt-chip):not(.bn-b) { flex: 1 1 140px; min-width: 0; color: var(--text-2); }
.bs-row small { color: var(--muted); }
.bs-row a { color: var(--text); font-weight: 600; text-decoration: none; }
.pp-id { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding-right: 32px; }
.pp-id h2 { padding-right: 0; }
.pp-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 3px solid var(--sc); font-weight: 800; font-size: 15px; }
.bp-sub-in { display: block; width: 100%; border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; font-size: 13px; color: var(--text-2); padding: 1px 6px; margin-left: -6px; }
.bp-sub-in:hover, .bp-sub-in:focus { border-color: var(--border); outline: none; background: var(--field-bg); }
.pp-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pp-acts a { text-decoration: none; }
.pp-role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-left: auto; }
.pp-role select { height: 30px; width: auto; font-size: 12.5px; padding: 0 8px; }
.pk { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.pk-row { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.pk-l { flex: none; width: 150px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.pk-chip { display: inline-block; padding: 1px 8px; margin: 0 4px 3px 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.pk-likes .pk-l { color: var(--success-text); } .pk-dislikes .pk-l { color: var(--danger); } .pk-mind .pk-l { color: var(--warning); }
.ps h3 { justify-content: space-between; }
.ps-trend { font-size: 11.5px; font-weight: 700; } .ps-trend.dn { color: var(--danger); } .ps-trend.up { color: var(--success-text); }
.ps-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.ps-bar button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ps-bar button i { width: 100%; max-width: 46px; height: 6px; border-radius: 999px; background: var(--c); opacity: .35; }
.ps-bar button[aria-pressed="true"] { border-color: var(--c); color: var(--text); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.ps-bar button[aria-pressed="true"] i { opacity: 1; }
.ps-why { margin: 0 0 6px; font-size: 13px; color: var(--body-text-2); }
.linkb { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.pp-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--divider); overflow-x: auto; }
.pp-tabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.pp-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.pp-tabs button span { font-size: 11px; background: var(--surface-2); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.pstats { display: flex; gap: 18px; }
.pstats span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); }
.pstats b { font-size: 18px; color: var(--text); }
.pc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: end; }
.pc-form label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; }
.pc-form .input { height: 32px; font-size: 12.5px; padding: 0 8px; }
.bl-grp { margin-top: 10px; }
.bl-gh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 12px; }
.bl-gh small { font-weight: 600; }
.bl-t small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.mp { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.mp summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.mp-t { font-size: 12px; font-weight: 800; color: var(--accent); min-width: 44px; }
.mp-p { padding: 8px 0 2px; border-top: 1px solid var(--divider); margin-top: 8px; }
.mp-x { margin: 4px 0 0; font-size: 12.5px; color: var(--text-2); }
.mp-tasks { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.ask-out { font-size: 13.5px; line-height: 1.55; color: var(--body-text-2); }
.ask-out ul { margin: 4px 0; padding-left: 18px; } .ask-out p { margin: 0 0 6px; }

/* ── Planning (fase 3) ─────────────────────────────────────────────────── */
.plan-main { flex: 1; min-width: 0; overflow-y: auto; padding: 4px 22px 40px; border-top: 1px solid var(--border); }
.plan-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.pk-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pk-card b { font-size: 20px; letter-spacing: -.01em; }
.pk-card span { font-size: 12px; color: var(--muted); }
.plan-prop { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px;
  border: 1px solid var(--border-purple); background: var(--purple-50); border-radius: 14px; font-size: 13px; }
.plan-prop[hidden] { display: none; }
.plan-prop > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.plan-prop span { color: var(--text-2); }
.pp-btns { display: flex; gap: 6px; }
.plan-tool { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-views .brain-tab { border: 0; background: none; font: inherit; cursor: pointer; }
.pt-views .brain-tab.active { background: var(--accent); color: var(--on-accent); }
.pt-week { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pt-gh { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 4px 6px; }
.pt-gh small { font-weight: 600; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px 96px 150px; gap: 10px; align-items: center; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; }
.pt-title { font-size: 13.5px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pt-title small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pt-st, .pt-est { height: 32px; font-size: 12.5px; padding: 0 8px; }
.pt-st.st-todo { color: var(--tk-todo); } .pt-st.st-bezig { color: var(--tk-bezig); } .pt-st.st-wacht { color: var(--tk-wacht); } .pt-st.st-klaar { color: var(--tk-klaar); }
.pt-plan { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.pt-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: var(--accent); }
.pt-kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.pk-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px; min-height: 240px; }
.pk-col.over { border-color: var(--accent); background: var(--purple-50); }
.pk-h { font-size: 12.5px; font-weight: 800; margin: 2px 4px 10px; display: flex; gap: 6px; align-items: center; }
.pk-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pk-h.st-todo::before { background: var(--tk-todo); } .pk-h.st-bezig::before { background: var(--tk-bezig); } .pk-h.st-wacht::before { background: var(--tk-wacht); } .pk-h.st-klaar::before { background: var(--tk-klaar); }
.pk-h small { color: var(--muted); font-weight: 600; }
.pk-card2 { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; cursor: grab; }
.pk-card2.dragging { opacity: .5; }
.pc-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; }
.pc-side { display: flex; flex-direction: column; gap: 6px; }
.pc-todo { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text); }
.pc-todo small { display: block; color: var(--muted); font-size: 11.5px; }
.pc-todo.on { border-color: var(--accent); background: var(--purple-50); }
.pc-grid { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: auto; }
.pc-head, .pc-body { display: grid; grid-template-columns: 48px repeat(var(--pc-days, 5), minmax(110px, 1fr)); }
.pc-head { position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--border); }
.pc-head span { padding: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center; }
.pc-head span.today { color: var(--accent); }
.pc-hours { position: relative; }
.pc-hours span { position: absolute; right: 6px; font-size: 10.5px; color: var(--muted); transform: translateY(-50%); }
.pc-col { position: relative; border-left: 1px solid var(--divider); background-image: linear-gradient(var(--divider) 1px, transparent 1px); background-size: 100% 54px; cursor: copy; }
.pc-col.today { background-color: var(--purple-50); }
.pc-off { position: absolute; left: 0; right: 0; background: var(--surface-3); opacity: .6; pointer-events: none; }
.pc-lunch { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, transparent 0 6px, var(--divider) 6px 8px); pointer-events: none; }
.pc-busy { position: absolute; left: 3px; right: 3px; border-radius: 6px; background: var(--surface-3); border: 1px dashed var(--border-2); pointer-events: none; }
.pc-leave { position: absolute; inset: 0; display: grid; place-items: center; background: var(--warning-bg); color: var(--warning); font-weight: 800; font-size: 12px; opacity: .85; pointer-events: none; }
.pc-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 1; pointer-events: none; }
.pc-blk { position: absolute; left: 4px; right: 4px; border-radius: 7px; background: var(--accent); color: var(--on-accent); padding: 3px 6px; overflow: hidden; cursor: grab; z-index: 1; font-size: 11.5px; line-height: 1.25; }
.pc-blk b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-blk small { opacity: .85; }
.pc-blk.prop { background: repeating-linear-gradient(45deg, var(--accent) 0 8px, var(--accent-hover) 8px 16px); opacity: .8; border: 1px dashed var(--on-accent); }
.pg { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 12px 14px; overflow-x: auto; }
.pg-head, .pg-row { display: grid; grid-template-columns: 240px minmax(480px, 1fr); gap: 10px; align-items: center; }
.pg-weeks { display: grid; grid-template-columns: repeat(8, 1fr); font-size: 11px; font-weight: 700; color: var(--muted); }
.pg-weeks span { border-left: 1px solid var(--divider); padding: 4px 6px; }
.pg-row { padding: 3px 0; }
.pg-t { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-track { position: relative; height: 18px; background: var(--surface-2); border-radius: 999px; }
.pg-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 999px; background: var(--muted-3); min-width: 6px; }
.pg-bar.st-bezig { background: var(--tk-bezig); } .pg-bar.st-wacht { background: var(--tk-wacht); } .pg-bar.st-todo { background: var(--tk-todo); } .pg-bar.st-klaar { background: var(--tk-klaar); }
.pg-bar.late { box-shadow: 0 0 0 2px var(--danger); }
.pg-today { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--danger); }
.pr-days { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.pr-days label { display: inline-flex; gap: 4px; align-items: center; }
.pr-form .btn { margin-top: 10px; }
.ho-tabs { margin-top: 10px; }
.ho-tabs .brain-tab { border: 0; background: none; font: inherit; cursor: pointer; }
.ho-tabs .brain-tab.active { background: var(--accent); color: var(--on-accent); }
.ho-mate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--divider); }
.ho-mate:first-child { border-top: 0; }
.ho-btns { margin-left: auto; display: flex; gap: 6px; }
.ho-btns .disabled { opacity: .45; pointer-events: none; }
.ho-row { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--divider); }
.ho-m { font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.ho-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.ho-seg button { font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.ho-seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wk-nav { display: flex; align-items: center; gap: 6px; padding-right: 32px; }
.wk-nav h2 { padding-right: 0; }
.wk-k { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wk-k span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); }
.wk-k b { font-size: 19px; color: var(--text); }
.wk-k .bad b { color: var(--danger); }
.wk-bar { display: grid; grid-template-columns: 110px 1fr 60px; gap: 8px; align-items: center; font-size: 12.5px; padding: 3px 0; }
.wk-bar i { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.wk-bar em { display: block; height: 100%; background: var(--accent); }
.wk-bar b { text-align: right; font-size: 12px; }
.wk-g { font-size: 13px; margin-bottom: 8px; }
.wk-g ul { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); }

@media (max-width: 1100px) {
  .brain-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; box-shadow: var(--shadow-pop); }
}
@media (max-width: 760px) {
  .plan-main { padding: 4px 14px 40px; }
  .plan-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-row { grid-template-columns: 1fr 1fr; }
  .pt-row .pt-title { grid-column: 1 / -1; }
  .pc-wrap { grid-template-columns: 1fr; }
  .pg-head, .pg-row { grid-template-columns: 140px minmax(420px, 1fr); }
  .pk-l { width: 110px; }
  .pc-form { grid-template-columns: 1fr; }
  .brain-bar { padding: 10px 14px 8px; gap: 8px; }
  .brain-search, .brain-idea { max-width: none; flex: 1 1 100%; }
  .brain-actions { margin-left: 0; }
  .brain-cockpit { padding: 0 14px 8px; overflow-x: auto; flex-wrap: nowrap; }
  .brain-panel { position: fixed; inset: var(--topbar-h) 0 0 0; flex: none; width: auto; z-index: 40; }
  .brain-listview { padding: 6px 14px 70px; }
  .bt-add-row { grid-template-columns: 1fr 1fr; }
}

/* Statuspillen (kleur en naam per gebruiker aan te passen in Instellingen → Statussen). */
.st-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 9px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.st-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.st-pill.st-ok { --c: var(--st-ok); } .st-pill.st-warn { --c: var(--st-warn); } .st-pill.st-crit { --c: var(--st-crit); } .st-pill.st-done { --c: var(--st-done); }
.st-pill.tk-todo { --c: var(--tk-todo); } .st-pill.tk-bezig { --c: var(--tk-bezig); } .st-pill.tk-wacht { --c: var(--tk-wacht); } .st-pill.tk-klaar { --c: var(--tk-klaar); }
.ui-app .bn.ball.st-done { border-color: var(--st-done); }
.st-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.st-edit-row { display: flex; align-items: center; gap: 8px; }
.st-edit-row input[type=color] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.st-edit-row .input { height: 32px; flex: 1; min-width: 0; }
.bp-st-edit { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13px; }
.bp-st-edit:hover { background: var(--surface-2); color: var(--accent); }
@media (max-width: 1100px) {
  .brain-bnav .bnav-add { display: inline-flex; align-items: center; justify-content: center; }
  .brain-bnav .nav-ico { display: block; }
}

/* Zoals de template: op een breed scherm staat Vandaag als paneel naast de kaart; de
   tellerknoppen rechts in de kaartbalk zouden dat enkel herhalen. */
@media (min-width: 1101px) { .brain-shell[data-brain-view="mine"] [data-brain-cockpit] { display: none; } }
.bp-tools { display: flex; justify-content: flex-end; margin: -4px 0 6px; font-size: 12.5px; }
.kb-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.kb-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 4px 3px 10px; border-radius: 999px;
  border: 1.5px dashed var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.kb-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 12px; padding: 0 4px; border-radius: 999px; }
.kb-chip button:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.drop-on { outline: 2px dashed var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 10px; }
.bp-tools { gap: 10px; align-items: center; justify-content: space-between; }
.bp-tools .muted { font-size: 11.5px; }
.fx-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fx-t th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; padding: 4px; }
.fx-t td { padding: 5px 4px; border-top: 1px solid var(--border); }
/* Hoofdplanning (Gantt) in de fiche */
.gt { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.gt-row { display: grid; grid-template-columns: 22px 148px 1fr 20px; gap: 6px; align-items: center; font-size: 12.5px; }
.gt-row.done { opacity: .55; }
.gt-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; }
.gt-t small { color: var(--muted); font-size: 11px; }
.gt-track { position: relative; height: 16px; background: var(--surface-2); border-radius: 6px; }
.gt-bar { position: absolute; top: 3px; height: 10px; border-radius: 5px; background: var(--nc, var(--accent)); }
.gt-ms { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--st-warn); border-radius: 2px; }
.gt-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--st-crit); opacity: .6; z-index: 1; pointer-events: none; }
.gt-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.gt-add label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
/* Uitvouwen tot een gekozen niveau (kaartmenu "⋯") */
.mt-lv { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px 10px 6px; font-size: 12.5px; color: var(--muted); }
.mt-lv span { margin-right: 4px; }
.mt-lv button { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; }
.mt-lv button:hover, .mt-lv button:focus-visible { border-color: var(--accent); outline: none; }
/* Instellingenfiche van een brein: koppelingen en toegang */
.bs-h { margin: 12px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bs-int { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bs-int:last-child { border-bottom: 0; }
.bs-int > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-int:not(.here) { opacity: .75; }
.bs-on, .bs-lv { font-size: 11.5px; font-weight: 700; color: var(--accent-soft-text); display: inline-flex; align-items: center; gap: 3px; }
.bs-lv { color: var(--muted); font-weight: 600; }
/* Voorgestelde taak: bij welke bol (of een nieuw thema) */
.au-node { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 12.5px; color: var(--muted); }
.au-node .input { height: 30px; padding: 0 8px; font-size: 12.5px; max-width: 260px; }
.bs-sel { height: 28px; padding: 0 6px; font-size: 12px; width: auto; }
.cq-flag { color: var(--warning); font-weight: 700; }
/* Deel-sluis: vanzelf delen en rechten per bol */
.sluis-auto { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.sluis-auto small { display: block; color: var(--muted); margin-top: 2px; }
.sluis-grant { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sluis-grant .input { width: auto; height: 30px; font-size: 12.5px; }
