/* Collaboration UI: share panel, peer cursors, name gate. */
.collab-panel {
  position: fixed;
  z-index: 1000;
  width: 340px;
  max-height: 70vh;
  overflow: auto;
  padding: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d9e1ec);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.18);
}
.collab-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.collab-row span { flex: 1; font-size: 13px; }
.collab-list { list-style: none; margin: 8px 0 0; padding: 0; }
.collab-list li { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.collab-list input { flex: 1; min-width: 0; font-size: 11px; padding: 3px 6px; }
.collab-perm { font-size: 11px; font-weight: 600; min-width: 34px; }
.collab-peers { margin-top: 12px; border-top: 1px solid var(--border, #d9e1ec); padding-top: 8px; }

#collabCursors { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.collab-cursor { position: absolute; top: 0; left: 0; will-change: transform; }
.collab-cursor svg path { fill: #0972d3; stroke: #fff; stroke-width: 1; }
.collab-cursor-name {
  position: absolute;
  left: 14px;
  top: 16px;
  padding: 1px 6px;
  font-size: 11px;
  white-space: nowrap;
  color: #fff;
  background: #0972d3;
  border-radius: 4px;
}

.collab-name-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 33, 61, 0.55);
}
.collab-name-box {
  width: 320px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
}
.collab-name-box h2 { margin: 0 0 6px; font-size: 18px; }
.collab-name-box p { margin: 0 0 14px; color: #5d6678; font-size: 13px; }
.collab-name-box input { width: 100%; padding: 8px; margin-bottom: 12px; box-sizing: border-box; }
.collab-name-box button { width: 100%; padding: 8px; }

/* Read-only share recipients cannot edit. */
.collab-readonly #editTools,
.collab-readonly #downloadButton,
.collab-readonly #shareButton { display: none; }
