.node-detail-demo{position:relative;width:100%;aspect-ratio:1672/1003;overflow:hidden;border:1px solid #e0e0e3;border-radius:8px;background:#fafafa}
.detail-artboard{position:absolute;inset:0;width:1672px;height:1003px;transform:scale(var(--detail-scale,1));transform-origin:0 0;background:#fafafa radial-gradient(circle at 1px 1px,#23242533 1px,transparent 1px) 0 0/24px 24px;font:400 14px/20px Manrope,Arial,sans-serif;color:#232425}
.detail-selected-node{position:absolute;left:527px;top:218px;width:480px}
.detail-selected-heading{display:flex;align-items:center;gap:8px;height:20px;margin-bottom:10px;font-weight:600}
.detail-selected-heading img{width:14px;height:14px}
.detail-output{position:relative;width:480px;height:480px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#efeff1;border:1.5px solid transparent;outline:2px solid #0167ff;outline-offset:2px;color:#68686e}
.detail-output strong{font-size:14px;font-weight:600}.detail-output p{margin:0;font-size:13px}
.detail-handle{position:absolute;width:9px;height:9px;background:#fff;border:2px solid #0167ff}.detail-handle:nth-of-type(1){left:-9px;top:-9px}.detail-handle:nth-of-type(2){right:-9px;top:-9px}.detail-handle:nth-of-type(3){left:-9px;bottom:-9px}.detail-handle:nth-of-type(4){right:-9px;bottom:-9px}
.detail-node-meta{margin-top:8px;font-size:13px}
.detail-settings{--detail-ui-scale:max(.75,var(--detail-scale,1));position:absolute;right:8px;top:70px;width:calc(360px / var(--detail-ui-scale));padding:16px;background:white;border:1px solid #dedee1;border-radius:18px;box-shadow:0 2px 2px #00000004;font-size:14px;line-height:20px}
.detail-settings h3{font-size:14px;line-height:20px;font-weight:600;margin:0 0 20px}
.detail-field-label{display:flex;justify-content:space-between;font-weight:600;margin:0 0 8px}.detail-field-label span:last-child:not(:first-child){color:#606066;font-size:13px}
.detail-select{height:34px;display:flex;align-items:center;gap:10px;border:1px solid #dedee1;border-radius:7px;padding:0 12px;font-weight:400}.detail-select img{width:14px;height:14px}.detail-chevron{margin-left:auto;width:6px;height:6px;border-right:1.5px solid #606066;border-bottom:1.5px solid #606066;transform:rotate(45deg) translateY(-2px);flex-shrink:0}
.detail-field{margin-top:18px}.detail-references{display:flex;gap:8px;overflow:hidden;position:relative}.detail-references:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 20%,white 75%);pointer-events:none}.detail-reference{width:66px;height:66px;flex-shrink:0;border:1.5px dashed #dedee1;border-radius:10px;display:grid;place-items:center;font-size:27px;font-weight:300}
.detail-prompt-field{position:relative;height:178px;border:1px solid #dedee1;border-radius:8px;padding:12px;color:#717178;font-weight:400}.detail-prompt-helper{position:absolute;right:8px;bottom:8px;width:28px;height:28px;border:1px solid #e6e6e6;border-radius:7px;display:grid;place-items:center}.detail-prompt-helper img{width:16px;height:16px}.detail-prompt-field:after{content:'';position:absolute;right:2px;bottom:2px;width:7px;height:7px;background:repeating-linear-gradient(135deg,transparent 0 2px,#999 2px 3px);clip-path:polygon(100% 0,100% 100%,0 100%)}
.detail-settings-row{display:flex;gap:10px;margin-top:30px}.detail-settings-row .detail-select{width:calc(50% - 5px);padding:0 10px;gap:8px}.detail-truncated{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.detail-advanced{display:flex;align-items:center;margin:28px 0 32px;font-weight:600}.detail-generate{height:40px;padding:0 12px;display:flex;align-items:center;background:#232425;color:white;border-radius:9px;font-weight:600}
.detail-saved{position:absolute;right:10px;top:10px;color:#717178;font-size:12px}
.node-detail-demo .detail-chrome{background:transparent;pointer-events:none}
.detail-chrome>.canvas-workspace,.detail-chrome>.canvas-toolbar,.detail-chrome>.canvas-bottom{pointer-events:auto}
textarea.detail-prompt-field{display:block;width:100%;font:inherit;color:#232425;resize:none;background:white}
textarea.detail-prompt-field:focus{outline:none;border-color:rgb(35 36 37 / 30%)}
button.detail-generate{width:100%;border:0;font:inherit;text-align:left;cursor:pointer}
button.detail-generate:hover{background:#383838}
button.detail-generate:disabled{opacity:.55;cursor:wait}
.detail-generation-status{margin:12px 0 0;font-size:13px;line-height:18px}
.detail-generation-status:empty{display:none}
.detail-result{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.detail-handle{z-index:1}
.detail-selected-node{cursor:grab;touch-action:none;user-select:none;outline:none}
.detail-selected-node.is-dragging{cursor:grabbing}
.detail-selected-node img{-webkit-user-drag:none}
.detail-output.is-generating::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(115deg,#e2e9f4,#ede4f3,#f5e8df,#dfeaf4);background-size:300% 300%;animation:detail-generating-gradient 3s ease-in-out infinite}
@keyframes detail-generating-gradient{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.detail-output.is-generating .detail-handle{z-index:3}
@media(prefers-reduced-motion:reduce){.detail-output.is-generating::after{animation:none}}
.detail-settings .detail-select{height:calc(36px / var(--detail-ui-scale))}
.detail-settings .detail-generate{height:calc(48px / var(--detail-ui-scale))}
.detail-generation-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.detail-settings .detail-generate{padding-left:calc(12px + 4px / var(--detail-ui-scale))}
button.detail-generate{font-weight:600}
.detail-image-apps{position:absolute;left:74px;top:70px;width:320px;height:800px;padding:18px 20px;background:#fff;border:1px solid #dedee1;border-radius:28px;box-shadow:0 2px 3px #00000006;overflow:hidden}
.detail-image-apps h3{margin:0 0 12px;font-size:18px;line-height:26px;font-weight:600}
.detail-app-list{height:calc(100% - 38px);overflow:auto;scrollbar-width:none;mask-image:linear-gradient(#000 0%,#000 94%,transparent 100%)}
.detail-app-item{display:flex;align-items:center;gap:14px;min-height:58px;font-size:17px;line-height:24px;border-radius:8px}
.detail-app-item>img{width:40px;height:40px;object-fit:cover;border-radius:10px;flex-shrink:0}
.detail-app-item:hover{background:#f5f5f5}
.detail-app-pin{margin-left:auto;font-size:15px;transform:rotate(-35deg)}
.detail-image-apps{width:264px;height:468px;padding:10px;border:0;border-radius:24px;box-shadow:0 4px 4px -2px #2324250a,0 2px 2px -1px #2324250a,0 0 0 .5px #2324251f}
.detail-image-apps h3{height:24px;margin:4px 0 2px;padding-left:8px;font-size:14px;line-height:18px;font-weight:600}
.detail-app-list{height:calc(100% - 30px);mask-image:none;display:flex;flex-direction:column;gap:2px}
.detail-app-item{min-height:44px;width:240px;padding:6px;gap:12px;font-size:13px;line-height:16px;font-weight:500;border-radius:10px;flex-shrink:0}
.detail-app-item>img{width:32px;height:32px;border-radius:8px}
.detail-image-apps{height:auto}
.detail-app-list{height:auto;overflow:visible}
.detail-app-list{mask-image:linear-gradient(to bottom,#000 calc(100% - 44px),transparent 100%)}

@font-face{font-family:Bristol;src:url('/assets/fonts/Bristol.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
.detail-canvas-hint{position:absolute;z-index:2;cursor:grab;touch-action:none;user-select:none;outline:none;color:#232425}
.detail-canvas-hint:focus{outline:2px solid #0167ff;outline-offset:2px;border-radius:0}
.detail-canvas-hint.is-dragging{cursor:grabbing}
.detail-try-label{width:170px;margin:0;font:400 46px/.85 Bristol,cursive;text-align:center;transform:rotate(-8deg)}
.detail-try-arrow{overflow:visible}

.detail-settings,.detail-image-apps{z-index:3}

.detail-node-ports{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4}
