/* ═══════════════════════════════════════════════════════════
   ProjectRunner — Whiteboard
   Miro/Figma-style collaborative whiteboard, native dark theme
   ═══════════════════════════════════════════════════════════ */

/* ── Pane container (matches .miro-pane pattern) ────────────────────────────── */
.wb-pane {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.wb-pane.wb-active {
  display: flex;
}

/* ── Toolbar ─────────────────────────────────────────────────────────────────── */
.wb-toolbar {
  height: 50px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 3px;
  flex-shrink: 0;
  user-select: none;
  z-index: 200;
  overflow: hidden;
}

.wb-toolbar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 5px;
  flex-shrink: 0;
}

.wb-toolbar-spacer { flex: 1; }

.wb-toolbar-section {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Board selector button */
.wb-board-selector-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s;
}
.wb-board-selector-btn:hover { background: var(--bg-hover); }
.wb-board-selector-btn .wb-board-chevron {
  opacity: 0.5;
  flex-shrink: 0;
  font-size: 10px;
}

/* Tool buttons */
.wb-tool-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.1s, filter 0.1s;
  position: relative;
  flex-shrink: 0;
  /* Greyed-out emoji look */
  filter: grayscale(0.85) opacity(0.65);
}
.wb-tool-btn:hover {
  background: var(--bg-hover);
  filter: grayscale(0.2) opacity(1);
}
.wb-tool-btn.active {
  background: var(--accent-blue);
  filter: none;
  color: #fff;
}
.wb-tool-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* AI button */
.wb-ai-btn {
  border: 1px solid var(--accent-purple);
  background: rgba(188, 140, 255, 0.08);
  color: var(--accent-purple);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}
.wb-ai-btn:hover { background: rgba(188, 140, 255, 0.18); }
.wb-ai-btn.disabled {
  opacity: 0.5;
  cursor: default;
}
.wb-ai-btn.disabled:hover { background: rgba(188, 140, 255, 0.08); }

/* Zoom controls */
.wb-zoom-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.wb-zoom-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.wb-zoom-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 42px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background 0.1s;
}
.wb-zoom-label:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Online users in toolbar */
.wb-users-bar {
  display: flex;
  align-items: center;
  gap: -4px;
  padding-left: 8px;
}
.wb-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-left: -6px;
  cursor: default;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.wb-user-avatar:first-child { margin-left: 0; }

/* ── Canvas Viewport ─────────────────────────────────────────────────────────── */
.wb-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  cursor: default;
  background: #e8e8e8;
}

.wb-viewport.tool-pan        { cursor: grab; }
.wb-viewport:focus           { outline: none; } /* no focus ring when paste-focused */
.wb-viewport.tool-pan.panning { cursor: grabbing; }
.wb-viewport.tool-sticky,
.wb-viewport.tool-text,
.wb-viewport.tool-task        { cursor: crosshair; }
.wb-viewport.tool-rect,
.wb-viewport.tool-ellipse,
.wb-viewport.tool-frame       { cursor: crosshair; }
.wb-viewport.tool-arrow       { cursor: crosshair; }

/* ── Infinite Canvas ─────────────────────────────────────────────────────────── */
.wb-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  background: transparent; /* Grid is on the viewport, not the canvas */
}

/* ── Element Base ────────────────────────────────────────────────────────────── */
.wb-element {
  position: absolute;
  box-sizing: border-box;
  cursor: move;
  user-select: none;
  will-change: transform;
  /* Prevent type-class overflow:hidden from clipping anchor dots */
  overflow: visible !important;
}
.wb-element:hover .wb-element-hover-ring {
  opacity: 1;
}

/* Selection outline — prominent 2.5px ring with soft glow */
.wb-element.wb-selected::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2.5px solid #3b82f6;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.25);
}

/* Editing state — dashed ring while text is focused */
.wb-element.wb-editing::after {
  border-color: #3b82f6;
  border-style: dashed;
  opacity: 0.7;
}

/* ── Sticky Notes ────────────────────────────────────────────────────────────── */
.wb-sticky {
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.15);
}
.wb-sticky-header {
  height: 8px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.15);
}
.wb-sticky-body {
  flex: 1;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
}
.wb-sticky-text {
  flex: 1;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0,0,0,0.85);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  cursor: text;
  min-height: 20px;
  -webkit-user-modify: read-write;
  -webkit-user-select: text;
  user-select: text;
}
.wb-sticky-text:empty::before {
  content: attr(data-placeholder);
  opacity: 0.4;
  pointer-events: none;
}

/* Larger, clearly grabbable header bar */
.wb-sticky-header {
  height: 22px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.1);
  cursor: move;
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wb-sticky-header::before {
  content: '⠿';
  font-size: 12px;
  color: rgba(0,0,0,0.25);
  letter-spacing: 2px;
}

/* ── Shape Elements ───────────────────────────────────────────────────────────── */
.wb-shape {
  overflow: hidden;
}
.wb-shape-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
  word-break: break-word;
  outline: none;
  cursor: text;
  -webkit-user-modify: read-write;
}
.wb-shape[data-shape="ellipse"] .wb-shape-inner {
  border-radius: 50%;
}
.wb-shape[data-shape="triangle"] .wb-shape-inner {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* ── Text Elements ───────────────────────────────────────────────────────────── */
.wb-text {
  background: transparent;
  min-width: 80px;
  min-height: 24px;
}
.wb-text-inner {
  outline: none;
  color: #1a1a1a;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  width: 100%;
  min-height: 1.4em;
  cursor: text;
  -webkit-user-modify: read-write;
  -webkit-user-select: text;
  user-select: text;
}
.wb-text-inner:empty::before {
  content: 'Type something...';
  opacity: 0.35;
  pointer-events: none;
}

/* ── Task Cards ──────────────────────────────────────────────────────────────── */
.wb-task-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}
.wb-task-card-bar {
  height: 4px;
  flex-shrink: 0;
}
.wb-task-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100% - 4px);
  box-sizing: border-box;
}
.wb-task-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.wb-task-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.wb-task-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.wb-task-card-assignee {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Frame Elements ──────────────────────────────────────────────────────────── */
.wb-frame {
  background: rgba(99,155,255,0.05);
  border: 2px dashed rgba(99,155,255,0.35);
  border-radius: 6px;
  cursor: default;
  pointer-events: none;
}
/* Grab header bar at the top of the frame — this is the drag handle */
.wb-frame-grab-bar,
.wb-frame-inner-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: rgba(99,155,255,0.2);  /* Clearly visible, like sticky header */
  border-bottom: 1px solid rgba(99,155,255,0.35);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
  cursor: move;
  pointer-events: auto;
}
.wb-frame-grab-icon {
  font-size: 11px;
  color: rgba(59,130,246,0.7);
  flex-shrink: 0;
  pointer-events: none;
}
.wb-frame-label {
  font-size: 12px;
  font-weight: 700;
  color: #3b82f6;
  outline: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-user-modify: read-write;
  cursor: text;
  display: inline-block;
  transform-origin: left center;
  pointer-events: auto;
  user-select: text;
}

.wb-text-inner {
  user-select: text;
}
/* Anchor dots visible on frames */
.wb-element.wb-frame .wb-anchor { pointer-events: auto; }

/* ── Group Elements ──────────────────────────────────────────────────────────── */
.wb-group {
  background: rgba(88,166,255,0.04);
  border: 2px dashed rgba(88,166,255,0.35);
  border-radius: 8px;
  cursor: move;
}
.wb-group-label {
  position: absolute;
  top: -26px;
  left: -2px;
  font-size: 12px;
  font-weight: 700;
  color: #3b82f6;
  opacity: 0.75;
  outline: none;
  white-space: nowrap;
  -webkit-user-modify: read-write;
  cursor: text;
  pointer-events: auto;
  background: rgba(240,240,240,0.9);
  padding: 2px 6px;
  border-radius: 4px 4px 0 0;
}
.wb-group-label:empty::before { content: 'Group'; opacity: 0.4; pointer-events: none; }

/* ── Connection Anchor Dots ─────────────────────────────────────────────────── */
/* Appear on element hover; drag to create connectors */
.wb-anchor {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2.5px solid #fff;
  cursor: crosshair;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s, transform 0.1s;
  transform: scale(0.5);
  z-index: 500;  /* above element content but below resize handles */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.wb-element:hover .wb-anchor,
.wb-viewport.tool-arrow .wb-anchor {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.wb-anchor:hover {
  transform: scale(1.3) !important;
  background: #fff;
  border-color: #3b82f6;
}
/* Place anchors centred on each edge, offset outward */
.wb-anchor[data-dir="n"] { top: -10px;    left: calc(50% - 9px); }
.wb-anchor[data-dir="s"] { bottom: -10px; left: calc(50% - 9px); }
.wb-anchor[data-dir="e"] { right: -10px;  top: calc(50% - 9px); }
.wb-anchor[data-dir="w"] { left: -10px;   top: calc(50% - 9px); }

/* ── Off-screen user indicator ──────────────────────────────────────────── */
.wb-offscreen-indicator {
  position: absolute;
  z-index: 9400;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 5px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}
.wb-offscreen-arrow {
  font-size: 13px;
  line-height: 1;
}

/* ── Selection Resize Handles ────────────────────────────────────────────────── */
.wb-resize-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 2px solid var(--accent-blue);
  border-radius: 2px;
  z-index: 5000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.wb-resize-handle[data-dir="nw"] { top: -5px;  left: -5px;  cursor: nw-resize; }
.wb-resize-handle[data-dir="n"]  { top: -5px;  left: calc(50% - 4px); cursor: n-resize; }
.wb-resize-handle[data-dir="ne"] { top: -5px;  right: -5px; cursor: ne-resize; }
.wb-resize-handle[data-dir="e"]  { top: calc(50% - 4px); right: -5px; cursor: e-resize; }
.wb-resize-handle[data-dir="se"] { bottom: -5px; right: -5px; cursor: se-resize; }
.wb-resize-handle[data-dir="s"]  { bottom: -5px; left: calc(50% - 4px); cursor: s-resize; }
.wb-resize-handle[data-dir="sw"] { bottom: -5px; left: -5px;  cursor: sw-resize; }
.wb-resize-handle[data-dir="w"]  { top: calc(50% - 4px); left: -5px; cursor: w-resize; }

/* ── Selection Drag Box ──────────────────────────────────────────────────────── */
.wb-select-box {
  position: absolute;
  border: 1.5px solid var(--accent-blue);
  background: rgba(88, 166, 255, 0.07);
  pointer-events: none;
  z-index: 9000;
}

/* ── Remote User Cursors ─────────────────────────────────────────────────────── */
.wb-cursors-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9500;
}
.wb-cursor {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.08s linear;
}
.wb-cursor-icon {
  font-size: 20px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}
.wb-cursor-icon.is-pointing {
  transform: rotate(-135deg);
  transform-origin: 45% 55%;
}
.wb-cursor-label {
  position: absolute;
  top: 20px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 3px 8px 3px 5px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wb-cursor-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.wb-cursor-avatar.is-image {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.wb-cursor-name {
  display: inline-block;
}

/* ── Context Menu ────────────────────────────────────────────────────────────── */
.wb-context-menu {
  position: fixed;
  z-index: 99900;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  min-width: 185px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  animation: wb-menu-in 0.1s ease;
}
@keyframes wb-menu-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wb-context-item {
  padding: 7px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background 0.1s;
}
.wb-context-item:hover { background: var(--bg-hover); }
.wb-context-item.danger { color: var(--accent-red); }
.wb-context-item.danger:hover { background: rgba(248,81,73,0.1); }
.wb-context-shortcut {
  font-size: 11px;
  color: var(--text-muted);
}
.wb-context-sep {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 4px 0;
}

/* Color swatches in context menu */
.wb-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px 4px;
}
.wb-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s, border-color 0.1s;
  flex-shrink: 0;
}
.wb-color-swatch:hover { transform: scale(1.15); }
.wb-color-swatch.active { border-color: #fff; }

/* ── Board Dropdown ──────────────────────────────────────────────────────────── */
.wb-board-dropdown {
  position: fixed;
  z-index: 99800;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  animation: wb-menu-in 0.1s ease;
}
.wb-board-item {
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background 0.1s;
}
.wb-board-item:hover { background: var(--bg-hover); }
.wb-board-item.active { color: var(--accent-blue); }
.wb-board-item .wb-board-meta {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.wb-board-new-btn {
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent-blue);
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wb-board-new-btn:hover { background: var(--bg-hover); }

/* ── Task Picker Modal ───────────────────────────────────────────────────────── */
.wb-task-picker {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: wb-fade-in 0.15s ease;
}
@keyframes wb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wb-task-picker-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 520px;
  max-width: 94vw;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: wb-slide-up 0.15s ease;
}
@keyframes wb-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.wb-task-picker-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.wb-task-picker-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.wb-task-picker-search {
  padding: 10px 16px;
  flex-shrink: 0;
}
.wb-task-picker-search input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
}
.wb-task-picker-search input:focus {
  border-color: var(--accent-blue);
}
.wb-task-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 8px;
}
.wb-task-picker-item {
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
}
.wb-task-picker-item:hover { background: var(--bg-hover); }
.wb-task-picker-item-title {
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wb-task-picker-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 24px;
}

/* ── Board empty state ───────────────────────────────────────────────────────── */
.wb-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.wb-empty-state-icon {
  font-size: 48px;
  opacity: 0.3;
}
.wb-empty-state p {
  opacity: 0.6;
  max-width: 280px;
  text-align: center;
  line-height: 1.5;
}

/* Floating mini-toolbar — NO transition so it doesn't lag during pan/zoom */
.wb-float-toolbar {
  position: absolute;
  z-index: 9800;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  pointer-events: auto;
  white-space: nowrap;
  /* No animation — repositioned every frame, animation causes lag */
}
.wb-float-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.1s, color 0.1s;
}
.wb-float-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.wb-float-btn.danger:hover { background: rgba(248,81,73,0.12); color: var(--accent-red); }
.wb-float-sep { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }

/* ── SVG connectors ──────────────────────────────────────────────────────────── */
.wb-svg-layer {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  overflow: visible;
  pointer-events: none;
}
.wb-connector-line {
  fill: none;
  stroke-linecap: round;
}
.wb-connector-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  cursor: pointer;
  pointer-events: stroke;
}
.wb-connector-hit:hover + .wb-connector-line {
  stroke-width: 3;
}
.wb-arrow-preview-line {
  fill: none;
  stroke-dasharray: 6 4;
  stroke-linecap: round;
}

/* ── Draw preview (rect/ellipse/frame being drawn) ───────────────────────────── */
.wb-draw-preview {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 8000;
}
.wb-draw-preview.preview-rect,
.wb-draw-preview.preview-frame {
  border: 2px dashed var(--accent-blue);
  background: rgba(88,166,255,0.06);
  border-radius: 4px;
}
.wb-draw-preview.preview-ellipse {
  border: 2px dashed var(--accent-blue);
  background: rgba(88,166,255,0.06);
  border-radius: 50%;
}

/* ── Scrollbar in board dropdown ─────────────────────────────────────────────── */
.wb-board-dropdown::-webkit-scrollbar { width: 6px; }
.wb-board-dropdown::-webkit-scrollbar-track { background: transparent; }
.wb-board-dropdown::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

/* ── Rename board inline ─────────────────────────────────────────────────────── */
.wb-rename-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-blue);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 3px 8px;
  outline: none;
  min-width: 100px;
  max-width: 180px;
}
