.llm-node { position: relative; width: 280px; user-select: none; -webkit-user-select: none; border-radius: 16px; border: 1px solid #dbe2ea; background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); overflow: visible; color: #0f172a; } :host.llm-node-readonly, :host.llm-node-readonly * { cursor: default !important; } :host.llm-node-readonly .llm-subflow-view, :host.llm-node-readonly .llm-subflow-view * { cursor: pointer !important; } .llm-node--human { border-color: #f7d7a7; background: linear-gradient(180deg, #fffdf9 0%, #fff7ed 100%); box-shadow: 0 10px 24px rgba(124, 45, 18, 0.14); color: #431407; } .llm-node-error { border: 2px solid #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2), 0 10px 24px rgba(15, 23, 42, 0.12); } .llm-node-warning { border: 2px solid #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22), 0 10px 24px rgba(15, 23, 42, 0.12); } .llm-node-completed { border: 2px solid #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2), 0 10px 24px rgba(15, 23, 42, 0.12); } .llm-node-running { border: 2px solid #facc15; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.45), 0 10px 24px rgba(15, 23, 42, 0.12); animation: llmRunningBorderPulse 0.95s ease-in-out infinite; } .llm-node-attention { border: 2px solid #f97316; animation: llmAttentionBorderPulse 1.2s ease-in-out infinite; } .llm-node-skipped { border: 2px solid #94a3b8; background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); box-shadow: 0 8px 20px rgba(100, 116, 139, 0.16); filter: grayscale(1); } .llm-node-bias-active { border: 2px solid #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 10px 24px rgba(15, 23, 42, 0.12); } .llm-node-bias-changed { border: 2px solid #b45309; box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22), 0 10px 24px rgba(15, 23, 42, 0.12); } .llm-node-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 5px; } .llm-node-capability-badge, .llm-node-bias-summary, .llm-node-skip-reason { display: inline-flex; align-items: center; gap: 3px; min-height: 18px; padding: 2px 6px; border: 1px solid rgba(148, 163, 184, 0.72); border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: #475569; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; } .llm-node-bias-summary { border-color: #c4b5fd; color: #6d28d9; background: #f5f3ff; } button.llm-node-bias-summary { font-family: inherit; cursor: pointer !important; transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; } button.llm-node-bias-summary:hover { border-color: #7c3aed; background: #ede9fe; color: #5b21b6; box-shadow: 0 3px 8px rgba(109, 40, 217, 0.2); transform: translateY(-1px); } button.llm-node-bias-summary:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; } .llm-node-bias-summary-active { border-color: #7c3aed; background: #7c3aed; color: #fff; } .llm-node-skip-reason { max-width: 190px; overflow: hidden; border-color: #cbd5e1; background: #f1f5f9; color: #475569; text-overflow: ellipsis; } .llm-bias-canvas-badge-wrap { position: absolute; top: -10px; right: 10px; z-index: 5; display: flex; gap: 4px; } .llm-bias-canvas-badge { width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25); } .llm-bias-canvas-badge-active { background: #7c3aed; } .llm-bias-canvas-badge-changed { background: #b45309; } .llm-node-skipped .llm-header { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); border-bottom-color: #cbd5e1; } .llm-skeleton-overlay { position: absolute; inset: 0; z-index: 10; display: flex; align-items: stretch; justify-content: stretch; padding: 14px; border-radius: 16px; background: rgba(248, 250, 252, 0.82); backdrop-filter: blur(1px); } .llm-params-shell { position: relative; min-height: 110px; overflow: hidden; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; } .llm-skeleton-stack { width: 100%; display: flex; flex-direction: column; gap: 10px; } .llm-skeleton-line, .llm-skeleton-pill { position: relative; overflow: hidden; background: #e2e8f0; } .llm-skeleton-line::after, .llm-skeleton-pill::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent); animation: llm-skeleton-shimmer 1.1s ease-in-out infinite; } .llm-skeleton-line { height: 12px; border-radius: 999px; } .llm-skeleton-line-title { width: 62%; margin-top: 6px; } .llm-skeleton-line-short { width: 38%; } .llm-skeleton-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; } .llm-skeleton-pill { height: 54px; border-radius: 12px; } .llm-skeleton-pill-wide { grid-column: 1 / -1; height: 76px; } @keyframes llm-skeleton-shimmer { to { transform: translateX(100%); } } .llm-error-alert-wrap, .llm-warning-alert-wrap { position: absolute; top: -12px; z-index: 120; } .llm-attention-wrap { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 125; } .llm-attention-trigger { width: 34px; height: 34px; border: 1px solid #fdba74; border-radius: 999px; background: #f97316; color: #fff7ed; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); animation: llmAttentionIconPulse 1.1s ease-in-out infinite; } .llm-attention-trigger i { font-size: 17px; } .llm-attention-trigger:disabled { cursor: wait; opacity: 0.7; animation: none; } .llm-error-alert-wrap { right: -12px; } .llm-warning-alert-wrap { left: -12px; } @keyframes llmRunningBorderPulse { 0%, 100% { border-color: #fde047; box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.12), 0 10px 24px rgba(15, 23, 42, 0.12); } 50% { border-color: #eab308; box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.32), 0 10px 24px rgba(15, 23, 42, 0.18); } } .llm-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e8edf4; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border-top-left-radius: 16px; border-top-right-radius: 16px; } .llm-node--human .llm-header { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); border-bottom-color: #fdba74; } .llm-icon { width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .llm-icon-image { width: 24px; height: 16px; object-fit: contain; } .llm-header-content { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; } .llm-title { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: #eff6ff; } .llm-subtitle { font-size: 11px; color: #dbeafe; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } .llm-body { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .llm-column { min-width: 0; display: flex; flex-direction: column; gap: 6px; } .llm-column-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; } .llm-column-title-right { text-align: right; } .llm-row { display: grid; align-items: center; min-height: 34px; min-width: 0; } .llm-row-input { grid-template-columns: 16px 1fr; gap: 6px; } .llm-row-output { grid-template-columns: 1fr 16px; gap: 6px; } .llm-socket { position: relative; z-index: 20; } .llm-socket-right { justify-self: end; } .llm-socket-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; } .llm-socket-wrap-output { justify-self: end; } .llm-pill { min-height: 32px; border-radius: 7px; border: 1px solid transparent; font-size: 11px; font-weight: 600; padding: 4px 8px; display: inline-flex; align-items: center; min-width: 0; position: relative; overflow: visible; } .llm-pill-meta { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; } .llm-pill-meta-output { align-items: flex-end; } .llm-pill-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.15; } .llm-pill-context { min-width: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; font-size: 9px; line-height: 1; font-weight: 700; opacity: 0.7; } .llm-pill-kind { font-size: 10px; line-height: 1; font-weight: 700; opacity: 0.86; } .llm-pill-input { justify-content: flex-start; color: #166534; background: #ecfdf3; border-color: #bbf7d0; gap: 4px; overflow: visible; } .llm-pill-output { justify-content: flex-end; color: #9f1239; background: #fff1f2; border-color: #fecdd3; } .llm-pill-output-true { color: #166534; background: #ecfdf3; border-color: #bbf7d0; } .llm-pill-output-false { color: #9f1239; background: #fff1f2; border-color: #fecdd3; } .llm-pill-dependency-input { color: #92400e; background: #fff7ed; border-color: #fed7aa; } .llm-pill-dependency-output { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; } .llm-input-value-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; } .llm-input-value-icon { border: none; background: transparent; color: #68ae82; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: default; border-radius: 999px; } .llm-input-value-icon:hover { background: rgba(104, 174, 130, 0.22); } .llm-input-value-icon i, .llm-output-value-icon i { font-size: 16px; line-height: 1; } .llm-output-value-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; justify-self: end; } .llm-output-value-icon { border: none; background: transparent; color: #be123c; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: help; border-radius: 999px; } .llm-output-value-icon:hover { background: rgba(225, 29, 72, 0.12); } .llm-io-tooltip { position: absolute; top: 50%; transform: translateY(-50%); min-width: 140px; max-width: 260px; border: 1px solid #dbeafe; border-radius: 8px; background: #ffffff; color: #0f172a; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18); font-size: 11px; line-height: 1.3; padding: 6px 8px; white-space: pre-wrap; word-break: break-word; z-index: 80; opacity: 0; visibility: hidden; pointer-events: none; } .llm-io-tooltip-output { right: calc(100% + 8px); } .llm-output-value-wrap:hover .llm-io-tooltip, .llm-output-value-wrap:focus-within .llm-io-tooltip, .llm-socket-wrap:hover .llm-io-tooltip, .llm-socket-wrap:focus-within .llm-io-tooltip { opacity: 1; visibility: visible; } @keyframes llmAttentionBorderPulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.38), 0 10px 24px rgba(15, 23, 42, 0.12); } 50% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14), 0 10px 24px rgba(15, 23, 42, 0.12); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.05), 0 10px 24px rgba(15, 23, 42, 0.12); } } @keyframes llmAttentionIconPulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); } 70% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } } .llm-params { margin: 0 12px 12px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; } .llm-param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .llm-param-groups { display: flex; flex-direction: column; gap: 8px; } .llm-param-fieldset { margin: 0; padding: 8px; border: 1px solid #cbd5e1; border-radius: 0; background: transparent; } .llm-param-legend { margin: 0; padding: 0 4px; font-size: 10px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.03em; display: table; max-width: 100%; white-space: nowrap; float: none; width: auto; margin-bottom: 0; } .llm-param-chip { border: 1px solid #dbeafe; background: #eff6ff; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; min-width: 0; } .llm-param-chip-wide { grid-column: 1 / -1; } .llm-param-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; } .llm-param-value-wide { overflow: visible; text-overflow: unset; white-space: pre-wrap; word-break: break-word; } .llm-bias-impact-trigger { align-items: center; background: #eff6ff; border: 1px solid #93c5fd; border-radius: .35rem; color: #1d4ed8; cursor: pointer; display: inline-flex; font-size: .9rem; justify-content: center; margin-left: auto; padding: .3rem .4rem; } .llm-bias-impact-trigger:hover:not(:disabled) { background: #dbeafe; } .llm-bias-impact-trigger:disabled { cursor: not-allowed; opacity: .5; }