.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; } .llm-node__focus-backdrop { position: fixed; inset: 0; z-index: 9990; background: rgba(15, 23, 42, 0.36); backdrop-filter: blur(10px) saturate(0.8); } .llm-node.llm-node--focus { position: fixed; inset: 0; margin: auto; z-index: 9991; width: 280px; max-width: calc(100vw - 32px); height: fit-content; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34); } :host.llm-node-readonly, :host.llm-node-readonly * { cursor: default !important; } :host.selected .llm-node { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24), 0 12px 28px rgba(15, 23, 42, 0.16); } :host.validation-highlighted .llm-node { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18), 0 14px 28px rgba(127, 29, 29, 0.18); } .llm-delete-overlay { position: absolute; inset: 0; z-index: 135; border-radius: 16px; background: rgba(148, 163, 184, 0.38); backdrop-filter: grayscale(1) saturate(0.2); } .llm-loading-overlay { position: absolute; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; background: rgba(248, 250, 252, 0.68); backdrop-filter: blur(2px); border-radius: 16px; } .llm-loading-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 999px; background: rgba(255, 255, 255, 0.96); color: #1d4ed8; font-size: 12px; font-weight: 600; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16); } .llm-params-shell { position: relative; min-height: 110px; overflow: hidden; border-radius: 0 0 16px 16px; } .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-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-spinner { width: 14px; height: 14px; border-radius: 999px; border: 2px solid rgba(37, 99, 235, 0.2); border-top-color: #2563eb; animation: llm-spin 0.75s linear infinite; } @keyframes llm-spin { to { transform: rotate(360deg); } } .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-warning-alert-wrap { left: -12px; } .llm-node-id { margin-top: 2px; font-size: 9px; line-height: 1.1; font-weight: 500; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .llm-lane-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 1px 7px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.92); font-size: 9px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; width: fit-content; } .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-node--human .llm-icon { color: #fffbeb; } .llm-node--human .llm-title { color: #fffbeb; } .llm-node--human .llm-subtitle { color: #fff7ed; } .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-subtitle-row { display: flex; align-items: center; gap: 6px; min-width: 0; } .llm-header-actions { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; position: relative; } .llm-delete-confirm { position: absolute; top: calc(100% + 8px); right: 32px; z-index: 145; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #fecaca; border-radius: 10px; background: #fff1f2; color: #7f1d1d; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18); white-space: nowrap; filter: none; } .llm-delete-confirm-text { font-size: 11px; font-weight: 700; } .llm-delete-confirm-cancel, .llm-delete-confirm-action { border: 0; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; cursor: pointer; } .llm-delete-confirm-cancel { background: rgba(255, 255, 255, 0.88); color: #7f1d1d; border: 1px solid #fecaca; } .llm-delete-confirm-action { background: #dc2626; color: #fff7ed; } .llm-warning { width: 24px; height: 24px; border-radius: 999px; border: 1px solid #fecaca; background: #dc2626; color: #fff7ed; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: 0 0 0 2px rgba(127, 29, 29, 0.18); } .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-name-edit-btn { border: none; background: rgba(255, 255, 255, 0.2); color: #eff6ff; border-radius: 999px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background-color 0.15s ease; } .llm-name-edit-btn:hover { background: rgba(255, 255, 255, 0.3); } .llm-warning-wrap { position: relative; margin-left: 0; } .llm-delete-btn { position: relative; z-index: 146; width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(185, 28, 28, 0.45); background: rgba(127, 29, 29, 0.2); color: #fff1f2; display: inline-flex; align-items: center; justify-content: center; } .llm-clone-btn { position: relative; z-index: 146; width: 24px; height: 24px; border-radius: 999px; border: 1px solid rgba(191, 219, 254, 0.7); background: rgba(30, 64, 175, 0.18); color: #eff6ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; } .llm-delete-btn:hover { background: rgba(127, 29, 29, 0.35); } .llm-warning-tooltip { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; max-width: 240px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #7f1d1d; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2); padding: 8px; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease; } .llm-warning-wrap:hover .llm-warning-tooltip { opacity: 1; visibility: visible; transform: translateY(0); } .llm-warning-title { font-size: 11px; font-weight: 700; margin-bottom: 4px; } .llm-warning-item { font-size: 11px; } .llm-bias-badge-wrap { position: relative; margin-left: 0; } .llm-bias-badge { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; border: 1px solid #ddd6fe; background: #7c3aed; color: #f5f3ff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px rgba(76, 29, 149, 0.18); } .llm-bias-badge-wrap-probe .llm-bias-badge { background: #4c1d95; border-color: #c4b5fd; box-shadow: 0 0 0 2px rgba(76, 29, 149, 0.32); } .llm-bias-badge-tooltip { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; max-width: 260px; border: 1px solid #ddd6fe; border-radius: 8px; background: #f5f3ff; color: #4c1d95; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2); padding: 8px; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease; } .llm-bias-badge-wrap:hover .llm-bias-badge-tooltip { opacity: 1; visibility: visible; transform: translateY(0); } .llm-bias-badge-title { font-size: 11px; font-weight: 700; margin-bottom: 4px; } .llm-bias-badge-item { font-size: 11px; } .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-pill { min-height: 32px; width: 100%; max-width: 100%; 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; overflow: hidden; box-sizing: border-box; } .llm-pill-meta { width: 100%; max-width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow: hidden; } .llm-pill-meta-output { align-items: flex-end; } .llm-pill-name { display: block; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .llm-pill-kind, .llm-pill-kind-select { 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: hidden; } .llm-node--human .llm-pill-input { color: #7c2d12; background: #ffedd5; border-color: #fed7aa; } .llm-node--human .llm-pill-output { color: #9f1239; background: #fff1f2; border-color: #fecdd3; } .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-pill-kind-select { max-width: 88px; border: 1px solid rgba(148, 163, 184, 0.35); border-radius: 4px; background: rgba(255, 255, 255, 0.72); color: inherit; padding: 1px 16px 1px 4px; cursor: pointer; appearance: auto; } .llm-input-info { border: none; background: transparent; color: #166534; width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: help; flex-shrink: 0; } .llm-input-info-wrap { position: relative; display: inline-flex; align-items: center; } .llm-input-tooltip { position: absolute; left: calc(100% + 6px); 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-input-info-wrap:hover .llm-input-tooltip, .llm-input-info-wrap:focus-within .llm-input-tooltip { opacity: 1; visibility: visible; } .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-params-head { display: flex; align-items: center; justify-content: space-between; 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-params-title-row { display: flex; align-items: center; justify-content: space-between; } .llm-params-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #64748b; } .llm-param-chip { border: 1px solid #dbeafe; background: #eff6ff; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; } .llm-param-chip-root { grid-column: 1 / -1; } .llm-param-chip-disabled { opacity: 0.58; } .llm-param-chip-wide { grid-column: 1 / -1; } .llm-param-chip-boolean { padding-top: 5px; padding-bottom: 5px; } .llm-param-row-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; } .llm-edit-btn { border: none; background: transparent; color: #64748b; border-radius: 999px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; } .llm-edit-btn:hover { color: #2563eb; background: rgba(37, 99, 235, 0.1); transform: translateY(-1px); } .llm-edit-btn:active { transform: translateY(0); } .llm-edit-btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; } .llm-bool-toggle { position: relative; width: 34px; height: 20px; border: 1px solid #bfdbfe; border-radius: 999px; background: #dbeafe; transition: background-color 0.15s ease, border-color 0.15s ease; } .llm-bool-toggle-on { background: #2563eb; border-color: #2563eb; } .llm-bool-toggle:disabled { opacity: 0.45; cursor: default; } .llm-bool-toggle-thumb { position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2); transition: transform 0.15s ease; } .llm-bool-toggle-on .llm-bool-toggle-thumb { transform: translateX(14px); } .llm-param-list { display: flex; flex-direction: column; gap: 4px; } .llm-param-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border: 1px solid #dbe2ea; background: #ffffff; border-radius: 8px; padding: 6px 8px; } .llm-param-key { flex-shrink: 0; } .llm-param-key-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: normal; line-height: 1.15; } /* An optional group is one control, not a box of fields: it reads as a chip but behaves as a button, and says how many of its settings are set so a collapsed group never hides a choice. */ .llm-optional-group { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; } .llm-optional-group:hover:not(:disabled) { border-color: #94a3b8; background: #f8fafc; } .llm-optional-group:disabled { cursor: default; } .llm-optional-group .llm-param-key { flex: 1 1 auto; min-width: 0; } .llm-optional-group-count { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; } .llm-optional-group-icon { flex: 0 0 auto; color: #64748b; font-size: 12px; }