.lf-wrap{display:flex;flex-direction:column;align-items:center;gap:12px}
.lf-diff-bar{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.lf-diff-btn{padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer}
.lf-diff-btn.is-active{background:var(--accent);color:#fff;border-color:var(--accent)}
.lf-tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.lf-tool-btn{padding:6px 12px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer}
.lf-tool-btn.is-active{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.lf-board-box{width:100%;max-width:460px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px;touch-action:none;user-select:none}
.lf-svg{width:100%;height:auto;display:block;overflow:visible}
.lf-edge-hit{stroke:transparent;stroke-width:18;cursor:pointer}
.lf-edge-guide{stroke:var(--border);stroke-width:2;stroke-dasharray:3 4;pointer-events:none}
.lf-edge-on{stroke:var(--accent);stroke-width:5.5;stroke-linecap:round;pointer-events:none}
.lf-edge-err{stroke:#dc2626;stroke-width:6;stroke-linecap:round;pointer-events:none}
.lf-edge-x{stroke:var(--muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.lf-dot{fill:var(--ink);pointer-events:none}
.lf-dot.is-err{fill:#dc2626}
.lf-clue{font-family:var(--font-mono);font-weight:700;text-anchor:middle;dominant-baseline:central;fill:var(--ink);pointer-events:none}
.lf-clue.is-ok{fill:var(--green)}
.lf-clue.is-err{fill:#dc2626}
.lf-note{font-size:13px;color:var(--muted);text-align:center;margin:0}
@media (max-width:640px){.lf-board-box{padding:8px}}