/* node_modules/@plotai/graph-canvas/dist/graph-canvas.css */
.graph-canvas,
.graph-canvas *,
.canvas-toolbar,
.canvas-toolbar * {
  box-sizing: border-box;
}
.graph-canvas,
.canvas-toolbar {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.graph-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f6f8fa;
}
.node-label-input {
  position: absolute;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #2563eb;
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  z-index: 1;
}
.node-label-input::placeholder {
  color: #94a3b8;
}
.graph-canvas__error {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #dc2626;
  border-radius: 4px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  z-index: 1;
}
.graph-canvas .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.canvas-toolbar {
  flex: 0 0 288px;
  width: 288px;
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid #e2e8f0;
  background: #ffffff;
}
.toolbar-menu {
  padding: 16px;
}
.toolbar-menu__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.toolbar-group {
  margin-bottom: 20px;
}
.toolbar-group:last-child {
  margin-bottom: 0;
}
.toolbar-group__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toolbar-grid li {
  aspect-ratio: 1;
}
.toolbar-icon {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.toolbar-icon-drag-ghost {
  position: fixed;
  z-index: 2;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgb(15 23 42 / 25%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.canvas-layout {
  display: flex;
  height: 100%;
  width: 100%;
}
.canvas-layout .graph-pane {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}
.canvas-status {
  padding: 1.5rem;
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: #475569;
}
.canvas-failure {
  color: #b91c1c;
}
