* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
background: #ffffff;
}
#viewport {
width: 100%;
height: 100%;
overflow: hidden;
cursor: grab;
}
#viewport.grabbing {
cursor: grabbing;
}
#canvas {
width: 100%;
height: 100%;
transform-origin: 0 0;
}
#canvas svg {
width: 100%;
height: 100%;
display: block;
}
.input-port, .output-port, .link {
transition: opacity 0.15s ease, stroke-width 0.15s ease;
}
.link-hitarea {
pointer-events: stroke;
}
.input-port.highlight, .output-port.highlight {
filter: drop-shadow(0 0 4px rgba(0, 100, 200, 0.8));
}
.link.highlight {
stroke-width: 3px !important;
filter: drop-shadow(0 0 3px rgba(0, 100, 200, 0.6));
}
.input-port.dimmed, .output-port.dimmed, .link.dimmed {
opacity: 0.15;
}
.input-port.pinned, .output-port.pinned, .link.pinned {
opacity: 1 !important;
}
.color-picker {
position: fixed;
display: flex;
gap: 4px;
padding: 6px;
background: white;
border: 1px solid #ddd;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 1000;
}
.color-swatch {
width: 22px;
height: 22px;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 50%;
cursor: pointer;
padding: 0;
}
.color-swatch:hover {
transform: scale(1.15);
}
.color-clear {
background: white;
color: #888;
font-size: 16px;
line-height: 1;
}
#search-box {
position: fixed;
top: 12px;
right: 12px;
z-index: 1100;
display: flex;
align-items: center;
gap: 6px;
padding: 6px 8px;
background: white;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
font-family: system-ui, sans-serif;
font-size: 13px;
}
#search-box.hidden {
display: none;
}
#search-input {
width: 200px;
padding: 4px 6px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
outline: none;
}
#search-input:focus {
border-color: #4dabf7;
}
#search-count {
min-width: 48px;
text-align: center;
color: #868e96;
font-variant-numeric: tabular-nums;
}
#search-count.no-match {
color: #e03131;
}
#search-box button {
width: 24px;
height: 24px;
border: 1px solid #ddd;
border-radius: 4px;
background: #f8f9fa;
cursor: pointer;
line-height: 1;
color: #495057;
}
#search-box button:hover {
background: #e9ecef;
}
.search-hit {
fill: #ffe000;
opacity: 0.5;
pointer-events: none;
}
.search-hit-current {
fill: #ff9500;
opacity: 0.85;
stroke: #d9480f;
stroke-width: 2px;
paint-order: stroke;
filter: drop-shadow(0 0 6px rgba(255, 100, 0, 0.9));
}