zhc_ir 0.7.0

Graph-based intermediate representation framework with dialect support
Documentation
/* Reset and full viewport */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* Viewport container - catches mouse events */
#viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

#viewport.grabbing {
    cursor: grabbing;
}

/* Canvas - the transform target */
#canvas {
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    /* Will be set by JS: transform: translate(x, y) scale(k) */
}

/* SVG fills the canvas */
#canvas svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hover highlighting for values */
.input-port, .output-port, .link {
    transition: opacity 0.15s ease, stroke-width 0.15s ease;
}

/* Hitarea for links - wider invisible stroke for easier hover detection */
.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;
}

/* Pinned elements stay visible even when others are dimmed */
.input-port.pinned, .output-port.pinned, .link.pinned {
    opacity: 1 !important;
}

/* Per-node color picker popup */
.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;
}