:root {
  --bg: #f8fafc;
  --panel: rgba(255,255,255,.92);
  --ink: #172033;
  --muted: #687386;
  --line: #dbe2ea;
  --accent: #3b5bfd;
  --accent-2: #2946d9;
  --shadow: 0 10px 30px rgba(26, 39, 64, .12);
  --sticky-yellow: #fff2a8;
  --sticky-pink: #ffd7e8;
  --sticky-blue: #dcecff;
  --sticky-green: #dff6df;
  --sticky-lavender: #e8ddff;
  --sticky-white: #ffffff;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { font-family: var(--ui-font); color: var(--ink); background: var(--bg); }
button, input, textarea { font: inherit; }
button { color: inherit; }

.topbar {
  height: 68px; display: grid; grid-template-columns: minmax(190px,.55fr) auto minmax(0,1.55fr); column-gap: 10px; align-items: center;
  padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); position: relative; z-index: 50;
}
.brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand > div { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 15px; line-height: 1.1; }
.brand #saveStatus { font-size: 11px; color: var(--muted); margin-top: 3px; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: white; font-size: 22px; box-shadow: 0 8px 20px rgba(59,91,253,.25); }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; flex: 0 0 auto; }

.toolbar { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.tool { border: 0; background: transparent; border-radius: 10px; min-width: 74px; padding: 7px 9px; cursor: pointer; display: flex; gap: 7px; align-items: center; justify-content: center; transition: .16s ease; }
.tool span { font-size: 17px; }
.tool b { font-size: 12px; font-weight: 650; }
.tool:hover { background: #eef2f7; }
.tool.active { background: white; color: var(--accent); box-shadow: 0 2px 8px rgba(24,39,75,.10); }

.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.role-badge { border: 1px solid #c9d4ff; background: #eef2ff; color: #3852d6; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.role-badge[hidden] { display: none; }
.btn { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 9px 12px; cursor: pointer; font-weight: 650; font-size: 13px; }
.btn:hover { background: #f5f7fa; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; padding: 12px; }

.presence { display: flex; align-items: center; min-width: 8px; }
.avatar { width: 30px; height: 30px; margin-left: -7px; border: 2px solid white; border-radius: 999px; display: grid; place-items: center; color: white; font-size: 11px; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.avatar:first-child { margin-left: 0; }
.avatar.more { background: #667085 !important; }

.profile-btn { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 3px 8px 3px 3px; display: flex; align-items: center; gap: 7px; cursor: pointer; max-width: 170px; }
.profile-btn:hover { background: #f5f7fa; border-color: #cbd5e1; }
.profile-avatar { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: white; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.profile-name { font-size: 12px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-edit { font-size: 12px; color: var(--muted); }
.profile-form { display: grid; gap: 14px; }
.profile-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; }
.profile-form input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; outline: none; }
.profile-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.profile-note { margin: 14px 0 0; line-height: 1.45; }

.viewport { position: absolute; top: 68px; bottom: 44px; left: 0; right: 0; overflow: auto; background: #eef2f6; }
.board { width: 4000px; height: 2400px; position: relative; outline: none; background-color: #fff; background-image: radial-gradient(#cfd7e2 1.1px, transparent 1.1px); background-size: 24px 24px; overflow: hidden; }
.items-layer, .connections, .cursor-layer { position: absolute; inset: 0; }
.connections { z-index: 1; pointer-events: auto; overflow: visible; }
.connections line, .connections path { stroke: #8290a6; stroke-width: 2.5; stroke-linecap: round; fill: none; }
.connections path { stroke-width: 2.2; opacity: .86; }
.connections circle { fill: #8290a6; }
.items-layer { z-index: 2; pointer-events: none; }
.board-item, .scrum-board-shell { pointer-events: auto; }
.cursor-layer { z-index: 20; pointer-events: none; }

.board-item { position: absolute; border: 1px solid rgba(25,34,48,.12); box-shadow: 0 7px 18px rgba(31,44,70,.11); transition: box-shadow .12s ease, border-color .12s ease; user-select: none; }
.board-item:hover { box-shadow: 0 10px 24px rgba(31,44,70,.15); }
.board-item.selected { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 10 !important; }
.board-item.connect-source { outline: 3px solid #22a06b; outline-offset: 3px; }
.board-item[data-color="yellow"] { background: var(--sticky-yellow); }
.board-item[data-color="pink"] { background: var(--sticky-pink); }
.board-item[data-color="blue"] { background: var(--sticky-blue); }
.board-item[data-color="green"] { background: var(--sticky-green); }
.board-item[data-color="lavender"] { background: var(--sticky-lavender); }
.board-item[data-color="white"] { background: var(--sticky-white); }

.board-item.sticky { border-radius: 5px 5px 14px 5px; }
.board-item.node { border-radius: 999px; background: white; border: 1.5px solid #b8c3d1; box-shadow: 0 5px 14px rgba(31,44,70,.10); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; overflow: visible; }
.board-item.node:hover { transform: translateY(-1px) scale(1.012); box-shadow: 0 10px 24px rgba(31,44,70,.16); }
.board-item.node.mindmap-center { border-width: 2px; border-color: #8e7be8; box-shadow: 0 10px 28px rgba(101,84,210,.18); }
.board-item.node.repeated-idea { border-width: 2px; border-color: rgba(67,81,119,.28); box-shadow: 0 9px 24px rgba(31,44,70,.15); }
.item-head { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; cursor: grab; border-bottom: 1px solid rgba(0,0,0,.06); opacity: .78; }
.node .item-head { position: absolute; z-index: 3; inset: 5px 11px auto 11px; height: 24px; border-bottom: 0; padding: 0; }
.node .item-author { opacity: .58; max-width: 55%; }
.node .item-actions { margin-left: auto; }
.item-head:active { cursor: grabbing; }
.item-author { font-size: 10px; color: rgba(31,41,55,.58); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .12s ease; }
.board-item:hover .item-actions, .board-item.selected .item-actions { opacity: 1; }
.icon-btn { border: 0; background: rgba(255,255,255,.45); width: 23px; height: 23px; border-radius: 7px; cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.icon-btn:hover { background: rgba(255,255,255,.85); }
.item-text { width: 100%; height: calc(100% - 30px); box-sizing:border-box; border: 0; outline: none; resize: none; background: transparent; padding: 12px 14px 15px; font-size: 15px; line-height: 1.38; color: #222b3d; user-select: text; }
.board-item.text .item-text { overflow:hidden; padding-bottom:16px; line-height:1.42; }
.node .item-text { height: 100%; padding: 27px 24px 16px; text-align: center; font-weight: 760; font-size: calc(14px + var(--idea-weight, 0) * 4px); line-height: 1.25; border-radius: 999px; display: block; }
.node.mindmap-center .item-text { font-size: 17px; padding-left: 34px; padding-right: 34px; }
.idea-count { position: absolute; z-index: 5; right: -8px; top: -9px; min-width: 31px; height: 31px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: #172033; color: white; border: 3px solid white; box-shadow: 0 4px 12px rgba(23,32,51,.18); font-size: 11px; font-weight: 850; pointer-events: none; }
.resize-handle { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; cursor: nwse-resize; opacity: .28; }
.resize-handle::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 7px; height: 7px; border-right: 2px solid #536176; border-bottom: 2px solid #536176; }

.empty-hint { position: absolute; z-index: 1; left: 50%; top: 48%; transform: translate(-50%, -50%); pointer-events: none; }
.hint-card { border: 1px dashed #b8c3d1; background: rgba(248,250,252,.86); border-radius: 18px; padding: 20px 26px; display: flex; flex-direction: column; gap: 5px; align-items: center; color: #607087; }
.hint-card strong { color: #3d485a; font-size: 16px; }
.hint-card span { font-size: 13px; }

.cursor { position: absolute; transform: translate(8px, 10px); transition: left .07s linear, top .07s linear, opacity .18s ease; pointer-events: none; }
.cursor::before { content: ''; position: absolute; left: -7px; top: 18px; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 10px solid var(--cursor-color, #5b7cff); filter: drop-shadow(0 4px 8px rgba(0,0,0,.12)); }
.cursor-card { display: inline-flex; align-items: center; gap: 7px; background: white; border: 1px solid rgba(15,23,42,.08); border-radius: 999px; padding: 4px 10px 4px 4px; box-shadow: 0 10px 25px rgba(15,23,42,.14); }
.cursor-avatar { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: var(--cursor-color, #5b7cff); color: white; font-size: 11px; font-weight: 800; letter-spacing: .01em; box-shadow: inset 0 -1px 0 rgba(0,0,0,.09); }
.cursor-name { color: #172033; font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1; }

.bottom-bar { height: 44px; position: absolute; bottom: 0; left: 0; right: 0; background: white; border-top: 1px solid var(--line); display: flex; align-items: stretch; z-index: 45; }
.tabs { display: flex; align-items: stretch; overflow-x: auto; max-width: 70vw; }
.tab { min-width: 120px; max-width: 220px; border: 0; border-right: 1px solid var(--line); background: #f7f9fb; padding: 0 8px 0 15px; cursor: pointer; font-size: 12px; color: #536176; white-space: nowrap; position: relative; display:flex; align-items:center; gap:6px; user-select:none; }
.tab-label { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tab-close { width:24px; height:24px; flex:0 0 24px; border:0; border-radius:7px; background:transparent; color:#8b94a5; font-size:17px; line-height:1; display:grid; place-items:center; cursor:pointer; opacity:0; transition:opacity .12s ease,background .12s ease,color .12s ease; }
.tab:hover .tab-close,.tab.active .tab-close { opacity:1; }
.tab-close:hover { background:#feecee; color:#b4232e; }
.tab:focus-visible { outline:2px solid rgba(59,91,253,.35); outline-offset:-2px; }
.tab:hover { background: #eef2f7; }
.tab.active { background: white; color: var(--accent); font-weight: 750; }
.tab.active::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.add-tab { width: 44px; border: 0; border-right: 1px solid var(--line); background: white; cursor: pointer; font-size: 20px; color: #536176; }
.add-tab:hover { background: #f4f6f8; }
.bottom-spacer { flex: 1; }
.tip { display: flex; align-items: center; padding: 0 16px; font-size: 11px; color: var(--muted); }

.floating-menu { position: fixed; z-index: 100; padding: 7px; border: 1px solid var(--line); background: white; border-radius: 12px; box-shadow: var(--shadow); }
.floating-menu[hidden] { display: none !important; }
.color-menu { display: flex; gap: 5px; align-items: center; }
.color-menu-label { padding: 0 4px 0 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.swatch { width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; }
.swatch.yellow { background: var(--sticky-yellow); }.swatch.pink { background: var(--sticky-pink); }.swatch.blue { background: var(--sticky-blue); }.swatch.green { background: var(--sticky-green); }.swatch.lavender { background: var(--sticky-lavender); }.swatch.white { background: white; }
.menu-list { min-width: 160px; flex-direction: column; }
.menu-list:not([hidden]) { display: flex; }
.menu-list button { border: 0; background: white; border-radius: 8px; padding: 9px 10px; text-align: left; cursor: pointer; font-size: 13px; }
.menu-list button:hover { background: #f1f4f8; }
.menu-list .danger { color: #c53939; }

.gate { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg,#edf2ff,#f8fafc 45%,#eef8f2); }
.gate[hidden] { display: none; }
.gate-card { width: min(420px, calc(100vw - 36px)); background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 26px 70px rgba(35,49,78,.16); text-align: center; }
.gate-card .brand-mark { margin: 0 auto 14px; }
.gate-card h1 { margin: 0; font-size: 25px; }
.gate-card p { margin: 8px 0 18px; color: var(--muted); }
.gate-card input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; margin-bottom: 10px; outline: none; }
.gate-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.gate-card small { display: block; color: #8893a3; margin-top: 12px; line-height: 1.4; }

.dialog { width: min(650px, calc(100vw - 40px)); border: 0; border-radius: 20px; padding: 24px; color: var(--ink); box-shadow: 0 30px 90px rgba(15,23,42,.25); }
.dialog::backdrop { background: rgba(15,23,42,.28); backdrop-filter: blur(3px); }
.dialog h2 { margin: 0 0 18px; }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f1f4f7; font-size: 22px; cursor: pointer; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-grid section { border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
kbd { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-right: 7px; padding: 0 6px; border: 1px solid #cdd6e1; border-bottom-width: 2px; border-radius: 6px; background: #f7f9fb; font-size: 11px; }
.help-grid p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 2147483647; left: 50%; bottom: 68px; transform: translateX(-50%); background: rgba(23,32,51,.98); color: white; padding: 10px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; box-shadow: 0 14px 38px rgba(15,23,42,.34); font-size: 12px; font-weight: 750; line-height: 1.35; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 28px); overflow: hidden; text-overflow: ellipsis; }


.dialog-lead { margin: -8px 0 18px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.tab-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tab-type-card { min-height: 170px; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 18px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 7px; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.tab-type-card:hover { transform: translateY(-2px); border-color: #aebcfb; box-shadow: 0 10px 24px rgba(31,44,70,.10); }
.tab-type-card.featured { background: linear-gradient(145deg,#f7f8ff,#fff); }
.tab-type-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--accent); font-size: 20px; margin-bottom: 6px; }
.tab-type-card strong { font-size: 15px; }
.tab-type-card small { color: var(--muted); line-height: 1.45; }
.mindmap-setup { margin-top: 4px; display: grid; gap: 14px; }
.mindmap-setup[hidden] { display: none; }
.mindmap-setup label { display: grid; gap: 6px; font-size: 12px; font-weight: 750; }
.mindmap-setup input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 12px; outline: none; }
.mindmap-setup input:focus, .idea-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.host-only-hint { margin: 0; }
.session-dialog { width: min(620px, calc(100vw - 34px)); }
.session-dialog::backdrop { background: rgba(15,23,42,.48); backdrop-filter: blur(5px); }
.session-kicker { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; margin-bottom: 7px; }
.session-dialog h2 { margin-bottom: 15px; font-size: 24px; line-height: 1.25; }
.idea-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: stretch; }
.idea-form textarea { min-height: 84px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; outline: none; resize: vertical; line-height: 1.4; }
.idea-form .btn { min-width: 126px; }
.session-meta { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.my-ideas { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.my-ideas[hidden] { display: none; }
.my-idea-chip { max-width: 100%; background: #f5f7fa; border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-session-controls { margin-top: 18px; border: 1px solid #cfd8ff; background: #f5f7ff; border-radius: 14px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.host-session-controls[hidden] { display: none; }
.host-session-controls > div { display: flex; flex-direction: column; gap: 3px; }
.host-session-controls small { color: var(--muted); }
.participant-wait { margin: 16px 0 0; padding: 10px 12px; background: #f7f9fb; border-radius: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.tab.mindmap-tab::before { content: '◉'; margin-right: 6px; color: #7a63e8; }

@media (max-width: 850px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 8px; }
  .brand strong, .brand #saveStatus { display: none; }
  .tool { min-width: 44px; padding: 7px; }
  .tool b { display: none; }
  .toolbar { justify-self: center; }
  #exportBtn { display: none; }
  .tip { display: none; }
  .tabs { max-width: calc(100vw - 120px); }
  .help-grid { grid-template-columns: 1fr; }
  .tab-type-grid { grid-template-columns: 1fr; }
  .idea-form { grid-template-columns: 1fr; }
  .host-session-controls { align-items: stretch; flex-direction: column; }
  .role-badge { display: none; }
  .profile-name, .profile-edit { display: none; }
  .profile-btn { padding: 2px; border: 0; background: transparent; }
}


/* Hidden moet altijd winnen van component-layouts zoals flex/grid. */
[hidden] { display: none !important; }

/* Mindmap-nodes mogen na onthullen ook kleur krijgen. */
.board-item.node[data-color="yellow"] { background: var(--sticky-yellow); }
.board-item.node[data-color="pink"] { background: var(--sticky-pink); }
.board-item.node[data-color="blue"] { background: var(--sticky-blue); }
.board-item.node[data-color="green"] { background: var(--sticky-green); }
.board-item.node[data-color="lavender"] { background: var(--sticky-lavender); }
.board-item.node[data-color="white"] { background: var(--sticky-white); }

/* v1.3 — levendige brainstormwolk */
.board.is-revealing .board-item { pointer-events: none; }
.board.is-revealing .item-actions,
.board.is-revealing .resize-handle { opacity: 0 !important; }
.board-item.node {
  transition: left .34s cubic-bezier(.2,.8,.2,1), top .34s cubic-bezier(.2,.8,.2,1),
              width .34s cubic-bezier(.2,.8,.2,1), height .34s cubic-bezier(.2,.8,.2,1),
              box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.board-item.node .item-text { transition: font-size .30s ease; }
.board-item.reveal-pop { animation: brainstorm-pop .54s cubic-bezier(.16,1.45,.42,1) both; }
.board-item.reveal-center { animation: center-land .58s cubic-bezier(.16,1.25,.35,1) both; }
.board-item.reveal-grow { animation: brainstorm-grow .42s cubic-bezier(.18,1.55,.35,1); }
.board.is-revealing .connections path { stroke: #a1aec2; opacity: .62; }
.board.is-revealing .connections circle { opacity: .38; }

@keyframes brainstorm-pop {
  0% { opacity: 0; transform: scale(.18) translateY(18px); filter: blur(3px); }
  58% { opacity: 1; transform: scale(1.08) translateY(-2px); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes center-land {
  0% { opacity: 0; transform: scale(.72); }
  70% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes brainstorm-grow {
  0% { transform: scale(1); }
  48% { transform: scale(1.13); box-shadow: 0 15px 34px rgba(31,44,70,.22); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .board-item.reveal-pop, .board-item.reveal-center, .board-item.reveal-grow { animation-duration: .01ms !important; }
  .board-item.node { transition-duration: .01ms !important; }
}

/* v1.4 — live woordwolk */
.session-panel {
  position: fixed;
  z-index: 45;
  left: 16px;
  top: 84px;
  width: 300px;
  max-height: calc(100vh - 146px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(203,213,225,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(23,32,51,.16);
  backdrop-filter: blur(14px);
}
.session-panel h2 { margin: 2px 0 7px; font-size: 17px; line-height: 1.28; }
.session-lead { margin: 0 0 12px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.idea-form.compact { display: grid; grid-template-columns: 1fr; gap: 7px; }
.idea-form.compact textarea { min-height: 66px; max-height: 120px; resize: vertical; padding: 10px 11px; font-size: 13px; }
.session-panel .session-meta { margin-top: 9px; font-size: 10.5px; }
.session-panel .my-ideas { margin-top: 9px; padding-top: 8px; gap: 5px; }
.session-panel .my-idea-chip { padding: 4px 7px; font-size: 10px; }
.host-session-controls.compact { margin-top: 11px; padding: 10px; display: grid; gap: 8px; align-items: stretch; }
.host-session-controls.compact strong { font-size: 11px; }
.host-session-controls.compact small { font-size: 10px; line-height: 1.35; }
.session-panel .participant-wait { margin: 10px 0 0; padding: 8px 9px; font-size: 10px; }

.board.word-cloud-mode {
  background-color: #fbfcff;
  background-image: radial-gradient(#dbe3ef .9px, transparent .9px);
  background-size: 28px 28px;
}
.board.word-cloud-mode .connections { display: none; }
.word-cloud-item {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(72,85,112,.16);
  box-shadow: 0 8px 22px rgba(31,44,70,.11);
  text-align: center;
  font-weight: 820;
  line-height: 1.08;
  color: #26334c;
  user-select: none;
  pointer-events: none;
  transition:
    left .46s cubic-bezier(.2,.82,.2,1),
    top .46s cubic-bezier(.2,.82,.2,1),
    width .42s cubic-bezier(.18,.88,.2,1),
    height .42s cubic-bezier(.18,.88,.2,1),
    font-size .42s cubic-bezier(.18,.88,.2,1),
    box-shadow .2s ease,
    border-color .2s ease;
}
.word-cloud-item[data-color="yellow"] { background: #fff0a6; }
.word-cloud-item[data-color="pink"] { background: #ffd9e9; }
.word-cloud-item[data-color="blue"] { background: #dcecff; }
.word-cloud-item[data-color="green"] { background: #dff5df; }
.word-cloud-item[data-color="lavender"] { background: #e9e1ff; }
.word-cloud-item[data-color="white"] { background: #ffffff; }
.word-cloud-item.cloud-center {
  z-index: 4;
  padding: 22px 48px;
  background: linear-gradient(145deg,#3b5bfd,#6e5ee8);
  color: white;
  border: 0;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: 0 20px 48px rgba(59,91,253,.26);
}
.word-cloud-item.repeated {
  border-color: rgba(59,91,253,.30);
  box-shadow: 0 12px 28px rgba(31,44,70,.15);
}
.cloud-label { display: block; max-width: 100%; overflow-wrap: anywhere; }
.cloud-count {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #172033;
  color: white;
  border: 3px solid white;
  box-shadow: 0 5px 14px rgba(23,32,51,.16);
  font-size: 10px;
  font-weight: 900;
}
.word-cloud-item.cloud-floemp { animation: cloud-floemp .54s cubic-bezier(.14,1.55,.35,1) both; }
.word-cloud-item.cloud-grow { animation: cloud-grow .50s cubic-bezier(.14,1.55,.35,1); }

@keyframes cloud-floemp {
  0% { opacity: 0; transform: scale(.18) translateY(14px); filter: blur(3px); }
  62% { opacity: 1; transform: scale(1.10) translateY(-2px); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes cloud-grow {
  0% { transform: scale(1); }
  46% { transform: scale(1.17); box-shadow: 0 18px 38px rgba(31,44,70,.22); }
  100% { transform: scale(1); }
}

@media (max-width: 760px) {
  .session-panel {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 56px;
    width: auto;
    max-height: 250px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-cloud-item { transition-duration: .01ms !important; }
  .word-cloud-item.cloud-floemp, .word-cloud-item.cloud-grow { animation-duration: .01ms !important; }
}

/* v1.5 — workshop flow, Wooclap-achtige woordwolk en stemrondes */
.vote-top-btn {
  background: #fff7e8;
  border: 1px solid #f3d29a;
  color: #8a5a00;
  font-weight: 800;
}
.vote-top-btn:hover { background: #fff1d2; }

/* Woordwolk: alleen de centrale vraag heeft een vorm; antwoorden zijn losse woorden. */
.session-panel {
  width: 272px;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(23,32,51,.14);
}
.session-panel h2 { font-size: 15px; }
.session-panel .session-lead { font-size: 11px; }
.board.word-cloud-mode {
  background: #f7f9fc;
}
.word-cloud-item {
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  font-weight: 790;
  letter-spacing: -.025em;
  line-height: 1;
  white-space: normal;
  transition:
    left .52s cubic-bezier(.2,.82,.2,1),
    top .52s cubic-bezier(.2,.82,.2,1),
    width .44s cubic-bezier(.18,.88,.2,1),
    height .44s cubic-bezier(.18,.88,.2,1),
    font-size .44s cubic-bezier(.18,.88,.2,1),
    color .2s ease;
}
.word-cloud-item.cloud-center {
  padding: 22px 42px;
  border-radius: 999px;
  background: #fff !important;
  color: #24324a;
  border: 2px solid #526bff;
  box-shadow: 0 14px 38px rgba(59,91,253,.16);
  font-weight: 900;
  line-height: 1.12;
}
.word-cloud-item.repeated { border: 0; box-shadow: none; }
.word-cloud-item.cloud-grow { animation: cloud-grow-v15 .48s cubic-bezier(.14,1.55,.35,1); }
.word-cloud-item.cloud-floemp { animation: cloud-floemp-v15 .52s cubic-bezier(.14,1.55,.35,1) both; }
@keyframes cloud-floemp-v15 {
  0% { opacity: 0; transform: scale(.35) translateY(8px); filter: blur(2px); }
  62% { opacity: 1; transform: scale(1.11) translateY(-1px); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes cloud-grow-v15 {
  0% { transform: scale(1); }
  45% { transform: scale(1.20); filter: saturate(1.25); }
  100% { transform: scale(1); filter: none; }
}

.session-participation {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #eef4ff;
  color: #42526b;
  font-size: 10.5px;
  font-weight: 750;
  text-align: center;
}
.word-cloud-item.repeated { letter-spacing: -.035em; }


/* Stemronde */
.vote-panel {
  position: fixed;
  z-index: 46;
  right: 16px;
  top: 84px;
  width: 286px;
  padding: 14px;
  border: 1px solid #d7deea;
  border-radius: 17px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 44px rgba(23,32,51,.15);
  backdrop-filter: blur(14px);
}
.vote-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vote-panel-head strong { display: block; font-size: 14px; line-height: 1.25; }
.vote-remaining {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #324ed6;
  font-size: 10px;
  font-weight: 900;
}
.vote-panel p { margin: 9px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.vote-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #edf1f6; }
.vote-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,#526bff,#8a5cf6); transition: width .25s ease; }
.vote-host-controls { display: grid; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); }
.vote-form { display: grid; gap: 14px; }
.vote-form > label:not(.check-row) { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.vote-form select { width: 100%; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; outline: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--accent); }
.check-row span { display: grid; gap: 3px; }
.check-row strong { font-size: 12px; }
.check-row small { color: var(--muted); line-height: 1.35; }

.board.vote-active .item-actions,
.board.vote-active .resize-handle { opacity: .16; pointer-events: none; }
.board.vote-active .board-item { cursor: default; }
.board.vote-active .board-item textarea { cursor: default; }
.vote-chip {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  min-height: 31px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d5dce7;
  border-radius: 999px;
  background: white;
  box-shadow: 0 6px 16px rgba(23,32,51,.12);
  color: #536176;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}
.vote-chip:hover:not(:disabled) { transform: translateX(-50%) translateY(-1px); border-color: #8093ff; color: #304bd2; }
.vote-chip.mine { background: #3b5bfd; border-color: #3b5bfd; color: white; }
.vote-chip b { min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: rgba(23,32,51,.10); font-size: 9px; }
.vote-chip.mine b { background: rgba(255,255,255,.2); }
.vote-chip.results { cursor: default; color: #24324a; background: #fff8df; border-color: #efcf72; }
.vote-chip.results:disabled { opacity: 1; }
.vote-heart { font-size: 13px; line-height: 1; color: #f4a000; }
.vote-chip.mine .vote-heart { color: white; }
.board.vote-finished .board-item:has(.vote-chip.results) {
  transition: transform .22s ease, box-shadow .22s ease;
}

/* Een actieve werkvorm is bewust rustiger: irrelevante tools blijven zichtbaar maar gedempt. */
body.has-session-panel .toolbar,
body.has-vote-panel .toolbar { opacity: .48; }
body.has-session-panel .toolbar { pointer-events: none; }
body.has-vote-panel .toolbar .tool:not([data-tool="select"]) { pointer-events: none; }

@media (max-width: 850px) {
  .vote-top-btn { padding: 7px 9px; font-size: 11px; }
}
@media (max-width: 760px) {
  .vote-panel {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 56px;
    width: auto;
  }
  .session-panel { width: auto; }
}

/* v1.7 — comments op het bord */
.comment-layer { position: absolute; inset: 0; z-index: 16; pointer-events: none; }
.comment-pin {
  --comment-color: #52606d;
  position: absolute; transform: translate(-14px, -14px); width: 34px; height: 34px;
  border: 3px solid white; border-radius: 999px; background: var(--comment-color); color: white;
  display: grid; place-items: center; cursor: pointer; pointer-events: auto; padding: 0;
  box-shadow: 0 7px 18px rgba(15,23,42,.20); transition: transform .14s ease, opacity .14s ease, box-shadow .14s ease;
}
.comment-pin::after { content: ''; position: absolute; left: 3px; bottom: -5px; width: 10px; height: 10px; background: var(--comment-color); transform: rotate(35deg); border-radius: 1px; z-index: -1; }
.comment-pin:hover, .comment-pin.active { transform: translate(-14px, -14px) scale(1.12); box-shadow: 0 10px 24px rgba(15,23,42,.24); }
.comment-pin.resolved { opacity: .48; filter: saturate(.55); }
.comment-pin-initial { font-size: 11px; font-weight: 850; line-height: 1; }
.comment-pin-count { position: absolute; right: -7px; top: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: #172033; color: white; border: 2px solid white; font-size: 9px; font-weight: 850; }
.comment-pin-check { position: absolute; left: -6px; top: -7px; width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; background: #18865f; color: white; border: 2px solid white; font-size: 9px; font-weight: 900; }

.comment-composer { position: fixed; z-index: 260; width: 310px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,.20); }
.comment-composer-title { font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.comment-composer textarea, .comment-reply-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 11px; resize: vertical; outline: none; line-height: 1.4; }
.comment-composer textarea:focus, .comment-reply-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.11); }
.comment-composer-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }

.comment-panel { position: fixed; z-index: 150; right: 14px; top: 82px; bottom: 58px; width: min(360px, calc(100vw - 28px)); background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.18); padding: 14px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(10px); }
.comment-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.comment-panel-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #f1f4f7; cursor: pointer; font-size: 19px; }
.comment-messages { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 13px; padding: 2px 2px 8px; }
.comment-message { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; }
.comment-message-avatar { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: white; font-size: 10px; font-weight: 850; }
.comment-message-body { min-width: 0; }
.comment-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.comment-message-meta strong { font-size: 11px; }
.comment-message-meta span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.comment-message-text { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-reply-form { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; }
.comment-reply-form textarea:disabled { background: #f5f7fa; color: #8792a2; }
.comment-panel-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.danger-btn { color: #b42318; }
.danger-btn:hover { background: #fff1f0; border-color: #f5c2be; }

@media (max-width: 720px) {
  .comment-panel { left: 10px; right: 10px; top: auto; bottom: 54px; width: auto; max-height: 58vh; }
  .comment-composer { width: min(310px, calc(100vw - 24px)); }
}

/* v1.7.1 — inklapbare groepschat */
.chat-toggle-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.chat-unread { position: absolute; right: -6px; top: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: #d92d20; color: white; border: 2px solid white; font-size: 9px; font-weight: 900; box-shadow: 0 2px 7px rgba(217,45,32,.28); }
.chat-panel { position: fixed; z-index: 155; right: 14px; top: 82px; bottom: 58px; width: min(390px, calc(100vw - 28px)); background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.18); padding: 14px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(10px); }
.chat-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-panel-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: #f1f4f7; cursor: pointer; font-size: 19px; }
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 8px; }
.chat-empty { margin: auto 12px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.chat-message { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 8px; align-items: end; }
.chat-message.mine { grid-template-columns: minmax(0,1fr) 30px; }
.chat-message.mine .chat-message-avatar { grid-column: 2; grid-row: 1; }
.chat-message.mine .chat-message-card { grid-column: 1; grid-row: 1; background: #eef2ff; border-color: #d8e0ff; justify-self: end; }
.chat-message-avatar { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: white; font-size: 10px; font-weight: 850; flex: 0 0 auto; }
.chat-message-card { max-width: 86%; min-width: 90px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: #fff; }
.chat-message.mine .chat-message-card { border-radius: 13px 13px 4px 13px; }
.chat-message-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.chat-message-meta strong { font-size: 10px; }
.chat-message-meta span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.chat-message-text { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; border-top: 1px solid var(--line); padding-top: 11px; }
.chat-form textarea { width: 100%; min-height: 44px; max-height: 120px; border: 1px solid #cbd5e1; border-radius: 11px; padding: 10px 11px; resize: vertical; outline: none; line-height: 1.35; }
.chat-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.11); }
.chat-form .btn { min-height: 44px; }

@media (max-width: 850px) {
  .chat-toggle-label { display: none; }
  .chat-toggle-btn { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 720px) {
  .chat-panel { left: 10px; right: 10px; top: auto; bottom: 54px; width: auto; max-height: 68vh; }
}

/* v1.8 — tekenen + facilitator follow/timer/klaar */
.drawings { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.drawings path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.board.drawing-mode { cursor: crosshair !important; }
.board.eraser-mode { cursor: cell !important; }

.timer-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border-radius: 999px; background: #172033; color: white; font-size: 11px; box-shadow: 0 4px 14px rgba(23,32,51,.13); }
.timer-pill strong { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer-pill.expired { background: #b42318; animation: timer-pulse 1.1s ease-in-out infinite; }
.ready-btn.ready { background: #eaf8f1; border-color: #9ed8bb; color: #147552; }
.facilitate-btn.active { background: #eef2ff; border-color: #c9d4ff; color: #3852d6; }
@keyframes timer-pulse { 50% { transform: scale(1.035); } }

.facilitate-panel { position: fixed; z-index: 158; right: 14px; top: 82px; width: min(340px, calc(100vw - 28px)); max-height: calc(100vh - 140px); overflow-y: auto; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15,23,42,.18); padding: 14px; display: flex; flex-direction: column; gap: 13px; backdrop-filter: blur(10px); }
.facilitate-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.follow-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.follow-row input { margin-top: 3px; accent-color: var(--accent); }
.follow-row span { display: grid; gap: 3px; }
.follow-row strong { font-size: 12px; }
.follow-row small { color: var(--muted); line-height: 1.35; }
.facilitate-section { display: grid; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.facilitate-section > strong { font-size: 12px; }
.facilitate-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.facilitate-section-head strong { font-size: 12px; }
.facilitate-section-head span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.timer-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.timer-presets button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 7px 4px; cursor: pointer; font-size: 10px; font-weight: 700; }
.timer-presets button:hover { border-color: #aebcfb; background: #f5f7ff; }
.timer-custom-row { display: grid; grid-template-columns: 72px 1fr; gap: 7px; }
.timer-custom-row input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 9px; outline: none; }
.timer-custom-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.11); }

@media (max-width: 1100px) {
  .tool { min-width: 44px; padding: 7px; }
  .tool b { display: none; }
}
@media (max-width: 850px) {
  .facilitate-btn { padding: 7px 9px; font-size: 11px; }
  .timer-pill { padding: 0 8px; }
  .ready-btn { padding: 7px 9px; font-size: 11px; }
}
@media (max-width: 720px) {
  .facilitate-panel { left: 10px; right: 10px; top: auto; bottom: 54px; width: auto; max-height: 70vh; }
}
.avatar.ready { outline: 2px solid #22a06b; outline-offset: 1px; position: relative; }
.avatar.ready::after { content: '✓'; position: absolute; right: -4px; bottom: -5px; width: 14px; height: 14px; border-radius: 999px; display: grid; place-items: center; background: #168f6b; color: white; border: 2px solid white; font-size: 8px; font-weight: 900; }

/* v1.9 — zoom, verbindingen, vormen, stemuitslag en facilitatorstatus */
.board-frame { position: relative; width: 4000px; height: 2400px; }
.board { transform-origin: 0 0; }
.zoom-controls { position: fixed; right: 18px; bottom: 58px; z-index: 90; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(31,44,70,.12); }
.zoom-controls button { min-width: 34px; height: 32px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-weight: 800; }
.zoom-controls button:hover { background: #eef2f7; }
.zoom-controls .zoom-value { min-width: 54px; font-size: 11px; color: #52606d; }

.tool-popover { position: fixed; z-index: 130; display: flex; gap: 6px; align-items: center; min-width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 14px 34px rgba(31,44,70,.16); }
.tool-popover-title { font-size: 10px; font-weight: 800; color: var(--muted); margin: 0 3px; white-space: nowrap; }
.tool-popover button { border: 1px solid transparent; background: #f7f9fb; border-radius: 9px; padding: 7px 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.tool-popover button.active { border-color: #aebcfb; background: #eef2ff; color: #3852d6; }
.tool-popover b { font-size: 10px; }
.shape-preview { width: 28px; height: 20px; display: inline-block; border: 1.5px solid #718096; background: white; }
.shape-preview.oval { border-radius: 999px; }
.shape-preview.square { border-radius: 4px; }
.shape-preview.circle { width: 22px; height: 22px; border-radius: 50%; }
.shape-preview.cloud { border-radius: 48% 52% 44% 56% / 58% 42% 58% 42%; }
.connection-preview { position: relative; display: inline-block; width: 32px; height: 12px; }
.connection-preview::before { content:''; position:absolute; left:0; right:0; top:5px; border-top:1.5px solid #718096; }
.connection-preview.dashed::before { border-top-style:dashed; }
.connection-preview.arrow::after { content:''; position:absolute; right:0; top:2px; width:6px; height:6px; border-top:1.5px solid #718096; border-right:1.5px solid #718096; transform:rotate(45deg); }

.board-item.node[data-shape="oval"] { border-radius: 999px; }
.board-item.node[data-shape="square"] { border-radius: 14px; }
.board-item.node[data-shape="circle"] { border-radius: 50%; }
.board-item.node[data-shape="cloud"] { border-radius: 48% 52% 44% 56% / 58% 42% 58% 42%; }
.node[data-shape="square"] .item-text { border-radius: 14px; }
.node[data-shape="circle"] .item-text { border-radius: 50%; }
.node[data-shape="cloud"] .item-text { border-radius: 48% 52% 44% 56% / 58% 42% 58% 42%; }

/* Slimme verbindingspoorten: vier kanten, maar alleen zichtbaar wanneer ze nodig zijn. */
.connector-handle { position:absolute; z-index:15; width:13px; height:13px; padding:0; border-radius:50%; border:2.5px solid white; background:#738197; box-shadow:0 2px 7px rgba(15,23,42,.20); opacity:0; pointer-events:none; transition:opacity .12s ease, transform .12s ease, background .12s ease; }
.connector-handle[data-side="top"] { left:50%; top:-8px; transform:translate(-50%,-50%) scale(.78); }
.connector-handle[data-side="right"] { right:-8px; top:50%; transform:translate(50%,-50%) scale(.78); }
.connector-handle[data-side="bottom"] { left:50%; bottom:-8px; transform:translate(-50%,50%) scale(.78); }
.connector-handle[data-side="left"] { left:-8px; top:50%; transform:translate(-50%,-50%) scale(.78); }
.board.connect-mode .board-item:hover .connector-handle,
.board.connect-mode .board-item.connect-source .connector-handle { opacity:1; pointer-events:auto; cursor:crosshair; background:var(--accent); }
.board.connect-mode .board-item:hover .connector-handle[data-side="top"], .board.connect-mode .board-item.connect-source .connector-handle[data-side="top"] { transform:translate(-50%,-50%) scale(1); }
.board.connect-mode .board-item:hover .connector-handle[data-side="right"], .board.connect-mode .board-item.connect-source .connector-handle[data-side="right"] { transform:translate(50%,-50%) scale(1); }
.board.connect-mode .board-item:hover .connector-handle[data-side="bottom"], .board.connect-mode .board-item.connect-source .connector-handle[data-side="bottom"] { transform:translate(-50%,50%) scale(1); }
.board.connect-mode .board-item:hover .connector-handle[data-side="left"], .board.connect-mode .board-item.connect-source .connector-handle[data-side="left"] { transform:translate(-50%,-50%) scale(1); }
.board.connect-mode .board-item { transition:box-shadow .14s ease, outline-color .14s ease; }
.board.connect-mode .board-item:hover { outline:1px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset:3px; }
.connections .connection-path { stroke:#748197; stroke-width:1.45; opacity:.84; fill:none; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.connections .connection-ghost { stroke:var(--accent); stroke-width:1.7; stroke-dasharray:7 7; opacity:.68; fill:none; vector-effect:non-scaling-stroke; }
.connections .connection-arrow-head { fill:#748197; }
.board.connect-mode .connections .connection-arrow-head { fill:var(--accent); }

.vote-result-chip { position:absolute; left:50%; bottom:-17px; transform:translateX(-50%); display:flex; align-items:center; gap:5px; padding:6px 10px; border-radius:999px; border:1px solid #d9dee7; background:white; box-shadow:0 5px 14px rgba(31,44,70,.12); color:#596579; font-size:10px; white-space:nowrap; }
.vote-result-chip.has-votes { background:#fff7d6; border-color:#e8ca5b; color:#7b5d00; }
.vote-result-chip b { font-size:12px; }
.board.vote-results .board-item { box-shadow:0 8px 20px rgba(31,44,70,.12); }

.ready-people-list { display:grid; gap:6px; }
.ready-person { display:grid; grid-template-columns:28px 1fr auto; gap:8px; align-items:center; padding:7px 8px; border-radius:10px; background:white; border:1px solid #e5e9ef; }
.ready-person.is-ready { background:#edf9f3; border-color:#b5e1ca; }
.ready-person-avatar { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:white; font-size:9px; font-weight:850; }
.ready-person-name { font-size:11px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ready-person-state { font-size:10px; color:#7a8699; }
.ready-person.is-ready .ready-person-state { color:#147552; font-weight:800; }
.ready-person-empty { padding:8px; color:var(--muted); font-size:10px; text-align:center; }
.all-ready-notice { position:fixed; z-index:220; top:80px; left:50%; transform:translateX(-50%); min-width:min(470px,calc(100vw - 30px)); display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; padding:11px 12px 11px 15px; border:1px solid #9ed8bb; background:#eefaf4; border-radius:14px; box-shadow:0 16px 38px rgba(15,23,42,.17); }
.all-ready-notice > div { display:grid; gap:2px; }
.all-ready-notice strong { font-size:13px; color:#106844; }
.all-ready-notice span { font-size:10px; color:#4e6d60; }
.notice-close { border:0; background:transparent; font-size:20px; cursor:pointer; color:#64748b; }

@media (max-width: 850px) {
  .zoom-controls { right:10px; bottom:52px; }
  .tool-popover { min-width:0; max-width:calc(100vw - 20px); overflow-x:auto; }
  .tool-popover b { display:none; }
  .all-ready-notice { grid-template-columns:1fr auto; }
  .all-ready-notice .notice-close { display:none; }
}

/* =========================================================
   Brainstorm Space v2.0 — rustige, leeftijdsvriendelijke UI
   ========================================================= */
:root { --ui-font: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; --board-font: var(--ui-font); }
.version-badge { display:inline-block; margin-left:4px; padding:2px 5px; border-radius:6px; background:#eef2ff; color:#3b5bfd; font-size:9px; vertical-align:2px; }
.tool-group-btn { border:0; background:transparent; border-radius:10px; min-width:88px; padding:7px 9px; cursor:pointer; display:flex; gap:7px; align-items:center; justify-content:center; transition:.16s ease; }
.tool-group-btn:hover { background:#eef2f7; }
.tool-group-btn span { font-size:17px; }.tool-group-btn b{font-size:12px;font-weight:650}.tool-group-btn i{font-size:9px;color:#8a94a3;font-style:normal}
.add-menu,.draw-menu { flex-direction:column; align-items:stretch; min-width:290px; gap:3px; }
.add-menu .tool-popover-title,.draw-menu .tool-popover-title,.symbol-menu .tool-popover-title { padding:4px 7px; }
.tool-popover .menu-action { width:100%; display:grid; grid-template-columns:34px 1fr; text-align:left; padding:9px 10px; background:white; }
.tool-popover .menu-action:hover { background:#f5f7fa; }
.tool-popover .menu-action > span:first-child { width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f0f3f8;font-size:17px; }
.tool-popover .menu-action > span:last-child { display:grid;gap:2px; }
.tool-popover .menu-action b { font-size:12px; }.tool-popover .menu-action small { font-size:10px;color:var(--muted);line-height:1.3; }
.symbol-menu { flex-direction:column;align-items:stretch;min-width:280px; }
.symbol-grid { display:grid;grid-template-columns:repeat(8,1fr);gap:5px; }
.symbol-grid button { height:38px;justify-content:center;font-size:20px;padding:4px;background:#f7f9fb; }
.symbol-grid button:hover { background:#eef2ff;transform:translateY(-1px); }

/* Rustige, normale typografie op het canvas. Geen handschrift-look meer. */
.board-item .item-text,.board-item .symbol-content,.scrum-card,.word-cloud-word { font-family:var(--board-font); }
.board-item[data-font-family="sans"] .item-text { font-family:var(--board-font); }
.board-item[data-font-family="serif"] .item-text { font-family:Georgia,"Times New Roman",serif; }
.board-item[data-font-family="hand"] .item-text { font-family:var(--board-font); }
.board-item .item-text { font-size:var(--item-font-size,18px); }

/* Transparante losse tekst */
.board-item.text { background:transparent!important;border-color:transparent;box-shadow:none;min-width:100px; }
.board-item.text:hover,.board-item.text.selected { background:rgba(255,255,255,.88)!important;border-color:#cdd6e1;box-shadow:0 7px 18px rgba(31,44,70,.08); }
.board-item.text .item-head { border-bottom:0;opacity:.45; }
.board-item.text .item-text { height:calc(100% - 26px);padding:5px 9px 8px;font-weight:600; }

/* Pictogrammen en afbeeldingen */
.board-item.symbol { border-radius:18px;background:white;display:block; }
.symbol-content { width:100%;height:calc(100% - 30px);display:grid;place-items:center;font-size:clamp(34px,5vw,78px);line-height:1;overflow:hidden; }
.board-item.image { border-radius:14px;background:white;overflow:visible; }
.image-frame { width:100%;height:calc(100% - 30px);overflow:hidden;border-radius:0 0 13px 13px;background:#eef2f6;display:grid;place-items:center; }
.image-frame img { width:100%;height:100%;object-fit:contain;pointer-events:none; }

/* Kleur als CSS variable zodat de echte wolkvorm mee kleurt. */
.board-item[data-color="yellow"]{--item-bg:var(--sticky-yellow)}.board-item[data-color="pink"]{--item-bg:var(--sticky-pink)}.board-item[data-color="blue"]{--item-bg:var(--sticky-blue)}.board-item[data-color="green"]{--item-bg:var(--sticky-green)}.board-item[data-color="lavender"]{--item-bg:var(--sticky-lavender)}.board-item[data-color="white"]{--item-bg:var(--sticky-white)}
.board-item.node[data-shape="cloud"] { border-radius:45% 55% 47% 53% / 56% 47% 53% 44%; background:var(--item-bg)!important; border:0; }
.board-item.node[data-shape="cloud"]::before,.board-item.node[data-shape="cloud"]::after { content:"";position:absolute;z-index:-1;background:var(--item-bg);border:1.5px solid rgba(100,116,139,.22);border-radius:50%; }
.board-item.node[data-shape="cloud"]::before { width:45%;height:62%;left:8%;top:-17%;box-shadow:58px -7px 0 -1px var(--item-bg),104px 8px 0 -2px var(--item-bg); }
.board-item.node[data-shape="cloud"]::after { width:55%;height:58%;right:4%;bottom:-15%; }
.board-item.node[data-shape="cloud"] .item-text { border-radius:45% 55% 47% 53% / 56% 47% 53% 44%;position:relative;z-index:1; }

/* Klikbare verbindingen met ruime onzichtbare hit-area. */
.connections .connection-hit { stroke:rgba(0,0,0,.001)!important;stroke-width:34!important;fill:none!important;pointer-events:stroke!important;cursor:grab;opacity:1!important;vector-effect:non-scaling-stroke; }
.connections .connection-hit:active { cursor:grabbing; }
.connections g.selected .connection-path { stroke:var(--accent);stroke-width:2.3;opacity:1; }
.connections g.selected .connection-arrow-head { fill:var(--accent); }
.connection-edit-menu,.format-menu { min-width:205px;display:flex;flex-direction:column;gap:4px;padding:8px; }
.connection-edit-menu .menu-title,.format-menu .menu-title { padding:4px 6px;font-size:10px;font-weight:850;color:var(--muted);text-transform:uppercase;letter-spacing:.08em; }
.connection-edit-menu button,.format-menu button { border:0;background:white;border-radius:8px;padding:8px 9px;text-align:left;cursor:pointer; }
.connection-edit-menu button:hover,.format-menu button:hover { background:#f1f4f8; }
.connection-edit-menu .danger { color:#c53939; }.menu-divider{height:1px;background:var(--line);margin:3px 0}.format-row{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.format-row button{text-align:center;border:1px solid var(--line)}.format-row button.active{background:#eef2ff;border-color:#9eb0ff;color:#3852d6}.format-menu select{border:1px solid var(--line);border-radius:8px;padding:8px;background:white}

/* Scrum / Kanban — vaste, direct herkenbare takenweergave */
.board.scrum-board-mode { background:#f3f5f8;background-image:none; }
.scrum-board-mode .items-layer { inset:0; }
.scrum-board { position:absolute;left:54px;top:44px;width:1180px;min-height:760px;padding:0 0 90px; }
.scrum-board-head { display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin:0 4px 22px;padding:0 2px; }
.scrum-board-head h2 { margin:2px 0 5px;font-family:var(--ui-font);font-size:25px;line-height:1.15;color:#1f2937; }
.scrum-board-head p { margin:0;color:#6b7686;font-family:var(--ui-font);font-size:12px; }
.scrum-eyebrow { font-family:var(--ui-font);font-size:9px;font-weight:900;letter-spacing:.14em;color:#208466; }
.scrum-new-task { flex:0 0 auto;margin-top:5px;min-height:38px;padding-inline:16px!important; }
.scrum-columns { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start; }
.scrum-column { min-width:0;min-height:625px;background:#e9edf2;border:1px solid #d8dee7;border-radius:18px;padding:12px;box-shadow:0 7px 22px rgba(31,44,70,.06);transition:outline-color .12s ease,background .12s ease,transform .12s ease; }
.scrum-column-todo { background:#edf0f4; }
.scrum-column-doing { background:#eef2fb;border-color:#d8e0f1; }
.scrum-column-done { background:#edf6f0;border-color:#d8e8dd; }
.scrum-column.drag-over { outline:3px solid #8098ff;outline-offset:2px;background:#edf0ff;transform:translateY(-1px); }
.scrum-column-head { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 3px 12px; }
.scrum-column-title { display:flex;align-items:center;gap:8px;min-width:0; }
.scrum-column-head strong { font-family:var(--ui-font);font-size:15px;color:#253044;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.scrum-status-icon { width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:white;color:#637083;font-family:var(--ui-font);font-size:15px;font-weight:900;box-shadow:0 1px 3px rgba(31,44,70,.07); }
.scrum-column-doing .scrum-status-icon { color:#4c64c5;background:#f8faff; }
.scrum-column-done .scrum-status-icon { color:#208466;background:#f7fcf9; }
.scrum-count { min-width:23px;height:23px;display:grid;place-items:center;border-radius:999px;background:#dbe1e9;color:#586475;font-family:var(--ui-font);font-size:10px;font-weight:800; }
.scrum-add { border:0;background:white;border-radius:9px;padding:7px 9px;cursor:pointer;font-family:var(--ui-font);font-size:11px;font-weight:750;box-shadow:0 1px 4px rgba(31,44,70,.08);white-space:nowrap; }
.scrum-add:hover { background:#f8faff;color:var(--accent); }
.scrum-card-list { display:grid;align-content:start;gap:9px;min-height:548px;padding-bottom:28px; }
.scrum-empty { width:100%;min-height:120px;border:1.5px dashed #c7cfda;border-radius:13px;background:rgba(255,255,255,.42);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#8a95a5;cursor:pointer;font-family:var(--ui-font); }
.scrum-empty:hover { border-color:#9cadcc;background:rgba(255,255,255,.78);color:#5e6c80; }
.scrum-empty > span { width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:white;font-size:19px;box-shadow:0 2px 7px rgba(31,44,70,.08); }
.scrum-empty strong { font-size:12px; }
.scrum-empty small { font-size:10px; }
.scrum-card { background:white;border:1px solid #dde3ea;border-left:4px solid #9aa5b5;border-radius:12px;padding:12px;cursor:grab;box-shadow:0 4px 10px rgba(31,44,70,.07);transition:.13s ease; }
.scrum-card:active { cursor:grabbing; }
.scrum-card:hover { transform:translateY(-1px);box-shadow:0 9px 20px rgba(31,44,70,.12); }
.scrum-card.dragging { opacity:.43;transform:rotate(1deg) scale(.99); }
.scrum-card.priority-high { border-left-color:#e05252; }
.scrum-card.priority-low { border-left-color:#6aa783; }
.scrum-card-title { font-weight:800;font-size:14px;line-height:1.35;color:#263245; }
.scrum-card-desc { margin-top:6px;color:#637083;font-size:11px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.scrum-card-meta { display:flex;gap:5px;flex-wrap:wrap;margin-top:10px; }
.scrum-meta-chip { font-family:var(--ui-font);background:#f1f4f7;border-radius:999px;padding:4px 7px;font-size:9px;color:#5f6b7a; }
.scrum-meta-chip.high { background:#fff0f0;color:#b43a3a; }
.scrum-meta-chip.low { background:#eef8f1;color:#39704d; }
.scrum-meta-chip.assignee { background:#edf2ff;color:#4058bd; }
.scrum-meta-chip.unassigned { color:#8792a1;background:#f5f6f8; }
.scrum-card-hint { margin-top:9px;padding-top:7px;border-top:1px solid #eef1f4;color:#9aa3af;font-family:var(--ui-font);font-size:8.5px; }
.scrum-tab::before { content:'▥';margin-right:6px;color:#208466; }
.scrum-mode .toolbar { opacity:.25;pointer-events:none; }
.scrum-card-form { display:grid;gap:13px; }
.scrum-card-form label { display:grid;gap:6px;font-size:11px;font-weight:750; }
.scrum-card-form input,.scrum-card-form textarea,.scrum-card-form select { width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;outline:none;background:white; }
.form-two { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.dialog-actions .spacer { flex:1; }
.danger-zone { border-color:#f1c6c6!important;background:#fffafa!important; }
.danger-btn { color:#b93838!important;border-color:#e4bcbc!important; }
.danger-btn:hover { background:#fff0f0!important; }

@media (max-width:1100px){.tool b,.tool-group-btn b{display:none}.tool,.tool-group-btn{min-width:42px}.topbar{padding:0 8px}.tab-type-grid{grid-template-columns:1fr}.scrum-board{left:30px;width:1060px}.scrum-columns{gap:14px}}
@media (max-width:720px){.symbol-grid{grid-template-columns:repeat(4,1fr)}.form-two{grid-template-columns:1fr}.add-menu,.draw-menu{min-width:min(290px,calc(100vw - 20px))}}
.word-cloud-item { font-family:var(--board-font); }
/* Grotere, duidelijkere resize-grip voor muis én touchpad. */
.board-item .resize-handle { width:24px;height:24px;right:2px;bottom:2px;opacity:.12; }
.board-item:hover .resize-handle,.board-item.selected .resize-handle { opacity:.7; }
.board-item .resize-handle::after { width:10px;height:10px;right:4px;bottom:4px; }
.board-item.node[data-shape="cloud"]::before,.board-item.node[data-shape="cloud"]::after { z-index:0; }
.board-item.node[data-shape="cloud"] .item-head,.board-item.node[data-shape="cloud"] .item-text,.board-item.node[data-shape="cloud"] .connector-handle,.board-item.node[data-shape="cloud"] .resize-handle { position:relative;z-index:2; }

/* =========================================================
   Brainstorm Space v2.0.2 — vrije pictogrammen, echte wolk,
   buigbare en makkelijk verwijderbare verbindingen
   ========================================================= */

/* Pictogrammen zijn echte losse objecten: geen wit kaartje eromheen. */
.board-item.symbol {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  cursor: grab;
}
.board-item.symbol:active { cursor: grabbing; }
.board-item.symbol .symbol-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 3px 3px rgba(15,23,42,.08));
}
.board-item.symbol .item-head {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: -34px;
  transform: translateX(-50%);
  width: max-content;
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
  padding: 3px 5px 3px 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .13s ease, transform .13s ease;
}
.board-item.symbol:hover .item-head,
.board-item.symbol.selected .item-head {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-2px);
}
.board-item.symbol .item-author { font-size: 9px; }
.board-item.symbol .color-btn { display:none; }
.board-item.symbol .resize-handle {
  opacity: 0;
  transition: opacity .12s ease;
}
.board-item.symbol:hover .resize-handle,
.board-item.symbol.selected .resize-handle { opacity: 1; }
.board-item.symbol.selected { outline: 2px dashed rgba(59,91,253,.48); outline-offset: 4px; }


/* Echte cartoonwolk: een SVG-silhouet, niet een ovaal met bobbeltjes. */
.board-item.node[data-shape="cloud"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
}
.board-item.node[data-shape="cloud"]::before,
.board-item.node[data-shape="cloud"]::after { display:none !important; }
.cloud-shape-bg {
  position:absolute;
  z-index:0;
  inset:-8% -5% -8% -5%;
  width:110%;
  height:116%;
  overflow:visible;
  pointer-events:none;
  filter: drop-shadow(0 7px 10px rgba(31,44,70,.10));
}
.cloud-shape-fill {
  fill: var(--item-bg, white);
  stroke: rgba(100,116,139,.33);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.board-item.node[data-shape="cloud"] .item-head,
.board-item.node[data-shape="cloud"] .item-text,
.board-item.node[data-shape="cloud"] .resize-handle,
.board-item.node[data-shape="cloud"] .item-reactions,
.board-item.node[data-shape="cloud"] .idea-count,
.board-item.node[data-shape="cloud"] .vote-chip,
.board-item.node[data-shape="cloud"] .vote-result-chip { position:relative; z-index:2; }

.board-item.node[data-shape="cloud"] .connector-handle { position:absolute; z-index:3; }
.board-item.node[data-shape="cloud"] .item-head { background:transparent; border-bottom:0; }
.board-item.node[data-shape="cloud"] .item-text {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 8px 22px 14px;
}
.board-item.node[data-shape="cloud"].selected .cloud-shape-fill { stroke: var(--accent); stroke-width: 2.6; }
.shape-preview.cloud {
  position:relative;
  width:31px;
  height:20px;
  border:0;
  background:
    radial-gradient(circle at 24% 59%, #fff 0 27%, transparent 29%),
    radial-gradient(circle at 43% 34%, #fff 0 35%, transparent 37%),
    radial-gradient(circle at 64% 36%, #fff 0 36%, transparent 38%),
    radial-gradient(circle at 80% 61%, #fff 0 27%, transparent 29%),
    linear-gradient(#fff,#fff) center 65%/76% 48% no-repeat;
  filter: drop-shadow(0 0 0 #718096) drop-shadow(0 0 1px #718096);
}

/* Verbinding kiezen: twee rustige groepen in plaats van één rij knoppen. */
.connection-style-menu {
  flex-direction: column;
  align-items: stretch;
  min-width: 390px;
  gap: 8px;
}
.connection-picker-group { display:grid; gap:5px; }
.connection-picker-row { display:flex; gap:5px; flex-wrap:wrap; }
.connection-picker-row button { flex:1 1 auto; justify-content:center; min-width:76px; }
.connection-menu-help,.connection-edit-help { display:block; color:var(--muted); font-size:9px; line-height:1.35; padding:2px 5px 1px; }
.route-preview { position:relative; width:34px; height:16px; display:inline-block; }
.route-preview::before { content:""; position:absolute; inset:0; border-top:1.6px solid #718096; top:7px; }
.route-preview.curve::before { border-top:0; border-radius:50% 50% 0 0; border:1.6px solid #718096; border-bottom:0; height:12px; top:3px; }
.route-preview.elbow::before { border-top:0; left:2px; top:2px; width:28px; height:11px; border-left:1.6px solid #718096; border-bottom:1.6px solid #718096; border-radius:0 0 0 5px; }
.menu-subtitle { padding:2px 6px 0; font-size:9px; font-weight:800; color:#7a8699; }

/* Lijnen reageren zichtbaar op hover, zijn ruim klikbaar, en krijgen directe controls. */
.connections .connection-path {
  stroke:#6f7d91;
  stroke-width:1.55;
  transition:stroke .12s ease,stroke-width .12s ease,opacity .12s ease;
}
.connections g:has(.connection-hit:hover) .connection-path {
  stroke:#5268dc;
  stroke-width:2.2;
  opacity:1;
}
.connections g.selected .connection-path { stroke:var(--accent); stroke-width:2.35; opacity:1; }
.connection-bend-handle {
  fill:#fff;
  stroke:var(--accent);
  stroke-width:3;
  cursor:grab;
  pointer-events:all;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 3px 5px rgba(31,44,70,.18));
}
.connection-bend-handle:hover { fill:#eef2ff; r:13; }
.connection-bend-handle:active { cursor:grabbing; }
.connection-preview-bend { fill:#fff; stroke:var(--accent); stroke-width:2; vector-effect:non-scaling-stroke; pointer-events:none; }
.connection-delete-control { cursor:pointer; pointer-events:all; }
.connection-delete-control circle { fill:#fff; stroke:#d65353; stroke-width:1.8; filter:drop-shadow(0 3px 7px rgba(31,44,70,.20)); }
.connection-delete-control:hover circle { fill:#fff0f0; stroke:#c53939; }
.connection-delete-control .delete-x { stroke:#c53939; stroke-width:1.8; stroke-linecap:round; pointer-events:none; vector-effect:non-scaling-stroke; }
.connection-edit-menu { min-width:225px; }

@media (max-width: 850px) {
  .connection-style-menu { min-width:min(390px,calc(100vw - 20px)); }
  .connection-picker-row button b { display:inline; }
}


/* v2.0.4 — tekenkleur rustig in het tekenmenu */
.draw-color-block { border-top:1px solid var(--line); margin-top:5px; padding:9px 7px 3px; display:grid; gap:7px; }
.draw-color-label { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:10px; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }
.draw-color-label small { text-transform:none; letter-spacing:0; font-weight:650; color:#8793a4; }
.draw-color-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.draw-color-swatch { width:27px; height:27px; border-radius:999px; border:2px solid white; box-shadow:0 0 0 1px rgba(15,23,42,.16); cursor:pointer; padding:0; position:relative; }
.draw-color-swatch:hover { transform:scale(1.07); }
.draw-color-swatch.active { box-shadow:0 0 0 3px rgba(59,91,253,.28); }
.draw-color-swatch.own::after { content:'•'; position:absolute; inset:0; display:grid; place-items:center; color:white; font-size:17px; text-shadow:0 1px 2px rgba(0,0,0,.22); }
.draw-custom-color { width:34px; height:29px; padding:0; border:1px solid var(--line); border-radius:8px; background:white; cursor:pointer; }

/* ===== v2.1 Rooms & subtle ladybugs ===== */
.share-room-btn { display:flex; align-items:center; gap:7px; padding:7px 9px; white-space:nowrap; }
.share-room-btn > span:first-child { color:var(--accent); font-size:15px; }
.room-code-chip { font-size:10px; letter-spacing:.08em; color:#4e5f75; background:#f2f5f9; border:1px solid #e0e6ee; border-radius:999px; padding:4px 7px; }
.share-room-dialog { width:min(560px, calc(100vw - 28px)); }
.share-room-kicker { display:inline-flex; align-items:center; border:1px solid #dbe3ff; background:#f3f5ff; color:#4058cc; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; margin-bottom:8px; }
.room-code-card { margin:16px 0; display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 12px; border:1px solid #e1e7ef; background:#f8fafc; border-radius:16px; padding:14px 16px; }
.room-code-card > span { font-size:11px; font-weight:800; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.room-code-card strong { grid-row:2; font-size:30px; letter-spacing:.12em; line-height:1; }
.room-code-card .btn { grid-column:2; grid-row:1 / span 2; }
.share-link-block { display:grid; gap:7px; margin:14px 0; }
.share-link-block label { font-size:12px; font-weight:800; }
.share-link-block small { color:var(--muted); line-height:1.45; }
.share-link-row { display:flex; gap:8px; }
.share-link-row input { min-width:0; flex:1; border:1px solid #cbd5e1; border-radius:10px; padding:10px 11px; color:#42516a; background:#fff; }
.admin-link-block { margin-top:14px; padding:13px 14px; border:1px solid #f0d8aa; background:#fffaf0; border-radius:13px; display:flex; gap:14px; align-items:center; justify-content:space-between; }
.admin-link-block[hidden] { display:none; }
.admin-link-block > div { display:grid; gap:3px; }
.admin-link-block strong { font-size:12px; }
.admin-link-block small { color:#796746; line-height:1.4; }

.ladybug-layer { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.ambient-ladybug { --bug-size:18px; position:absolute; width:var(--bug-size); height:calc(var(--bug-size) * .82); border-radius:52% 52% 48% 48%; background:linear-gradient(90deg,#c94747 0 47%,#322f35 47% 53%,#c94747 53% 100%); box-shadow:inset 0 -1px 1px rgba(0,0,0,.12); pointer-events:none; }
.ambient-ladybug::before { content:''; position:absolute; width:42%; height:42%; border-radius:50%; background:#302f34; left:29%; top:-26%; }
.ambient-ladybug::after { content:''; position:absolute; inset:12% 13%; border-radius:50%; background:radial-gradient(circle at 20% 28%,#2f3035 0 9%,transparent 10%),radial-gradient(circle at 76% 29%,#2f3035 0 9%,transparent 10%),radial-gradient(circle at 28% 70%,#2f3035 0 9%,transparent 10%),radial-gradient(circle at 72% 68%,#2f3035 0 9%,transparent 10%); }
.board .ambient-ladybug { opacity:.055; }

html.home-root, body.home-page { overflow:auto; min-height:100%; }
body.home-page { background:radial-gradient(circle at 18% 8%,rgba(59,91,253,.08),transparent 34%),radial-gradient(circle at 86% 76%,rgba(229,77,117,.06),transparent 32%),#f7f9fc; }
.home-ladybug-layer { position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.home-bug { position:absolute; }
.home-shell { min-height:100vh; display:grid; place-items:center; padding:42px 18px; position:relative; z-index:1; }
.home-hero { width:min(920px,100%); text-align:center; }
.home-brand-mark { width:52px; height:52px; margin:0 auto 12px; border-radius:16px; background:var(--accent); color:white; display:grid; place-items:center; font-size:24px; box-shadow:0 12px 28px rgba(59,91,253,.22); }
.home-kicker { margin:0 0 9px; color:#44536a; font-size:12px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.home-kicker span { color:var(--accent); }
.home-hero h1 { margin:0; font-size:clamp(34px,6vw,62px); letter-spacing:-.045em; line-height:1.02; }
.home-subtitle { max-width:680px; margin:18px auto 28px; color:var(--muted); font-size:16px; line-height:1.6; }
.home-actions-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; text-align:left; }
.home-action-card { border:1px solid #e0e6ee; background:rgba(255,255,255,.9); box-shadow:0 18px 48px rgba(30,42,70,.08); border-radius:22px; padding:24px; display:flex; flex-direction:column; min-height:326px; backdrop-filter:blur(10px); }
.home-action-card.primary-card { border-color:#d5ddff; box-shadow:0 18px 48px rgba(59,91,253,.10); }
.home-action-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:14px; background:#eef1ff; color:var(--accent); font-size:24px; font-weight:700; margin-bottom:16px; }
.home-action-icon.join-icon { background:#f2f5f8; color:#41516a; }
.home-action-card h2 { margin:0 0 8px; font-size:20px; }
.home-action-card p { margin:0 0 20px; color:var(--muted); line-height:1.55; font-size:14px; }
.home-big-btn { margin-top:auto; font-size:14px; }
.join-room-form { margin-top:auto; display:grid; gap:8px; }
.join-room-form label { font-size:11px; font-weight:850; color:#5d6b7d; text-transform:uppercase; letter-spacing:.07em; }
.join-room-form input { width:100%; border:1px solid #cbd5e1; background:white; border-radius:12px; padding:14px 13px; text-align:center; font-size:23px; font-weight:850; letter-spacing:.16em; outline:none; }
.join-room-form input:focus { border-color:var(--accent); box-shadow:0 0 0 4px rgba(59,91,253,.10); }
.join-room-error { min-height:18px; color:#b42318; font-size:12px; }
.home-privacy-note { margin:18px auto 0; max-width:640px; display:flex; align-items:flex-start; gap:10px; text-align:left; padding:12px 15px; color:#5d687b; }
.home-privacy-note > span { color:var(--accent); font-weight:900; }
.home-privacy-note p { margin:0; font-size:12px; line-height:1.5; }
.home-notice { margin:0 auto 18px; max-width:680px; background:#fff8e8; border:1px solid #f0d9a9; color:#765e2e; padding:11px 14px; border-radius:12px; font-size:13px; }
.home-notice[hidden] { display:none; }
@media (max-width:760px) {
  .home-actions-grid { grid-template-columns:1fr; }
  .home-action-card { min-height:0; }
  .home-hero h1 { font-size:38px; }
  .share-room-btn .room-code-chip { display:none; }
  .share-link-row { flex-direction:column; }
  .admin-link-block { align-items:flex-start; flex-direction:column; }
}

/* ===== v2.1.1 Pastel Space — warm, playful, still calm ===== */
:root {
  --bg:#f7f4ff;
  --panel:rgba(255,255,255,.90);
  --ink:#292442;
  --muted:#756f8d;
  --line:#e5def3;
  --accent:#7568e8;
  --accent-2:#6554cf;
  --shadow:0 14px 38px rgba(77,61,135,.13);
}
body { background:var(--bg); }
.btn { border-color:#e3ddf1; box-shadow:0 1px 0 rgba(255,255,255,.7) inset; }
.btn:hover { background:#f8f5ff; border-color:#d5cbed; }
.btn.primary { background:linear-gradient(135deg,#6e7eea 0%,#8166e8 54%,#c06fce 120%); border-color:transparent; box-shadow:0 9px 22px rgba(113,93,213,.22); }
.btn.primary:hover { background:linear-gradient(135deg,#6375dc 0%,#7559d8 55%,#b45fc3 120%); transform:translateY(-1px); }
.brand-mark { background:linear-gradient(145deg,#7589ed,#8c6be9 55%,#dd8ecb); box-shadow:0 10px 26px rgba(108,91,210,.23); }
.brand-mark.small { font-size:18px; }
.topbar { background:rgba(255,255,255,.88); border-bottom-color:#e8e0f3; box-shadow:0 5px 22px rgba(91,76,137,.055); }
.toolbar { background:#f7f3ff; border-color:#e6def4; }
.tool:hover,.tool-group-btn:hover { background:#eee8fb; }
.tool.active { color:#6655d5; box-shadow:0 3px 11px rgba(91,74,160,.11); }
.role-badge { border-color:#d6c9f5; background:#f0eaff; color:#634cc7; }
.viewport { background:linear-gradient(135deg,#f1eef9,#eef4fc); }
.empty-hint .hint-card { border-color:#cfc5e6; background:rgba(252,250,255,.90); color:#77718d; box-shadow:0 12px 34px rgba(76,61,130,.08); }
.empty-hint .hint-card strong { color:#514769; }
.gate { background:radial-gradient(circle at 18% 12%,rgba(131,153,240,.25),transparent 38%),radial-gradient(circle at 82% 78%,rgba(232,149,203,.22),transparent 34%),#f7f3ff; }
.gate-card { border-color:#e2daf1; box-shadow:0 24px 65px rgba(72,57,125,.16); }

/* Home: pastel galaxy without becoming busy */
body.home-page {
  background:
    radial-gradient(circle at 12% 9%,rgba(138,170,244,.30),transparent 30%),
    radial-gradient(circle at 88% 14%,rgba(196,153,236,.24),transparent 27%),
    radial-gradient(circle at 84% 84%,rgba(244,173,213,.24),transparent 30%),
    radial-gradient(circle at 20% 82%,rgba(166,217,242,.20),transparent 30%),
    linear-gradient(145deg,#f8f5ff 0%,#f5f4ff 42%,#fff5fb 100%);
  color:#292442;
}
body.home-page::before {
  content:''; position:fixed; inset:0; pointer-events:none; opacity:.55; z-index:0;
  background-image:
    radial-gradient(circle,#8e83d9 0 1px,transparent 1.5px),
    radial-gradient(circle,#d69bc8 0 1px,transparent 1.5px),
    radial-gradient(circle,#86addd 0 1px,transparent 1.5px);
  background-size:79px 79px,113px 113px,149px 149px;
  background-position:8px 16px,44px 71px,82px 22px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.85),rgba(0,0,0,.22) 72%,transparent);
}
.home-shell { padding:52px 20px; }
.home-hero { width:min(980px,100%); }
.home-brand-mark {
  width:62px; height:62px; border-radius:21px; font-size:29px; margin-bottom:14px;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(244,237,255,.94));
  border:1px solid rgba(124,102,204,.16); box-shadow:0 17px 42px rgba(91,69,150,.16);
}
.home-kicker { color:#706889; letter-spacing:.08em; }
.home-kicker span { color:#7564dd; }
.home-hero h1 { color:#2e2847; font-size:clamp(38px,6vw,66px); letter-spacing:-.052em; text-wrap:balance; }
.home-subtitle { color:#756f89; font-size:17px; max-width:720px; margin-top:16px; text-wrap:balance; }
.home-actions-grid { gap:20px; }
.home-action-card {
  position:relative; overflow:hidden; border:1px solid rgba(121,100,185,.14);
  background:linear-gradient(160deg,rgba(255,255,255,.95),rgba(250,247,255,.88));
  box-shadow:0 23px 60px rgba(66,52,116,.10); border-radius:28px; padding:28px; min-height:350px;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.home-action-card::before { content:''; position:absolute; width:180px; height:180px; border-radius:50%; right:-78px; top:-86px; background:radial-gradient(circle,rgba(150,127,236,.14),transparent 68%); pointer-events:none; }
.home-action-card::after { content:'🐞'; position:absolute; right:18px; bottom:15px; font-size:19px; opacity:.16; transform:rotate(16deg); pointer-events:none; }
.home-action-card:hover { transform:translateY(-3px); box-shadow:0 28px 68px rgba(66,52,116,.14); border-color:rgba(121,100,185,.24); }
.home-action-card.primary-card { border-color:rgba(128,107,224,.20); background:linear-gradient(160deg,rgba(255,255,255,.97),rgba(246,241,255,.92)); }
.home-action-card.primary-card::before { background:radial-gradient(circle,rgba(219,148,213,.18),transparent 68%); }
.home-action-icon { width:48px; height:48px; border-radius:16px; background:linear-gradient(145deg,#ece9ff,#f8eaff); color:#6b59d7; box-shadow:0 8px 22px rgba(111,91,202,.11); font-size:22px; }
.home-action-icon.join-icon { background:linear-gradient(145deg,#eaf3ff,#f2edff); color:#5866c9; }
.home-card-eyebrow { margin:0 0 7px !important; color:#8d82aa !important; font-size:11px !important; font-weight:850; letter-spacing:.075em; text-transform:uppercase; }
.home-action-card h2 { color:#342d4c; font-size:23px; letter-spacing:-.02em; }
.home-action-card p:not(.home-card-eyebrow) { color:#766f89; font-size:14.5px; }
.home-big-btn,.join-room-btn { border-radius:14px; padding:13px 14px; }
.join-room-form label { color:#81779a; }
.join-room-form input { border-color:#dcd2ef; background:rgba(255,255,255,.94); border-radius:14px; color:#40365d; box-shadow:0 6px 18px rgba(77,61,135,.055) inset; }
.join-room-form input:focus { border-color:#8b78e7; box-shadow:0 0 0 4px rgba(117,104,232,.12); }
.join-room-btn { background:linear-gradient(135deg,#ffffff,#f4efff); color:#5f50bf; border-color:#d8ccf0; box-shadow:0 7px 18px rgba(86,68,157,.09); }
.join-room-btn:hover { background:#eee7ff; border-color:#c9bbed; }
.home-privacy-note { max-width:700px; border:1px solid rgba(117,101,176,.11); border-radius:17px; background:rgba(255,255,255,.48); backdrop-filter:blur(12px); }
.home-privacy-note > span { color:#8876de; }
.home-notice { background:rgba(255,249,231,.93); border-color:#efdba7; box-shadow:0 10px 28px rgba(91,71,130,.07); }
.home-bug { animation:ladybugDrift 11s ease-in-out infinite alternate; }
.home-bug:nth-child(2n) { animation-duration:15s; }
.home-bug:nth-child(3n) { animation-duration:18s; }
@keyframes ladybugDrift { from { margin-top:0; margin-left:0; } to { margin-top:-7px; margin-left:5px; } }

/* Share dialog: celebratory but subtle */
.share-room-dialog { border-color:#e1d8ef; box-shadow:0 28px 74px rgba(66,50,116,.22); }
.share-room-kicker { color:#806fd7; }
.room-code-card { background:linear-gradient(135deg,#f1efff,#fff1fa); border-color:#ddd1f1; }
.room-code-card strong { color:#4e4078; letter-spacing:.16em; }
.share-link-block { background:#faf8ff; border-color:#e8e0f3; }
.admin-link-block { background:linear-gradient(135deg,#fbf8ff,#f5f0ff); border-color:#e4daf4; }

/* Cute ladybugs fit the pastel palette a little better */
.ambient-ladybug { background:linear-gradient(90deg,#e76780 0 47%,#3b3444 47% 53%,#e76780 53% 100%); box-shadow:inset 0 -1px 1px rgba(0,0,0,.10),0 2px 5px rgba(89,57,98,.08); }

@media (prefers-reduced-motion:reduce) {
  .home-bug,.home-action-card,.btn { animation:none !important; transition:none !important; }
}


/* ===== v2.1.3 — rustiger bovenmenu, menu-knop en compacte responsiviteit ===== */
.home-btn { flex:0 0 auto; height:34px; padding:0 9px; display:inline-flex; align-items:center; gap:5px; border:1px solid #e3ddf1; border-radius:10px; background:#fff; color:#5747aa; text-decoration:none; font-size:12px; font-weight:800; box-shadow:0 2px 8px rgba(75,57,130,.06); }
.home-btn:hover { background:#f7f2ff; border-color:#d5cbed; }
.home-btn > span { font-size:16px; line-height:1; }
.topbar { overflow:visible; }
.toolbar, .top-actions { min-width:0; }
.top-actions { white-space:nowrap; }

@media (max-width: 1800px) {
  .topbar { grid-template-columns:minmax(155px,.45fr) auto minmax(0,1.7fr); padding:0 10px; column-gap:7px; }
  .brand { gap:6px; }
  .brand #saveStatus { display:none; }
  .brand strong { font-size:13px; }
  .tool { min-width:62px; padding:7px 7px; gap:5px; }
  .toolbar { gap:3px; padding:4px; }
  .top-actions { gap:5px; }
  .top-actions .btn { padding:8px 9px; }
  .role-badge { display:none !important; }
  .share-room-btn .room-code-chip { display:none; }
  .profile-btn { max-width:145px; }
}
@media (max-width: 1550px) {
  .brand strong { display:none; }
  .brand { min-width:max-content; }
  .topbar { grid-template-columns:max-content auto minmax(0,1fr); }
  .profile-name,.profile-edit { display:none; }
  .profile-btn { padding:2px; border:0; background:transparent; }
  .tool b { font-size:11px; }
  #exportBtn { display:none; }
}
@media (max-width: 1280px) {
  .home-btn b { display:none; }
  .home-btn { width:34px; justify-content:center; padding:0; }
  .tool b { display:none; }
  .tool { min-width:38px; width:40px; }
  .tool-group-btn b { display:none; }
  .chat-toggle-label { display:none; }
}

/* ===== v2.1.4 — Orden blijft zichtbaar voor de administrator ===== */
#layoutBtn:disabled { opacity:.48; cursor:not-allowed; background:transparent; box-shadow:none; }
#layoutBtn:disabled:hover { background:transparent; }

/* v2.2 — magnetische uitlijning zonder het vrije brainstormgevoel te verliezen. */
.alignment-guides { position:absolute; inset:0; z-index:9; pointer-events:none; }
.alignment-guide { position:absolute; display:block; pointer-events:none; opacity:.9; }
.alignment-guide[hidden] { display:none; }
.alignment-guide.vertical { top:0; bottom:0; width:1px; border-left:1px dashed rgba(59,91,253,.72); }
.alignment-guide.horizontal { left:0; right:0; height:1px; border-top:1px dashed rgba(59,91,253,.72); }
.board-item.selected { will-change:left,top; }

/* ===== v2.3.0 Best-of whiteboards: sections, templates & room recovery ===== */
.board-item.section {
  background: color-mix(in srgb, var(--item-bg, #fff) 68%, transparent) !important;
  border: 2px dashed rgba(92,82,145,.24);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(62,52,105,.055);
  z-index: 0;
  overflow: hidden;
}
.board-item.section:hover { box-shadow: 0 14px 38px rgba(62,52,105,.09); border-color: rgba(117,104,232,.35); }
.board-item.section.selected { z-index: 1 !important; outline: 2px solid rgba(117,104,232,.48); }
.board-item.section .item-head { background: rgba(255,255,255,.56); border-bottom: 1px solid rgba(92,82,145,.10); }
.board-item.section .item-author { font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.board-item.section .item-text {
  height: 62px;
  padding: 12px 18px 10px;
  font-size: var(--item-font-size,24px) !important;
  font-weight: 820 !important;
  line-height: 1.15;
  color: #40385d;
  overflow: hidden;
}
.board-item.section .resize-handle { opacity: .45; }
.board-item.section[data-color="yellow"] { --item-bg:#fff7c9; }
.board-item.section[data-color="pink"] { --item-bg:#ffe5ed; }
.board-item.section[data-color="blue"] { --item-bg:#e8f1ff; }
.board-item.section[data-color="green"] { --item-bg:#e5f7ef; }
.board-item.section[data-color="lavender"] { --item-bg:#eee9ff; }
.board-item.section[data-color="white"] { --item-bg:#ffffff; }

.new-tab-dialog { width:min(980px,calc(100vw - 34px)); max-height:min(850px,calc(100vh - 38px)); overflow:auto; }
.new-tab-heading h2 { margin:2px 0 6px; }
.new-tab-heading .dialog-lead { margin:0 0 16px; }
.tab-quick-starts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.tab-quick-starts .tab-type-card { min-height:116px; padding:14px; display:grid; grid-template-columns:42px 1fr; align-items:start; column-gap:10px; }
.tab-quick-starts .tab-type-icon { margin:0; }
.tab-card-copy { display:flex; flex-direction:column; gap:4px; }
.template-browser { margin-top:18px; padding-top:17px; border-top:1px solid var(--line); }
.template-browser-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:12px; }
.template-browser-head > div { display:flex; flex-direction:column; gap:3px; }
.template-browser-head > div > strong { font-size:16px; }
.template-browser-head > div > small { color:var(--muted); }
.template-search { width:min(290px,42vw); height:40px; display:flex; align-items:center; gap:7px; padding:0 10px; border:1px solid #d9deea; border-radius:12px; background:white; }
.template-search input { width:100%; border:0; outline:0; font:inherit; background:transparent; color:var(--ink); }
.template-categories { display:flex; gap:7px; overflow:auto; padding:1px 0 10px; scrollbar-width:thin; }
.template-category { border:1px solid #dedfee; background:#fff; color:#6b6580; border-radius:999px; padding:7px 11px; font-size:11px; font-weight:780; cursor:pointer; white-space:nowrap; }
.template-category.active { color:#5147bd; border-color:#cfc8fb; background:#f3f0ff; }
.template-grid { display:flex; flex-direction:column; gap:18px; }
.template-cluster { display:flex; flex-direction:column; gap:9px; }
.template-cluster + .template-cluster { padding-top:15px; border-top:1px solid #ece8f2; }
.template-cluster-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; padding:0 2px; }
.template-cluster-head > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.template-cluster-head strong { font-size:13px; color:#423a5b; }
.template-cluster-head small { font-size:10px; color:#8a8498; line-height:1.35; }
.template-cluster-head > span { flex:0 0 auto; font-size:9px; font-weight:800; color:#8176c2; background:#f5f2ff; border-radius:999px; padding:4px 7px; }
.template-cluster-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.template-card { min-height:144px; border:1px solid #e3e0ee; background:#fff; border-radius:16px; padding:13px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:6px; transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease; }
.template-card:hover { transform:translateY(-2px); border-color:#bfb6f2; box-shadow:0 12px 26px rgba(67,53,116,.10); }
.template-card-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:linear-gradient(145deg,#f1edff,#fff4f8); font-size:19px; }
.template-card strong { font-size:13px; line-height:1.2; color:#3d3653; }
.template-card small { color:#7a748d; font-size:11px; line-height:1.4; }
.template-card .template-tag { margin-top:auto; align-self:flex-start; font-size:9px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; color:#796fc4; background:#f5f2ff; padding:4px 7px; border-radius:999px; }
.template-empty { padding:28px 12px; text-align:center; color:var(--muted); border:1px dashed #d9d4e8; border-radius:14px; }

.recent-rooms-panel { margin:0 auto 18px; max-width:760px; padding:15px; border:1px solid rgba(117,104,232,.20); border-radius:18px; background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(245,242,255,.91)); box-shadow:0 14px 34px rgba(67,53,116,.07); text-align:left; }
.recent-rooms-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:10px; }
.recent-rooms-head > div { display:flex; flex-direction:column; gap:2px; }
.recent-rooms-head strong { color:#3d3653; font-size:15px; }
.recent-rooms-head small { color:#827b94; }
.recent-kicker { font-size:9px; font-weight:900; letter-spacing:.12em; color:#7568e8; }
.recent-rooms-list { display:grid; gap:7px; }
.recent-room-row { display:grid; grid-template-columns:1fr auto; gap:5px; }
.recent-room-main { border:1px solid #e5e1ef; background:rgba(255,255,255,.9); border-radius:13px; padding:9px 11px; display:grid; grid-template-columns:32px 1fr auto; gap:9px; align-items:center; text-align:left; cursor:pointer; }
.recent-room-main:hover { border-color:#c8c0f0; background:white; }
.recent-room-icon { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; background:#f1edff; color:#6d61d9; font-weight:900; }
.recent-room-copy { display:flex; flex-direction:column; min-width:0; }
.recent-room-copy strong { font-size:12px; color:#403956; }
.recent-room-copy small { font-size:10px; color:#847d96; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-room-go { font-size:10px; font-weight:850; color:#6d61d9; }
.recent-room-remove { width:34px; border:0; border-radius:10px; background:transparent; color:#9b94a9; font-size:18px; cursor:pointer; }
.recent-room-remove:hover { background:#f2eff8; color:#5d5670; }

.breakout-start-row { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; margin-top:8px; }
.breakout-start-row label { display:grid; gap:4px; color:#6e677e; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.breakout-start-row select { height:36px; border:1px solid #d7dce5; border-radius:9px; background:white; padding:0 9px; }
.breakout-groups { display:grid; gap:6px; margin:10px 0; }
.breakout-group-row { border:1px solid #e4e0ef; background:#faf9ff; border-radius:10px; padding:8px 9px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.breakout-group-row strong { font-size:11px; }
.breakout-group-row small { color:var(--muted); text-align:right; }

@media (max-width:900px){
  .template-cluster-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .tab-quick-starts{grid-template-columns:1fr;}
  .template-browser-head{align-items:stretch;flex-direction:column;}
  .template-search{width:100%;}
}
@media (max-width:560px){
  .template-cluster-grid{grid-template-columns:1fr;}
  .recent-rooms-head{align-items:flex-start;flex-direction:column;}
  .recent-room-go{display:none;}
}

/* Breakout workspaces: compact, clear and easy for the facilitator to scan. */
.breakout-group-card {
  width:100%; border:1px solid #e4e0ef; background:#faf9ff; border-radius:12px;
  padding:9px 10px; display:grid; grid-template-columns:28px 1fr auto; gap:9px;
  align-items:center; text-align:left; color:inherit;
}
.breakout-group-card:not(:disabled) { cursor:pointer; }
.breakout-group-card:not(:disabled):hover { border-color:#c8c0f0; background:#fff; }
.breakout-group-card.active { border-color:#b7acf4; background:#f2efff; box-shadow:0 0 0 2px rgba(117,104,232,.08); }
.breakout-group-number { width:27px; height:27px; display:grid; place-items:center; border-radius:9px; background:#ece8ff; color:#5f53ca; font-size:11px; font-weight:900; }
.breakout-group-copy { min-width:0; display:flex; flex-direction:column; gap:2px; }
.breakout-group-copy strong { font-size:11px; color:#413a57; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.breakout-group-copy small { color:var(--muted); font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.breakout-group-go { font-size:9px; font-weight:850; color:#6d61d9; white-space:nowrap; }
.tab.breakout-tab::before { content:'◫'; margin-right:5px; color:#6d61d9; font-size:10px; }
.tab.breakout-tab { border-color:rgba(117,104,232,.22); }

/* Whimsical-style quick add: visible only when the idea is selected/hovered. */
.quick-add-handle {
  position:absolute; right:-16px; top:50%; transform:translateY(-50%); z-index:12;
  width:31px; height:31px; border-radius:999px; border:1px solid #c9c3ee;
  background:#fff; color:#6659d5; box-shadow:0 6px 16px rgba(67,53,116,.16);
  display:grid; place-items:center; font:800 18px/1 system-ui,sans-serif; cursor:pointer;
  opacity:0; pointer-events:none; transition:opacity .12s ease,transform .12s ease,box-shadow .12s ease;
}
.board-item:hover .quick-add-handle,.board-item.selected .quick-add-handle { opacity:1; pointer-events:auto; }
.quick-add-handle:hover { transform:translateY(-50%) scale(1.08); box-shadow:0 8px 20px rgba(67,53,116,.22); }

/* v2.3.2 — Trello-achtiger takenbord */
.scrum-board { pointer-events:auto; min-width:1180px; }
.scrum-board-head { position:sticky; left:0; max-width:1180px; }
.scrum-summary { display:flex;gap:7px;flex-wrap:wrap;margin-top:10px; }
.scrum-summary span { font-family:var(--ui-font);font-size:9px;font-weight:800;color:#637083;background:#fff;border:1px solid #dfe5ec;border-radius:999px;padding:5px 8px; }
.scrum-columns { display:flex;align-items:flex-start;gap:16px;width:max-content;min-width:100%;padding-bottom:30px; }
.scrum-column { width:330px;flex:0 0 330px;min-height:590px; }
.scrum-column-actions { display:flex;align-items:center;gap:5px; }
.scrum-column-menu { border:0;background:transparent;color:#758195;border-radius:8px;min-width:30px;height:30px;cursor:pointer;font-weight:900;letter-spacing:.05em; }
.scrum-column-menu:hover { background:rgba(255,255,255,.8);color:#28364b; }
.scrum-card-list { min-height:96px;padding-bottom:4px; }
.scrum-quick-add { margin-top:8px; }
.scrum-quick-add-btn { width:100%;border:0;background:transparent;border-radius:10px;padding:9px 10px;text-align:left;color:#687587;font-family:var(--ui-font);font-size:11px;font-weight:750;cursor:pointer; }
.scrum-quick-add-btn:hover { background:rgba(255,255,255,.72);color:#344259; }
.scrum-inline-form { display:grid;gap:8px;background:white;border:1px solid #dfe5ec;border-radius:12px;padding:9px;box-shadow:0 5px 14px rgba(31,44,70,.09); }
.scrum-inline-form input { width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:9px 10px;outline:none;font-family:var(--ui-font); }
.scrum-inline-form input:focus { border-color:var(--accent);box-shadow:0 0 0 3px rgba(59,91,253,.10); }
.scrum-inline-form > div { display:flex;gap:6px; }
.scrum-inline-form .btn { min-height:30px;padding:6px 9px!important;font-size:10px; }
.scrum-labels { display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px; }
.scrum-label { max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:3px 7px;font-family:var(--ui-font);font-size:8px;font-weight:850;background:#edf2ff;color:#4058bd; }
.scrum-label.label-1 { background:#eef8f1;color:#39704d; }
.scrum-label.label-2 { background:#fff4dc;color:#92600c; }
.scrum-label.label-3 { background:#fff0f0;color:#a84040; }
.scrum-label.label-4 { background:#f3edff;color:#6b4db1; }
.scrum-add-column { width:220px;min-height:118px;flex:0 0 220px;border:1.5px dashed #c5cfdb;border-radius:16px;background:rgba(255,255,255,.48);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:16px;color:#6d798b;cursor:pointer;font-family:var(--ui-font);text-align:left; }
.scrum-add-column:hover { background:#fff;border-color:#97a8bd;color:#35445a; }
.scrum-add-column span { width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:white;box-shadow:0 2px 8px rgba(31,44,70,.08);font-size:18px; }
.scrum-add-column strong { font-size:12px; }
.scrum-add-column small { font-size:9px;line-height:1.35;color:#8a95a5; }
.scrum-card { cursor:grab; }
.scrum-card-meta:empty { display:none; }
@media (max-width:1100px){.scrum-column{width:300px;flex-basis:300px}.scrum-board{left:24px}.scrum-board-head{max-width:950px}}

/* ===== v2.3.6 — oneindig canvas, selectie & directere lijnen ===== */
.viewport {
  background:#fff;
}
.board-frame {
  background-color:#fff;
  background-image:radial-gradient(#cfd7e2 1.1px,transparent 1.1px);
  background-size:var(--scaled-grid,24px) var(--scaled-grid,24px);
  overflow:hidden;
}
.selection-marquee {
  position:absolute;
  z-index:60;
  pointer-events:none;
  border:1.5px solid rgba(101,84,207,.82);
  background:rgba(117,104,232,.105);
  border-radius:5px;
  box-shadow:0 0 0 1px rgba(255,255,255,.65) inset;
}
.board-item.selected {
  outline:2px solid var(--accent);
  outline-offset:3px;
}
/* Een lijn moet makkelijk te pakken zijn zonder pixeljagen. */
.connections .connection-hit {
  stroke-width:44!important;
}
.connections g:has(.connection-hit:hover) .connection-path {
  stroke-width:2.55;
}
.connection-bend-handle {
  r:13;
  stroke-width:3.2;
}
.connection-bend-handle:hover { r:15; }
