/* node_modules/@xyflow/react/dist/style.css */
.react-flow {
  direction: ltr;
  --xy-edge-stroke-default: #b1b1b7;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #555;
  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;
  --xy-attribution-background-color-default: rgba(255, 255, 255, 0.5);
  --xy-minimap-background-color-default: #fff;
  --xy-minimap-mask-background-color-default: rgba(240, 240, 240, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #e2e2e2;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;
  --xy-background-color-default: transparent;
  --xy-background-pattern-dots-color-default: #91919a;
  --xy-background-pattern-lines-color-default: #eee;
  --xy-background-pattern-cross-color-default: #e2e2e2;
  background-color: var(--xy-background-color, var(--xy-background-color-default));
  --xy-node-color-default: inherit;
  --xy-node-border-default: 1px solid #1a192b;
  --xy-node-background-color-default: #fff;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #1a192b;
  --xy-node-border-radius-default: 3px;
  --xy-handle-background-color-default: #1a192b;
  --xy-handle-border-color-default: #fff;
  --xy-selection-background-color-default: rgba(0, 89, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(0, 89, 220, 0.8);
  --xy-controls-button-background-color-default: #fefefe;
  --xy-controls-button-background-color-hover-default: #f4f4f4;
  --xy-controls-button-color-default: inherit;
  --xy-controls-button-color-hover-default: inherit;
  --xy-controls-button-border-color-default: #eee;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);
  --xy-edge-label-background-color-default: #ffffff;
  --xy-edge-label-color-default: inherit;
  --xy-resize-background-color-default: #3367d9;
}
.react-flow.dark {
  --xy-edge-stroke-default: #3e3e3e;
  --xy-edge-stroke-width-default: 1;
  --xy-edge-stroke-selected-default: #727272;
  --xy-connectionline-stroke-default: #b1b1b7;
  --xy-connectionline-stroke-width-default: 1;
  --xy-attribution-background-color-default: rgba(150, 150, 150, 0.25);
  --xy-minimap-background-color-default: #141414;
  --xy-minimap-mask-background-color-default: rgba(60, 60, 60, 0.6);
  --xy-minimap-mask-stroke-color-default: transparent;
  --xy-minimap-mask-stroke-width-default: 1;
  --xy-minimap-node-background-color-default: #2b2b2b;
  --xy-minimap-node-stroke-color-default: transparent;
  --xy-minimap-node-stroke-width-default: 2;
  --xy-background-color-default: #141414;
  --xy-background-pattern-dots-color-default: #777;
  --xy-background-pattern-lines-color-default: #777;
  --xy-background-pattern-cross-color-default: #777;
  --xy-node-color-default: #f8f8f8;
  --xy-node-border-default: 1px solid #3c3c3c;
  --xy-node-background-color-default: #1e1e1e;
  --xy-node-group-background-color-default: rgba(240, 240, 240, 0.25);
  --xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, 0.08);
  --xy-node-boxshadow-selected-default: 0 0 0 0.5px #999;
  --xy-handle-background-color-default: #bebebe;
  --xy-handle-border-color-default: #1e1e1e;
  --xy-selection-background-color-default: rgba(200, 200, 220, 0.08);
  --xy-selection-border-default: 1px dotted rgba(200, 200, 220, 0.8);
  --xy-controls-button-background-color-default: #2b2b2b;
  --xy-controls-button-background-color-hover-default: #3e3e3e;
  --xy-controls-button-color-default: #f8f8f8;
  --xy-controls-button-color-hover-default: #fff;
  --xy-controls-button-border-color-default: #5b5b5b;
  --xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);
  --xy-edge-label-background-color-default: #141414;
  --xy-edge-label-color-default: #f8f8f8;
}
.react-flow__background {
  background-color: var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));
  pointer-events: none;
  z-index: -1;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
}
.react-flow__pane.draggable {
  cursor: grab;
}
.react-flow__pane.dragging {
  cursor: grabbing;
}
.react-flow__pane.selection {
  cursor: pointer;
}
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow__edge-path {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
  stroke-width: var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));
  fill: none;
}
.react-flow__connection-path {
  stroke: var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));
  stroke-width: var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));
  fill: none;
}
.react-flow .react-flow__edges {
  position: absolute;
}
.react-flow .react-flow__edges svg {
  overflow: visible;
  position: absolute;
  pointer-events: none;
}
.react-flow__edge {
  pointer-events: visibleStroke;
}
.react-flow__edge.selectable {
  cursor: pointer;
}
.react-flow__edge.animated path {
  stroke-dasharray: 5;
  animation: dashdraw 0.5s linear infinite;
}
.react-flow__edge.animated path.react-flow__edge-interaction {
  stroke-dasharray: none;
  animation: none;
}
.react-flow__edge.inactive {
  pointer-events: none;
}
.react-flow__edge.selected,
.react-flow__edge:focus,
.react-flow__edge:focus-visible {
  outline: none;
}
.react-flow__edge.selected .react-flow__edge-path,
.react-flow__edge.selectable:focus .react-flow__edge-path,
.react-flow__edge.selectable:focus-visible .react-flow__edge-path {
  stroke: var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default));
}
.react-flow__edge-textwrapper {
  pointer-events: all;
}
.react-flow__edge .react-flow__edge-text {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.react-flow__arrowhead polyline {
  stroke: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}
.react-flow__arrowhead polyline.arrowclosed {
  fill: var(--xy-edge-stroke, var(--xy-edge-stroke-default));
}
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
  stroke-dasharray: 5;
  animation: dashdraw 0.5s linear infinite;
}
svg.react-flow__connectionline {
  z-index: 1001;
  overflow: visible;
  position: absolute;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: default;
}
.react-flow__node.selectable {
  cursor: pointer;
}
.react-flow__node.draggable {
  cursor: grab;
  pointer-events: all;
}
.react-flow__node.draggable.dragging {
  cursor: grabbing;
}
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
  position: absolute;
  pointer-events: all;
  cursor: grab;
}
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background-color: var(--xy-handle-background-color, var(--xy-handle-background-color-default));
  border: 1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));
  border-radius: 100%;
}
.react-flow__handle.connectingfrom {
  pointer-events: all;
}
.react-flow__handle.connectionindicator {
  pointer-events: all;
  cursor: crosshair;
}
.react-flow__handle-bottom {
  top: auto;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}
.react-flow__handle-top {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.react-flow__handle-left {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}
.react-flow__handle-right {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__pane.selection .react-flow__panel {
  pointer-events: none;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
  top: 0;
}
.react-flow__panel.bottom {
  bottom: 0;
}
.react-flow__panel.top.center,
.react-flow__panel.bottom.center {
  left: 50%;
  transform: translateX(-15px) translateX(-50%);
}
.react-flow__panel.left {
  left: 0;
}
.react-flow__panel.right {
  right: 0;
}
.react-flow__panel.left.center,
.react-flow__panel.right.center {
  top: 50%;
  transform: translateY(-15px) translateY(-50%);
}
.react-flow__attribution {
  font-size: 10px;
  background: var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
  text-decoration: none;
  color: #999;
}
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  left: 0;
  top: 0;
}
.react-flow__viewport-portal {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.react-flow__minimap {
  background: var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) );
}
.react-flow__minimap-svg {
  display: block;
}
.react-flow__minimap-mask {
  fill: var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );
  stroke: var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );
  stroke-width: var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) );
}
.react-flow__minimap-node {
  fill: var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );
  stroke: var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );
  stroke-width: var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) );
}
.react-flow__background-pattern.dots {
  fill: var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) );
}
.react-flow__background-pattern.lines {
  stroke: var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) );
}
.react-flow__background-pattern.cross {
  stroke: var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) );
}
.react-flow__controls {
  display: flex;
  flex-direction: column;
  box-shadow: var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default));
}
.react-flow__controls.horizontal {
  flex-direction: row;
}
.react-flow__controls-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 26px;
  width: 26px;
  padding: 4px;
  border: none;
  background: var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));
  border-bottom: 1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );
  color: var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.react-flow__controls-button svg {
  width: 100%;
  max-width: 12px;
  max-height: 12px;
  fill: currentColor;
}
.react-flow__edge.updating .react-flow__edge-path {
  stroke: #777;
}
.react-flow__edge-text {
  font-size: 10px;
}
.react-flow__node.selectable:focus,
.react-flow__node.selectable:focus-visible {
  outline: none;
}
.react-flow__node-input,
.react-flow__node-default,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: var(--xy-node-border-radius, var(--xy-node-border-radius-default));
  width: 150px;
  font-size: 12px;
  color: var(--xy-node-color, var(--xy-node-color-default));
  text-align: center;
  border: var(--xy-node-border, var(--xy-node-border-default));
  background-color: var(--xy-node-background-color, var(--xy-node-background-color-default));
}
.react-flow__node-input.selectable:hover,
.react-flow__node-default.selectable:hover,
.react-flow__node-output.selectable:hover,
.react-flow__node-group.selectable:hover {
  box-shadow: var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default));
}
.react-flow__node-input.selectable.selected,
.react-flow__node-input.selectable:focus,
.react-flow__node-input.selectable:focus-visible,
.react-flow__node-default.selectable.selected,
.react-flow__node-default.selectable:focus,
.react-flow__node-default.selectable:focus-visible,
.react-flow__node-output.selectable.selected,
.react-flow__node-output.selectable:focus,
.react-flow__node-output.selectable:focus-visible,
.react-flow__node-group.selectable.selected,
.react-flow__node-group.selectable:focus,
.react-flow__node-group.selectable:focus-visible {
  box-shadow: var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default));
}
.react-flow__node-group {
  background-color: var(--xy-node-group-background-color, var(--xy-node-group-background-color-default));
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: var(--xy-selection-background-color, var(--xy-selection-background-color-default));
  border: var(--xy-selection-border, var(--xy-selection-border-default));
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible,
.react-flow__selection:focus,
.react-flow__selection:focus-visible {
  outline: none;
}
.react-flow__controls-button:hover {
  background: var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );
  color: var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) );
}
.react-flow__controls-button:disabled {
  pointer-events: none;
}
.react-flow__controls-button:disabled svg {
  fill-opacity: 0.4;
}
.react-flow__controls-button:last-child {
  border-bottom: none;
}
.react-flow__controls.horizontal .react-flow__controls-button {
  border-bottom: none;
  border-right: 1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );
}
.react-flow__controls.horizontal .react-flow__controls-button:last-child {
  border-right: none;
}
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
.react-flow__resize-control.handle {
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  translate: -50% -50%;
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
.react-flow__resize-control.line {
  border-color: var(--xy-resize-background-color, var(--xy-resize-background-color-default));
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}
.react-flow__edge-textbg {
  fill: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}
.react-flow__edge-text {
  fill: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
}

/* app/javascript/board_editor.css */
:root {
  --selected-bg: #dbeafe;
  --selected-border: #3b82f6;
}
.board-editor {
  display: flex;
  height: 600px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.board-editor-sidebar {
  width: 280px;
  min-width: 280px;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.board-editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.board-editor-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
}
.board-editor-status {
  padding: 16px;
  font-size: 14px;
  color: #6b7280;
}
.board-editor-error {
  color: #dc2626;
}
.board-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
  overflow-x: auto;
}
.board-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
}
.board-tab:hover {
  color: #374151;
  background: #f3f4f6;
}
.board-tab--active {
  color: #111827;
  border-bottom-color: #3b82f6;
  background: #fff;
}
.board-tab--editing {
  border-bottom: 2px solid #3b82f6;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  outline: none;
  width: 120px;
}
.board-tab[draggable=true] {
  cursor: grab;
}
.board-tab[draggable=true]:active {
  cursor: grabbing;
}
.board-tab--dragging {
  opacity: 0.4;
}
.board-tab--drop-target {
  box-shadow: inset 2px 0 0 #3b82f6;
}
.board-tab--new {
  color: #9ca3af;
  font-size: 16px;
  padding: 8px 12px;
}
.board-tab--new:hover {
  color: #3b82f6;
}
.board-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
  font-size: 13px;
}
.board-toolbar-status {
  font-size: 12px;
  color: #6b7280;
}
.board-toolbar-status--saved {
  color: #059669;
}
.board-toolbar-status--saving {
  color: #d97706;
}
.board-toolbar-status--error {
  color: #dc2626;
}
.board-toolbar-spacer {
  flex: 1;
}
.board-toolbar-btn {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
}
.board-toolbar-btn:hover:not(:disabled) {
  border-color: #9ca3af;
  background: #f9fafb;
}
.board-toolbar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.board-toolbar-btn--save {
  border-color: #d97706;
  color: #d97706;
}
.board-toolbar-btn--save:hover {
  background: #fef3c7;
}
.board-toolbar-btn--delete:hover:not(:disabled) {
  color: #dc2626;
  border-color: #fca5a5;
}
.board-toolbar-btn--signup {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  text-decoration: none;
}
.board-toolbar-btn--signup:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.board-toolbar-private {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
}
.board-toolbar-private input {
  cursor: pointer;
}
.board-toolbar-slug {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}
.board-toolbar-slug label {
  font-weight: 600;
}
.board-toolbar-slug-input {
  padding: 2px 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  width: 140px;
}
.board-toolbar-slug-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.sidebar-tabs {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sidebar-tabs-bar {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  overflow-x: auto;
}
.sidebar-tab {
  flex: auto;
  padding: 8px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.sidebar-tab:hover {
  color: #374151;
  background: #f9fafb;
}
.sidebar-tab--active {
  color: #111827;
  border-bottom-color: #3b82f6;
}
.sidebar-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.sidebar-tabs-content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.connections-panel-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.connections-panel-section-title {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}
.connections-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.connections-panel-item {
  border-bottom: 1px solid #f3f4f6;
}
.connections-panel-item--selected {
  background-color: var(--selected-bg);
  border-left: 3px solid var(--selected-border);
}
.connections-panel-item--has-issues {
  border-left: 3px solid #fca5a5;
}
.connections-panel-item--has-issues.connections-panel-item--selected {
  border-left-color: #dc2626;
}
.connections-panel-item--orphan {
  opacity: 0.7;
}
.connections-panel-item-header {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}
.connections-panel-item-header:hover {
  background: #f9fafb;
}
.connections-panel-item--selected .connections-panel-item-header:hover {
  background: transparent;
}
.connections-panel-devices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}
.connections-panel-device {
  font-weight: 600;
  color: #111827;
}
.connections-panel-port {
  color: #6b7280;
}
.connections-panel-arrow {
  color: #9ca3af;
  margin: 0 2px;
}
.connections-panel-cable-badge {
  display: inline-block;
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
}
.connections-panel-cable-group {
  font-weight: 600;
  color: #4b5563;
}
.connections-panel-chain {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.connections-panel-chain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 2px 4px;
  background: #f3f4f6;
  border-radius: 3px;
}
.connections-panel-chain-label {
  color: #374151;
}
.connections-panel-chain-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
}
.connections-panel-chain-remove:hover {
  color: #ef4444;
}
.connections-panel-chain-add {
  background: none;
  border: 1px dashed #d1d5db;
  border-radius: 3px;
  cursor: pointer;
  color: #6b7280;
  font-size: 11px;
  padding: 4px 8px;
  text-align: left;
}
.connections-panel-chain-add:hover {
  border-color: #9ca3af;
  color: #374151;
}
.connections-panel-notes {
  list-style: none;
  margin: 0;
  padding: 0 12px 4px;
}
.connections-panel-note {
  font-size: 12px;
  padding-left: 8px;
  margin-top: 2px;
}
.connections-panel-note--error {
  color: #dc2626;
  border-left: 2px solid #fca5a5;
}
.connections-panel-note--info {
  color: #d97706;
  border-left: 2px solid #fcd34d;
}
.connections-panel-actions {
  padding: 4px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.connections-panel-cable-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.connections-panel-cable-loading {
  font-size: 12px;
  color: #6b7280;
  padding: 4px 0;
}
.connections-panel-delete {
  width: 100%;
  padding: 4px 8px;
  background: none;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  font-size: 11px;
  color: #dc2626;
  cursor: pointer;
}
.connections-panel-delete:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.connections-panel-total-draw {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  border-top: 1px solid #e5e7eb;
}
.react-flow__edge.selected .react-flow__edge-path {
  stroke-width: 4;
  filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5));
}
.issues-panel-section-title {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}
.issues-panel-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #059669;
}
.issues-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.issues-panel-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.3s ease;
}
.issues-panel-item--highlighted {
  background-color: #fef2f2;
}
.issues-panel-connection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: 12px;
  margin-bottom: 4px;
}
.issues-panel-device {
  font-weight: 600;
  color: #111827;
}
.issues-panel-port {
  color: #6b7280;
}
.issues-panel-arrow {
  color: #9ca3af;
  margin: 0 2px;
}
.issues-panel-notes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.issues-panel-note {
  font-size: 12px;
  padding-left: 8px;
  margin-top: 2px;
}
.issues-panel-note--error {
  color: #dc2626;
  border-left: 2px solid #fca5a5;
}
.issues-panel-note--info {
  color: #d97706;
  border-left: 2px solid #fcd34d;
}
.parts-list-panel {
  padding: 8px 0;
}
.parts-list-panel-section-title {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px 4px;
}
.parts-list-panel-group {
  padding: 0 12px 8px;
}
.parts-list-panel-group-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.parts-list-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.parts-list-panel-item {
  padding: 4px 12px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}
.parts-list-panel-item--selected {
  background-color: var(--selected-bg);
  border-left: 3px solid var(--selected-border);
  padding-left: 9px;
}
.parts-list-panel-device-label {
  font-size: 10px;
  font-style: italic;
  color: #9ca3af;
  margin-top: 1px;
}
.parts-list-panel-item:last-child {
  border-bottom: none;
}
.parts-list-panel-quantity {
  color: #6b7280;
  font-weight: 600;
}
.parts-list-panel-cable-type {
  flex: 1;
}
.parts-list-panel-cable-count {
  color: #6b7280;
  font-weight: 600;
  margin-left: 8px;
}
.parts-list-panel-cable-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.parts-list-panel-cable-default,
.parts-list-panel-cable-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.parts-list-panel-cable-alt-items {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.parts-list-panel-cable-alt-item + .parts-list-panel-cable-alt-item::before {
  content: "+ ";
  color: #9ca3af;
}
.parts-list-panel-cable-toggle {
  background: none;
  border: none;
  font-size: 10px;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.parts-list-panel-cable-toggle:hover {
  text-decoration: underline;
}
.parts-list-panel-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.parts-list-panel-loading {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.parts-list-panel-signup {
  padding: 24px 16px;
  text-align: center;
}
.parts-list-panel-signup-text {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}
.parts-list-panel-signup-link {
  display: inline-block;
  padding: 8px 16px;
  background: #2563eb;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.parts-list-panel-signup-link:hover {
  background: #1d4ed8;
}
.parts-list-panel-download {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.parts-list-panel-download-link {
  flex: 1;
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: #2563eb;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.parts-list-panel-download-link:hover {
  background: #1d4ed8;
}
.device-catalog {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.device-catalog-header {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.device-catalog-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.device-catalog-filter {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}
.device-catalog-filter:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.device-catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px 10px 8px;
}
.device-catalog-chip {
  padding: 2px 8px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  font-size: 11px;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
}
.device-catalog-chip:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}
.device-catalog-chip--active {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}
.device-catalog-groups {
  flex: 1;
  overflow-y: auto;
}
.device-catalog-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  text-align: left;
}
.device-catalog-group-header:hover {
  background: #f3f4f6;
}
.device-catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.device-catalog-item {
  padding: 8px 12px 8px 24px;
  cursor: grab;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
}
.device-catalog-item:hover {
  background: #eff6ff;
}
.device-catalog-item:active {
  cursor: grabbing;
}
.device-catalog-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}
.device-catalog-item-manufacturer {
  font-size: 11px;
  color: #6b7280;
}
.device-catalog-system {
  list-style: none;
}
.device-catalog-system-header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 20px;
  cursor: grab;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
}
.device-catalog-system-header:hover {
  background: #f0e6ff;
}
.device-catalog-system-header:active {
  cursor: grabbing;
}
.device-catalog-system-toggle {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  font-size: 10px;
  color: #6b7280;
  flex-shrink: 0;
}
.device-catalog-system-arrow {
  font-size: 10px;
}
.device-catalog-system-info {
  flex: 1;
  min-width: 0;
}
.device-catalog-system-name {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}
.device-catalog-system-hint {
  font-size: 10px;
  color: #8b5cf6;
}
.device-catalog-system-devices {
  list-style: none;
  margin: 0;
  padding: 0;
}
.device-catalog-item--nested {
  padding-left: 40px;
}
.cable-node {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  border: 1px solid #9ca3af;
  background: #fff;
  cursor: pointer;
}
.cable-node--signal {
  border-color: #9ca3af;
}
.cable-node--power {
  border-color: #ef4444;
}
.cable-node:has([data-handleid=plug-out-1]) {
  height: 16px;
}
.cable-node:has([data-handleid=plug-out-2]) {
  height: 24px;
}
.cable-node:has([data-handleid=plug-out-3]) {
  height: 32px;
}
.cable-node:has([data-handleid=plug-out-4]) {
  height: 40px;
}
.cable-node--hidden {
  width: 1px;
  height: 1px;
  border: none;
  opacity: 0;
}
.cable-node .react-flow__handle {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  background: transparent;
  border: none;
}
.device-node {
  position: relative;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  min-width: 160px;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.device-node-header {
  padding: 8px 12px 4px;
  border-bottom: 1px solid #e5e7eb;
}
.device-node-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.device-node-manufacturer {
  font-size: 11px;
  color: #6b7280;
}
.device-node-label {
  font-size: 10px;
  font-style: italic;
  color: #9ca3af;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-node-label-placeholder {
  opacity: 0.5;
}
.device-node-label-input {
  font-size: 10px;
  font-style: italic;
  color: #374151;
  margin-top: 1px;
  padding: 1px 4px;
  border: 1px solid #3b82f6;
  border-radius: 3px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}
.device-node-body {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  gap: 12px;
}
.device-node-ports-left,
.device-node-ports-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.device-node-ports-right {
  align-items: flex-end;
}
.device-node-ports-top,
.device-node-ports-bottom {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 4px 12px;
}
.device-node-ports-top {
  border-bottom: 1px solid #e5e7eb;
}
.device-node-ports-bottom {
  border-top: 1px solid #e5e7eb;
}
.device-node-port {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  min-height: 24px;
}
.device-node-port--top,
.device-node-port--bottom {
  flex-direction: column;
  padding: 6px 4px;
  min-height: auto;
}
.device-node-port-label {
  font-size: 11px;
  color: #4b5563;
}
.device-node-phantom {
  font-size: 9px;
  line-height: 1;
  cursor: help;
}
.device-node-port--excluded .device-node-port-label {
  text-decoration: line-through;
  opacity: 0.45;
}
.device-node-port--excluded .device-node-phantom {
  opacity: 0.45;
}
.port-excluded {
  opacity: 0.3;
  pointer-events: auto;
}
.parts-list-panel-port-detail {
  list-style: none;
  border-left: 3px solid #3b82f6;
  margin: 0 0 4px 8px;
}
.port-detail-panel {
  padding: 12px;
}
.port-detail-header {
  margin-bottom: 12px;
}
.port-detail-name {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}
.port-detail-info {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.port-detail-device {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.port-detail-exclude-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.port-detail-note-field {
  margin-top: 8px;
}
.port-detail-note-label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}
.port-detail-note-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
}
.port-detail-note-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}
.device-node-power-spec {
  font-size: 9px;
  color: #9ca3af;
  white-space: nowrap;
}
.device-node-port--left .port-handle {
  position: absolute !important;
  left: -7px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.device-node-port--right .port-handle {
  position: absolute !important;
  right: -7px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.device-node-port--left .port-handle:hover,
.device-node-port--right .port-handle:hover {
  transform: translateY(-50%) scale(1.4) !important;
}
.device-node-port--top .port-handle {
  position: absolute !important;
  top: -7px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.device-node-port--bottom .port-handle {
  position: absolute !important;
  bottom: -7px !important;
  top: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.device-node-port--top .port-handle:hover,
.device-node-port--bottom .port-handle:hover {
  transform: translateX(-50%) scale(1.3) !important;
}
.device-node-port--left .port-handle.port-connector-midi-din {
  transform: translateY(-50%) rotate(45deg) !important;
}
.device-node-port--left .port-handle.port-connector-midi-din:hover {
  transform: translateY(-50%) rotate(45deg) scale(1.4) !important;
}
.device-node-port--right .port-handle.port-connector-midi-din {
  transform: translateY(-50%) rotate(45deg) !important;
}
.device-node-port--right .port-handle.port-connector-midi-din:hover {
  transform: translateY(-50%) rotate(45deg) scale(1.4) !important;
}
.port-handle {
  width: 14px !important;
  height: 14px !important;
  background: #6b7280 !important;
  border: 2px solid #fff !important;
  cursor: crosshair;
  transition: background 0.15s, transform 0.15s;
}
.port-handle:hover {
  background: #3b82f6 !important;
  transform: scale(1.4);
  z-index: 10;
}
.port-handle.port-audio {
  border-radius: 50% !important;
}
.port-handle.port-midi {
  border-radius: 2px !important;
  transform: rotate(45deg);
  width: 12px !important;
  height: 12px !important;
}
.port-handle.port-midi:hover {
  transform: rotate(45deg) scale(1.4);
}
.port-handle.port-control {
  border-radius: 2px !important;
}
.port-handle.port-power {
  background: #6b7280 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.port-handle.port-power:hover {
  background: #ef4444 !important;
}
.port-power-polarity {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}
.port-handle.port-power-barrel-sm {
  border-radius: 50% !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #fff !important;
}
.port-handle.port-power-barrel-lg {
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #fff !important;
}
.port-handle.port-power-ac {
  border-radius: 2px !important;
  width: 20px !important;
  height: 12px !important;
  border: 2px solid #fff !important;
}
.port-handle.port-power-usb {
  border-radius: 3px !important;
  width: 12px !important;
  height: 14px !important;
  border: 2px solid #fff !important;
}
.port-handle.port-power-other {
  background: none !important;
  border: 2px dashed #6b7280 !important;
  border-radius: 3px !important;
  width: 16px !important;
  height: 16px !important;
}
.port-handle.port-power-other:hover {
  background: none !important;
  border-color: #ef4444 !important;
}
.port-handle.port-power-other .port-power-polarity {
  color: #6b7280;
}
.port-handle.port-power-other:hover .port-power-polarity {
  color: #ef4444;
}
.port-handle.port-connector-quarter-inch {
  border-radius: 50% !important;
}
.port-handle.port-connector-eighth-inch {
  border-radius: 50% !important;
  width: 10px !important;
  height: 10px !important;
}
.port-handle.port-connector-xlr {
  border-radius: 3px !important;
  width: 16px !important;
  height: 12px !important;
}
.port-handle.port-connector-xlr-combo {
  border-radius: 3px !important;
  width: 16px !important;
  height: 12px !important;
  position: relative;
}
.port-handle.port-connector-xlr-combo::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.port-handle.port-connector-speakon {
  border-radius: 0 !important;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  width: 16px !important;
  height: 14px !important;
  border: none !important;
}
.port-handle.port-connector-midi-din {
  border-radius: 2px !important;
  transform: rotate(45deg);
  width: 12px !important;
  height: 12px !important;
}
.port-handle.port-connector-midi-din:hover {
  transform: rotate(45deg) scale(1.4);
}
.port-handle.port-connector-proprietary {
  background: none !important;
  border: 2px dashed #9ca3af !important;
  border-radius: 3px !important;
  width: 14px !important;
  height: 14px !important;
}
.port-handle.port-connector-proprietary:hover {
  background: none !important;
  border-color: #3b82f6 !important;
}
.port-handle.port-connector-mini-xlr {
  border-radius: 3px !important;
  width: 12px !important;
  height: 9px !important;
}
.port-handle.port-connector-usb {
  border-radius: 3px !important;
  width: 12px !important;
  height: 14px !important;
}
.port-handle.port-connector-barrel {
  border-radius: 0 !important;
  border: none !important;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  width: 16px !important;
  height: 14px !important;
}
.port-handle.port-audio.port-connector-wireless {
  width: 16px !important;
  height: 16px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
  position: relative;
}
.port-handle.port-connector-wireless::before,
.port-handle.port-connector-wireless::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
}
.port-handle.port-connector-wireless::before {
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-top-color: var(--wireless-color, #3b82f6);
  border-left-color: var(--wireless-color, #3b82f6);
  border-width: 2px;
  transform: rotate(135deg);
}
.port-handle.port-connector-wireless::after {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  bottom: 4px;
  border-top-color: var(--wireless-color, #3b82f6);
  border-left-color: var(--wireless-color, #3b82f6);
  border-width: 2px;
  transform: rotate(135deg);
}
.port-handle.port-connector-wireless.port-level-instrument {
  --wireless-color: #3b82f6;
}
.port-handle.port-connector-wireless.port-level-instrument:hover {
  --wireless-color: #2563eb;
}
.port-handle.port-connector-wireless.port-level-mic {
  --wireless-color: #8b5cf6;
}
.port-handle.port-connector-wireless.port-level-mic:hover {
  --wireless-color: #7c3aed;
}
.port-handle.port-connector-wireless.port-level-line {
  --wireless-color: #22c55e;
}
.port-handle.port-connector-wireless.port-level-line:hover {
  --wireless-color: #16a34a;
}
.port-handle.port-connector-wireless.port-level-speaker {
  --wireless-color: #f97316;
}
.port-handle.port-connector-wireless.port-level-speaker:hover {
  --wireless-color: #ea580c;
}
.port-handle.port-level-instrument {
  background: #3b82f6 !important;
}
.port-handle.port-level-instrument:hover {
  background: #2563eb !important;
}
.port-handle.port-level-mic {
  background: #8b5cf6 !important;
}
.port-handle.port-level-mic:hover {
  background: #7c3aed !important;
}
.port-handle.port-level-line {
  background: #22c55e !important;
}
.port-handle.port-level-line:hover {
  background: #16a34a !important;
}
.port-handle.port-level-speaker {
  background: #f97316 !important;
}
.port-handle.port-level-speaker:hover {
  background: #ea580c !important;
}
.port-handle.port-level-mic-line {
  background:
    linear-gradient(
      135deg,
      #8b5cf6 50%,
      #22c55e 50%) !important;
}
.port-handle.port-level-mic-line:hover {
  background:
    linear-gradient(
      135deg,
      #7c3aed 50%,
      #16a34a 50%) !important;
}
.port-handle.port-connector-wireless[class*=port-level-] {
  background: none !important;
}
.port-handle.port-midi {
  background: #eab308 !important;
}
.port-handle.port-midi:hover {
  background: #ca8a04 !important;
}
.port-handle.port-control {
  background: #14b8a6 !important;
}
.port-handle.port-control:hover {
  background: #0d9488 !important;
}
.signal-legend {
  border-top: 1px solid #e5e7eb;
  padding: 8px 16px;
  font-size: 11px;
  background: #fafafa;
}
.signal-legend-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.signal-legend-section-title {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.signal-legend-subsections {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.signal-legend-subsection-title {
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.signal-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
}
.signal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.signal-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.signal-legend-swatch--circle {
  border-radius: 50%;
}
.signal-legend-swatch--split-mic-line {
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #8b5cf6 50%,
      #22c55e 50%) !important;
}
.signal-legend-swatch--circle-sm {
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.signal-legend-swatch--rounded-rect {
  border-radius: 3px;
  width: 14px;
  height: 9px;
}
.signal-legend-swatch--diamond {
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  border-radius: 1px;
}
.signal-legend-swatch--square {
  border-radius: 2px;
}
.signal-legend-swatch--rounded-square {
  border-radius: 3px;
  width: 9px;
  height: 11px;
}
.signal-legend-swatch--xlr-combo {
  border-radius: 3px;
  width: 14px;
  height: 9px;
  background:
    linear-gradient(
      to right,
      #6b7280 50%,
      transparent 50%) !important;
  border: 1px solid #6b7280;
  position: relative;
}
.signal-legend-swatch--xlr-combo::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b7280;
}
.signal-legend-swatch--mini-rounded-rect {
  border-radius: 3px;
  width: 11px;
  height: 7px;
}
.signal-legend-swatch--other {
  border-radius: 2px;
  width: 10px;
  height: 10px;
  background: none !important;
  border: 2px dashed #9ca3af;
}
.signal-legend-swatch--hexagon {
  border-radius: 0;
  border: none;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  width: 12px;
  height: 10px;
}
.signal-legend-swatch--power-barrel-sm {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.signal-legend-swatch--power-barrel-lg {
  border-radius: 50%;
  width: 13px;
  height: 13px;
}
.signal-legend-swatch--power-ac {
  border-radius: 2px;
  width: 14px;
  height: 8px;
}
.signal-legend-swatch--power-usb {
  border-radius: 3px;
  width: 9px;
  height: 11px;
}
.signal-legend-swatch--power-other {
  border-radius: 2px;
  width: 10px;
  height: 10px;
  background: none !important;
  border: 2px dashed #6b7280;
}
.signal-legend-swatch.signal-legend-swatch--wireless {
  width: 14px;
  height: 14px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  position: relative;
  overflow: visible;
}
.signal-legend-swatch--wireless::before,
.signal-legend-swatch--wireless::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 50%;
  border-style: solid;
  border-color: transparent;
}
.signal-legend-swatch--wireless::before {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-top-color: #6b7280;
  border-left-color: #6b7280;
  border-width: 2px;
  transform: rotate(135deg);
}
.signal-legend-swatch--wireless::after {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  bottom: 3px;
  border-top-color: #6b7280;
  border-left-color: #6b7280;
  border-width: 2px;
  transform: rotate(135deg);
}
.signal-legend-label {
  color: #4b5563;
}
.board-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.board-editor-save-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
}
.board-editor-save-status--saved {
  color: #059669;
}
.board-editor-save-status--saving {
  color: #d97706;
}
.board-editor-save-status--error {
  color: #dc2626;
}
button.board-editor-save-status--unsaved {
  border: 1px solid #d97706;
  cursor: pointer;
}
button.board-editor-save-status--unsaved:hover {
  background: #fef3c7;
}
.board-editor-signup-btn {
  padding: 6px 14px;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.board-editor-signup-btn:hover {
  background: #1d4ed8;
}
.board-editor-undo-btn,
.board-editor-redo-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.board-editor-undo-btn:hover,
.board-editor-redo-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.board-editor-copy-btn {
  padding: 6px 14px;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.board-editor-copy-btn:hover {
  background: #1d4ed8;
}
.board-editor-copy-btn--disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.board-editor-copy-btn--disabled:hover {
  background: #9ca3af;
}
.board-editor-share-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.board-editor-share-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.cable-picker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cable-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.cable-picker-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.cable-picker-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.cable-picker-close:hover {
  color: #111827;
}
.cable-picker-loading {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.cable-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.cable-picker-item button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.cable-picker-item button:hover {
  background: #f3f4f6;
}
.cable-picker-item--none button {
  color: #6b7280;
  font-style: italic;
}
.cable-picker-type {
  color: #6b7280;
  font-size: 12px;
}
.cable-picker-actions {
  padding: 8px 14px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.cable-picker-delete {
  width: 100%;
  padding: 6px 12px;
  background: none;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  font-size: 12px;
  color: #dc2626;
  cursor: pointer;
}
.cable-picker-delete:hover {
  background: #fef2f2;
  border-color: #dc2626;
}
.warning-edge-label {
  cursor: pointer;
}
.warning-edge-label:hover {
  transform: scale(1.2);
}
.info-edge-label {
  cursor: pointer;
}
.info-edge-label:hover {
  transform: scale(1.2);
}
.signal-boundary-node {
  position: relative;
  background: #fefce8;
  border: 2px solid #ca8a04;
  border-radius: 8px;
  min-width: 120px;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
}
.signal-boundary-node--input {
  background: #f0fdfa;
  border-color: #0d9488;
}
.signal-boundary-node-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.signal-boundary-node-direction {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
}
.signal-boundary-node--input .signal-boundary-node-direction {
  color: #115e59;
}
.signal-boundary-node-label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: default;
  border-radius: 3px;
  padding: 0 2px;
}
.signal-boundary-node-label:hover {
  background: #f3f4f6;
  cursor: text;
}
.signal-boundary-node-input {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 1px 4px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.signal-boundary-node-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.signal-boundary-node-details {
  font-size: 11px;
  color: #6b7280;
}
.signal-boundary-node .port-handle {
  width: 12px;
  height: 12px;
}
.signal-boundary-node--output .port-handle {
  left: -6px;
}
.signal-boundary-node--input .port-handle {
  right: -6px;
}
.parts-list-panel-boundary-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.parts-list-panel-boundary-label {
  font-weight: 600;
  font-size: 13px;
}
.parts-list-panel-boundary-details {
  font-size: 11px;
  color: #6b7280;
}
.signals-panel {
  display: flex;
  flex-direction: column;
}
.signals-panel-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.signals-panel-boundaries {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.signals-panel-boundaries-items {
  display: flex;
  gap: 8px;
}
.signals-panel-boundary-drag {
  flex: 1;
  padding: 8px 10px;
  border: 1px dashed #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.signals-panel-boundary-drag:active {
  cursor: grabbing;
}
.signals-panel-boundary-drag--output {
  background: #fefce8;
  border-color: #ca8a04;
}
.signals-panel-boundary-drag--input {
  background: #f0fdfa;
  border-color: #0d9488;
}
.signals-panel-boundary-hint {
  font-size: 10px;
  font-weight: 400;
  color: #4b5563;
}
.signals-panel-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 10px 12px 4px;
}
.signals-panel-item {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.signals-panel-item--output {
  border-left-color: #ca8a04;
}
.signals-panel-item--input {
  border-left-color: #0d9488;
}
.signals-panel-item--selected {
  background-color: var(--selected-bg);
  border-left-color: var(--selected-border);
}
.signals-panel-item-label {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
  cursor: default;
  padding: 2px 0;
}
.signals-panel-item-label-input {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
  border: 1px solid #3b82f6;
  border-radius: 4px;
  padding: 1px 4px;
  width: 100%;
  outline: none;
}
.signals-panel-aspects {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.signals-panel-aspect {
  display: flex;
  align-items: center;
  gap: 8px;
}
.signals-panel-aspect-label {
  font-size: 11px;
  color: #6b7280;
  min-width: 80px;
  flex-shrink: 0;
}
.signals-panel-aspect-select {
  flex: 1;
  padding: 2px 4px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111827;
}
.signals-panel-aspect-select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
/*# sourceMappingURL=/assets/board_editor-affa08ee.css.map */
