@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');
/* Mindmap-indeling voor de app (body.ui-app): de schikking van de mindmap-template —
   bovenbalk met zoeken in het midden, zijbalk links met je bedrijven, de kaart in het
   midden en het paneel rechts — in de huisstijl van HeyOtto (kleuren, lettertype, hoeken
   volgen de tokens). De marketing-site en de platform-backoffice blijven ongewijzigd. */
body.ui-app {
  --hub: var(--heading-dark); --hub-ink: #ffffff; --hubring: var(--brand);
  --grid: var(--border); --st-ok: var(--success); --st-warn: var(--warning); --st-crit: var(--danger); --st-done: #8A94A6;
  --tk-todo: #8A94A6; --tk-bezig: var(--accent); --tk-wacht: var(--warning); --tk-klaar: var(--success);
  --topbar-h: 60px; --sidebar-w: 240px;
}
:root[data-theme="dark"] body.ui-app { --hub: var(--brand); --hub-ink: var(--on-brand); --hubring: var(--accent-soft-text); }

/* ── Bovenbalk ─────────────────────────────────────────────────────────── */
.ui-app .xtop { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); padding: 0 16px; gap: 14px; height: var(--topbar-h); }
.ui-app .xtop .brand .name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ui-app .xtop .brand .logo-badge { width: 30px; height: 30px; border-radius: 9px; }
.ui-app .xtop .brand .logo-badge .core { width: 10px; height: 10px; }
.ui-app .xtop .tdiv { width: 1px; height: 24px; background: var(--border); flex: none; }
.ui-app .xtop .ttl { font-weight: 700; font-size: 15px; white-space: nowrap; }
.ui-app .xtop .ttl-n { color: var(--muted); font-weight: 600; }
.ui-app .tsearch { flex: 1 1 auto; max-width: 480px; margin: 0 auto; height: 36px; display: flex; align-items: center; gap: 10px;
  padding: 0 10px 0 14px; border: 1px solid var(--border); border-radius: var(--r-input); background: var(--field-bg);
  color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ui-app .tsearch:hover { border-color: var(--accent); color: var(--text-2); }
.ui-app .tsearch span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-app .tsearch kbd, .ui-app .side-k kbd { font: inherit; font-size: 11.5px; font-weight: 700; border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; background: var(--surface); color: var(--muted); }
.ui-app .tright { display: flex; align-items: center; gap: 8px; flex: none; }
.ui-app .tbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: var(--r-btn); background: var(--surface); color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ui-app .tbtn:hover { background: var(--purple-50); color: var(--accent); }
.ui-app .tbtn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ui-app .tbtn.pri:hover { background: var(--accent-hover); color: var(--on-accent); }
.ui-app .xtop .pill-connected .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.tuser { position: relative; }
.tuser summary { list-style: none; cursor: pointer; display: flex; }
.tuser summary::-webkit-details-marker { display: none; }
.tuser .avatar { color: #fff; }
.tuser-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 250px; background: var(--surface); color: var(--text);
  border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.tuser-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.tuser-who .nm { font-weight: 700; } .tuser-who .sub { font-size: 12px; color: var(--muted); }
.tuser-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--text-3); text-decoration: none; }
.tuser-item:hover, .tuser-item.active { background: var(--purple-50); color: var(--accent); }
.tuser-sep { height: 1px; background: var(--divider); margin: 4px 0; }

/* ── Zijbalk ───────────────────────────────────────────────────────────── */
.ui-app .xside { width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); padding: 12px 10px 10px; gap: 8px; }
.ui-app .xside .nav { gap: 2px; flex: 1; }
.ui-app .xside .nav-item { padding: 9px 12px; }
.side-co { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 1px; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.side-add { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }
.side-add:hover { border-color: var(--accent); color: var(--accent); }
.side-c { display: grid; grid-template-columns: 10px 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 11px;
  font-size: 14px; color: var(--text); text-decoration: none; }
.side-c:hover { background: var(--bg); }
.side-c.on { background: var(--purple-100); color: var(--accent); }
.side-c .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--st-ok); }
.side-c.st-warn .sd { background: var(--st-warn); } .side-c.st-crit .sd { background: var(--st-crit); } .side-c.st-done .sd { background: var(--muted-3); }
.side-c .sd { background: var(--nc, var(--st-ok)); }
.side-c .ab { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.side-c .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.side-c .ct { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-empty { font-size: 12.5px; color: var(--muted); padding: 4px 10px; margin: 0; line-height: 1.45; }
.side-foot { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.side-ws { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 11px; font-size: 13.5px; color: var(--text-3); text-decoration: none; }
.side-ws:hover { background: var(--bg); color: var(--text); }
.side-k { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); text-align: right; padding: 6px 10px; cursor: pointer; }
.ui-app .main { background: var(--bg); }

@media (min-width: 861px) {
  /* De zijbalk ís nu de navigatie: altijd zichtbaar op brede schermen. */
  .app-shell .xside { display: flex !important; }
  .app-shell .nav-toggle { display: none !important; }
}
@media (max-width: 1100px) {
  .ui-app .tbtn .bl, .ui-app .xtop .ttl, .ui-app .xtop .tdiv, .ui-app .xtop .pill-connected { display: none; }
  .ui-app .tbtn { padding: 0 9px; }
}
@media (max-width: 860px) {
  .ui-app .xtop { padding: 0 10px; gap: 8px; }
  .ui-app .tsearch { max-width: none; }
  .ui-app .tsearch span, .ui-app .tsearch kbd { display: none; }
  .ui-app .tsearch { flex: 0 0 36px; justify-content: center; padding: 0; margin: 0 0 0 auto; }
  .ui-app .xtop .theme-toggle { display: none; }
  .ui-app .xside { position: fixed; top: var(--topbar-h); left: 0; bottom: 0; z-index: 50; width: 280px; max-width: 86vw;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-pop); }
  .otto-shell.nav-open .xside { transform: translateX(0); }
}

/* ── Brein: kop (eyebrow + titel + samenvatting) ───────────────────────── */
.ui-app .brain-shell { background: var(--bg); }
.mbar { display: flex; align-items: flex-end; gap: 12px 16px; padding: 14px 20px 10px; flex-wrap: wrap; }
.mbar .mt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mbar .eb { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mbar .eb button { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.mbar h1 { margin: 0; font-weight: 800; letter-spacing: -.02em; font-size: 30px; line-height: 1.1; color: var(--text); }
.mbar .msum { font-size: 13.5px; color: var(--muted); }
.mbar .brain-actions { margin-left: auto; align-items: center; }
.ui-app .brain-cockpit { padding: 0 20px 10px; }

/* Stippenraster achter de kaart */
.ui-app .brain-stage { border-top: 1px solid var(--border);
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px); background-size: 24px 24px; }
.ui-app .brain-lines path { stroke: var(--border-2) !important; stroke-dasharray: 6 6; opacity: .9; stroke-width: 2; }
.ui-app .brain-lines path.l2 { stroke-width: 1.6; }
.ui-app .brain-lines path.lx { stroke: var(--accent) !important; stroke-dasharray: 4 5; }
.ui-app .brain-lines path.hot { stroke: var(--accent) !important; stroke-dasharray: none; opacity: 1; }

/* Bollen (bedrijven) — witte bol met een statusrand, naam en open taken */
.ui-app .bn.ball { width: 128px; height: 128px; max-width: none; border-radius: 50%; padding: 12px; flex-direction: column; justify-content: center;
  gap: 2px; text-align: center; white-space: normal; background: var(--surface); border: 4px solid var(--st-ok); box-shadow: var(--shadow-card);
  font-family: var(--font); }
.ui-app .bn.ball.st-warn { border-color: var(--st-warn); } .ui-app .bn.ball.st-crit { border-color: var(--st-crit); }
.ui-app .bn.ball.st-done { border-color: var(--border-2); }
.ui-app .bn.ball.bn-gen { border-style: dashed; border-color: var(--border-2); }
.ui-app .bn.ball .bn-nr { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ui-app .bn.ball .bn-t { font-size: 15px; font-weight: 700; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-app .bn.ball .bn-ct { font-size: 11.5px; color: var(--muted); line-height: 1.25; max-width: 104px; }
.ui-app .bn.ball .bn-ct b { color: var(--text); }
.ui-app .bn.ball .bn-dot { display: none; }
/* Meldingen ín de bol, zoals in de mindmap-template: rond, met een ring in de achtergrondkleur. */
.ui-app .bn.ball .bn-late, .ui-app .bn.ball .bn-urg { position: absolute; top: 4px; min-width: 22px; height: 22px; border-radius: 999px; color: #fff;
  font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; border: 2px solid var(--bg); line-height: 1; }
.ui-app .bn.ball .bn-late { right: 4px; background: var(--st-crit); }
.ui-app .bn.ball .bn-urg { left: 4px; background: var(--st-warn); color: #1b1b1b; }
.ui-app .bn.ball .bn-ct-late { color: var(--st-crit); font-weight: 700; }
.ui-app .bn.ball .bn-dots { display: flex; gap: 3px; justify-content: center; margin-top: 3px; }
.ui-app .bn.ball .bn-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-3, var(--muted)); }
.ui-app .bn.ball .bn-mail { position: absolute; bottom: 2px; left: 2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--accent); color: var(--on-accent); border: 2px solid var(--bg); white-space: nowrap; }
.ui-app .bn.ball .bn-xp { position: absolute; top: auto; bottom: 2px; right: 2px; width: 22px; min-width: 22px; height: 22px; padding: 0;
  border-radius: 50%; background: var(--surface); color: var(--text-2); border: 1.5px solid var(--border-2, var(--border)); font-size: 14px; font-weight: 700; }
.ui-app .bn.ball .bn-xp:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ui-app .bn.ball .bn-xp.add { opacity: 0; transition: opacity .15s; }
.ui-app .bn.ball:hover .bn-xp.add, .ui-app .bn.ball.sel .bn-xp.add, .ui-app .bn.ball:focus-visible .bn-xp.add { opacity: 1; }
@media (hover: none) { .ui-app .bn.ball .bn-xp.add { opacity: 1; } }
.ui-app .bn.ball:hover, .ui-app .bn.ball:focus-visible { transform: translate(-50%, -50%) scale(1.05); box-shadow: var(--shadow-pop); }
.ui-app .bn.ball.sel { background: var(--surface-3); outline: 3px solid var(--accent); outline-offset: 3px; }
.ui-app .bn.ball { transition: transform .15s, box-shadow .15s, opacity .15s; }
/* Het midden: donkere bol met lichte ring */
.ui-app .bn.bn-me { width: 156px; height: 156px; border-radius: 50%; padding: 14px; background: var(--hub); color: var(--hub-ink);
  border: 4px solid var(--hubring); box-shadow: 0 0 0 8px color-mix(in srgb, var(--hubring) 22%, transparent), var(--shadow-card);
  justify-content: center; text-align: center; white-space: normal; gap: 2px; }
.ui-app .bn.bn-me .bn-nr { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ui-app .bn.bn-me .bn-t { font-weight: 800; letter-spacing: -.02em; font-size: 26px; line-height: 1.05; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-app .bn.bn-me .bn-sub, .ui-app .bn.bn-me .bn-ct { font-size: 12px; opacity: .8; color: inherit; }
.ui-app .bn.bn-me .bn-av { display: none; }
.ui-app .bn.bn-me .bn-bs { display: none; }
/* Kleinere knopen (projecten/thema's) blijven pillen, in dezelfde stijl */
.ui-app .bn:not(.ball):not(.bn-me) { border-radius: 999px; border-color: var(--border-2); background: var(--surface); box-shadow: var(--shadow-card); font-weight: 600; }


/* Paneel rechts: kopjes in kapitalen in de accentkleur, zoals in de mindmap */
.ui-app .brain-panel { background: var(--surface); border-left: 1px solid var(--border); }
.ui-app .bp-head { background: var(--surface); border-top-width: 0; box-shadow: inset 0 3px 0 var(--nc, var(--accent)); }
.ui-app .bp-head h2, .ui-app .bp-title { font-size: 22px; }
.ui-app .bp-sec h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* Vandaag-paneel */
.vd-head { padding: 18px 20px 6px; }
.vd-date { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.vd-hello { margin: 2px 0 2px; font-weight: 800; letter-spacing: -.02em; font-size: 30px; line-height: 1.1; }
.vd-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.vd-add { margin: 12px 20px; padding: 12px; background: var(--surface-3); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.vd-add .row { display: flex; gap: 8px; }
.vd-add .row .input { flex: 1; min-width: 0; }
.vd-tabs { display: flex; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.vd-tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 0; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vd-tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.vd-tabs .n { font-size: 11.5px; background: var(--surface-3); border-radius: 10px; padding: 1px 6px; margin-left: 4px; }
.vd-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding: 10px 20px; }
.vd-day { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: inherit; padding: 4px 2px; cursor: pointer; text-align: center; }
.vd-day small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.vd-day b { display: block; font-size: 17px; font-weight: 600; color: var(--muted-3); }
.vd-day.has b { color: var(--text); } .vd-day.late.has b { color: var(--st-crit); }
.vd-day.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vd-list { padding: 4px 20px 14px; }
.vd-empty { border: 1px dashed var(--border-2); border-radius: 10px; padding: 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.vd-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.vd-week { margin: 6px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 10px;
  background: var(--success-bg); color: var(--success-text); font-weight: 600; text-decoration: none; border: 1px solid var(--success-border); }

/* Bedrijf */
.co-card { margin: 14px 20px; padding: 14px; border-radius: 10px; background: var(--surface-3); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.co-kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.co-kpi span { font-size: 12px; color: var(--muted); }
.co-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.co-row:last-child { border-bottom: 0; }
.co-row .grow { flex: 1; min-width: 0; }
.co-row small { display: block; color: var(--muted); font-size: 12px; }
.co-links { display: flex; flex-wrap: wrap; gap: 6px; }
.co-lock { font-size: 13px; color: var(--muted); background: var(--surface-3); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.ui-app .bn.ball.person { border-color: var(--pc, var(--accent)); }
.ui-app .bn.ball.person .bn-ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.ui-app .brain-shell[data-brain-view="company"] .brain-modes { display: none; }
.co-switch { display: inline-flex; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.co-switch a { padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.co-switch a + a { border-left: 1px solid var(--border-2); }
.co-switch a.on { background: var(--surface-3); color: var(--text); }

@media (max-width: 760px) {
  .mbar { padding: 12px 14px 8px; }
  .mbar h1 { font-size: 24px; }
  .ui-app .bn.ball { width: 96px; height: 96px; }
  .ui-app .bn.bn-me { width: 128px; height: 128px; }
}

/* Filters onder de titel (zoals in de mindmap), Kaart/Lijst ernaast, meldingen rechts */
.mtools { display: flex; align-items: center; gap: 8px; padding: 0 20px 10px; flex-wrap: wrap; }
.mtools .brain-maptool { position: static; display: flex; gap: 8px; pointer-events: auto; flex-wrap: wrap; }
.mtools .mt-crumb { display: none; }
.mtools .mt-filters { background: none; border: 0; box-shadow: none; padding: 0; gap: 6px; display: inline-flex; flex-wrap: wrap; }
.mtools .mt-filters button, .mtools .mt-xp { border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; font-size: 13px; box-shadow: none; }
.mtools .mt-filters button.on { background: var(--heading-dark); color: #fff; border-color: var(--heading-dark); }
:root[data-theme="dark"] .mtools .mt-filters button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mtools .brain-modes { position: static; box-shadow: none; }
.mtools .brain-cockpit { padding: 0; margin-left: auto; }
.vd-brief { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--purple-50); color: var(--body-text-2); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 760px) { .mtools { padding: 0 14px 8px; } .mtools .brain-cockpit { margin-left: 0; } }

/* Werelden: werk / persoonlijk / eigen bedrijf / alles */
.side-worlds { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 4px 2px; margin-top: 8px; border-top: 1px solid var(--border); }
.side-worlds .sw { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--text-2); text-decoration: none; background: var(--surface); }
.side-worlds .sw span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.side-worlds .sw i { width: 8px; height: 8px; border-radius: 50%; background: var(--wc, var(--accent)); flex: none; }
.side-worlds .sw:hover { border-color: var(--accent); color: var(--accent); }
.side-worlds .sw.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.side-worlds .sw.on i { background: #fff; }
.side-worlds .sw.add { padding: 4px 7px; color: var(--muted); }
.side-worlds + .side-co { border-top: 0; margin-top: 0; }
.wd-world { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--divider); }
.wd-world i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wd-world .input { height: 32px; font-size: 13px; }
.wd-acct { padding: 10px 0; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 6px; }
.wd-acct:last-child { border-bottom: 0; }
.wd-acct .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wd-acct .row .input { height: 32px; font-size: 13px; width: auto; flex: 1 1 140px; }
.wd-cats { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.wd-cats label { display: inline-flex; align-items: center; gap: 4px; }
.wd-add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wd-add .full { grid-column: 1 / -1; }

.bt-child { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 6px; }

/* Verrijken en kennis */
.en-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--divider); font-size: 13px; }
.en-l { color: var(--muted); font-size: 12px; font-weight: 700; }
.en-v { overflow-wrap: anywhere; }
.en-tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.en-tech .pill { background: var(--purple-100); color: var(--accent-soft-text); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.en-changes { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--body-text-2); }
.wch { background: var(--purple-50); }
.wch .row { display: flex; gap: 8px; }
.wch .row .input { flex: 1; min-width: 0; }
.pstats { flex-wrap: wrap; }
.ui-app .pp-tabs { overflow-x: auto; scrollbar-width: none; }
.ui-app .pp-tabs button { flex: none; white-space: nowrap; }

/* Logboek automatisatie */
.rl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rl li { display: flex; gap: 10px; }
.rl-d { flex: none; min-width: 92px; color: var(--muted); font-size: 12px; }
.cu .btn { margin-left: auto; }

/* Mijn abonnementen */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.sub-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.sub-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--purple-100); }
.sub-eb { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sub-h { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sub-plan { font-size: 15px; font-weight: 700; color: var(--accent); display: flex; gap: 8px; align-items: center; }
.sub-list { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.sub-use { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.sub-meter { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.sub-meter i { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: block; }
.sub-meter em { display: block; height: 100%; background: var(--accent); }
.sub-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.sub-link { font-size: 13px; font-weight: 700; color: var(--accent); }
@media (max-width: 600px) { .sub-meter { grid-template-columns: 1fr; } }
.wd-plan { background: var(--purple-50); border-radius: 10px; padding: 8px 10px; }
.wd-plan a { color: var(--accent); font-weight: 700; }

/* Persoon ↔ bedrijven */
.pco { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pco-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; padding: 4px 0; border-bottom: 1px solid var(--divider); }
.pco-row .sd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pco-row a { font-weight: 700; color: var(--text); }
.pco-row.former a { color: var(--muted); font-weight: 600; }
.pco-row .bi-x { margin-left: auto; }
.pco-add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: center; }
.pco-add .input { height: 32px; font-size: 13px; }
.pco-was { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.bpp-former { opacity: .55; }

.sub-price { font-size: 14px; color: var(--text-2); }
.sub-price b { font-size: 20px; color: var(--text); }
.sub-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-form .input { width: auto; height: 34px; }
.sub-bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sub-bundle { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.sub-bundle b { font-size: 20px; }
.sub-bundle small { color: var(--muted); }

/* ── Gezin & leven (fase E) ─────────────────────────────────────────────── */
.lv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; border-bottom: 1px solid var(--border); }
.lv-tabs a { padding: 9px 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lv-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.lv-circles { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; background: var(--surface); cursor: pointer; list-style: none; }
.lv-chip.on { border-color: var(--accent); color: var(--accent); background: var(--purple-50, var(--surface-2)); }
.lv-chip.add { color: var(--muted); border-style: dashed; }
.lv-new[open] .lv-form { margin-top: 8px; }
.lv-new summary::-webkit-details-marker { display: none; }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.lv-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.lv-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-h h3 { margin: 0; font-size: 15px; font-weight: 800; }
.lv-empty { padding: 26px; }
.lv-empty h3 { margin: 0 0 6px; font-size: 17px; }
.lv-empty p, .lv-note { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.lv-muted { color: var(--muted); font-size: 12.5px; margin: 0; }
.lv-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lv-form .input { height: 34px; width: auto; min-width: 0; }
.lv-lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.lv-members, .lv-tasks, .lv-shop, .lv-feeds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lv-members li, .lv-tasks li, .lv-shop li, .lv-feeds li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.lv-members form, .lv-tasks form, .lv-shop form, .lv-feeds form, .lv-row form { margin: 0; }
.lv-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lv-mn { flex: 1; min-width: 0; }
.lv-mn small, .lv-tt small { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.lv-pend { color: #B7791F !important; }
.lv-link { flex: 1 1 100%; font-size: 11.5px; height: 28px !important; }
.lv-x { border: 0; background: none; color: var(--muted); font-size: 17px; cursor: pointer; padding: 0 4px; line-height: 1; }
.lv-x:hover { color: var(--danger); }
.lv-mini { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 8px; font-size: 12px; padding: 3px 9px; cursor: pointer; text-decoration: none; }
.lv-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong, var(--border)); background: var(--surface); cursor: pointer; font-size: 12px; line-height: 1; color: #fff; padding: 0; }
.lv-check.on { background: var(--accent); border-color: var(--accent); }
.lv-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-tasks li.late .lv-tt { color: var(--danger); }
.lv-tasks li.done, .lv-shop li.done { opacity: .55; }
.lv-shop li.done span { text-decoration: line-through; }
.lv-who { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.lv-balance { display: flex; flex-direction: column; gap: 6px; }
.lv-bal { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 4px 10px; align-items: center; font-size: 12.5px; }
.lv-bal i { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: block; }
.lv-bal em { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.lv-bal small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; margin-top: -2px; }
.lv-k-agenda em { background: #2D9CDB; } .lv-k-doel em { background: #27AE60; } .lv-k-huis em { background: #F2994A; }
.lv-store { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.lv-share { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lv-share small { color: var(--muted); }
.lv-share p { margin: 0; color: var(--text-2); }
.lv-share ul { margin: 0; padding-left: 18px; }
.lv-mail { color: var(--accent); text-decoration: none; font-size: 12.5px; }
.lv-weeknav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lv-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.lv-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-height: 140px; display: flex; flex-direction: column; gap: 5px; }
.lv-day.today { border-color: var(--accent); }
.lv-dh { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.lv-ev { font-size: 12px; padding: 5px 7px; border-radius: 8px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); overflow-wrap: anywhere; }
.lv-ev small { display: block; color: var(--muted); font-size: 11px; }
.lv-free { margin: auto 0; text-align: center; }
.lv-fam { display: grid; grid-template-columns: auto 120px 1fr; gap: 8px; align-items: center; font-size: 13px; }
.lv-famdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.lv-famday { position: relative; height: 14px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.lv-famday i { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .7; }
.lv-help { font-size: 12.5px; color: var(--text-2); }
.lv-help ul { margin: 6px 0 0; padding-left: 18px; }
.lv-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.lv-goal.gehaald { border-color: #27AE60; }
.lv-goal.gestopt { opacity: .6; }
.lv-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .lv-week { grid-template-columns: 1fr; }
  .lv-day { min-height: 0; }
  .lv-fam { grid-template-columns: auto 1fr; }
  .lv-famdays { grid-column: 1 / -1; }
}
.lv-hours { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.lv-hours:last-child { border-bottom: 0; }
.rel-tl { display: flex; flex-direction: column; gap: 6px; }
.rel-row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.rel-row a { color: var(--text); text-decoration: none; }
.rel-row a:hover { color: var(--accent); }
.rel-i { width: 18px; text-align: center; flex: none; }

/* Sub-tabs onder één hoofdknop (Planning, Mensen). */
.subnav { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; margin: 0 0 14px; }
.subnav-i { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; }
.subnav-i:hover { color: var(--text); background: var(--surface); }
.subnav-i.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.subnav-i .nav-ico { flex: none; }
.brain-bar .subnav { margin: 0; }

/* Hoofdknoppen met een gekleurd icoontegeltje; de rest blijft rustig. */
.ui-app .xside .nav-item.nav-top .nav-ico { width: 28px; height: 28px; padding: 5px; border-radius: 9px; flex: none;
  color: var(--ic, var(--accent)); background: color-mix(in srgb, var(--ic, var(--accent)) 13%, transparent); }
.ui-app .xside .nav-item.nav-top.active .nav-ico { color: var(--on-accent); background: var(--ic, var(--accent)); }
.ui-app .xside .nav-item[data-k="brein"] { --ic: var(--accent); }
.ui-app .xside .nav-item[data-k="brein_people"] { --ic: var(--accent); }
.ui-app .xside .nav-item[data-k="brein_plan"] { --ic: var(--accent); }
.ui-app .xside .nav-item[data-k="inbox"] { --ic: var(--accent); }
.ui-app .xside .nav-item[data-k="leven"] { --ic: var(--accent); }
.ui-app .xside .nav-item[data-k="bedrijf"] { --ic: var(--accent); }
.ui-app .xside .nav-item.nav-top { gap: 10px; }
/* Uren */
.ur-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; margin-top: 14px; }
.ur-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ur-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.ur-blocks { display: flex; flex-direction: column; gap: 6px; }
.ur-row { display: grid; grid-template-columns: 1.1fr 72px 1.6fr 26px; gap: 6px; align-items: center; }
.ur-row .input { height: 32px; min-width: 0; }
.ur-del { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; font-size: 16px; }
.ur-del input { display: none; }
.ur-del:has(input:checked) { color: var(--danger); }
.ur-new .input { border-style: dashed; }
.ur-map .ur-row { grid-template-columns: 1fr 1.4fr; }
@media (max-width: 760px) { .ur-days { grid-template-columns: 1fr; } .ur-row { grid-template-columns: 1fr 64px; } .ur-row > :nth-child(3) { grid-column: 1 / -1; } }
.mcp-how { font-size: 12.5px; color: var(--text-2); margin: 6px 0; }
.mcp-how summary { cursor: pointer; }
.mcp-how ol { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.mcp-how pre { white-space: pre-wrap; word-break: break-all; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; font-size: 11.5px; }
.mcp-url { width: 100%; }

/* ════════════════════════════════════════════════════════════════════════
   Indeling v2 (okt 2026) — dichter bij de mindmap-template: rustige zijbalk met gewone
   lijn-iconen die inklapt tot een icoonstrook, titels in serif, de kaartbalk op één rij
   met de titel, bollen met een statusrand en een eenvoudige fiche. Kleuren blijven Otto.
   ════════════════════════════════════════════════════════════════════════ */
body.ui-app { --serif: "Newsreader", Georgia, "Times New Roman", serif; }
.serif, .mbar h1, .vd-hello, .ui-app .bp-title.serif, .ui-app .bn.bn-me .bn-t { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }

/* Bovenbalk: accountmenu met thema en "Alle onderdelen" */
.ui-app .nav-toggle { display: none; border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 6px; }
.tuser-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 2px; }
button.tuser-item { border: 0; background: none; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.tuser-item .nav-badge { margin-left: auto; }
.tuser .t-sun { display: none; } :root[data-theme="dark"] .tuser .t-sun { display: inline-flex; } :root[data-theme="dark"] .tuser .t-moon { display: none; }
.tuser .t-moon, .tuser .t-sun { align-items: center; }

/* Zijbalk: gewone iconen, geen gekleurde tegeltjes */
@media (min-width: 861px) { .ui-app .xside { position: relative; } }
.ui-app .xside .nav-item { gap: 11px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.ui-app .xside .nav-item:hover { background: var(--bg); color: var(--text); }
.ui-app .xside .nav-item.active, .ui-app .xside .nav-item.nav-top.active { background: var(--purple-100); color: var(--accent); font-weight: 700; }
.ui-app .xside .nav-item.nav-top .nav-ico, .ui-app .xside .nav-item.nav-top.active .nav-ico { width: 19px; height: 19px; padding: 0; background: none; color: inherit; border-radius: 0; }
.ui-app .xside .nav-item .nav-badge { background: var(--st-crit); color: #fff; }
.ui-app .xside .nav-item.active .nav-badge { background: var(--st-crit); color: #fff; }
.ui-app .xside .nav-item.nav-sub { padding-left: 22px; font-size: 13.5px; }
.ui-app .xside .nav-section { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-2); padding: 9px 12px; border-radius: 11px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.ui-app .xside .nav-section:hover { background: var(--bg); color: var(--text); }
.ui-app .xside .nav-section span { flex: 1; text-align: left; }
.ui-app .xside .nav-section > svg:last-child { transition: transform .15s; }
.ui-app .xside .nav-section[aria-expanded="false"] > svg:last-child { transform: rotate(-90deg); }
.side-min { position: absolute; top: 12px; right: -13px; z-index: 8; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; display: none; place-items: center; box-shadow: var(--shadow-card); }
.side-min:hover { color: var(--accent); border-color: var(--accent); }
.side-min .smi-o { display: none; }
@media (min-width: 861px) { .side-min { display: grid; } }
.side-c { grid-template-columns: 10px 30px minmax(0, 1fr) auto auto; }
.side-c .lt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--st-crit); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center; }

/* Icoonstrook (ingeklapte zijbalk, zoals de template) */
@media (min-width: 861px) {
  .otto-shell.app-shell.collapsed-sidebar { --sidebar-w: 74px !important; }
  .otto-shell.app-shell.collapsed-sidebar .sidebar.xside { padding: 10px 8px; overflow: visible; }
  .otto-shell.app-shell.collapsed-sidebar .sidebar.xside > .nav,
  .otto-shell.app-shell.collapsed-sidebar .sidebar.xside > .side-foot { display: flex !important; }
  .otto-shell.app-shell.collapsed-sidebar .sidebar.xside > .side-min { display: grid !important; }
  .otto-shell.app-shell.collapsed-sidebar .side-min .smi-c { display: none; }
  .otto-shell.app-shell.collapsed-sidebar .side-min .smi-o { display: inline; }
  .otto-shell.app-shell.collapsed-sidebar .xside .nav { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
  .otto-shell.app-shell.collapsed-sidebar .xside .lbl,
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-section span,
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-section > svg:last-child,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-worlds,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-h > span,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-c .nm,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-c .ct,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-empty,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-foot span,
  .otto-shell.app-shell.collapsed-sidebar .xside .side-k { display: none; }
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-item,
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-section { justify-content: center; padding: 12px 0; position: relative; }
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-item.nav-sub { padding-left: 0; }
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-item .nav-ico { width: 21px; height: 21px; }
  .otto-shell.app-shell.collapsed-sidebar .xside .nav-badge { position: absolute; top: 3px; right: 9px; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 4px; }
  .otto-shell.app-shell.collapsed-sidebar .xside .side-co { align-items: stretch; }
  .otto-shell.app-shell.collapsed-sidebar .xside .side-h { justify-content: center; padding: 4px 0 8px; }
  .otto-shell.app-shell.collapsed-sidebar .xside .side-c { display: flex; justify-content: center; gap: 5px; padding: 9px 0; position: relative; }
  .otto-shell.app-shell.collapsed-sidebar .xside .side-c .ab { color: var(--text); font-size: 12px; }
  .otto-shell.app-shell.collapsed-sidebar .xside .side-c .lt { position: absolute; top: 1px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; }
  .otto-shell.app-shell.collapsed-sidebar .xside .side-ws { justify-content: center; padding: 10px 0; }
  .otto-shell.app-shell.collapsed-sidebar .col-resizer[data-resize="sidebar"] { display: none; }
}

/* Kop van de kaart: titel links (serif), filters + alles vouwen + Kaart/Lijst rechts */
.mbar { padding: 18px 22px 12px; align-items: flex-end; }
.mbar h1 { font-size: 38px; line-height: 1.05; }
.mbar .msum b { color: var(--text); } .mbar .msum .late { color: var(--st-crit); font-weight: 700; }
.mbar [data-mb-tools] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mbar [data-mb-tools] .brain-maptool { position: static; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: auto;
  background: none; border: 0; box-shadow: none; padding: 0; }
.mbar [data-mb-tools] .mt-filters { display: inline-flex; gap: 6px; background: none; border: 0; box-shadow: none; padding: 0; flex-wrap: wrap; }
.mbar [data-mb-tools] .mt-filters button, .mbar [data-mb-tools] .mt-xp { border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; box-shadow: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mbar [data-mb-tools] .mt-xp { border-radius: 10px; }
.mbar [data-mb-tools] .mt-filters button:hover, .mbar [data-mb-tools] .mt-xp:hover { border-color: var(--accent); }
.mbar [data-mb-tools] .mt-filters button.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.mbar [data-mb-tools] .brain-modes { position: static; display: inline-flex; box-shadow: none; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.mbar [data-mb-tools] .brain-modes button { padding: 7px 14px; font-size: 13.5px; font-weight: 600; border-radius: 0; }
.mbar [data-mb-tools] .brain-modes button.active { background: var(--purple-100); color: var(--accent); }

/* Zoom rechtsboven: − 100% + */
.ui-app .brain-shell[data-brain-view="mine"] .brain-zoom { top: 14px; right: 14px; bottom: auto; flex-direction: row; align-items: center; border-radius: 10px; }
.ui-app .brain-zoom .bz-pct { width: auto; padding: 0 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; }
.ui-app .brain-zoom button { display: inline-grid; place-items: center; }

/* Bollen: een rustige rand bij "loopt goed", geel bij aandacht, rood bij dringend;
   de geselecteerde bol wordt licht gevuld. */
.ui-app .bn.ball { border-width: 3px; border-color: var(--border-2); }
.ui-app .bn.ball.st-warn { border-color: var(--st-warn); } .ui-app .bn.ball.st-crit { border-color: var(--st-crit); }
.ui-app .bn.ball.sel { background: var(--surface); outline: 0; border-color: var(--text); box-shadow: 0 0 0 5px color-mix(in srgb, var(--text) 12%, transparent), var(--shadow-pop); }
.ui-app .bn.ball .bn-t { font-size: 14.5px; }
.ui-app .bn.ball .bn-late { top: -2px; right: -2px; }
.ui-app .bn.ball .bn-urg { top: -2px; left: -2px; }
.ui-app .bn.ball .bn-dots i:nth-child(-n+2) { background: var(--st-crit); }
.ui-app .bn.ball.st-ok .bn-dots i, .ui-app .bn.ball.st-done .bn-dots i { background: var(--muted-3, var(--muted)); }
.ui-app .bn.ball.st-warn .bn-dots i:nth-child(-n+2) { background: var(--st-warn); }
.ui-app .bn.bn-me { border: 3px solid color-mix(in srgb, var(--hub) 70%, var(--surface)); }
.ui-app .bn.bn-me .bn-t { font-size: 30px; }

/* Fiche (bedrijf of project) — zoals de template */
.ui-app .bp-card { box-shadow: none; padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 10px; border-bottom: 0; }
.bp-top { display: flex; align-items: center; gap: 8px; }
.bp-top .bp-eb { flex: 1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.bp-top .bp-eb .bp-crumb { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.bp-top .bp-eb .bp-crumb:hover { color: var(--accent); }
.bp-top .bp-x { position: static; }
.bp-logo-box { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.bp-logo-box .bp-logo { display: block; max-height: 44px; max-width: 220px; }
.ui-app .bp-title.serif { font-size: 34px; line-height: 1.1; border: 0; background: none; padding: 0; width: 100%; color: var(--text); }
.ui-app .bp-title.serif:focus { outline: none; box-shadow: inset 0 -2px 0 var(--accent); }
.bp-contact { display: flex; align-items: flex-start; gap: 12px; }
.bp-contact > div { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-ci { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); }
.bp-ci .ico { color: var(--muted); flex: none; }
.bp-ci a { color: inherit; text-decoration: none; } .bp-ci a:hover { color: var(--accent); }
.bp-stats { font-size: 14px; color: var(--text-2); }
.bp-stats b { color: var(--text); } .bp-stats .late { color: var(--st-crit); font-weight: 700; }
.bp-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; }
.bp-seg button { border: 0; border-right: 1px solid var(--border-2); background: var(--surface); font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  padding: 10px 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.bp-seg button:last-child { border-right: 0; }
.bp-seg button i { width: 10px; height: 10px; border-radius: 50%; background: var(--st-ok); }
.bp-seg button.st-warn i { background: var(--st-warn); } .bp-seg button.st-crit i { background: var(--st-crit); }
.bp-seg button:hover { background: var(--bg); }
.bp-seg button.on.st-ok { background: var(--success-bg); color: var(--success-text); }
.bp-seg button.on.st-warn { background: var(--warning-bg); color: var(--warning); }
.bp-seg button.on.st-crit { background: var(--danger-bg); color: var(--st-crit); }
.bp-edit { border-top: 1px solid var(--divider); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.bp-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ui-app .brain-panel .pp-tabs { padding: 0 20px; gap: 22px; border-bottom: 1px solid var(--border); }
.ui-app .brain-panel .pp-tabs button { font-size: 15px; padding: 10px 0; }
.bp-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bp-tools .grow { flex: 1; }
.tg { margin-bottom: 12px; }
.tg-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-3); font-size: 15px; }
.tg-h b { flex: 1; font-weight: 700; }
.tg-h span { color: var(--muted); font-size: 13.5px; }
.tg-d { width: 10px; height: 10px; border-radius: 50%; background: var(--st-ok); flex: none; }
.tg-d.st-warn { background: var(--st-warn); } .tg-d.st-crit { background: var(--st-crit); } .tg-d.st-done { background: var(--muted-3); }
.tg-add { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 8px; margin: 8px 0; }
.tg-add .input { border-style: dashed; }
.ico { vertical-align: -2px; flex: none; }
.btn .ico { margin-right: 2px; }
.bt-chip .ico { vertical-align: -1px; }
@media (max-width: 760px) { .tg-add { grid-template-columns: 1fr auto; } .tg-add [type=date] { grid-column: 1; } .mbar h1 { font-size: 30px; } }

/* Paneel inklappen tot een strook met de titel verticaal */
@media (min-width: 1101px) { .ui-app .brain-panel { position: relative; } }
.bp-min { position: absolute; top: 14px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.bp-min .ico { transform: rotate(-90deg); }
.bp-min:hover { color: var(--accent); border-color: var(--accent); }
.ui-app .brain-panel .bp-card, .ui-app .brain-panel .vd-head, .ui-app .brain-panel > .bp-head { padding-left: 44px; }
.bp-vlabel { display: none; }
@media (min-width: 861px) {
  .brain-shell.panel-min .brain-panel { flex-basis: 48px; overflow: hidden; }
  .brain-shell.panel-min .brain-panel > :not(.bp-min):not(.bp-vlabel) { display: none !important; }
  .brain-shell.panel-min .bp-min .ico { transform: rotate(90deg); }
  .brain-shell.panel-min .bp-vlabel { display: block; position: absolute; top: 54px; left: 0; right: 0; border: 0; background: none; cursor: pointer;
    writing-mode: vertical-rl; font: inherit; font-size: 14px; font-weight: 700; color: var(--text-2); padding: 8px 0; margin: 0 auto; max-height: 70vh; overflow: hidden; white-space: nowrap; }
}
@media (max-width: 860px) { .bp-min { display: none; } .ui-app .brain-panel .bp-card { padding-left: 20px; } }
.bp-edit[hidden] { display: none; }
@media (min-width: 1200px) { .ui-app .brain-shell .brain-panel { flex-basis: 460px; } }
.tg-add { grid-template-columns: minmax(0, 1fr) 136px auto; }
@media (min-width: 861px) { .ui-app .brain-shell.panel-min .brain-panel { flex-basis: 48px; } }
@media (min-width: 861px) { .ui-app .brain-panel > .bp-vlabel + :not(.bp-head):not(.vd-head) { padding-left: 44px; } }
@media (min-width: 861px) and (max-width: 1100px) { .ui-app .brain-shell.panel-min .brain-panel { width: 48px; } }
@media (max-width: 760px) {
  .mbar [data-mb-tools] .mt-filters { display: none; }
  .mbar [data-mb-tools] { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .tg-add { grid-template-columns: minmax(0, 1fr) auto; }
  .tg-add [name=title] { grid-column: 1 / -1; }
  .tg-add [type=date] { grid-column: auto; }
}

/* Paneel over de volle hoogte: de linkerkolom (kop, briefing, kaart) krimpt mee. */
.brain-shell { flex-direction: row; position: relative; }
.brain-col { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ui-app .brain-shell > .brain-panel { border-top: 0; }
.ui-app .brain-shell[data-brain-view="mine"] .brain-zoom,
.ui-app .brain-shell[data-brain-view="mine"] .brain-modes { display: none; }

/* "⋯"-menu van de kaart */
.mbar [data-mb-tools] .brain-maptool { position: relative; gap: 8px; }
.mt-dots { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; }
.mt-dots:hover, .mt-dots[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.mt-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--text); background: var(--text); color: var(--surface);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.mt-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 260px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; }
.mt-h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.mt-h .mt-pct { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mt-i { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--text-2);
  padding: 8px 10px; border-radius: 9px; cursor: pointer; text-align: left; }
.mt-i span { flex: 1; }
.mt-i:hover { background: var(--bg); color: var(--text); }
.mt-i.on { color: var(--accent); font-weight: 700; background: var(--purple-50); }
.mt-i kbd { font: inherit; font-size: 11.5px; font-weight: 700; border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.mbar { flex-wrap: nowrap; }
.mbar .mt { flex: 1; min-width: 0; }
@media (max-width: 760px) { .mbar [data-mb-tools] { width: auto; } }

/* Werelden als eerste ring (kaart "Alles") */
.ui-app .bn.ball.bn-world { width: 140px; height: 140px; border-width: 3px; border-color: var(--nc); background: color-mix(in srgb, var(--nc) 10%, var(--surface)); }
.ui-app .bn.ball.bn-world .bn-ic { display: inline-flex; gap: 4px; align-items: center; color: var(--nc); margin-bottom: 2px; }
.ui-app .bn.ball.bn-world .bn-t { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.ui-app .bn.ball.bn-world.sel { border-color: var(--nc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--nc) 25%, transparent), var(--shadow-pop); }
.wd-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bp-child { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.bp-child small { margin-left: auto; }

/* Te sorteren (Vandaag) */
.vd-sort { margin: 10px 20px 0 44px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--border-2); background: var(--surface); }
.vd-sort[hidden] { display: none; }
.vs-h { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.vs-h .n { font-size: 11.5px; background: var(--surface-3); border-radius: 10px; padding: 1px 6px; }
.vs-h .grow { flex: 1; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 28px; gap: 6px; align-items: center; padding: 5px 0; border-top: 1px solid var(--divider); }
.vs-main { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; min-width: 0; padding: 0; color: var(--text); }
.vs-s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.vs-main small { color: var(--muted); font-size: 12px; }
.bt-chip.mail { cursor: pointer; border: 0; font: inherit; font-size: inherit; }
@media (max-width: 860px) { .vd-sort { margin-left: 20px; } }
.ui-app .brain-shell[data-brain-view="people"] .brain-zoom,
.ui-app .brain-shell[data-brain-view="people"] .brain-modes { display: none; }

/* Registerfiche en connecties in de bedrijfsfiche */
.reg-id { font-size: 14px; margin-bottom: 6px; }
.reg-fin { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.reg-fin th { text-align: right; font-weight: 700; color: var(--muted); padding: 4px 6px; }
.reg-fin td { text-align: right; padding: 4px 6px; border-top: 1px solid var(--divider); }
.reg-fin td:first-child { text-align: left; color: var(--text-2); }
.reg-fin .late, .reg-id .late { color: var(--st-crit); }
.conn-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--divider); font-size: 13.5px; }
.conn-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-add { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.conn-add [hidden] { display: none; }
.conn-add select[name=account] { grid-column: 2; }
.reg-q { grid-template-columns: minmax(0, 1fr) 0 auto; }
/* Nieuwsmeldingen */
.nw-row { display: flex; align-items: flex-start; gap: 6px; padding: 7px 0; border-top: 1px solid var(--divider); }
.nw-main { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.nw-main a { color: var(--text); font-weight: 600; text-decoration: none; }
.nw-main a:hover { color: var(--accent); text-decoration: underline; }
.nw-main small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bi-x.ok { color: var(--success-text); }

/* ── Gsm (Jani, 19 okt): alles bereikbaar en niets dat uitzoomt of wegvalt ─────────── */
@media (max-width: 860px) {
  /* De menuknop opent de zijbalk als lade: daar staan je breinen en bedrijven. De regel
     `.ui-app .nav-toggle { display: none }` hierboven verborg hem ook op de gsm. */
  .ui-app .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    flex: none; border-radius: 10px; color: var(--text); }
  .ui-app .xside { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 860px), (pointer: coarse) {
  /* iOS zoomt in op elk invoerveld onder 16px en zoomt daarna niet terug: de hele app
     leek dan "niet te schalen". */
  .ui-app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
  .ui-app select, .ui-app textarea, .ui-app .input { font-size: 16px; }
}
@media (max-width: 760px) {
  /* Vandaag: de dagen schuiven horizontaal in plaats van samen te persen. */
  .vd-days { display: flex; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
  .vd-days::-webkit-scrollbar { display: none; }
  .vd-day { flex: 0 0 64px; padding: 6px 4px; }
  /* Paneel (fiche) als blad van onder: volle breedte, eigen scroll, ruime knoppen. */
  .ui-app .brain-panel { overscroll-behavior: contain; }
  .ui-app .brain-panel .bp-head, .ui-app .brain-panel .bp-sec { padding-left: 16px; padding-right: 16px; }
  .ui-app .brain-panel .bp-top { flex-wrap: wrap; gap: 6px; }
  .ui-app .brain-panel .btn-sm { min-height: 36px; }
  .ui-app .brain-panel .bp-title.serif { font-size: 30px; }
  .pp-tabs { scrollbar-width: none; }
  .pp-tabs::-webkit-scrollbar { display: none; }
  /* De begroeting neemt minder plaats in boven de kaart. */
  .brain-brief { padding: 10px 12px; font-size: 13.5px; }
  /* Tikdoelen van minstens 32px. */
  .bi-x { min-width: 32px; min-height: 32px; }
  .bt-check { min-width: 24px; min-height: 24px; }
}
/* Waar de balk onderaan staat, zit de menuknop rechtsonder: niet ook nog bovenaan. */
@media (max-width: 760px) {
  .ui-app:has(.brain-bnav) .xtop .nav-toggle { display: none; }
  /* De knop staat rechtsonder, dus het menu schuift van rechts binnen. */
  .ui-app:has(.brain-bnav) .xside { left: auto; right: 0; bottom: 60px; transform: translateX(100%); }
  .otto-shell.nav-open .xside { transform: translateX(0); }
}
/* Je dag (Vandaag): vergaderingen en taken met hun documenten */
.vd-dayplan .dp-m { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.vd-dayplan .dp-m.past { opacity: .55; }
.vd-dayplan .dp-t { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.vd-dayplan .dp-t small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.vd-dayplan .dp-b b { font-size: 13.5px; }
.vd-dayplan .dp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 12px; color: var(--muted); }
.vd-dayplan .dp-meta a, .vd-dayplan .dp-docs a { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; gap: 3px; align-items: center; }
.vd-dayplan .dp-docs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; }
.vd-dayplan .dp-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
.vd-dayplan .dp-k .late { color: var(--st-crit); font-weight: 600; }
.vd-dayplan .dp-k .dp-docs { flex-basis: 100%; margin-top: 0; }
/* Tekst en tekentjes op een vlak in de accent- of merkkleur: altijd leesbaar (fluogroen
   vraagt donkere tekst). */
.check.on, .step-check.on, .lv-check.on, .bn-xp, .draft-head .icon, .demo-banner { color: var(--on-accent); }
:root[data-theme="dark"] .otto-today, :root[data-theme="dark"] .bill-card-grad { color: var(--on-accent); }
/* Iconen in de logokleur (Jani, 20 okt): in de zijbalk, de balk onderaan en de bovenbalk. */
.ui-app .xside .nav-item .nav-ico, .ui-app .xside .nav-item.nav-top .nav-ico, .ui-app .xside .nav-item.nav-top.active .nav-ico,
.ui-app .xside .nav-item > .ico, .brain-bnav a .ico, .brain-bnav button:not(.bnav-add) .ico,
.ui-app .xtop .tbtn .ico { color: var(--accent); }
.brain-bnav a span, .brain-bnav button span { color: var(--text-2); }
.brain-bnav .on span { color: var(--accent); }
/* Kleine tekst iets groter en ruimer, voor de leesbaarheid. */
.bp-hint, .bs-h { line-height: 1.5; }
.bp-hint { font-size: 12.5px; }
/* Vaste regels (J.7) in Vandaag */
.rl-list { margin-top: 6px; }
.rl-list summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 0; }
.rl-list .nw-row.off .nw-main { opacity: .5; }
.rl-sw { display: inline-flex; align-items: center; padding: 4px; cursor: pointer; }
.rl-sw input { accent-color: var(--accent); width: 16px; height: 16px; }
