/* Canlı akış haritası — süreç tasarım ekranı kalitesi (scoped) */
.run-log-flow-canvas {
    display: block;
    overflow: auto !important;
}
.run-log-flow-canvas .lrf-viewport {
    position: relative;
    flex-shrink: 0;
    margin: 0 auto;
}
.run-log-flow-canvas .lrf-live-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    overflow: visible;
}
.run-log-flow-canvas .lrf-live-spot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.run-log-flow-canvas .lrf-live-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    border: 3px solid rgba(34, 211, 238, .85);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .2), 0 0 24px rgba(34, 211, 238, .55);
    animation: lrfLiveRing 1.2s ease-in-out infinite;
}
.run-log-flow-canvas .lrf-live-key {
    position: absolute;
    left: 50%;
    top: -42px;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    border: 2px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .02em;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(34, 211, 238, .55);
    z-index: 2;
}
@keyframes lrfLiveRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: .75; }
}
@keyframes lrfEdgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}
.run-log-flow-canvas .lrf-edge-active {
    animation: lrfEdgePulse 1s ease-in-out infinite;
}
.run-log-flow-canvas .lrf-pb-stage {
    position: relative;
    transform-origin: 0 0;
}
.run-log-flow-canvas .lrf-edges {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}
.run-log-flow-canvas .lrf-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.run-log-flow-canvas .lrf-edge {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .55;
}
.run-log-flow-canvas .lrf-edge-visited {
    stroke-width: 2.5;
    opacity: .82;
    filter: drop-shadow(0 0 4px rgba(74, 222, 128, .35));
}
.run-log-flow-canvas .lrf-edge-active {
    stroke-width: 3;
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, .55));
    animation: lrfEdgePulse 1.2s ease-in-out infinite;
}
.run-log-flow-canvas .lrf-edge-label text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    pointer-events: none;
}
.run-log-flow-canvas .node.lrf-readonly-node {
    position: absolute !important;
    background-color: rgba(36, 36, 36, 0.96) !important;
    border: 2px solid #555 !important;
    border-radius: 20px;
    padding: 14px;
    width: 250px;
    height: auto;
    max-height: none !important;
    overflow: visible !important;
    color: #e8e8e8 !important;
    font-size: 12px;
    user-select: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 50 !important;
    pointer-events: auto !important;
    cursor: default;
}
.run-log-flow-canvas .node.type-start {
    border-color: #4ade80;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}
.run-log-flow-canvas .node.type-end {
    border-color: #f87171;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
}
.run-log-flow-canvas .node.has-node-color {
    border-color: var(--node-accent) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.45), 0 0 14px color-mix(in srgb, var(--node-accent) 30%, transparent) !important;
}
.run-log-flow-canvas .node.lrf-live-active {
    border-color: rgba(34, 211, 238, .9) !important;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, .4), 0 0 24px rgba(34, 211, 238, .45) !important;
    animation: lrfNodePulse 1.4s ease-in-out infinite;
}
.run-log-flow-canvas .node.lrf-live-visited {
    border-color: rgba(74, 222, 128, .45) !important;
}
.run-log-flow-canvas .node.lrf-node-stuck {
    border-color: rgba(217, 119, 6, .7) !important;
    box-shadow: 0 0 0 1px rgba(217, 119, 6, .3) !important;
}
.run-log-flow-canvas .node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: -14px -14px 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, .22);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px 18px 0 0;
}
.run-log-flow-canvas .node.has-node-color .node-header {
    background: color-mix(in srgb, var(--node-accent) 18%, #1a1a1a) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--node-accent) 48%, #333) !important;
}
.run-log-flow-canvas .node-label {
    font-size: 13px;
    font-weight: 700;
    color: #f3f4f6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.run-log-flow-canvas .node-type-badge {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .65);
    text-transform: lowercase;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.run-log-flow-canvas .node.has-node-color .node-type-badge {
    background-color: var(--node-accent) !important;
    color: #111;
}
.run-log-flow-canvas .node-content {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .72);
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 18px;
}
.run-log-flow-canvas .left-ports,
.run-log-flow-canvas .right-ports,
.run-log-flow-canvas .top-ports,
.run-log-flow-canvas .bottom-ports {
    position: absolute !important;
    display: flex !important;
    gap: 8px !important;
    pointer-events: none !important;
    z-index: 60 !important;
}
.run-log-flow-canvas .left-ports,
.run-log-flow-canvas .right-ports {
    top: 50% !important;
    flex-direction: column !important;
}
.run-log-flow-canvas .top-ports,
.run-log-flow-canvas .bottom-ports {
    left: 50% !important;
    flex-direction: row !important;
}
.run-log-flow-canvas .left-ports {
    left: -12px !important;
    transform: translateX(-100%) translateY(-50%) !important;
}
.run-log-flow-canvas .right-ports {
    right: -12px !important;
    transform: translateX(100%) translateY(-50%) !important;
}
.run-log-flow-canvas .top-ports {
    top: -12px !important;
    transform: translateX(-50%) translateY(-100%) !important;
}
.run-log-flow-canvas .bottom-ports {
    bottom: -12px !important;
    transform: translateX(-50%) translateY(100%) !important;
}
.run-log-flow-canvas .port-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.run-log-flow-canvas .right-ports .port-row {
    flex-direction: row-reverse !important;
}
.run-log-flow-canvas .port {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.run-log-flow-canvas .port-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.run-log-flow-canvas .node.is-circle {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.run-log-flow-canvas .info-node-inner {
    font-weight: 800;
    font-size: 18px;
    color: #00bcd4;
}
.run-log-flow-canvas .node.lrf-readonly-node .lrf-badges {
    display: none;
}
.run-log-flow-canvas .node.lrf-readonly-node .lrf-tokens {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    gap: 4px;
    pointer-events: auto;
}
.run-log-flow-canvas .node.lrf-readonly-node .lrf-parked {
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    z-index: 85;
    display: flex;
    gap: 4px;
    pointer-events: auto;
}
