        /* ===== 主题变量 ===== */
        :root,
        [data-theme="dark"] {
            --bg-primary: #0a0f1a;
            --bg-secondary: #1a1f2e;
            --bg-sidebar: linear-gradient(180deg, rgba(15, 20, 35, 0.95), rgba(20, 25, 45, 0.9), rgba(25, 30, 50, 0.95));
            --bg-canvas: #0a0f1a;
            --bg-topbar: linear-gradient(180deg, rgba(15, 20, 35, 0.98), rgba(18, 23, 42, 0.95), rgba(20, 25, 45, 0.92));
            --bg-card: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,212,255,0.05));
            --bg-card-hover: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(138,43,226,0.08));
            --bg-node: rgba(20, 28, 50, 0.95);
            --bg-node-header: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(138,43,226,0.2));
            --bg-toolbar: rgba(0, 212, 255, 0.15);
            --bg-modal: rgba(15, 20, 35, 0.97);
            
            --text-primary: #e8e8e8;
            --text-secondary: #e5e7eb;
            --text-node: #e0e8f0;
            --text-muted: #8899aa;
            --text-name: #ffffff;
            
            --border-color: rgba(0, 212, 255, 0.3);
            --border-hover: rgba(0, 212, 255, 0.6);
            --border-node: rgba(0, 212, 255, 0.5);
            --border-card: rgba(0, 212, 255, 0.25);
            
            --shadow-card: 0 2px 8px rgba(0,0,0,0.2);
            --shadow-node: 0 5px 20px rgba(0,0,0,0.5), 0 0 15px rgba(0,212,255,0.1);
            
            --glow-cyan: rgba(0, 212, 255, 0.5);
            --glow-purple: rgba(138, 43, 226, 0.5);
            
            --accent: #00d4ff;
            --accent-gradient: linear-gradient(135deg, #00d4ff, #8a2be2, #ff6b9d);
        }
        
        [data-theme="light"] {
            --bg-primary: #f0f4f8;
            --bg-secondary: #e2e8f0;
            --bg-sidebar: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,248,255,0.95), rgba(230,240,250,0.95));
            --bg-canvas: #f0f4f8;
            --bg-topbar: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,250,255,0.97), rgba(240,248,255,0.95));
            --bg-card: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,248,255,0.7));
            --bg-card-hover: linear-gradient(135deg, rgba(255,255,255,1), rgba(200,230,255,0.8));
            --bg-node: #ffffff;
            --bg-node-header: linear-gradient(135deg, rgba(0,160,255,0.15), rgba(138,43,226,0.1));
            --bg-toolbar: rgba(0, 160, 255, 0.15);
            --bg-modal: rgba(255, 255, 255, 0.98);
            
            --text-primary: #1a1f2e;
            --text-secondary: #374151;
            --text-node: #1a1a2e;
            --text-muted: #6b7280;
            --text-name: #1a1f2e;
            
            --border-color: rgba(0, 160, 255, 0.3);
            --border-hover: rgba(0, 160, 255, 0.6);
            --border-node: #00a0ff;
            --border-card: rgba(0, 160, 255, 0.2);
            
            --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
            --shadow-node: 0 5px 20px rgba(0,0,0,0.12);
            
            --glow-cyan: rgba(0, 160, 255, 0.4);
            --glow-purple: rgba(138, 43, 226, 0.3);
            
            --accent: #00a0ff;
            --accent-gradient: linear-gradient(135deg, #00a0ff, #8a2be2, #ff6b9d);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* ===== 自定义滚动条样式 - 跟随主题 ===== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, var(--accent), rgba(138, 43, 226, 0.6));
            border-radius: 10px;
            border: 2px solid transparent;
            background-clip: padding-box;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, var(--accent), rgba(138, 43, 226, 0.8));
            border: 1px solid transparent;
            background-clip: padding-box;
        }
        
        ::-webkit-scrollbar-corner {
            background: transparent;
        }
        
        body {
            background: var(--bg-primary);
            color: var(--text-primary);
            font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            transition: background 0.3s ease, color 0.3s ease;
        }
        
        .container {
            display: flex;
            height: 100vh;
            width: 100vw;
            min-width: 1024px;
            min-height: 768px;
            filter: brightness(var(--brightness, 1));
        }
        
        /* 左侧面板 */
        .sidebar {
            flex-shrink: 0;
            width: 280px;
            min-width: 280px;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            padding: 20px;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            box-shadow: 
                inset 0 0 30px rgba(0, 212, 255, 0.05),
                5px 0 20px rgba(0, 0, 0, 0.3);
            transition: background 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .container.project-mode .sidebar {
            width: 0;
            min-width: 0;
            padding: 0;
            border-right: 0;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            box-shadow: none;
        }

        .container.project-mode .canvas-area {
            min-width: 100vw;
        }

        .container.project-mode .top-bar {
            padding-left: 24px;
        }

        .container.project-mode .top-bar-left {
            margin-left: 0;
        }

        .project-top-back {
            display: none !important;
        }

        .container.project-mode .project-top-back {
            display: inline-flex !important;
        }

        .container.project-mode .toolbar {
            display: none;
        }
        
        /* 左侧面板顶部光晕 */
        .sidebar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.15), transparent 70%);
            pointer-events: none;
        }
        
        .sidebar h2 {
            color: var(--accent);
            font-size: 18px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            text-shadow: 0 0 10px var(--glow-cyan);
            position: relative;
            z-index: 1;
            flex-shrink: 0;
        }
        
        .category {
            background: var(--bg-card);
            border: 1px solid rgba(0, 212, 255, 0.2);
            flex-shrink: 0;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
        }
        
        /* 分类卡片光效层 */
        .category::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        
        .category:hover {
            border-color: var(--border-hover);
            background: var(--bg-card-hover);
            transform: translateX(5px);
            box-shadow: 
                0 5px 15px rgba(0, 212, 255, 0.2),
                0 0 20px rgba(0, 212, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        .category:hover::before {
            opacity: 1;
        }
        
        .category-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        
        .category-icon {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(138, 43, 226, 0.2));
            border-radius: 8px;
            padding: 6px;
            box-shadow: 
                0 2px 8px rgba(0, 212, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        
        .category-icon svg {
            width: 20px;
            height: 20px;
            stroke-width: 2;
        }
        
        .category-icon.video svg {
            stroke: #00d4ff;
            filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
        }
        
        .category-icon.image svg {
            stroke: #ff6b9d;
            filter: drop-shadow(0 0 6px rgba(255, 107, 157, 0.6));
        }
        
        .category-icon.agent svg {
            stroke: #a855f7;
            filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6));
        }
        
        .category-icon.tool svg {
            stroke: #10b981;
            filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
        }
        
        .category-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-name);
            letter-spacing: 0.5px;
        }
        
        .category-count {
            font-size: 12px;
            color: var(--accent);
            margin-left: auto;
            background: rgba(0, 212, 255, 0.15);
            padding: 2px 8px;
            border-radius: 10px;
            font-weight: 600;
        }
        
        /* 侧边栏分隔线 */
        .sidebar-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-card), transparent);
            margin: 15px 10px;
            flex-shrink: 0;
        }
        
        /* 侧边栏底部容器 */
        .sidebar-bottom {
            position: sticky;
            bottom: 0;
            background: var(--bg-secondary);
            padding: 8px 0;
            margin-top: auto;
            border-top: 1px solid var(--border-card);
            flex-shrink: 0;
        }
        
        /* 底部项样式 */
        .sidebar-footer-item {
            margin: 0;
        }
        
        .sidebar-footer-item .category-header {
            padding: 8px 12px;
            min-height: auto;
        }
        
        .sidebar-footer-item .category-name {
            font-size: 13px;
        }
        
        /* 底部小图标 */
        .category-icon-small {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 8px;
            flex-shrink: 0;
        }
        
        .category-icon-small svg {
            width: 14px;
            height: 14px;
            stroke: var(--text-secondary);
        }

        .category-icon-small .ui-icon {
            width: 15px;
            height: 15px;
            flex-basis: 15px;
        }

        .settings-icon-small .ui-icon {
            color: #d5dee9;
            filter: drop-shadow(0 0 5px rgba(125, 222, 255, 0.18));
        }
        
        /* 侧边栏底部项 */
        .sidebar-footer {
            margin-top: 5px;
        }
        
        .sidebar-footer .category-header {
            padding: 10px 12px;
        }
        
        .sidebar-footer .category-icon {
            width: 28px;
            height: 28px;
        }
        
        .node-item {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 10px;
            margin-top: 8px;
            cursor: grab;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        /* 节点项光效 */
        .node-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(0, 212, 255, 0.1), 
                transparent);
            transition: left 0.5s;
        }
        
        .node-item:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-hover);
            box-shadow: 
                0 3px 10px rgba(0, 212, 255, 0.2),
                inset 0 0 10px rgba(0, 212, 255, 0.05);
            transform: translateX(3px);
        }
        
        .node-item:hover::before {
            left: 100%;
        }
        
        .node-item:active {
            cursor: grabbing;
            transform: scale(0.98);
        }
        
        /* 子分类样式 */
        .subcategory {
            margin: 4px 0;
        }
        
        .subcategory-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 12px;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s ease;
            background: rgba(0, 0, 0, 0.03);
        }
        
        [data-theme="dark"] .subcategory-header {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .subcategory-header:hover {
            background: rgba(0, 0, 0, 0.06);
        }
        
        [data-theme="dark"] .subcategory-header:hover {
            background: rgba(255, 255, 255, 0.08);
        }
        
        .subcategory-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .subcategory-count {
            font-size: 10px;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.08);
            padding: 2px 6px;
            border-radius: 10px;
        }
        
        [data-theme="dark"] .subcategory-count {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .subcategory-nodes {
            padding-left: 8px;
            margin-top: 4px;
        }
        
        .subcategory-nodes .node-item {
            padding: 6px 12px;
        }
        
        .node-name {
            font-size: 13px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .ui-icon {
            --ui-icon-color: currentColor;
            width: 14px;
            height: 14px;
            display: inline-block;
            position: relative;
            flex: 0 0 14px;
            color: var(--text-secondary);
        }

        .ui-icon::before,
        .ui-icon::after {
            content: "";
            position: absolute;
            box-sizing: border-box;
        }

        .ui-icon-image,
        .ui-icon-images {
            color: #ff6b9d;
        }

        .ui-icon-video,
        .ui-icon-video-tools {
            color: #00d4ff;
        }

        .ui-icon-repair,
        .ui-icon-gear,
        .ui-icon-sliders,
        .ui-icon-list,
        .ui-icon-cloud,
        .ui-icon-download,
        .ui-icon-help,
        .ui-icon-spark,
        .ui-icon-logs,
        .ui-icon-edit,
        .ui-icon-copy,
        .ui-icon-paste,
        .ui-icon-clear,
        .ui-icon-api {
            color: #7cdeff;
        }

        .ui-icon-image::before,
        .ui-icon-images::before {
            inset: 1px;
            border: 1.5px solid currentColor;
            border-radius: 3px;
        }

        .ui-icon-image::after,
        .ui-icon-images::after {
            left: 4px;
            bottom: 3px;
            width: 7px;
            height: 5px;
            border-left: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: skewX(-24deg);
        }

        .ui-icon-images::before {
            inset: 3px 1px 1px 4px;
        }

        .ui-icon-images::after {
            left: 1px;
            top: 1px;
            bottom: auto;
            width: 9px;
            height: 9px;
            border: 1.5px solid currentColor;
            border-radius: 3px;
            transform: none;
            opacity: 0.55;
        }

        .ui-icon-video::before,
        .ui-icon-video-tools::before {
            left: 1px;
            top: 3px;
            width: 9px;
            height: 8px;
            border: 1.5px solid currentColor;
            border-radius: 2px;
        }

        .ui-icon-video::after,
        .ui-icon-video-tools::after {
            right: 1px;
            top: 5px;
            border-top: 2.5px solid transparent;
            border-bottom: 2.5px solid transparent;
            border-left: 4px solid currentColor;
        }

        .ui-icon-video-tools::before {
            transform: rotate(-7deg);
        }

        .ui-icon-repair::before {
            left: 6px;
            top: 1px;
            width: 2px;
            height: 12px;
            background: currentColor;
            border-radius: 2px;
            transform: rotate(45deg);
        }

        .ui-icon-repair::after {
            right: 0;
            top: 0;
            width: 6px;
            height: 6px;
            border-top: 2px solid currentColor;
            border-right: 2px solid currentColor;
            transform: rotate(45deg);
        }

        .ui-icon-gear::before {
            left: 3px;
            top: 3px;
            width: 9px;
            height: 9px;
            border: 1.5px solid currentColor;
            border-radius: 50%;
            box-shadow:
                0 -4px 0 -1.7px currentColor,
                0 4px 0 -1.7px currentColor,
                -4px 0 0 -1.7px currentColor,
                4px 0 0 -1.7px currentColor,
                -3px -3px 0 -1.9px currentColor,
                3px -3px 0 -1.9px currentColor,
                -3px 3px 0 -1.9px currentColor,
                3px 3px 0 -1.9px currentColor;
        }

        .ui-icon-gear::after {
            left: 6px;
            top: 6px;
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: currentColor;
        }

        .ui-icon-sliders::before {
            inset: 2px 2px;
            border-top: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
        }

        .ui-icon-sliders::after {
            left: 3px;
            top: 1px;
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 6px 8px 0 currentColor;
        }

        .ui-icon-list::before,
        .ui-icon-logs::before {
            left: 4px;
            top: 3px;
            width: 8px;
            height: 1.5px;
            background: currentColor;
            box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
        }

        .ui-icon-list::after,
        .ui-icon-logs::after {
            left: 1px;
            top: 3px;
            width: 1.5px;
            height: 1.5px;
            background: currentColor;
            box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
        }

        .ui-icon-cloud::before {
            left: 1px;
            right: 1px;
            bottom: 2px;
            height: 7px;
            border: 1.5px solid currentColor;
            border-top: 0;
            border-radius: 0 0 7px 7px;
        }

        .ui-icon-cloud::after {
            left: 3px;
            top: 2px;
            width: 8px;
            height: 8px;
            border: 1.5px solid currentColor;
            border-bottom: 0;
            border-radius: 8px 8px 0 0;
        }

        .ui-icon-download::before {
            left: 6px;
            top: 1px;
            width: 2px;
            height: 8px;
            background: currentColor;
        }

        .ui-icon-download::after {
            left: 3px;
            top: 6px;
            width: 8px;
            height: 6px;
            border-left: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(-45deg);
        }

        .ui-icon-help::before {
            inset: 1px;
            border: 1.5px solid currentColor;
            border-radius: 50%;
        }

        .ui-icon-help::after {
            left: 6px;
            top: 4px;
            width: 2px;
            height: 2px;
            border-radius: 50%;
            background: currentColor;
            box-shadow: 0 5px 0 currentColor;
        }

        .ui-icon-spark::before {
            left: 6px;
            top: 1px;
            width: 2px;
            height: 12px;
            background: currentColor;
            border-radius: 2px;
        }

        .ui-icon-spark::after {
            left: 1px;
            top: 6px;
            width: 12px;
            height: 2px;
            background: currentColor;
            border-radius: 2px;
            transform: rotate(45deg);
        }

        .ui-icon-edit::before {
            left: 2px;
            top: 8px;
            width: 10px;
            height: 4px;
            border: 1.5px solid currentColor;
            border-top: 0;
        }

        .ui-icon-edit::after {
            left: 6px;
            top: 1px;
            width: 2px;
            height: 10px;
            background: currentColor;
            transform: rotate(45deg);
            border-radius: 2px;
        }

        .ui-icon-copy::before,
        .ui-icon-paste::before {
            left: 4px;
            top: 2px;
            width: 8px;
            height: 9px;
            border: 1.5px solid currentColor;
            border-radius: 2px;
        }

        .ui-icon-copy::after {
            left: 1px;
            top: 5px;
            width: 8px;
            height: 8px;
            border: 1.5px solid currentColor;
            border-radius: 2px;
            opacity: 0.6;
        }

        .ui-icon-paste::after {
            left: 5px;
            top: 1px;
            width: 4px;
            height: 3px;
            border: 1.5px solid currentColor;
            border-radius: 2px;
            background: var(--bg-secondary);
        }

        .ui-icon-clear::before,
        .ui-icon-trash::before {
            left: 3px;
            top: 5px;
            width: 8px;
            height: 7px;
            border: 1.5px solid currentColor;
            border-top: 0;
            border-radius: 0 0 2px 2px;
        }

        .ui-icon-clear::after,
        .ui-icon-trash::after {
            left: 2px;
            top: 3px;
            width: 10px;
            height: 1.5px;
            background: currentColor;
            box-shadow: 3px -2px 0 -0.5px currentColor;
        }

        .ui-icon-api::before {
            inset: 2px;
            border: 1.5px solid currentColor;
            border-radius: 3px;
        }

        .ui-icon-api::after {
            left: 4px;
            top: 4px;
            width: 6px;
            height: 6px;
            border-top: 1.5px solid currentColor;
            border-left: 1.5px solid currentColor;
            transform: rotate(45deg);
        }
        
        /* 内联 SVG 图标样式 */
        .node-name .icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
        }
        
        .node-name .icon svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
        }
        
        .node-name .icon.video svg { stroke: #00d4ff; }
        .node-name .icon.image svg { stroke: #ff6b9d; }
        .node-name .icon.agent svg { stroke: #a855f7; }
        .node-name .icon.tool svg { stroke: #10b981; }
        
        .node-name svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
            flex-shrink: 0;
        }
        
        .node-name svg.video { stroke: #00d4ff; }
        .node-name svg.image { stroke: #ff6b9d; }
        .node-name svg.agent { stroke: #a855f7; }
        .node-name svg.tool { stroke: #10b981; }
        
        /* 主画布容器 */
        .canvas-area {
            flex: 1;
            position: relative;
            overflow: hidden;
            min-width: calc(100vw - 280px);
            background: var(--bg-canvas);
            background-image: 
                linear-gradient(rgba(30, 80, 140, 0.08) 1px, transparent 1px),
                linear-gradient(90deg, rgba(30, 80, 140, 0.08) 1px, transparent 1px);
            background-size: 20px 20px;
            cursor: grab;
            transition: background 0.3s ease;
        }
        
        [data-theme="light"] .canvas-area {
            background: var(--bg-canvas);
            background-image: 
                linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
            background-size: 20px 20px;
        }
        
        .canvas-area.panning {
            cursor: grabbing;
        }
        
        /* 可缩放画布 */
        .canvas-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 200%;
            transform-origin: 0 0;
            will-change: transform;
        }
        
        /* 缩放控制 */
        .zoom-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 100;
        }
        
        .zoom-btn {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: var(--bg-modal);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 20px;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        
        .zoom-btn:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-hover);
            box-shadow: 0 6px 20px var(--glow-cyan);
            transform: translateY(-2px);
        }
        
        .zoom-btn:active {
            transform: translateY(0);
        }
        
        .zoom-level {
            text-align: center;
            font-size: 12px;
            color: var(--accent);
            background: var(--bg-modal);
            padding: 4px 8px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }
        
        /* 顶部横栏 */
        .top-bar {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: var(--bg-topbar);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px 0 304px;
            z-index: 90;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255,255,255,0.03);
            transition: background 0.3s ease;
        }
        
        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 24px;
            margin-left: -300px;
        }
        
        /* 侧边栏用户信息 */
        .user-info-sidebar {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.06) 0%, 
                rgba(0, 212, 255, 0.03) 100%);
            border-radius: 12px;
            border: 1px solid var(--border-card);
            margin-bottom: 15px;
            flex-shrink: 0;
        }
        
        .user-info-sidebar .user-avatar {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }
        
        .user-info-sidebar .user-details {
            flex: 1;
        }
        
        .user-info-sidebar .user-name {
            font-size: 14px;
        }
        
        .user-info-sidebar .user-role {
            font-size: 10px;
        }
        
        .user-info-sidebar .user-credits {
            padding: 3px 8px;
            gap: 4px;
        }
        
        .user-info-sidebar .user-credits svg {
            width: 12px;
            height: 12px;
        }
        
        .user-info-sidebar .user-credits span {
            font-size: 11px;
        }

        .auth-widget {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .auth-action-btn,
        .auth-link-btn {
            border: 1px solid rgba(0, 212, 255, 0.35);
            background: rgba(0, 212, 255, 0.12);
            color: var(--text-primary);
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .auth-action-btn:hover,
        .auth-link-btn:hover {
            border-color: rgba(0, 212, 255, 0.65);
            background: rgba(0, 212, 255, 0.2);
        }

        .auth-link-btn.danger {
            border-color: rgba(239, 68, 68, 0.35);
            background: rgba(239, 68, 68, 0.12);
            color: #fca5a5;
        }

        .auth-modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 12000;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.68);
            backdrop-filter: blur(12px);
        }

        .auth-modal {
            width: min(420px, calc(100vw - 32px));
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 12px;
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
            overflow: hidden;
        }

        .auth-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 18px;
            border-bottom: 1px solid var(--border-card);
        }

        .auth-modal-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .auth-modal-close {
            border: 0;
            background: transparent;
            color: var(--text-secondary);
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }

        .auth-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 14px 18px 0;
        }

        .auth-tab {
            border: 1px solid var(--border-card);
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-secondary);
            border-radius: 8px;
            padding: 8px 6px;
            cursor: pointer;
            font-size: 12px;
        }

        .auth-tab.active {
            color: var(--text-primary);
            border-color: rgba(0, 212, 255, 0.55);
            background: rgba(0, 212, 255, 0.14);
        }

        .auth-panel {
            display: none;
            padding: 16px 18px 18px;
        }

        .auth-panel.active {
            display: grid;
            gap: 10px;
        }

        .auth-panel input,
        .auth-panel select {
            width: 100%;
            box-sizing: border-box;
            border: 1px solid var(--border-card);
            background: var(--bg-input);
            color: var(--text-primary);
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 13px;
            outline: none;
        }

        .auth-submit-btn {
            border: 0;
            background: linear-gradient(135deg, #00d4ff, #8b5cf6);
            color: white;
            border-radius: 8px;
            padding: 10px 12px;
            font-weight: 700;
            cursor: pointer;
        }

        .auth-message {
            min-height: 18px;
            padding: 0 18px 16px;
            font-size: 12px;
        }

        .auth-result {
            display: none;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 10px;
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.6;
            word-break: break-all;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 20px;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.06) 0%, 
                rgba(0, 212, 255, 0.03) 100%);
            border-radius: 14px;
            border: 1px solid var(--border-card);
            box-shadow: 
                0 2px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }
        
        .user-info:hover {
            border-color: rgba(0, 212, 255, 0.45);
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.08) 0%, 
                rgba(0, 212, 255, 0.05) 100%);
            transform: translateY(-1px);
            box-shadow: 
                0 4px 16px rgba(0, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        
        .user-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--accent-gradient);
            background-size: 200% 200%;
            animation: gradientShift 3s ease infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 19px;
            font-weight: 800;
            color: #fff;
            box-shadow: 
                0 4px 14px var(--glow-cyan),
                0 0 24px var(--glow-cyan),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
            position: relative;
        }
        
        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        
        .user-avatar::before {
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            background: #10b981;
            border-radius: 50%;
            bottom: 2px;
            right: 2px;
            border: 2px solid rgba(20, 25, 45, 0.95);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
        }
        
        .user-details {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        
        .user-name {
            font-size: 15px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 0.3px;
        }
        
        .user-role {
            font-size: 11px;
            color: #a5b4fc;
            font-weight: 500;
            letter-spacing: 0.5px;
        }
        
        .user-credits {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 6px;
            padding: 4px 10px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(34, 197, 94, 0.08));
            border-radius: 8px;
            border: 1px solid rgba(16, 185, 129, 0.25);
        }
        
        .user-credits svg {
            width: 14px;
            height: 14px;
            stroke: #10b981;
        }
        
        .user-credits span {
            font-size: 12px;
            font-weight: 600;
            color: #10b981;
        }
        
        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 18px;
        }
        
        .project-selector {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 20px;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.06) 0%, 
                rgba(0, 212, 255, 0.03) 100%);
            border: 1px solid rgba(0, 212, 255, 0.25);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 
                0 2px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        
        .project-selector:hover {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(0, 212, 255, 0.06) 100%);
            border-color: rgba(0, 212, 255, 0.5);
            transform: translateY(-1px);
            box-shadow: 
                0 4px 16px rgba(0, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        
        .project-selector svg {
            width: 20px;
            height: 20px;
            stroke: #00d4ff;
            filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
        }
        
        .project-name {
            font-size: 14px;
            color: #e0f2fe;
            font-weight: 600;
            letter-spacing: 0.3px;
        }
        
        .workflow-selector {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 20px;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.06) 0%, 
                rgba(138, 43, 226, 0.03) 100%);
            border: 1px solid rgba(138, 43, 226, 0.25);
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 
                0 2px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }
        
        .workflow-selector:hover {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(138, 43, 226, 0.06) 100%);
            border-color: rgba(138, 43, 226, 0.5);
            transform: translateY(-1px);
            box-shadow: 
                0 4px 16px rgba(138, 43, 226, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        
        .workflow-selector svg {
            width: 20px;
            height: 20px;
            stroke: #a855f7;
            filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
        }
        
        .workflow-name {
            font-size: 14px;
            color: #f3e8ff;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .active-workflow-window {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 260px;
            max-width: 360px;
            padding: 8px 10px 8px 12px;
            border: 1px solid rgba(0, 212, 255, 0.32);
            border-radius: 10px;
            background: rgba(10, 18, 32, 0.88);
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        }

        .active-workflow-window.hidden {
            display: none !important;
        }

        [data-theme="light"] .active-workflow-window {
            border-color: rgba(14, 165, 233, 0.32);
            background: linear-gradient(135deg, rgba(239, 249, 255, 0.96), rgba(232, 244, 255, 0.92));
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
        }

        .active-workflow-main {
            min-width: 0;
            flex: 1;
            display: grid;
            gap: 2px;
            cursor: pointer;
        }

        .active-workflow-title {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .active-workflow-meta {
            color: var(--text-muted);
            font-size: 11px;
        }

        .active-workflow-close {
            width: 24px;
            height: 24px;
            border: 1px solid rgba(255, 107, 157, 0.35);
            border-radius: 7px;
            background: rgba(255, 107, 157, 0.08);
            color: #ff9fbd;
            cursor: pointer;
            line-height: 1;
        }

        .workflow-dropdown,
        .workflow-context-menu,
        .project-context-menu {
            position: absolute;
            z-index: 2200;
            display: none;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: rgba(10, 15, 26, 0.98);
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 212, 255, 0.12);
            color: var(--text-primary);
        }

        .workflow-dropdown.active,
        .workflow-context-menu.active,
        .project-context-menu.active {
            display: block;
        }

        .workflow-dropdown {
            top: 58px;
            right: 344px;
            width: 340px;
            max-height: min(520px, calc(100vh - 90px));
            overflow: auto;
            padding: 10px;
        }

        .workflow-dropdown-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 4px 4px 10px;
            border-bottom: 1px solid var(--border-card);
            margin-bottom: 8px;
        }

        .workflow-dropdown-title {
            font-size: 13px;
            font-weight: 700;
        }

        .workflow-dropdown-actions {
            display: flex;
            gap: 6px;
        }

        .workflow-menu-btn {
            border: 1px solid var(--border-card);
            background: rgba(0, 212, 255, 0.09);
            color: var(--text-secondary);
            border-radius: 7px;
            padding: 5px 8px;
            font-size: 11px;
            cursor: pointer;
        }

        .workflow-menu-item {
            display: grid;
            gap: 3px;
            padding: 10px;
            border: 1px solid transparent;
            border-radius: 8px;
            cursor: pointer;
        }

        .workflow-menu-item:hover,
        .workflow-menu-item.active {
            border-color: rgba(0, 212, 255, 0.35);
            background: rgba(0, 212, 255, 0.08);
        }

        .workflow-menu-item-title {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 700;
        }

        .workflow-menu-item-meta {
            color: var(--text-muted);
            font-size: 11px;
        }

        .workflow-context-menu {
            width: 150px;
            padding: 6px;
        }

        .workflow-context-menu button,
        .project-context-menu button {
            display: block;
            width: 100%;
            border: 0;
            background: transparent;
            color: var(--text-secondary);
            text-align: left;
            border-radius: 7px;
            padding: 8px 10px;
            cursor: pointer;
        }

        .workflow-context-menu button:hover,
        .project-context-menu button:hover {
            color: var(--text-primary);
            background: rgba(0, 212, 255, 0.1);
        }

        .project-context-menu {
            width: 150px;
            padding: 6px;
        }

        .project-dropdown {
            position: absolute;
            top: 58px;
            right: 178px;
            z-index: 2200;
            display: none;
            width: 360px;
            max-height: min(620px, calc(100vh - 90px));
            overflow: auto;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: rgba(10, 15, 26, 0.98);
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 212, 255, 0.12);
            padding: 10px;
        }

        .project-dropdown.active {
            display: block;
        }

        .project-type-block {
            border: 1px solid var(--border-card);
            border-radius: 8px;
            margin-bottom: 8px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.025);
        }

        .project-type-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            cursor: pointer;
        }

        .project-type-title {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-primary);
        }

        .project-type-meta {
            font-size: 11px;
            color: var(--text-muted);
        }

        .project-sub-list {
            display: none;
            padding: 0 8px 8px;
        }

        .project-type-block.open .project-sub-list {
            display: grid;
            gap: 6px;
        }

        .project-sub-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            border: 1px solid transparent;
            border-radius: 7px;
            padding: 8px 9px;
            color: var(--text-secondary);
            cursor: pointer;
            background: rgba(255, 255, 255, 0.025);
        }

        .project-sub-item:hover {
            border-color: rgba(0, 212, 255, 0.35);
            background: rgba(0, 212, 255, 0.08);
            color: var(--text-primary);
        }

        .deploy-page {
            position: absolute;
            top: 70px;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 86;
            display: none;
            grid-template-rows: max-content 46px minmax(0, 1fr);
            background:
                radial-gradient(circle at 18% 8%, rgba(0, 212, 255, 0.12), transparent 28%),
                radial-gradient(circle at 88% 16%, rgba(139, 92, 246, 0.12), transparent 26%),
                linear-gradient(135deg, rgba(2, 12, 27, 0.98), rgba(3, 20, 36, 0.98) 48%, rgba(4, 24, 43, 0.98));
            color: var(--text-primary);
            overflow: hidden;
            isolation: isolate;
        }

        .deploy-page::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -2;
            background:
                linear-gradient(115deg, rgba(15, 23, 42, 0.96), rgba(7, 18, 34, 0.92) 42%, rgba(4, 35, 40, 0.9)),
                repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.045) 0 1px, transparent 1px 72px),
                repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.035) 0 1px, transparent 1px 72px);
        }

        .deploy-page::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background:
                linear-gradient(135deg, transparent 0 22%, rgba(20, 184, 166, 0.08) 22% 22.4%, transparent 22.4% 56%, rgba(245, 158, 11, 0.07) 56% 56.35%, transparent 56.35%),
                radial-gradient(ellipse at 72% 8%, rgba(16, 185, 129, 0.16), transparent 36%),
                radial-gradient(ellipse at 18% 82%, rgba(245, 158, 11, 0.11), transparent 30%);
            opacity: 0.9;
        }

        .deploy-page.active {
            display: grid;
        }

        .deploy-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            min-height: 62px;
            padding: 12px 22px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.16);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
                rgba(4, 12, 24, 0.72);
            backdrop-filter: blur(18px);
            box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
        }

        .deploy-title {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: 0;
        }

        .deploy-subtitle {
            margin-top: 4px;
            color: rgba(199, 210, 254, 0.78);
            font-size: 12px;
        }

        .deploy-progress-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
            overflow: hidden;
            height: 78px;
            min-height: 78px;
            padding: 13px 22px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            background:
                linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(0, 0, 0, 0.1)),
                rgba(0, 0, 0, 0.1);
            align-items: center;
        }

        .deploy-step-card {
            position: relative;
            min-width: 0;
            height: 52px;
            display: grid;
            grid-template-columns: 11px minmax(0, 1fr) auto;
            align-items: center;
            gap: 9px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 8px;
            padding: 9px 11px;
            isolation: isolate;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
                rgba(15, 23, 42, 0.62);
            cursor: pointer;
            overflow: hidden;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .deploy-step-card::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            opacity: 0.65;
            background:
                linear-gradient(135deg, rgba(20, 184, 166, 0.16), transparent 44%),
                linear-gradient(315deg, rgba(245, 158, 11, 0.12), transparent 42%);
            pointer-events: none;
        }

        .deploy-step-card[data-step-kind="script_reasoning"]::before,
        .deploy-step-card[data-step-kind="batch_commerce"]::before {
            background:
                linear-gradient(135deg, rgba(20, 184, 166, 0.17), transparent 44%),
                linear-gradient(315deg, rgba(245, 158, 11, 0.14), transparent 42%);
        }

        .deploy-step-card[data-step-kind="asset_extract"]::before,
        .deploy-step-card[data-step-kind="commerce_reasoning"]::before {
            background:
                linear-gradient(135deg, rgba(236, 72, 153, 0.15), transparent 44%),
                linear-gradient(315deg, rgba(34, 197, 94, 0.12), transparent 42%);
        }

        .deploy-step-card[data-step-kind="asset_generate"]::before {
            background:
                linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 44%),
                linear-gradient(315deg, rgba(14, 165, 233, 0.13), transparent 42%);
        }

        .deploy-step-card[data-step-kind="dispatch"]::before {
            background:
                linear-gradient(135deg, rgba(99, 102, 241, 0.17), transparent 44%),
                linear-gradient(315deg, rgba(20, 184, 166, 0.15), transparent 42%);
        }

        .deploy-step-card[data-step-kind="concurrent"]::before {
            background:
                linear-gradient(135deg, rgba(0, 212, 255, 0.17), transparent 44%),
                linear-gradient(315deg, rgba(34, 197, 94, 0.13), transparent 42%);
        }

        .deploy-step-card::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 2px;
            background: transparent;
        }

        .deploy-step-card:hover {
            transform: translateY(-1px);
            border-color: rgba(0, 212, 255, 0.42);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.028)),
                rgba(0, 18, 32, 0.76);
            box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .deploy-step-card.active {
            border-color: rgba(0, 212, 255, 0.72);
            background:
                linear-gradient(180deg, rgba(0, 212, 255, 0.18), rgba(255, 255, 255, 0.026)),
                rgba(0, 26, 44, 0.82);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 212, 255, 0.18);
        }

        .deploy-step-card.active::after {
            background: linear-gradient(90deg, var(--accent), #22c55e);
        }

        .deploy-step-card.done {
            border-color: rgba(34, 197, 94, 0.48);
            background:
                linear-gradient(180deg, rgba(34, 197, 94, 0.15), rgba(255, 255, 255, 0.025)),
                rgba(2, 32, 28, 0.62);
        }

        .deploy-step-card.done::after {
            background: rgba(34, 197, 94, 0.85);
        }

        .deploy-step-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--text-muted);
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
        }

        .deploy-step-card.active .deploy-step-dot {
            background: var(--accent);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.65);
        }

        .deploy-step-card.done .deploy-step-dot {
            background: #10b981;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
        }

        .deploy-step-text {
            min-width: 0;
        }

        .deploy-step-title {
            font-size: 14px;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .deploy-step-meta {
            color: var(--text-muted);
            font-size: 12px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .deploy-step-status {
            color: var(--text-secondary);
            font-size: 12px;
            white-space: nowrap;
            padding: 3px 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.045);
        }

        .deploy-step-card.active .deploy-step-status {
            color: #dff8ff;
            background: rgba(0, 212, 255, 0.16);
        }

        .deploy-step-card.done .deploy-step-status {
            color: #dcfce7;
            background: rgba(34, 197, 94, 0.14);
        }

        .deploy-body {
            display: flex;
            gap: 14px;
            min-height: 0;
            height: 100%;
            overflow: hidden;
            padding: 18px 22px 22px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 160px);
            overscroll-behavior: contain;
        }

        .deploy-pane {
            min-width: 0;
            min-height: 0;
            overflow: auto;
            padding: 16px;
            border-right: 1px solid var(--border-card);
        }

        .deploy-pane:last-child {
            border-right: 0;
        }

        .deploy-stage-panel {
            position: relative;
            min-width: 0;
            min-height: 0;
            display: grid;
            grid-template-rows: max-content minmax(0, 1fr);
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 8px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
                rgba(8, 18, 32, 0.62);
            overflow: hidden;
            backdrop-filter: blur(14px);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.055);
            transition: flex-basis 0.24s ease, flex-grow 0.24s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
        }

        .deploy-stage-panel.active {
            flex: 1 1 auto;
            border-color: rgba(20, 184, 166, 0.64);
            background:
                linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(255, 255, 255, 0.02)),
                rgba(7, 22, 36, 0.76);
            box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(20, 184, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .deploy-stage-panel.collapsed {
            flex: 0 0 48px;
            cursor: pointer;
            background: rgba(255, 255, 255, 0.018);
        }

        .deploy-stage-panel.collapsed:hover {
            border-color: rgba(0, 212, 255, 0.42);
            background: rgba(0, 212, 255, 0.07);
        }

        .deploy-stage-head {
            min-width: 0;
            display: grid;
            grid-template-columns: 10px minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            padding: 11px 13px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            background:
                linear-gradient(90deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.025)),
                rgba(255, 255, 255, 0.026);
        }

        .deploy-stage-title {
            min-width: 0;
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .deploy-stage-subtitle,
        .deploy-stage-status {
            color: var(--text-muted);
            font-size: 10px;
            white-space: nowrap;
        }

        .deploy-stage-content {
            min-width: 0;
            min-height: 0;
            overflow: auto;
            padding: 14px;
            overscroll-behavior: contain;
            scrollbar-width: thin;
        }

        .deploy-stage-panel.collapsed .deploy-stage-head {
            height: 100%;
            grid-template-columns: 1fr;
            grid-template-rows: 10px minmax(0, 1fr);
            justify-items: center;
            align-items: center;
            padding: 10px 6px;
            border-bottom: 0;
        }

        .deploy-stage-panel.collapsed .deploy-stage-title {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .deploy-stage-panel.collapsed .deploy-stage-subtitle,
        .deploy-stage-panel.collapsed .deploy-stage-status,
        .deploy-stage-panel.collapsed .deploy-stage-content {
            display: none;
        }

        .deploy-card {
            position: relative;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 8px;
            padding: 14px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026)),
                rgba(11, 23, 38, 0.72);
            margin-bottom: 12px;
            backdrop-filter: blur(12px);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.065);
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
            animation: deploySoftIn 0.24s ease both;
        }

        .deploy-card:hover {
            transform: translateY(-1px);
            border-color: rgba(20, 184, 166, 0.44);
            background:
                linear-gradient(180deg, rgba(20, 184, 166, 0.095), rgba(255, 255, 255, 0.026)),
                rgba(12, 27, 42, 0.78);
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
        }

        @keyframes deploySoftIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .deploy-card-title {
            font-size: 14px;
            font-weight: 800;
            margin-bottom: 10px;
            line-height: 1.25;
        }

        .deploy-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            position: relative;
            z-index: 2;
        }

        .deploy-card-head .deploy-card-title {
            margin-bottom: 0;
        }

        .deploy-page {
            --deploy-title-color: #7dd3fc;
            --deploy-card-title-color: #67e8f9;
            --deploy-stage-title-color: #5eead4;
            --deploy-label-color: #fbbf24;
            --deploy-copy-color: #dbeafe;
            --deploy-muted-color: #93a4bd;
            --deploy-soft-color: #c4b5fd;
            --deploy-success-color: #86efac;
            --deploy-warning-color: #fde68a;
        }

        .deploy-page .deploy-title {
            color: var(--deploy-title-color);
            text-shadow: 0 0 18px rgba(125, 211, 252, 0.16);
        }

        .deploy-page .deploy-subtitle {
            color: var(--deploy-soft-color);
        }

        .deploy-page .deploy-card-title,
        .deploy-page .project-page-title {
            color: var(--deploy-card-title-color);
        }

        .deploy-page .deploy-stage-title {
            color: var(--deploy-stage-title-color);
        }

        .deploy-page .deploy-stage-subtitle,
        .deploy-page .deploy-step-meta,
        .deploy-page .project-page-subtitle {
            color: var(--deploy-muted-color);
        }

        .deploy-page .deploy-step-title {
            color: var(--deploy-copy-color);
        }

        .deploy-page .deploy-step-card[data-step-kind="script_reasoning"] .deploy-step-title,
        .deploy-page .deploy-step-card[data-step-kind="batch_commerce"] .deploy-step-title {
            color: #99f6e4;
        }

        .deploy-page .deploy-step-card[data-step-kind="asset_extract"] .deploy-step-title,
        .deploy-page .deploy-step-card[data-step-kind="commerce_reasoning"] .deploy-step-title {
            color: #f9a8d4;
        }

        .deploy-page .deploy-step-card[data-step-kind="asset_generate"] .deploy-step-title {
            color: #fde68a;
        }

        .deploy-page .deploy-step-card[data-step-kind="dispatch"] .deploy-step-title {
            color: #c4b5fd;
        }

        .deploy-page .deploy-step-card[data-step-kind="concurrent"] .deploy-step-title {
            color: #93c5fd;
        }

        .deploy-page .deploy-step-card.active .deploy-step-title {
            color: #ecfeff;
        }

        .deploy-page .deploy-label {
            color: var(--deploy-label-color);
        }

        .deploy-page .deploy-input,
        .deploy-page .deploy-textarea,
        .deploy-page .deploy-select {
            color: var(--deploy-copy-color);
        }

        .deploy-page .deploy-input::placeholder,
        .deploy-page .deploy-textarea::placeholder {
            color: rgba(147, 164, 189, 0.7);
        }

        .deploy-page .deploy-status-pill,
        .deploy-page .deploy-stage-status,
        .deploy-page .deploy-step-status {
            color: var(--deploy-success-color);
        }

        .deploy-page .project-action-btn {
            color: #e0f2fe;
        }

        .deploy-page .project-action-btn.secondary {
            color: #c4b5fd;
        }

        .deploy-page .project-action-btn.project-run-btn {
            color: #ecfeff;
        }

        .deploy-page .project-action-btn.project-next-btn {
            color: #dcfce7;
        }

        .deploy-page .project-action-btn.danger {
            color: #fee2e2;
        }

        .deploy-page .project-empty {
            color: var(--deploy-muted-color);
        }

        [data-theme="light"] .deploy-page {
            --deploy-title-color: #075985;
            --deploy-card-title-color: #0f766e;
            --deploy-stage-title-color: #047857;
            --deploy-label-color: #b45309;
            --deploy-copy-color: #172554;
            --deploy-muted-color: #64748b;
            --deploy-soft-color: #6d28d9;
            --deploy-success-color: #047857;
            --deploy-warning-color: #b45309;
            color: #172554;
            background:
                radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.18), transparent 28%),
                radial-gradient(circle at 88% 16%, rgba(139, 92, 246, 0.13), transparent 28%),
                linear-gradient(135deg, #eef7ff, #f8fbff 48%, #ecfeff);
        }

        [data-theme="light"] .deploy-page::before {
            background:
                linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.9) 42%, rgba(236, 254, 255, 0.88)),
                repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.045) 0 1px, transparent 1px 72px),
                repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 72px);
        }

        [data-theme="light"] .deploy-page::after {
            background:
                linear-gradient(135deg, transparent 0 22%, rgba(14, 165, 233, 0.09) 22% 22.4%, transparent 22.4% 56%, rgba(245, 158, 11, 0.08) 56% 56.35%, transparent 56.35%),
                radial-gradient(ellipse at 72% 8%, rgba(20, 184, 166, 0.15), transparent 36%),
                radial-gradient(ellipse at 18% 82%, rgba(139, 92, 246, 0.11), transparent 30%);
        }

        [data-theme="light"] .deploy-header,
        [data-theme="light"] .deploy-progress-strip {
            border-color: rgba(15, 23, 42, 0.12);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.74)),
                rgba(255, 255, 255, 0.72);
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
        }

        [data-theme="light"] .deploy-body {
            background: linear-gradient(180deg, rgba(14, 165, 233, 0.045), transparent 160px);
        }

        [data-theme="light"] .deploy-stage-panel,
        [data-theme="light"] .deploy-card {
            border-color: rgba(14, 116, 144, 0.18);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 249, 255, 0.72)),
                rgba(255, 255, 255, 0.82);
            box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        [data-theme="light"] .deploy-stage-panel.active {
            border-color: rgba(20, 184, 166, 0.46);
            background:
                linear-gradient(180deg, rgba(204, 251, 241, 0.55), rgba(255, 255, 255, 0.76)),
                rgba(255, 255, 255, 0.86);
            box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(20, 184, 166, 0.14);
        }

        [data-theme="light"] .deploy-stage-head,
        [data-theme="light"] .deploy-card-head {
            border-color: rgba(15, 23, 42, 0.1);
            background:
                linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(255, 255, 255, 0.52)),
                rgba(255, 255, 255, 0.42);
        }

        [data-theme="light"] .deploy-step-card {
            border-color: rgba(15, 23, 42, 0.13);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.58)),
                rgba(255, 255, 255, 0.72);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
        }

        [data-theme="light"] .deploy-step-card:hover,
        [data-theme="light"] .deploy-step-card.active {
            border-color: rgba(14, 165, 233, 0.48);
            background:
                linear-gradient(180deg, rgba(224, 242, 254, 0.92), rgba(255, 255, 255, 0.78)),
                rgba(255, 255, 255, 0.82);
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(14, 165, 233, 0.12);
        }

        [data-theme="light"] .deploy-input,
        [data-theme="light"] .deploy-textarea,
        [data-theme="light"] .deploy-select {
            border-color: rgba(14, 116, 144, 0.2);
            background: rgba(255, 255, 255, 0.78);
            color: #172554;
            box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
        }

        [data-theme="light"] .deploy-status-pill,
        [data-theme="light"] .deploy-stage-status,
        [data-theme="light"] .deploy-step-status {
            background: rgba(20, 184, 166, 0.12);
            color: #047857;
        }

        [data-theme="light"] .deploy-page .project-action-btn {
            color: #082f49;
        }

        [data-theme="light"] .deploy-page .project-action-btn.secondary {
            color: #4338ca;
        }

        [data-theme="light"] .deploy-page .project-action-btn.project-run-btn {
            color: #ecfeff;
        }

        [data-theme="light"] .deploy-page .project-action-btn.project-next-btn {
            color: #052e16;
        }

        [data-theme="light"] .deploy-page .project-empty {
            border-color: rgba(14, 116, 144, 0.22);
            background: rgba(255, 255, 255, 0.5);
        }

        .deploy-grid {
            display: grid;
            gap: 10px;
        }

        .deploy-script-workspace {
            min-height: 100%;
            display: grid;
            grid-template-columns: minmax(430px, 1fr) minmax(500px, 1.05fr);
            gap: 12px;
            align-items: stretch;
        }

        .deploy-form-compact {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 10px;
        }

        .deploy-form-compact .deploy-field {
            min-width: 0;
            display: grid;
            gap: 5px;
        }

        .deploy-field.name-field {
            grid-column: span 2;
        }

        .deploy-field.model-field {
            grid-column: span 2;
        }

        .deploy-field.style-field {
            grid-column: span 2;
        }

        .deploy-field.prompt-field,
        .deploy-field.extra-field,
        .deploy-field.preset-field {
            grid-column: 1 / -1;
        }

        .deploy-preset-strip {
            grid-column: 1 / -1;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .deploy-preset-btn {
            border: 1px solid rgba(0, 212, 255, 0.28);
            border-radius: 999px;
            background: rgba(0, 212, 255, 0.08);
            color: var(--text-secondary);
            padding: 6px 10px;
            font-size: 11px;
            cursor: pointer;
            transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
        }

        .deploy-preset-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(0, 212, 255, 0.58);
            background: rgba(0, 212, 255, 0.16);
            color: var(--text-primary);
        }

        .deploy-preset-btn.active {
            border-color: rgba(103, 232, 249, 0.72);
            background: rgba(0, 212, 255, 0.2);
            color: var(--text-primary);
            box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08), 0 8px 24px rgba(0, 212, 255, 0.08);
        }

        .deploy-locked-preset {
            grid-column: 1 / -1;
            border: 1px solid rgba(0, 212, 255, 0.22);
            border-radius: 8px;
            background: rgba(0, 212, 255, 0.045);
            padding: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .deploy-locked-preset-head {
            display: contents;
        }

        .deploy-locked-preset-title {
            display: grid;
            gap: 2px;
            min-width: 0;
        }

        .deploy-locked-preset-title strong {
            font-size: 13px;
            color: var(--text-primary);
        }

        .deploy-locked-preset-title span {
            font-size: 11px;
            color: var(--text-muted);
        }

        .deploy-script-result-card {
            min-height: 100%;
            display: grid;
            grid-template-rows: max-content minmax(0, 1fr);
        }

        .deploy-script-result-card .deploy-textarea {
            min-height: 520px;
            height: 100%;
        }

        .deploy-asset-extract-workspace {
            min-height: 100%;
            display: grid;
            grid-template-columns: minmax(460px, 0.95fr) minmax(520px, 1.05fr);
            grid-template-rows: minmax(0, 1fr);
            gap: 12px;
            align-items: stretch;
        }

        .deploy-asset-column {
            min-height: 100%;
            display: grid;
            gap: 12px;
            align-content: stretch;
        }

        .deploy-asset-source-card,
        .deploy-asset-output-card {
            display: grid;
            grid-template-rows: max-content minmax(0, 1fr);
        }

        .deploy-asset-source-card .deploy-textarea {
            min-height: 360px;
            height: 100%;
        }

        .deploy-asset-preset-card .deploy-textarea {
            min-height: 160px;
            font-family: "SF Mono", "Consolas", monospace;
            font-size: 12px;
            line-height: 1.55;
        }

        .deploy-asset-output-card .deploy-textarea {
            min-height: 430px;
            height: 100%;
        }

        .deploy-asset-next-btn {
            min-width: 180px;
            min-height: 42px;
            font-weight: 800;
        }

        .deploy-asset-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            color: var(--text-muted);
            font-size: 11px;
        }

        .deploy-importer-workspace {
            display: grid;
            grid-template-rows: max-content minmax(0, 1fr);
            gap: 12px;
            min-height: 100%;
            overflow: visible;
        }

        .deploy-importer-presets {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .deploy-node-preset-card {
            border: 1px solid rgba(0, 212, 255, 0.18);
            border-radius: 8px;
            padding: 8px;
            background:
                linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(255, 255, 255, 0.02)),
                rgba(255, 255, 255, 0.025);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .deploy-node-preset-title {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            align-items: center;
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: 800;
        }

        .deploy-node-preset-title-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .deploy-preset-mini-btn {
            min-height: 22px;
            border-radius: 999px;
            border: 1px solid rgba(0, 212, 255, 0.28);
            background: rgba(0, 212, 255, 0.1);
            color: rgba(210, 240, 255, 0.95);
            padding: 2px 8px;
            font-size: 10px;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
        }

        .deploy-preset-mini-btn:hover {
            border-color: rgba(0, 212, 255, 0.55);
            background: rgba(0, 212, 255, 0.18);
        }

        .deploy-node-preset-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 6px;
        }

        .deploy-node-preset-grid .deploy-field {
            display: grid;
            gap: 3px;
            min-width: 0;
        }

        .deploy-node-preset-grid .wide {
            grid-column: span 2;
        }

        .deploy-node-config-panel {
            grid-column: 1 / -1;
            border: 1px solid rgba(0, 212, 255, 0.14);
            border-radius: 8px;
            padding: 7px;
            background: rgba(0, 0, 0, 0.13);
        }

        .deploy-node-config-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 800;
        }

        .deploy-api-info-box {
            min-height: 28px;
            max-height: 36px;
            border: 1px solid rgba(0, 212, 255, 0.16);
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.24);
            color: rgba(148, 214, 255, 0.88);
            font-family: Consolas, "Courier New", monospace;
            font-size: 10px;
            line-height: 1.35;
            padding: 5px 7px;
            overflow: auto;
        }

        .deploy-api-info-box div {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .deploy-importer-presets .deploy-label {
            font-size: 10px;
            line-height: 1.1;
        }

        .deploy-importer-presets .deploy-input,
        .deploy-importer-presets .deploy-select {
            min-height: 28px;
            border-radius: 6px;
            padding: 5px 7px;
            font-size: 11px;
        }

        .deploy-importer-presets .deploy-textarea.compact {
            min-height: 48px;
            padding: 6px 7px;
            font-size: 11px;
            line-height: 1.35;
        }

        .deploy-importer-presets .project-action-btn {
            min-height: 28px;
            padding: 5px 9px;
            font-size: 11px;
        }

        .deploy-importer-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(420px, 1fr));
            gap: 10px;
            overflow: auto;
            padding-right: 4px;
        }

        .deploy-importer-row {
            display: grid;
            grid-template-columns: 148px minmax(0, 1fr);
            grid-template-areas:
                "thumb prompt"
                "main main";
            gap: 8px;
            align-items: stretch;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.026);
            padding: 8px;
            transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
            min-width: 0;
        }

        .deploy-importer-row:hover {
            border-color: rgba(0, 212, 255, 0.38);
            background: rgba(0, 212, 255, 0.045);
            transform: translateY(-1px);
        }

        .deploy-importer-thumb {
            grid-area: thumb;
            min-height: 132px;
            aspect-ratio: 1 / 1;
            border: 1px dashed rgba(0, 212, 255, 0.28);
            border-radius: 8px;
            position: relative;
            display: grid;
            place-items: center;
            text-align: center;
            color: var(--text-muted);
            background: rgba(0, 0, 0, 0.16);
            font-size: 11px;
            line-height: 1.5;
            overflow: hidden;
        }

        .deploy-importer-thumb.has-image {
            color: var(--text-secondary);
            border-style: solid;
            background: rgba(0, 0, 0, 0.22);
            cursor: grab;
        }

        .deploy-importer-thumb.has-image:active {
            cursor: grabbing;
        }

        .deploy-importer-thumb.drag-over {
            border-color: rgba(0, 212, 255, 0.86);
            background: rgba(0, 212, 255, 0.12);
            box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.32), 0 0 22px rgba(0, 212, 255, 0.12);
        }

        .deploy-importer-thumb img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .deploy-importer-image-bubble {
            position: fixed;
            z-index: 150000;
            grid-template-rows: max-content minmax(0, 1fr);
            gap: 8px;
            padding: 10px;
            border: 1px solid rgba(0, 212, 255, 0.42);
            border-radius: 8px;
            background: rgba(5, 16, 28, 0.96);
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(0, 212, 255, 0.1);
            pointer-events: none;
        }

        .deploy-importer-image-bubble-title {
            color: #dff8ff;
            font-size: 12px;
            font-weight: 800;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .deploy-importer-image-bubble img {
            width: 100%;
            height: 100%;
            min-height: 0;
            object-fit: contain;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.26);
        }

        .deploy-importer-image-preview-overlay {
            position: fixed;
            inset: 0;
            z-index: 160000;
            display: grid;
            place-items: center;
            padding: 28px;
            background: rgba(2, 6, 23, 0.84);
            backdrop-filter: blur(8px);
        }

        .deploy-importer-image-preview-frame {
            width: min(1120px, calc(100vw - 72px));
            height: min(820px, calc(100vh - 72px));
            display: grid;
            grid-template-rows: minmax(0, 1fr) max-content;
            gap: 10px;
            padding: 14px;
            border: 1px solid rgba(0, 212, 255, 0.38);
            border-radius: 10px;
            background: rgba(8, 18, 32, 0.96);
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
        }

        .deploy-importer-image-preview-frame img {
            width: 100%;
            height: 100%;
            min-height: 0;
            object-fit: contain;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.24);
        }

        .deploy-importer-image-preview-title {
            color: #dff8ff;
            font-size: 13px;
            font-weight: 800;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .deploy-importer-image-preview-close {
            position: fixed;
            top: 22px;
            right: 24px;
            width: 34px;
            height: 34px;
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 8px;
            background: rgba(239, 68, 68, 0.24);
            color: #fee2e2;
            font-size: 20px;
            cursor: pointer;
        }

        .deploy-importer-thumb-label {
            display: none;
        }

        .deploy-importer-thumb-status {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            color: rgba(232, 248, 255, 0.96);
            background:
                radial-gradient(circle at 20% 12%, rgba(0, 212, 255, 0.18), transparent 36%),
                linear-gradient(145deg, rgba(5, 17, 29, 0.82), rgba(6, 24, 34, 0.62));
            backdrop-filter: blur(5px) saturate(1.25);
            font-size: 11px;
            line-height: 1.35;
            z-index: 2;
        }

        .deploy-importer-thumb-status.success {
            display: none;
        }

        .deploy-importer-thumb-status.error {
            color: rgba(255, 229, 232, 0.98);
            background:
                radial-gradient(circle at 18% 12%, rgba(255, 83, 112, 0.22), transparent 34%),
                linear-gradient(145deg, rgba(45, 11, 22, 0.86), rgba(20, 18, 30, 0.72));
        }

        .deploy-importer-thumb-status.warning {
            color: rgba(255, 242, 208, 0.98);
            background:
                radial-gradient(circle at 18% 12%, rgba(255, 193, 72, 0.2), transparent 35%),
                linear-gradient(145deg, rgba(48, 34, 12, 0.84), rgba(25, 25, 30, 0.7));
        }

        .deploy-importer-status-card {
            width: 100%;
            min-height: 86px;
            display: grid;
            align-content: center;
            gap: 8px;
            padding: 10px 11px;
            border-radius: 9px;
            border: 1px solid rgba(120, 220, 255, 0.2);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                0 12px 28px rgba(0, 0, 0, 0.24);
        }

        .deploy-importer-thumb-status.error .deploy-importer-status-card {
            border-color: rgba(255, 112, 132, 0.32);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 12px 28px rgba(70, 0, 24, 0.26);
        }

        .deploy-importer-thumb-status.warning .deploy-importer-status-card {
            border-color: rgba(255, 199, 92, 0.3);
        }

        .deploy-importer-status-head {
            display: flex;
            align-items: center;
            gap: 7px;
            min-width: 0;
        }

        .deploy-importer-status-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            flex: 0 0 auto;
            background: #00d4ff;
            box-shadow: 0 0 12px rgba(0, 212, 255, 0.85);
        }

        .deploy-importer-thumb-status.error .deploy-importer-status-dot {
            background: #ff5f7e;
            box-shadow: 0 0 12px rgba(255, 95, 126, 0.82);
        }

        .deploy-importer-thumb-status.warning .deploy-importer-status-dot {
            background: #ffc857;
            box-shadow: 0 0 12px rgba(255, 200, 87, 0.72);
        }

        .deploy-importer-status-title {
            font-size: 12px;
            font-weight: 700;
            color: rgba(245, 252, 255, 0.96);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .deploy-importer-spinner {
            width: 18px;
            height: 18px;
            border: 2px solid rgba(0, 212, 255, 0.2);
            border-top-color: rgba(0, 212, 255, 0.95);
            border-radius: 50%;
            animation: deploySpin 0.9s linear infinite;
        }

        @keyframes deploySpin {
            to { transform: rotate(360deg); }
        }

        .deploy-importer-thumb-status-text {
            width: 100%;
            max-height: 34px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            color: rgba(220, 236, 242, 0.76);
            font-size: 10px;
        }

        .deploy-importer-status-rail {
            height: 3px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.11);
        }

        .deploy-importer-status-rail span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.95), rgba(120, 240, 255, 0.45));
            transition: width 0.25s ease;
            animation: deployStatusPulse 1.35s ease-in-out infinite;
        }

        .deploy-importer-thumb-status.error .deploy-importer-status-rail span {
            width: 100%;
            background: linear-gradient(90deg, rgba(255, 95, 126, 0.35), rgba(255, 95, 126, 0.9));
            animation: none;
        }

        .deploy-importer-thumb-status.warning .deploy-importer-status-rail span {
            width: 64%;
            background: linear-gradient(90deg, rgba(255, 200, 87, 0.3), rgba(255, 200, 87, 0.88));
            animation: none;
        }

        @keyframes deployStatusPulse {
            0%, 100% { opacity: 0.58; }
            50% { opacity: 1; }
        }

        .deploy-importer-main {
            grid-area: main;
            display: grid;
            grid-template-columns: minmax(120px, 1fr) repeat(4, minmax(76px, 92px));
            gap: 8px;
            align-items: center;
            min-width: 0;
        }

        .deploy-importer-main .deploy-input,
        .deploy-importer-main .deploy-select {
            min-height: 24px;
            height: 24px;
            padding: 0;
            font-size: 12px;
            border: 0;
            background: transparent;
            box-shadow: none;
            color: var(--text-secondary);
        }

        .deploy-importer-prompt {
            grid-area: prompt;
            min-height: 132px;
            max-height: 160px;
            resize: vertical;
            font-size: 12px;
            line-height: 1.45;
            padding: 7px 8px;
        }

        .deploy-importer-actions {
            display: contents;
        }

        .deploy-importer-actions .project-action-btn {
            min-height: 28px;
            padding: 5px 4px;
            font-size: 11px;
            white-space: nowrap;
            justify-content: center;
        }

        .deploy-batch-concurrency-select {
            width: 92px;
            min-width: 92px;
            max-width: 92px;
            height: 32px;
            padding: 5px 8px;
            font-size: 11px;
        }

        .deploy-importer-footer {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
            margin-top: 10px;
        }

        .deploy-field.prompt-field .deploy-textarea {
            min-height: 250px;
        }

        @media (max-width: 1280px) {
            .deploy-importer-list {
                grid-template-columns: 1fr;
            }
        }

        .deploy-field.preset-field .deploy-textarea {
            min-height: 138px;
            font-family: "SF Mono", "Consolas", monospace;
            font-size: 12px;
            line-height: 1.55;
            opacity: 0.92;
        }

        .deploy-script-next-btn {
            min-width: 220px;
            min-height: 46px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 800;
            justify-content: center;
        }

        .deploy-stream-status {
            color: var(--accent);
            font-size: 11px;
            font-variant-numeric: tabular-nums;
        }

        .deploy-asset-list,
        .deploy-node-run-list {
            display: grid;
            gap: 8px;
        }

        .deploy-asset-item,
        .deploy-node-run-item {
            display: grid;
            grid-template-columns: minmax(120px, 0.55fr) minmax(180px, 1fr) auto;
            gap: 8px;
            align-items: center;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 8px;
            background: rgba(255, 255, 255, 0.025);
        }

        .deploy-node-run-item {
            grid-template-columns: minmax(160px, 0.8fr) minmax(100px, 0.35fr) auto;
        }

        .deploy-status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 64px;
            border: 1px solid rgba(0, 212, 255, 0.24);
            border-radius: 999px;
            padding: 4px 8px;
            color: var(--text-secondary);
            background: rgba(0, 212, 255, 0.08);
            font-size: 11px;
            white-space: nowrap;
        }

        .deploy-row {
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 8px;
            align-items: center;
        }

        .deploy-label {
            color: var(--text-muted);
            font-size: 12px;
        }

        .deploy-input,
        .deploy-textarea,
        .deploy-select {
            width: 100%;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-primary);
            padding: 9px 10px;
            outline: none;
        }

        .deploy-textarea {
            min-height: 110px;
            resize: vertical;
        }

        .deploy-textarea.compact {
            min-height: 82px;
        }

        .deploy-task-list {
            display: grid;
            gap: 8px;
            max-height: 280px;
            overflow: auto;
        }

        .deploy-dispatch-task-list {
            max-height: none;
            overflow: visible;
        }

        .deploy-concurrent-panel-list {
            max-height: none;
            overflow: visible;
        }

        .deploy-task-item,
        .concurrent-panel-item {
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 9px;
            background: rgba(255, 255, 255, 0.025);
            font-size: 12px;
            color: var(--text-secondary);
        }

        .deploy-composite-picker {
            display: grid;
            grid-template-columns: repeat(4, minmax(150px, 1fr));
            gap: 10px;
        }

        .deploy-composite-picker-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            color: rgba(203, 213, 225, 0.82);
            font-size: 12px;
        }

        .deploy-composite-option {
            position: relative;
            min-height: 116px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            border-radius: 8px;
            padding: 12px;
            overflow: hidden;
            text-align: left;
            color: var(--text-primary);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.024)),
                rgba(15, 23, 42, 0.62);
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
        }

        .deploy-composite-option::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(135deg, rgba(20, 184, 166, 0.16), transparent 44%),
                linear-gradient(315deg, rgba(245, 158, 11, 0.12), transparent 42%);
            opacity: 0.55;
            pointer-events: none;
        }

        .deploy-composite-option[data-kind="short-video"]::before {
            background:
                linear-gradient(135deg, rgba(236, 72, 153, 0.16), transparent 44%),
                linear-gradient(315deg, rgba(34, 197, 94, 0.11), transparent 42%);
        }

        .deploy-composite-option[data-kind="short-drama"]::before {
            background:
                linear-gradient(135deg, rgba(244, 63, 94, 0.15), transparent 44%),
                linear-gradient(315deg, rgba(245, 158, 11, 0.13), transparent 42%);
        }

        .deploy-composite-option[data-kind="storyboard-video"]::before {
            background:
                linear-gradient(135deg, rgba(99, 102, 241, 0.16), transparent 44%),
                linear-gradient(315deg, rgba(20, 184, 166, 0.14), transparent 42%);
        }

        .deploy-composite-option:hover {
            transform: translateY(-2px);
            border-color: rgba(20, 184, 166, 0.52);
            box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(20, 184, 166, 0.12);
        }

        .deploy-composite-option.active {
            border-color: rgba(34, 197, 94, 0.78);
            background:
                linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.026)),
                rgba(10, 31, 36, 0.76);
            box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(34, 197, 94, 0.2);
        }

        .deploy-composite-head,
        .deploy-composite-meta,
        .deploy-composite-flow {
            position: relative;
            z-index: 1;
        }

        .deploy-composite-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 12px;
        }

        .deploy-composite-name {
            font-size: 14px;
            font-weight: 850;
        }

        .deploy-composite-mark {
            width: 24px;
            height: 24px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.18);
            background: rgba(0, 0, 0, 0.18);
            color: rgba(255, 255, 255, 0.72);
            font-size: 12px;
            font-weight: 900;
        }

        .deploy-composite-option.active .deploy-composite-mark {
            border-color: rgba(34, 197, 94, 0.72);
            background: rgba(34, 197, 94, 0.2);
            color: #dcfce7;
        }

        .deploy-composite-meta {
            color: rgba(203, 213, 225, 0.78);
            font-size: 11px;
            line-height: 1.45;
            min-height: 32px;
        }

        .deploy-composite-flow {
            margin-top: 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }

        .deploy-composite-flow span {
            display: inline-flex;
            align-items: center;
            min-height: 21px;
            border-radius: 999px;
            padding: 3px 7px;
            color: rgba(226, 232, 240, 0.9);
            background: rgba(15, 23, 42, 0.45);
            border: 1px solid rgba(148, 163, 184, 0.16);
            font-size: 10px;
            white-space: nowrap;
        }

        .deploy-dispatch-asset-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 8px;
        }

        .deploy-dispatch-asset-thumb,
        .deploy-dispatch-asset-more {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(148, 163, 184, 0.22);
            border-radius: 6px;
            background: rgba(15, 23, 42, 0.58);
            color: rgba(226, 232, 240, 0.82);
            font-size: 10px;
            overflow: hidden;
        }

        .deploy-dispatch-asset-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .deploy-auto-progress-card {
            border: 1px solid rgba(0, 212, 255, 0.24);
            border-radius: 8px;
            padding: 10px;
            background: rgba(0, 212, 255, 0.07);
        }

        .deploy-auto-progress-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            color: rgba(226, 232, 240, 0.92);
            font-size: 12px;
            margin-bottom: 8px;
        }

        .deploy-auto-progress-head span {
            color: var(--text-secondary);
            font-size: 11px;
        }

        .deploy-auto-progress-track {
            height: 7px;
            border-radius: 999px;
            overflow: hidden;
            border: 1px solid rgba(0, 212, 255, 0.22);
            background: rgba(0, 0, 0, 0.26);
        }

        .deploy-auto-progress-track span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #22c55e, #00d4ff);
            transition: width 0.24s ease;
        }

        .deploy-task-group-item {
            padding: 8px 10px;
        }

        .deploy-task-group-head {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #43e8ad;
            font-size: 12px;
            margin-bottom: 6px;
        }

        .deploy-task-group-head span {
            color: rgba(160, 190, 210, 0.88);
            font-size: 11px;
            font-weight: 600;
        }

        .deploy-task-group-body {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(160px, 0.34fr);
            gap: 10px;
            align-items: start;
        }

        .deploy-task-group-prompt {
            max-height: none;
            overflow: visible;
            white-space: pre-wrap;
            word-break: break-word;
            color: rgba(210, 240, 255, 0.9);
            line-height: 1.5;
            padding-right: 4px;
        }

        .deploy-task-group-editor {
            width: 100%;
            min-height: 116px;
            resize: vertical;
            padding: 8px 9px;
            border-radius: 6px;
            border: 1px solid rgba(0, 212, 255, 0.18);
            background: rgba(4, 18, 32, 0.28);
            outline: none;
            font: inherit;
            line-height: 1.55;
            box-sizing: border-box;
        }

        .deploy-task-group-editor:focus {
            border-color: rgba(0, 212, 255, 0.65);
            box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.18), 0 0 20px rgba(0, 212, 255, 0.08);
        }

        .deploy-task-group-assets {
            min-width: 0;
        }

        .deploy-task-group-assets .deploy-dispatch-asset-strip {
            margin-top: 0;
        }

        .deploy-task-group-assets .deploy-asset-meta {
            margin-top: 6px;
            line-height: 1.45;
            word-break: break-word;
        }

        .deploy-concurrent-toolbar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .deploy-composite-run-card {
            position: relative;
            padding: 8px;
            border-color: rgba(45, 178, 224, 0.28);
            background:
                linear-gradient(180deg, rgba(18, 88, 112, 0.20), rgba(255, 255, 255, 0.025)),
                rgba(13, 22, 41, 0.82);
        }

        .deploy-panel-refresh-icon {
            position: absolute;
            top: 8px;
            right: 10px;
            z-index: 8;
            display: inline-grid;
            place-items: center;
            width: 22px;
            height: 22px;
            border: 1px solid rgba(73, 211, 255, 0.42);
            border-radius: 50%;
            background: rgba(2, 18, 32, 0.72);
            color: rgba(210, 246, 255, 0.94);
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 0 0 1px rgba(3, 13, 24, 0.45);
        }

        .deploy-panel-refresh-icon:hover {
            border-color: rgba(96, 234, 255, 0.78);
            background: rgba(8, 54, 78, 0.88);
            color: #ffffff;
        }

        .deploy-panel-progress-card {
            margin: 0 0 8px;
            padding: 8px 10px;
            border: 1px solid rgba(45, 178, 224, 0.24);
            border-radius: 8px;
            background: rgba(5, 24, 42, 0.72);
        }

        .deploy-panel-progress-head {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 8px;
            color: rgba(210, 240, 255, 0.92);
            font-size: 12px;
        }

        .deploy-panel-progress-title {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: rgba(160, 220, 255, 0.88);
        }

        .deploy-panel-progress-percent {
            font-style: normal;
            color: #43e8ad;
            font-weight: 700;
        }

        .deploy-panel-progress-track {
            height: 6px;
            margin-top: 7px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(15, 45, 68, 0.9);
        }

        .deploy-panel-progress-track span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #22d3ee, #43e8ad);
            transition: width 0.28s ease;
        }

        .deploy-panel-progress-steps {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 7px;
        }

        .deploy-panel-progress-steps span {
            max-width: 160px;
            padding: 2px 7px;
            border: 1px solid rgba(100, 200, 255, 0.20);
            border-radius: 999px;
            color: rgba(160, 185, 205, 0.82);
            background: rgba(8, 24, 42, 0.78);
            font-size: 10px;
            line-height: 1.45;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .deploy-panel-progress-steps span[data-step-status="running"] {
            color: #facc15;
            border-color: rgba(250, 204, 21, 0.42);
            background: rgba(250, 204, 21, 0.10);
        }

        .deploy-panel-progress-steps span[data-step-status="done"] {
            color: #43e8ad;
            border-color: rgba(67, 232, 173, 0.42);
            background: rgba(67, 232, 173, 0.10);
        }

        .deploy-panel-progress-steps span[data-step-status="failed"] {
            color: #ff8f8f;
            border-color: rgba(255, 120, 120, 0.42);
            background: rgba(255, 120, 120, 0.10);
        }

        .deploy-workflow-preview-node .workflow-panel-title,
        .deploy-workflow-preview-node .panel-title {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .deploy-panel-stage-badge {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            height: 16px;
            padding: 0 6px;
            border: 1px solid rgba(67, 232, 173, 0.32);
            border-radius: 999px;
            color: #43e8ad;
            background: rgba(6, 78, 59, 0.22);
            font-size: 10px;
            line-height: 1;
            font-weight: 700;
        }

        .deploy-panel-stage-status {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            height: 16px;
            padding: 0 6px;
            border: 1px solid rgba(100, 200, 255, 0.22);
            border-radius: 999px;
            color: rgba(172, 205, 225, 0.86);
            background: rgba(8, 24, 42, 0.68);
            font-size: 10px;
            line-height: 1;
            font-weight: 700;
        }

        .deploy-panel-stage-status[data-step-status="running"] {
            color: #facc15;
            border-color: rgba(250, 204, 21, 0.42);
            background: rgba(250, 204, 21, 0.10);
        }

        .deploy-panel-stage-status[data-step-status="done"],
        .deploy-panel-stage-status[data-step-status="completed"] {
            color: #43e8ad;
            border-color: rgba(67, 232, 173, 0.42);
            background: rgba(67, 232, 173, 0.10);
        }

        .deploy-panel-stage-status[data-step-status="failed"],
        .deploy-panel-stage-status[data-step-status="error"] {
            color: #ff8f8f;
            border-color: rgba(255, 120, 120, 0.42);
            background: rgba(255, 120, 120, 0.10);
        }

        .deploy-workflow-preview {
            margin-top: 8px;
            min-height: 430px;
            overflow-x: auto;
            overflow-y: hidden;
            border-radius: 8px;
            background: rgba(8, 18, 32, 0.52);
            position: relative;
            z-index: 0;
        }

        .deploy-workflow-preview-node.node.workflow-host.workflow-final-lock {
            position: relative !important;
            left: auto !important;
            top: auto !important;
            width: max(100%, 1500px) !important;
            height: 430px !important;
            min-width: 1500px !important;
            min-height: 360px !important;
            max-width: none !important;
            transform: none !important;
            margin: 0 !important;
            pointer-events: auto !important;
            box-sizing: border-box !important;
        }

        .deploy-workflow-preview-node.node.workflow-host.workflow-final-lock *,
        .deploy-workflow-preview-node.node.workflow-host.workflow-final-lock button,
        .deploy-workflow-preview-node.node.workflow-host.workflow-final-lock select,
        .deploy-workflow-preview-node.node.workflow-host.workflow-final-lock input,
        .deploy-workflow-preview-node.node.workflow-host.workflow-final-lock textarea {
            pointer-events: auto !important;
        }

        .deploy-workflow-preview-node .node-body {
            height: calc(100% - 36px) !important;
        }

        .deploy-composite-mini-body {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(160px, 0.32fr);
            gap: 10px;
            padding: 8px;
        }

        .deploy-composite-prompt {
            padding: 8px;
            border-radius: 6px;
            color: rgba(203, 213, 225, 0.82);
            background: rgba(15, 23, 42, 0.38);
            font-size: 11px;
            line-height: 1.45;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .node.deploy-auto-composite-node {
            transform-origin: top left;
        }

        .node.workflow-host.workflow-final-lock.deploy-auto-composite-node {
            width: 1180px !important;
            height: 430px !important;
            min-width: 1040px !important;
            min-height: 360px !important;
        }

        .deploy-workflow-preview .node.workflow-host.workflow-final-lock.deploy-workflow-preview-node {
            width: max(100%, 1500px) !important;
            min-width: 1500px !important;
            max-width: none !important;
        }

        .deploy-log {
            min-height: 180px;
            max-height: 300px;
            overflow: auto;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            padding: 10px;
            color: var(--text-secondary);
            background: rgba(0, 0, 0, 0.18);
            font-size: 12px;
            line-height: 1.55;
            white-space: pre-wrap;
        }

        .deploy-page .deploy-composite-picker-head {
            color: var(--deploy-soft-color);
        }

        .deploy-page .deploy-composite-name {
            color: #99f6e4;
        }

        .deploy-page .deploy-composite-option[data-kind="short-video"] .deploy-composite-name {
            color: #f9a8d4;
        }

        .deploy-page .deploy-composite-option[data-kind="short-drama"] .deploy-composite-name {
            color: #fde68a;
        }

        .deploy-page .deploy-composite-option[data-kind="storyboard-video"] .deploy-composite-name {
            color: #c4b5fd;
        }

        .deploy-page .deploy-composite-option.active .deploy-composite-name {
            color: #dcfce7;
        }

        .deploy-page .deploy-composite-meta,
        .deploy-page .deploy-task-item,
        .deploy-page .concurrent-panel-item,
        .deploy-page .deploy-composite-prompt,
        .deploy-page .deploy-task-group-prompt,
        .deploy-page .deploy-log {
            color: var(--deploy-copy-color);
        }

        .deploy-page .deploy-composite-flow span,
        .deploy-page .deploy-panel-progress-steps span,
        .deploy-page .deploy-panel-stage-status {
            color: var(--deploy-muted-color);
        }

        .deploy-page .deploy-task-group-head,
        .deploy-page .deploy-panel-progress-percent,
        .deploy-page .deploy-panel-stage-badge {
            color: var(--deploy-success-color);
        }

        .deploy-page .deploy-panel-progress-title,
        .deploy-page .deploy-task-group-head span {
            color: var(--deploy-soft-color);
        }

        [data-theme="light"] .deploy-page .deploy-composite-option,
        [data-theme="light"] .deploy-page .deploy-task-item,
        [data-theme="light"] .deploy-page .concurrent-panel-item,
        [data-theme="light"] .deploy-page .deploy-composite-run-card,
        [data-theme="light"] .deploy-page .deploy-panel-progress-card {
            border-color: rgba(14, 116, 144, 0.18);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(226, 232, 240, 0.56)),
                rgba(255, 255, 255, 0.76);
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
        }

        [data-theme="light"] .deploy-page .deploy-composite-option:hover,
        [data-theme="light"] .deploy-page .deploy-composite-option.active {
            border-color: rgba(20, 184, 166, 0.48);
            background:
                linear-gradient(180deg, rgba(204, 251, 241, 0.5), rgba(255, 255, 255, 0.78)),
                rgba(255, 255, 255, 0.86);
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11), 0 0 0 1px rgba(20, 184, 166, 0.12);
        }

        [data-theme="light"] .deploy-page .deploy-composite-picker-head {
            color: #6d28d9;
        }

        [data-theme="light"] .deploy-page .deploy-composite-name {
            color: #0f766e;
        }

        [data-theme="light"] .deploy-page .deploy-composite-option[data-kind="short-video"] .deploy-composite-name {
            color: #be185d;
        }

        [data-theme="light"] .deploy-page .deploy-composite-option[data-kind="short-drama"] .deploy-composite-name {
            color: #b45309;
        }

        [data-theme="light"] .deploy-page .deploy-composite-option[data-kind="storyboard-video"] .deploy-composite-name {
            color: #4f46e5;
        }

        [data-theme="light"] .deploy-page .deploy-composite-option.active .deploy-composite-name {
            color: #047857;
        }

        [data-theme="light"] .deploy-page .deploy-composite-meta,
        [data-theme="light"] .deploy-page .deploy-task-item,
        [data-theme="light"] .deploy-page .concurrent-panel-item,
        [data-theme="light"] .deploy-page .deploy-composite-prompt,
        [data-theme="light"] .deploy-page .deploy-task-group-prompt,
        [data-theme="light"] .deploy-page .deploy-log {
            color: #1e3a8a;
        }

        [data-theme="light"] .deploy-page .deploy-composite-flow span,
        [data-theme="light"] .deploy-page .deploy-panel-progress-steps span,
        [data-theme="light"] .deploy-page .deploy-panel-stage-status,
        [data-theme="light"] .deploy-page .deploy-dispatch-asset-thumb,
        [data-theme="light"] .deploy-page .deploy-dispatch-asset-more {
            border-color: rgba(14, 116, 144, 0.16);
            background: rgba(224, 242, 254, 0.66);
            color: #475569;
        }

        [data-theme="light"] .deploy-page .deploy-composite-mark,
        [data-theme="light"] .deploy-page .deploy-panel-refresh-icon {
            border-color: rgba(14, 116, 144, 0.2);
            background: rgba(255, 255, 255, 0.72);
            color: #0369a1;
        }

        [data-theme="light"] .deploy-page .deploy-panel-progress-track {
            background: rgba(203, 213, 225, 0.72);
        }

        [data-theme="light"] .deploy-page .deploy-workflow-preview,
        [data-theme="light"] .deploy-page .deploy-composite-prompt,
        [data-theme="light"] .deploy-page .deploy-log {
            border-color: rgba(14, 116, 144, 0.14);
            background: rgba(255, 255, 255, 0.58);
        }

        [data-theme="light"] .deploy-page .deploy-panel-progress-steps span[data-step-status="running"],
        [data-theme="light"] .deploy-page .deploy-panel-stage-status[data-step-status="running"] {
            color: #b45309;
            border-color: rgba(217, 119, 6, 0.28);
            background: rgba(254, 243, 199, 0.72);
        }

        [data-theme="light"] .deploy-page .deploy-panel-progress-steps span[data-step-status="done"],
        [data-theme="light"] .deploy-page .deploy-panel-stage-status[data-step-status="done"],
        [data-theme="light"] .deploy-page .deploy-panel-stage-status[data-step-status="completed"] {
            color: #047857;
            border-color: rgba(4, 120, 87, 0.28);
            background: rgba(209, 250, 229, 0.72);
        }

        [data-theme="light"] .deploy-page .deploy-panel-progress-steps span[data-step-status="failed"],
        [data-theme="light"] .deploy-page .deploy-panel-stage-status[data-step-status="failed"],
        [data-theme="light"] .deploy-page .deploy-panel-stage-status[data-step-status="error"] {
            color: #b91c1c;
            border-color: rgba(185, 28, 28, 0.28);
            background: rgba(254, 226, 226, 0.78);
        }

        .workflow-dialog-backdrop {
            position: fixed;
            inset: 0;
            z-index: 3200;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.46);
        }

        .workflow-dialog {
            width: min(420px, calc(100vw - 40px));
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: rgba(10, 15, 26, 0.98);
            color: var(--text-primary);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 212, 255, 0.12);
            overflow: hidden;
        }

        .workflow-dialog-header {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-card);
            font-size: 15px;
            font-weight: 700;
        }

        .workflow-dialog-body {
            display: grid;
            gap: 10px;
            padding: 14px 16px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.6;
        }

        .workflow-dialog-input,
        .workflow-dialog-textarea {
            width: 100%;
            border: 1px solid var(--border-card);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-primary);
            padding: 9px 10px;
            outline: none;
        }

        .workflow-dialog-textarea {
            min-height: 76px;
            resize: vertical;
        }

        .workflow-dialog-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            padding: 12px 16px 14px;
            border-top: 1px solid var(--border-card);
        }

        .project-page {
            position: absolute;
            top: 70px;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 85;
            display: none;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow: hidden;
            animation: projectPageIn 0.2s ease both;
        }

        @keyframes projectPageIn {
            from { opacity: 0; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .project-page.active {
            display: grid;
            grid-template-columns: 280px minmax(420px, 1fr) 360px;
        }

        .project-page.workflow-popover {
            top: 72px;
            left: auto;
            right: 24px;
            bottom: auto;
            width: min(960px, calc(100vw - 340px));
            max-height: calc(100vh - 110px);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 212, 255, 0.12);
            background: rgba(10, 15, 26, 0.98);
        }

        .project-page.workflow-popover.active {
            display: grid;
            grid-template-columns: 240px minmax(320px, 1fr) 260px;
        }

        .project-page.workflow-popover .project-page-pane,
        .project-page.workflow-popover .project-page-main,
        .project-page.workflow-popover .project-page-side {
            max-height: calc(100vh - 110px);
        }

        .project-page-pane {
            min-width: 0;
            min-height: 0;
            border-right: 1px solid var(--border-card);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
                rgba(255, 255, 255, 0.03);
            overflow: auto;
        }

        .project-page-main {
            min-width: 0;
            min-height: 0;
            overflow: auto;
            background:
                radial-gradient(circle at 35% 0%, rgba(0, 212, 255, 0.055), transparent 28%),
                rgba(0, 0, 0, 0.08);
        }

        .project-page-side {
            min-width: 0;
            min-height: 0;
            overflow: auto;
            background: rgba(255, 255, 255, 0.025);
        }

        .project-page-header,
        .project-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px;
            border-bottom: 1px solid var(--border-card);
        }

        .project-page-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .project-page-subtitle {
            margin-top: 4px;
            color: var(--text-secondary);
            font-size: 12px;
        }

        .project-section {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-card);
        }

        .project-section-title {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .project-list,
        .workflow-layout-list,
        .dispatch-task-list {
            display: grid;
            gap: 8px;
        }

        .project-list-item,
        .workflow-layout-item,
        .dispatch-task-item {
            position: relative;
            border: 1px solid rgba(0, 212, 255, 0.16);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
                var(--bg-card);
            border-radius: 8px;
            padding: 10px;
            cursor: pointer;
            color: var(--text-primary);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
            transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
        }

        .project-list-item:hover,
        .workflow-layout-item:hover,
        .dispatch-task-item:hover {
            transform: translateY(-1px);
            border-color: rgba(0, 212, 255, 0.38);
            background:
                linear-gradient(180deg, rgba(0, 212, 255, 0.1), rgba(255, 255, 255, 0.025)),
                var(--bg-card);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.065);
        }

        .project-list-item.active,
        .workflow-layout-item.active {
            border-color: rgba(0, 212, 255, 0.7);
            background:
                linear-gradient(180deg, rgba(0, 212, 255, 0.16), rgba(34, 197, 94, 0.04)),
                var(--bg-card);
            box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.22), 0 12px 26px rgba(0, 0, 0, 0.18);
        }

        .project-list-item.active::before,
        .workflow-layout-item.active::before {
            content: "";
            position: absolute;
            left: 0;
            top: 8px;
            bottom: 8px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: linear-gradient(180deg, var(--accent), #22c55e);
        }

        .project-item-title,
        .workflow-item-title,
        .dispatch-item-title {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .project-item-meta,
        .workflow-item-meta,
        .dispatch-item-meta {
            color: var(--text-secondary);
            font-size: 11px;
            line-height: 1.5;
        }

        .project-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        .project-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            border: 1px solid rgba(0, 212, 255, 0.35);
            background: linear-gradient(180deg, #0f8fc7, #075985);
            color: var(--text-primary);
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            line-height: 1.2;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
            transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
        }

        .project-action-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(0, 212, 255, 0.65);
            background: linear-gradient(180deg, #12a8e8, #0b6fa3);
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), 0 0 18px rgba(0, 212, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        .project-action-btn:active {
            transform: translateY(0);
        }

        .project-action-btn:disabled,
        .project-action-btn[disabled] {
            opacity: 0.46;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .project-action-btn.secondary {
            border-color: var(--border-card);
            background: linear-gradient(180deg, #334155, #1f2937);
        }

        .project-action-btn.danger {
            border-color: rgba(239, 68, 68, 0.45);
            background: linear-gradient(180deg, #b91c1c, #7f1d1d);
        }

        .project-action-btn.primary,
        .project-action-btn.project-run-btn,
        .project-action-btn.project-next-btn,
        .deploy-script-next-btn {
            position: relative;
            border-color: rgba(34, 197, 94, 0.62);
            background:
                linear-gradient(180deg, rgba(34, 197, 94, 0.38), rgba(0, 212, 255, 0.18)),
                rgba(14, 116, 144, 0.34);
            color: #f3fff7;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(34, 197, 94, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        }

        .project-action-btn.primary::after,
        .project-action-btn.project-run-btn::after,
        .project-action-btn.project-next-btn::after,
        .deploy-script-next-btn::after {
            content: "";
            display: inline-block;
            width: 7px;
            height: 7px;
            margin-left: 8px;
            border-top: 2px solid currentColor;
            border-right: 2px solid currentColor;
            transform: rotate(45deg) translateY(-1px);
            opacity: 0.9;
        }

        .project-action-btn.primary:hover,
        .project-action-btn.project-run-btn:hover,
        .project-action-btn.project-next-btn:hover,
        .deploy-script-next-btn:hover {
            border-color: rgba(74, 222, 128, 0.86);
            background:
                linear-gradient(180deg, rgba(34, 197, 94, 0.48), rgba(0, 212, 255, 0.24)),
                rgba(14, 116, 144, 0.42);
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26), 0 0 18px rgba(34, 197, 94, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
        }

        .project-action-btn.project-run-btn {
            border-color: rgba(0, 212, 255, 0.74);
            background: linear-gradient(180deg, #06b6d4, #0369a1);
            color: #f0fdff;
            box-shadow: 0 14px 30px rgba(3, 105, 161, 0.34), 0 0 0 1px rgba(0, 212, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        .project-action-btn.project-run-btn:hover {
            border-color: rgba(103, 232, 249, 0.95);
            background: linear-gradient(180deg, #22d3ee, #0284c7);
            box-shadow: 0 18px 38px rgba(3, 105, 161, 0.42), 0 0 22px rgba(0, 212, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        .project-input,
        .project-textarea {
            width: 100%;
            box-sizing: border-box;
            border: 1px solid var(--border-card);
            background: var(--bg-input);
            color: var(--text-primary);
            border-radius: 8px;
            padding: 9px 10px;
            font-size: 12px;
            outline: none;
        }

        .project-textarea {
            min-height: 90px;
            resize: vertical;
        }

        .workflow-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(120px, 1fr));
            gap: 10px;
            padding: 16px;
        }

        .workflow-summary-card {
            border: 1px solid var(--border-card);
            background: var(--bg-card);
            border-radius: 8px;
            padding: 12px;
        }

        .workflow-summary-value {
            font-size: 22px;
            font-weight: 800;
            color: var(--accent);
        }

        .workflow-summary-label {
            color: var(--text-secondary);
            font-size: 12px;
            margin-top: 4px;
        }

        .project-empty {
            color: var(--text-secondary);
            font-size: 12px;
            padding: 12px;
            border: 1px dashed var(--border-card);
            border-radius: 8px;
        }

        @media (max-width: 1100px) {
            .project-page.active {
                grid-template-columns: 240px 1fr;
            }

            .project-page-side {
                display: none;
            }

            .deploy-composite-picker {
                grid-template-columns: repeat(2, minmax(160px, 1fr));
            }

            .deploy-script-workspace,
            .deploy-asset-extract-workspace,
            .deploy-importer-presets {
                grid-template-columns: 1fr;
            }
        }
        
        /* 工具栏 */
        .toolbar {
            position: absolute;
            bottom: 20px;
            left: 20px;
            display: flex;
            gap: 10px;
            z-index: 100;
        }
        
        .toolbar-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: var(--bg-toolbar);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .toolbar-btn svg {
            width: 18px;
            height: 18px;
            stroke-width: 2;
        }
        
        .toolbar-btn:hover {
            background: rgba(0, 212, 255, 0.25);
            border-color: rgba(0, 212, 255, 0.7);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
        }
        
        .toolbar-btn.danger {
            background: rgba(255, 71, 87, 0.15);
            border-color: rgba(255, 71, 87, 0.4);
        }
        
        .toolbar-btn.danger svg {
            stroke: #ff4757;
        }
        
        .toolbar-btn.danger:hover {
            background: rgba(255, 71, 87, 0.25);
            border-color: rgba(255, 71, 87, 0.7);
            box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
        }
        
        .toolbar-btn.warning {
            background: rgba(255, 193, 7, 0.15);
            border-color: rgba(255, 193, 7, 0.4);
        }
        
        .toolbar-btn.warning svg {
            stroke: #ffc107;
        }
        
        .toolbar-btn.warning:hover {
            background: rgba(255, 193, 7, 0.25);
            border-color: rgba(255, 193, 7, 0.7);
            box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
        }
        
        /* 节点 */
        .node {
            position: absolute;
            background: var(--bg-node);
            border: 2px solid var(--border-node);
            border-radius: 12px;
            min-width: 100px;
            max-width: 800px;
            box-shadow: var(--shadow-node);
            cursor: move;
            user-select: none;
            z-index: 10;
        }
        
        /* 无框节点样式 */
        .node.no-border {
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: var(--bg-node);
            box-shadow: none;
            opacity: 1 !important;
        }
        
        [data-theme="light"] .node.no-border {
            border: 1px solid rgba(0, 0, 0, 0.1);
            background: var(--bg-node);
            opacity: 1 !important;
        }
        
        [data-theme="dark"] .node.no-border {
            background: var(--bg-node);
            opacity: 1 !important;
        }
        
        /* 多选节点状态 - 与单选效果一致 */
        .node.multi-selected {
            z-index: 99 !important;
            border: 1px solid #4cff8c !important;
            box-shadow: 0 0 6px rgba(76, 255, 140, 0.3) !important;
        }
        
        .node.no-border.multi-selected {
            border: 1px solid #4cff8c !important;
            box-shadow: 0 0 6px rgba(76, 255, 140, 0.3) !important;
        }

        .node.history-output-display {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            overflow: visible;
        }

        .node.history-output-display .node-header,
        .node.history-output-display .node-port,
        .node.history-output-display .node-resize-handle {
            display: none !important;
        }

        .node.history-output-display .node-body {
            height: 100% !important;
            padding: 0 !important;
            background: transparent !important;
            border: none !important;
            overflow: visible !important;
        }

        .node.history-output-display .node-video-container,
        .node.history-output-display .node-image-list,
        .node.history-output-display .node-audio-container {
            min-height: 0;
            background: transparent;
            border: none;
        }

        .node.history-output-display .node-video {
            width: 100%;
            height: 100%;
            max-height: none;
            object-fit: contain;
            border-radius: 8px;
        }
        
        /* 亮系主题 - 节点不透明 */
        [data-theme="light"] .node {
            opacity: 1 !important;
        }
        
        /* 暗系主题 - 节点不透明 */
        [data-theme="dark"] .node {
            opacity: 1 !important;
        }
        
        /* 亮系主题 - 选中节点紫色 */
        [data-theme="light"] .node.selected,
        [data-theme="light"] .node.multi-selected {
            opacity: 1 !important;
            border: 1px solid #a855f7 !important;
            box-shadow: 0 0 6px rgba(168, 85, 247, 0.3) !important;
        }
        
        [data-theme="light"] .node.no-border.multi-selected {
            opacity: 1 !important;
            border: 1px solid #a855f7 !important;
            box-shadow: 0 0 6px rgba(168, 85, 247, 0.3) !important;
        }
        
        /* 基础工具节点 - 半透明蓝色底色（90%透明度） */
        .node[data-node-type="文本"],
        .node[data-node-type="图片"],
        .node[data-node-type="图片列表"],
        .node[data-node-type="编辑器"],
        .node[data-node-type="视频播放器"],
        .node[data-node-type="音频播放器"] {
            background: rgba(0, 212, 255, 0.1) !important;
        }
        
        [data-theme="light"] .node[data-node-type="文本"],
        [data-theme="light"] .node[data-node-type="图片"],
        [data-theme="light"] .node[data-node-type="图片列表"],
        [data-theme="light"] .node[data-node-type="编辑器"],
        [data-theme="light"] .node[data-node-type="视频播放器"],
        [data-theme="light"] .node[data-node-type="音频播放器"] {
            background: rgba(0, 160, 255, 0.1) !important;
        }
        
        /* AI图像生成节点 - 不透明 */
        .node[data-node-type="AI图像生成"] {
            opacity: 1 !important;
        }
        
        [data-theme="light"] .node[data-node-type="AI图像生成"] {
            opacity: 1 !important;
        }
        
        /* 亮系主题 - 项目名称和工作流名称不透明 */
        [data-theme="light"] .project-name,
        [data-theme="light"] .workflow-name {
            opacity: 1 !important;
            color: #a855f7 !important;
        }
        
        /* 暗系主题 - 项目名称和工作流名称不透明 */
        [data-theme="dark"] .project-name,
        [data-theme="dark"] .workflow-name {
            opacity: 1 !important;
            color: #ffffff !important;
        }
        
        /* 暗系主题 - 选择器内SVG图标颜色 */
        [data-theme="dark"] .project-selector svg,
        [data-theme="dark"] .workflow-selector svg {
            stroke: #ffffff !important;
        }
        
        /* 亮系主题 - 项目选择器和工作流选择器不透明 */
        [data-theme="light"] .project-selector,
        [data-theme="light"] .workflow-selector {
            opacity: 1 !important;
        }
        
        /* 亮系主题 - 选择器内SVG图标颜色 */
        [data-theme="light"] .project-selector svg,
        [data-theme="light"] .workflow-selector svg {
            stroke: #a855f7 !important;
        }
        
        /* 暗系主题 - 项目选择器和工作流选择器不透明 */
        [data-theme="dark"] .project-selector,
        [data-theme="dark"] .workflow-selector {
            opacity: 1 !important;
        }
        
        /* 节点头部和主体不透明 - 暗系和亮系 */
        .node-header,
        .node-body {
            opacity: 1 !important;
        }
        
        [data-theme="light"] .node-header,
        [data-theme="light"] .node-body {
            opacity: 1 !important;
        }
        
        [data-theme="dark"] .node-header,
        [data-theme="dark"] .node-body {
            opacity: 1 !important;
        }
        
        /* 节点序号显示 */
        .node-seq-badge {
            position: absolute;
            top: 4px;
            right: 4px;
            font-size: 10px;
            color: rgba(76, 255, 140, 0.8);
            font-weight: 500;
            pointer-events: none;
            z-index: 10;
            font-family: monospace;
        }
        
        [data-theme="light"] .node-seq-badge {
            color: rgba(168, 85, 247, 0.8);
        }
        
        /* 悬浮标题节点 */
        .node.hover-title .node-header {
            opacity: 1 !important;
            transition: opacity 0.2s ease;
            position: absolute;
            top: -40px;
            left: 0;
            background: transparent;
            border-radius: 0;
            border: none;
            z-index: 10;
            padding: 6px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .node.hover-title .node-header .category-icon {
            display: flex;
            width: 24px;
            height: 24px;
            padding: 4px;
            border-radius: 6px;
        }
        
        .node.hover-title .node-header .category-icon svg {
            width: 16px;
            height: 16px;
        }
        
        .node.hover-title .node-header .node-title {
            font-size: 20px;
            font-weight: 600;
        }
        
        .node.hover-title:hover .node-header {
            opacity: 1;
        }
        
        /* 基础工具节点 - 青色发光 */
        .node.hover-title[data-node-type="文本"] .node-header .category-icon,
        .node.hover-title[data-node-type="图片"] .node-header .category-icon,
        .node.hover-title[data-node-type="图片列表"] .node-header .category-icon,
        .node.hover-title[data-node-type="编辑器"] .node-header .category-icon,
        .node.hover-title[data-node-type="视频播放器"] .node-header .category-icon,
        .node.hover-title[data-node-type="音频播放器"] .node-header .category-icon {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        }
        
        .node.hover-title[data-node-type="文本"] .node-header .node-title,
        .node.hover-title[data-node-type="图片"] .node-header .node-title,
        .node.hover-title[data-node-type="图片列表"] .node-header .node-title,
        .node.hover-title[data-node-type="编辑器"] .node-header .node-title,
        .node.hover-title[data-node-type="视频播放器"] .node-header .node-title,
        .node.hover-title[data-node-type="音频播放器"] .node-header .node-title {
            color: #00d4ff;
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.4);
        }
        
        /* AI绘图节点 - 紫色发光 */
        .node.hover-title[data-node-type="GPT 图像生成"] .node-header .category-icon,
        .node.hover-title[data-node-type="Flux 图像生成"] .node-header .category-icon,
        .node.hover-title[data-node-type="Qwen 图像编辑"] .node-header .category-icon {
            background: rgba(168, 85, 247, 0.2);
            color: #a855f7;
            box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
        }
        
        .node.hover-title[data-node-type="GPT 图像生成"] .node-header .node-title,
        .node.hover-title[data-node-type="Flux 图像生成"] .node-header .node-title,
        .node.hover-title[data-node-type="Qwen 图像编辑"] .node-header .node-title {
            color: #a855f7;
            text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 20px rgba(168, 85, 247, 0.4);
        }
        
        /* AI视频节点 - 橙色发光 */
        .node.hover-title[data-node-type="Seedance2.0"] .node-header .category-icon,
        .node.hover-title[data-node-type="Grok"] .node-header .category-icon,
        .node.hover-title[data-node-type="Sora2"] .node-header .category-icon,
        .node.hover-title[data-node-type="Veo3"] .node-header .category-icon {
            background: rgba(249, 115, 22, 0.2);
            color: #f97316;
            box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
        }
        
        .node.hover-title[data-node-type="Seedance2.0"] .node-header .node-title,
        .node.hover-title[data-node-type="Grok"] .node-header .node-title,
        .node.hover-title[data-node-type="Sora2"] .node-header .node-title,
        .node.hover-title[data-node-type="Veo3"] .node-header .node-title {
            color: #f97316;
            text-shadow: 0 0 10px rgba(249, 115, 22, 0.8), 0 0 20px rgba(249, 115, 22, 0.4);
        }
        
        /* 智能体节点 - 绿色发光 */
        .node.hover-title[data-node-type="创意导演"] .node-header .category-icon,
        .node.hover-title[data-node-type="故事板编排"] .node-header .category-icon {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
        }
        
        .node.hover-title[data-node-type="创意导演"] .node-header .node-title,
        .node.hover-title[data-node-type="故事板编排"] .node-header .node-title {
            color: #10b981;
            text-shadow: 0 0 10px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
        }
        
        /* 辅助功能节点 - 蓝色发光 */
        .node.hover-title[data-node-type="批量处理"] .node-header .category-icon,
        .node.hover-title[data-node-type="条件分支"] .node-header .category-icon {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        }
        
        .node.hover-title[data-node-type="批量处理"] .node-header .node-title,
        .node.hover-title[data-node-type="条件分支"] .node-header .node-title {
            color: #3b82f6;
            text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.4);
        }
        
        /* ComfyUI节点 - 红色发光 */
        .node.hover-title[data-node-type="SDXL生成"] .node-header .category-icon,
        .node.hover-title[data-node-type="ControlNet"] .node-header .category-icon,
        .node.hover-title[data-node-type="LoRA加载"] .node-header .category-icon {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
        }
        
        .node.hover-title[data-node-type="SDXL生成"] .node-header .node-title,
        .node.hover-title[data-node-type="ControlNet"] .node-header .node-title,
        .node.hover-title[data-node-type="LoRA加载"] .node-header .node-title {
            color: #ef4444;
            text-shadow: 0 0 10px rgba(239, 68, 68, 0.8), 0 0 20px rgba(239, 68, 68, 0.4);
        }
        
        .node.hover-title .node-body {
            padding: 8px;
        }
        
        /* 节点缩放手柄 */
        .node-resize-handle {
            position: absolute;
            right: 0;
            bottom: 0;
            width: 16px;
            height: 16px;
            cursor: nwse-resize;
            z-index: 20;
        }
        
        .node-resize-handle::after {
            content: '';
            position: absolute;
            right: 4px;
            bottom: 4px;
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--text-muted);
            border-bottom: 2px solid var(--text-muted);
            opacity: 0.5;
            transition: opacity 0.2s;
        }
        
        .node:hover .node-resize-handle::after {
            opacity: 1;
        }
        
        /* 节点文件夹按钮 */
        .node-folder-btn {
            position: absolute;
            left: 8px;
            bottom: 8px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 6px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s, background 0.2s;
            z-index: 20;
        }
        
        [data-theme="light"] .node-folder-btn {
            background: rgba(255, 255, 255, 0.5);
        }
        
        .node:hover .node-folder-btn {
            opacity: 0.6;
        }
        
        .node-folder-btn:hover {
            opacity: 1 !important;
            background: var(--accent-color) !important;
        }
        
        .node-folder-btn svg {
            width: 16px;
            height: 16px;
            color: var(--text-primary);
        }
        
        /* 图片列表项 */
        .image-list-item {
            width: 100%;
            height: 100%;
            min-height: 80px;
            border-radius: 6px;
            overflow: hidden;
            background: var(--bg-node);
        }
        
        .image-list-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 节点内容样式 */
        .node-textarea {
            width: 100%;
            height: calc(100% - 20px);
            min-height: 280px;
            box-sizing: border-box;
            background: transparent;
            border: none;
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.6;
            resize: none;
            outline: none;
            font-family: inherit;
        }

        .node.text-node-host {
            display: flex;
            flex-direction: column;
        }

        .node.text-node-host .node-body {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .node.text-node-host .node-textarea {
            flex: 1 1 auto;
            height: 100%;
            min-height: 0;
        }

        .node.text-node-host .node-text-storage {
            position: absolute;
            width: 1px;
            height: 1px;
            min-height: 0;
            opacity: 0;
            pointer-events: none;
            resize: none;
        }

        .node.text-node-host .node-text-rich {
            flex: 1 1 auto;
            width: 100%;
            min-height: 0;
            height: 100%;
            overflow: auto;
            padding: 8px 4px;
            line-height: 1.7;
            white-space: pre-wrap;
            text-align: left;
            align-content: flex-start;
            justify-content: flex-start;
        }

        .qda-asset-mention-popup {
            position: fixed;
            z-index: 180000;
            max-height: min(420px, 48vh);
            overflow: auto;
            padding: 6px;
            border: 1px solid rgba(0, 212, 255, 0.38);
            border-radius: 8px;
            background: rgba(7, 18, 32, 0.98);
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 212, 255, 0.08);
            backdrop-filter: blur(10px);
        }

        .qda-asset-mention-option {
            width: 100%;
            min-width: 0;
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            align-items: center;
            gap: 9px;
            padding: 7px;
            border: 1px solid transparent;
            border-radius: 7px;
            background: transparent;
            color: var(--text-primary);
            text-align: left;
            cursor: pointer;
        }

        .qda-asset-mention-option:hover,
        .qda-asset-mention-option.active {
            border-color: rgba(67, 232, 173, 0.4);
            background: rgba(0, 212, 255, 0.12);
        }

        .qda-asset-mention-thumb {
            width: 42px;
            height: 42px;
            border-radius: 6px;
            overflow: hidden;
            display: grid;
            place-items: center;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(148, 163, 184, 0.18);
        }

        .qda-asset-mention-thumb img,
        .qda-asset-mention-chip img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .qda-asset-mention-empty {
            width: 18px;
            height: 18px;
            border: 1.5px solid rgba(125, 222, 255, 0.7);
            border-radius: 4px;
        }

        .qda-asset-mention-main {
            min-width: 0;
            display: grid;
            gap: 3px;
        }

        .qda-asset-mention-name,
        .qda-asset-mention-meta {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .qda-asset-mention-name {
            font-size: 12px;
            font-weight: 800;
            color: #e6fbff;
        }

        .qda-asset-mention-meta {
            font-size: 10px;
            color: rgba(180, 210, 230, 0.72);
        }

        .qda-asset-mention-preview-line {
            display: none;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 5px;
            min-height: 34px;
            max-height: 82px;
            overflow: auto;
        }

        .qda-asset-mention-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            max-width: 180px;
            min-width: 0;
            padding: 3px 7px 3px 3px;
            border: 1px solid rgba(0, 212, 255, 0.26);
            border-radius: 7px;
            background: rgba(0, 212, 255, 0.1);
            color: rgba(230, 251, 255, 0.95);
            font-size: 11px;
            line-height: 1.2;
        }

        .qda-asset-mention-chip img {
            flex: 0 0 28px;
            width: 28px;
            height: 28px;
            border-radius: 5px;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .qda-asset-mention-chip span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-node.qda-asset-mention-token {
            width: auto;
            max-width: min(100%, 220px);
            height: auto;
            min-width: 0;
            display: inline-flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: flex-start;
            gap: 4px;
            padding: 0 2px;
            border: 0;
            border-radius: 4px;
            background: transparent;
            box-shadow: none;
            vertical-align: baseline;
            margin: 0 2px;
            overflow: visible;
            line-height: inherit;
        }

        .file-node.qda-asset-mention-token .qda-asset-mention-label {
            min-width: 0;
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: rgba(230, 251, 255, 0.95);
            font-size: inherit;
            font-weight: 700;
            line-height: inherit;
        }

        .file-node.qda-asset-mention-token .file-thumbnail {
            flex: 0 0 22px;
            width: 22px;
            height: 22px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            object-fit: cover;
            vertical-align: text-bottom;
            align-self: center;
        }

        .node.text-node-host .file-node.qda-asset-mention-token {
            margin: 0 1px;
            padding: 0;
            gap: 3px;
        }

        .file-node.qda-asset-mention-token:hover {
            transform: none;
            box-shadow: none;
        }

        .file-node.qda-asset-mention-token .file-type-label {
            display: none;
        }

        .qda-asset-mention-thumb img,
        .qda-asset-mention-chip img,
        .file-node.qda-asset-mention-token .file-thumbnail {
            cursor: zoom-in;
        }

        .qda-asset-mention-image-bubble {
            position: fixed;
            z-index: 190000;
            width: min(320px, calc(100vw - 16px));
            padding: 8px;
            border: 1px solid rgba(0, 212, 255, 0.36);
            border-radius: 8px;
            background: rgba(7, 18, 32, 0.98);
            box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(67, 232, 173, 0.08);
            backdrop-filter: blur(12px);
            pointer-events: none;
        }

        .qda-asset-mention-image-bubble-title {
            max-width: 100%;
            margin-bottom: 6px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: rgba(230, 251, 255, 0.94);
            font-size: 12px;
            font-weight: 800;
        }

        .qda-asset-mention-image-bubble img {
            display: block;
            width: 100%;
            max-height: 320px;
            object-fit: contain;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
        }

        .qda-asset-mention-image-preview {
            position: fixed;
            inset: 0;
            z-index: 200000;
            display: grid;
            place-items: center;
            padding: 56px 28px 28px;
            background: rgba(2, 8, 18, 0.82);
            backdrop-filter: blur(10px);
        }

        .qda-asset-mention-image-preview img {
            max-width: min(92vw, 1200px);
            max-height: 82vh;
            object-fit: contain;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
        }

        .qda-asset-mention-image-preview-title {
            position: fixed;
            top: 18px;
            left: 24px;
            right: 72px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: rgba(230, 251, 255, 0.94);
            font-size: 14px;
            font-weight: 800;
        }

        .qda-asset-mention-image-preview-close {
            position: fixed;
            top: 14px;
            right: 18px;
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 7px;
            background: rgba(15, 23, 42, 0.88);
            color: rgba(230, 251, 255, 0.92);
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
        }

        [data-theme="light"] .qda-asset-mention-popup {
            background: rgba(248, 252, 255, 0.98);
            border-color: rgba(14, 116, 144, 0.24);
            box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
        }

        [data-theme="light"] .qda-asset-mention-name {
            color: #075985;
        }

        [data-theme="light"] .qda-asset-mention-meta {
            color: #64748b;
        }

        [data-theme="light"] .qda-asset-mention-option:hover,
        [data-theme="light"] .qda-asset-mention-option.active,
        [data-theme="light"] .qda-asset-mention-chip {
            background: rgba(14, 165, 233, 0.1);
            border-color: rgba(14, 116, 144, 0.2);
            color: #075985;
        }
        
        .node-image-container,
        .node-video-container {
            width: 100%;
            height: 100%;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }

        .node.workflow-video-player-auto {
            width: 240px;
            height: 240px;
        }

        .node.workflow-video-player-auto .node-body {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            min-height: 0;
            max-height: 100%;
            padding: 0;
            overflow: hidden;
            box-sizing: border-box;
        }

        .node.workflow-video-player-auto .node-header {
            z-index: 1200 !important;
            pointer-events: auto !important;
        }

        .node.workflow-video-player-auto .node-actions,
        .node.workflow-video-player-auto .node-download-btn {
            pointer-events: auto !important;
        }

        .node.workflow-video-player-auto .node-video-container {
            width: 100%;
            height: 100%;
            min-height: 0;
            max-height: 100%;
            border-radius: 7px;
            background: transparent;
            border: 1px solid rgba(0, 212, 255, 0.18);
            box-shadow: inset 0 0 18px rgba(0, 212, 255, 0.04);
        }

        .node.workflow-video-player-auto .node-video,
        .node.workflow-video-player-auto video {
            width: auto;
            height: 100%;
            min-height: 0;
            max-height: 100%;
            max-width: 100%;
            display: block;
            margin: 0 auto;
            object-fit: contain;
            border-radius: 0 0 6px 6px;
            background: transparent;
        }

        .node.workflow-video-player-auto .node-video-placeholder {
            position: absolute;
            inset: 0;
            padding: 8px;
            gap: 6px;
            font-size: 10px;
            opacity: 0.72;
        }

        .node.workflow-video-player-auto .workflow-video-placeholder-progress {
            width: min(180px, calc(100% - 28px));
            display: grid;
            gap: 7px;
            justify-items: stretch;
            color: rgba(190, 247, 255, 0.96);
            text-align: center;
            pointer-events: none;
        }

        .node.workflow-video-player-auto .workflow-video-placeholder-title {
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            color: rgba(92, 255, 190, 0.98);
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .node.workflow-video-player-auto .workflow-video-placeholder-subtitle {
            font-size: 9px;
            color: rgba(165, 230, 255, 0.82);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .node.workflow-video-player-auto .workflow-video-placeholder-track {
            height: 6px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(0, 212, 255, 0.12);
            border: 1px solid rgba(0, 212, 255, 0.32);
        }

        .node.workflow-video-player-auto .workflow-video-placeholder-fill {
            height: 100%;
            width: 0%;
            border-radius: inherit;
            background: linear-gradient(90deg, #00d4ff, #42e6a4);
            box-shadow: 0 0 12px rgba(66, 230, 164, 0.65);
            transition: width 0.35s ease;
        }

        .node.workflow-video-player-auto .node-video-placeholder svg {
            width: 28px;
            height: 28px;
        }

        .node.workflow-video-player-auto .workflow-video-player-thread {
            position: absolute !important;
            left: 8px !important;
            right: 8px !important;
            bottom: 6px !important;
            z-index: 999 !important;
            display: none !important;
            opacity: 0 !important;
            pointer-events: none !important;
            padding: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
            box-sizing: border-box !important;
        }

        .node.workflow-video-player-auto .workflow-video-progress-track {
            height: 6px !important;
            border-radius: 999px !important;
            background: rgba(0, 212, 255, 0.12) !important;
            overflow: hidden !important;
            border: 1px solid rgba(140, 220, 255, 0.34) !important;
        }

        .node.workflow-video-player-auto .workflow-video-progress-fill {
            display: block !important;
            min-width: 3px;
            height: 100% !important;
            background: linear-gradient(90deg, #00d4ff, #43e8ad) !important;
            box-shadow: 0 0 10px rgba(67, 232, 173, 0.65) !important;
        }

        .node.workflow-video-player-auto .workflow-video-buffer-track {
            display: none !important;
        }
        
        .node-image-placeholder,
        .node-video-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 20px;
        }
        
        .node-image-placeholder svg,
        .node-video-placeholder svg {
            width: 48px;
            height: 48px;
            opacity: 0.5;
        }
        
        .node-image-placeholder span,
        .node-video-placeholder span {
            font-size: 13px;
        }
        
        /* 音频容器和占位符 */
        .node-audio-container {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .audio-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 20px;
        }
        
        .audio-placeholder svg {
            width: 64px;
            height: 64px;
            opacity: 0.7;
        }
        
        /* 动态音符动画 */
        .audio-placeholder svg {
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.7;
            }
            50% {
                transform: scale(1.1);
                opacity: 1;
            }
        }
        
        /* 音符跳动动画 */
        .note-bounce {
            position: absolute;
            width: 8px;
            height: 8px;
            background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
            border-radius: 50%;
            animation: bounce 1.5s ease-in-out infinite;
            opacity: 0;
        }
        
        .note-bounce.note-1 {
            top: 25%;
            left: 25%;
        }
        
        .note-bounce.note-2 {
            top: 35%;
            right: 25%;
        }
        
        .note-bounce.note-3 {
            top: 45%;
            left: 40%;
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(0) scale(1);
                opacity: 0;
            }
            50% {
                transform: translateY(-20px) scale(1.3);
                opacity: 1;
            }
        }
        
        .audio-placeholder span {
            font-size: 13px;
        }
        
        .node-audio {
            display: none;
        }
        
        /* 自定义音频播放器样式 */
        .custom-audio-player {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            padding: 12px;
            box-sizing: border-box;
        }
        
        .audio-controls {
            display: flex;
            align-items: center;
            gap: 16px;
            width: 100%;
            padding: 0;
            box-sizing: border-box;
        }
        
        .audio-play-btn,
        .audio-volume-btn {
            background: rgba(0, 212, 255, 0.2);
            border: 1px solid rgba(0, 212, 255, 0.4);
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-primary);
            flex-shrink: 0;
        }
        
        .audio-play-btn:hover,
        .audio-volume-btn:hover {
            background: rgba(0, 212, 255, 0.3);
            transform: scale(1.05);
        }
        
        .audio-play-btn svg,
        .audio-volume-btn svg {
            width: 22px;
            height: 22px;
            stroke-width: 2;
        }
        
        .audio-play-btn.playing svg {
            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor'%3E%3Crect x='6' y='4' width='4' height='16'%3E%3C/rect%3E%3Crect x='14' y='4' width='4' height='16'%3E%3C/rect%3E%3C/svg%3E");
        }
        
        .audio-progress-container {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 0;
        }
        
        .audio-progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(0, 212, 255, 0.15);
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .audio-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
            border-radius: 4px;
            width: 0%;
            transition: width 0.1s linear;
        }
        
        .audio-time {
            font-size: 12px;
            color: var(--text-secondary);
            font-family: 'Courier New', monospace;
            text-align: center;
        }
        
        /* ============================================
           AI图像生成节点样式 - 运行按钮
           ============================================ */
        
        .node-ai-image .node-description {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            height: 100%;
            padding: 20px;
            padding-left: 12px;
            box-sizing: border-box;
        }

        .node-model-price-chip {
            max-width: 160px;
            padding: 2px 7px;
            border: 1px solid rgba(251, 191, 36, 0.42);
            border-radius: 999px;
            background: rgba(251, 191, 36, 0.12);
            color: #facc15;
            font-size: 10px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            pointer-events: none;
            flex: 0 1 auto;
        }

        .model-price-chip {
            display: none;
        }
        
        .ai-image-run-btn {
            position: absolute;
            bottom: 18px;
            right: 8px;
            min-width: 50px;
            height: 28px;
            background: linear-gradient(135deg, var(--accent), rgba(138, 43, 226, 0.9));
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
            padding: 4px 12px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .ai-image-run-btn svg {
            display: none;
        }
        
        .ai-image-run-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.5);
        }
        
        .ai-image-run-btn:active {
            transform: translateY(0);
        }
        
        /* AI图像生成下拉菜单样式 */
        .ai-image-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: linear-gradient(135deg, rgba(20, 28, 50, 0.98), rgba(15, 20, 35, 0.95));
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 8px;
            padding: 12px;
            z-index: 1000;
            display: none;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        }
        
        .ai-image-dropdown.show {
            display: block;
        }
        
        .ai-image-dropdown-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .ai-image-dropdown-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .ai-image-dropdown-label {
            font-size: 11px;
            color: rgba(100, 200, 255, 0.7);
        }
        
        .ai-image-dropdown-select {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(100, 200, 255, 0.3);
            border-radius: 4px;
            color: rgba(100, 200, 255, 0.95);
            padding: 6px 8px;
            font-size: 12px;
            cursor: pointer;
            outline: none;
            width: 100%;
            box-sizing: border-box;
        }
        
        .ai-image-dropdown-select:hover {
            border-color: rgba(0, 212, 255, 0.6);
        }
        
        .ai-image-dropdown-input {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(100, 200, 255, 0.3);
            border-radius: 4px;
            color: rgba(100, 200, 255, 0.95);
            padding: 8px;
            font-size: 12px;
            min-height: 60px;
            resize: vertical;
            outline: none;
            width: 100%;
            box-sizing: border-box;
        }
        
        .ai-image-dropdown-input:hover {
            border-color: rgba(0, 212, 255, 0.6);
        }
        
        /* LoRA 列表项样式 */
        .comfyui-lora-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 8px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(100, 200, 255, 0.2);
            border-radius: 4px;
        }
        
        .comfyui-lora-item:hover {
            border-color: rgba(100, 200, 255, 0.4);
        }
        
        /* 亮系主题 - AI图像生成参数面板白色背景 */
        [data-theme="light"] .ai-image-dropdown {
            background: #ffffff !important;
            border: 1px solid rgba(0, 0, 0, 0.15) !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        }
        
        [data-theme="light"] .ai-image-dropdown-label {
            color: #374151 !important;
        }
        
        [data-theme="light"] .ai-image-dropdown-select {
            background: #f3f4f6 !important;
            border: 1px solid rgba(0, 0, 0, 0.15) !important;
            color: #1f2937 !important;
        }
        
        [data-theme="light"] .ai-image-dropdown-select:hover {
            border-color: #a855f7 !important;
        }
        
        [data-theme="light"] .ai-image-dropdown-input {
            background: #f3f4f6 !important;
            border: 1px solid rgba(0, 0, 0, 0.15) !important;
            color: #1f2937 !important;
        }
        
        [data-theme="light"] .ai-image-dropdown-input:hover {
            border-color: #a855f7 !important;
        }
        
        .node-image,
        .node-video {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 4px;
        }
        
        .node-image {
            cursor: grab;
        }
        
        .node-image:active {
            cursor: grabbing;
        }
        
        .node-image-container.drag-over,
        .node-video-container.drag-over,
        .node-image-list.drag-over {
            border: 2px dashed var(--accent-color);
            background: rgba(0, 212, 255, 0.1);
        }
        
        /* 视频错误提示 */
        .video-error {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 20px;
            background: rgba(255, 59, 48, 0.1);
            border: 1px solid rgba(255, 59, 48, 0.3);
            border-radius: 8px;
            color: #ff3b30;
        }
        
        .video-error svg {
            width: 32px;
            height: 32px;
        }
        
        .video-error span {
            font-size: 13px;
            text-align: center;
        }
        
        /* ============================================
           GPT图像生成和Banana图像编辑节点样式
           ============================================ */
        
        .node-gpt-image,
        .node-banana-image {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 8px;
            height: 100%;
            box-sizing: border-box;
        }
        
        /* 设置区域 */
        .gpt-image-settings,
        .banana-settings {
            display: flex;
            gap: 10px;
        }
        
        .setting-group {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .setting-label {
            font-size: 11px;
            color: rgba(100, 200, 255, 0.8);
        }
        
        .setting-select {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(100, 200, 255, 0.3);
            border-radius: 4px;
            color: rgba(100, 200, 255, 0.95);
            padding: 6px 8px;
            font-size: 12px;
            cursor: pointer;
            outline: none;
        }
        
        .setting-select:hover {
            border-color: rgba(0, 212, 255, 0.6);
        }
        
        /* 提示词输入 */
        .gpt-prompt-container,
        .banana-prompt-container {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .gpt-prompt-input,
        .banana-prompt-input {
            width: 100%;
            min-height: 60px;
            max-height: 80px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(100, 200, 255, 0.3);
            border-radius: 6px;
            color: rgba(100, 200, 255, 0.95);
            padding: 8px;
            font-size: 12px;
            resize: vertical;
            outline: none;
            box-sizing: border-box;
        }
        
        .gpt-prompt-input:focus,
        .banana-prompt-input:focus {
            border-color: rgba(0, 212, 255, 0.7);
            box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
        }
        
        /* 参考图片区域 */
        .gpt-ref-images,
        .banana-ref-images {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .ref-images-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            min-height: 60px;
            padding: 8px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px dashed rgba(100, 200, 255, 0.3);
            border-radius: 6px;
            align-items: center;
        }
        
        .ref-images-container.drag-over {
            border-color: var(--accent-color);
            background: rgba(0, 212, 255, 0.1);
        }
        
        .ref-image-placeholder {
            font-size: 11px;
            color: rgba(100, 200, 255, 0.5);
            width: 100%;
            text-align: center;
        }
        
        .ref-image-item {
            position: relative;
            width: 48px;
            height: 48px;
        }
        
        .ref-image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
            border: 1px solid rgba(100, 200, 255, 0.3);
        }
        
        .ref-image-delete {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 20px;
            height: 20px;
            background: rgba(255, 59, 48, 0.9);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            padding: 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .ref-image-delete:hover {
            background: rgba(255, 59, 48, 1);
            transform: scale(1.1);
        }
        
        /* 生成按钮 */
        .gpt-generate-btn,
        .banana-generate-btn {
            width: 100%;
            padding: 10px 16px;
            background: linear-gradient(135deg, var(--accent), rgba(138, 43, 226, 0.9));
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .gpt-generate-btn:hover:not(:disabled),
        .banana-generate-btn:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
        }
        
        .gpt-generate-btn:disabled,
        .banana-generate-btn:disabled {
            background: rgba(100, 200, 255, 0.2);
            cursor: not-allowed;
        }
        
        /* 状态标签 */
        .gpt-status-label,
        .banana-status-label {
            font-size: 11px;
            color: rgba(100, 200, 255, 0.7);
            text-align: center;
        }
        
        /* 输出图片区域 */
        .gpt-output-container,
        .banana-output-container {
            flex: 1;
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.25);
            border-radius: 6px;
            overflow: hidden;
        }
        
        .gpt-output-placeholder,
        .banana-output-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            color: rgba(100, 200, 255, 0.4);
        }
        
        .gpt-output-placeholder svg,
        .banana-output-placeholder svg {
            width: 32px;
            height: 32px;
        }
        
        .gpt-output-placeholder span,
        .banana-output-placeholder span {
            font-size: 11px;
        }
        
        .gpt-output-image,
        .banana-output-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 4px;
        }
        
        /* 图片列表 */
        .node-image-list {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        /* 关键修复 v20260607-10：图片列表节点精确尺寸
           1) 解除 .node max-width: 800px
           2) .image-list-grid 用 height: max-content（不撑满父容器）
           3) .node-image-list / .node-body 用 height: auto（跟随内容）
           4) .image-list-item 用 min-height（防止被 0 高度撑爆）*/
        .node:has(.node-image-list) {
            max-width: none;
        }
        .node.image-list-host {
            max-width: none;
        }
        
        /* 创意带货工作流节点 - 解除宽度限制 */
        .node:has(.node-workflow-container) {
            max-width: none;
        }
        .node.workflow-host {
            max-width: none;
        }

        .node.workflow-host .node-body {
            overflow: hidden;
        }

        .node.workflow-host .node-workflow-container {
            --wf-panel-bg: linear-gradient(180deg, rgba(8, 36, 58, 0.96), rgba(8, 25, 42, 0.98));
            --wf-title-bg: linear-gradient(90deg, rgba(0, 160, 220, 0.32), rgba(60, 110, 170, 0.24));
            --wf-field-bg: rgba(4, 22, 38, 0.84);
            --wf-preview-bg: rgba(5, 28, 48, 0.72);
            --wf-border: rgba(100, 200, 255, 0.24);
            --wf-text: rgba(210, 240, 255, 0.95);
            --wf-muted: rgba(130, 180, 210, 0.8);
            --wf-accent: rgba(46, 204, 113, 0.9);
            background: linear-gradient(180deg, rgba(9, 25, 45, 0.96), rgba(12, 21, 38, 0.96));
        }

        [data-theme="light"] .node.workflow-host .node-workflow-container {
            --wf-panel-bg: #ffffff;
            --wf-title-bg: #dff1ff;
            --wf-field-bg: #ffffff;
            --wf-preview-bg: #eef7ff;
            --wf-border: #b9ddf5;
            --wf-text: #18364f;
            --wf-muted: #5a7188;
            --wf-accent: #0b8f62;
            background: #f8fbff;
        }

        .workflow-panel {
            background: var(--wf-panel-bg) !important;
            border: 1px solid rgba(0, 212, 255, 0.22);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
        }

        [data-theme="light"] .workflow-panel {
            background: #ffffff !important;
            border-color: rgba(0, 160, 255, 0.24);
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
        }

        .workflow-panel-title {
            background: var(--wf-title-bg) !important;
            color: #43e8ad !important;
        }

        [data-theme="light"] .workflow-panel-title {
            background: #dff1ff !important;
            color: #086f9f !important;
        }

        .workflow-run-btn {
            background: linear-gradient(135deg, #ff6a2a, #ff3d18) !important;
            color: #fff !important;
        }

        .workflow-load-btn {
            background: rgba(0, 160, 255, 0.18) !important;
            color: rgb(100, 200, 255) !important;
            border-color: rgba(100, 200, 255, 0.45) !important;
        }

        .workflow-clear-btn {
            background: rgba(255, 82, 82, 0.16) !important;
            color: rgb(255, 110, 110) !important;
            border-color: rgba(255, 110, 110, 0.45) !important;
        }

        .workflow-action-btn {
            transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
        }

        .workflow-action-btn:hover {
            filter: brightness(1.15);
            box-shadow: 0 0 12px rgba(0, 212, 255, 0.22);
        }

        .workflow-action-btn:active {
            transform: translateY(1px) scale(0.98);
        }

        .workflow-model-select,
        .workflow-field,
        .workflow-panel select,
        .workflow-panel input[type="text"],
        .workflow-panel textarea {
            background: var(--wf-field-bg) !important;
            color: var(--wf-text) !important;
            border-color: var(--wf-border) !important;
        }

        .workflow-preview,
        .workflow-image-drop-container,
        .slice-image-container,
        .video-node-container,
        .smart-group-list {
            background: var(--wf-preview-bg) !important;
            color: var(--wf-text) !important;
            border-color: var(--wf-border) !important;
        }

        .workflow-label,
        .workflow-panel-label,
        .workflow-panel .smart-group-item {
            color: var(--wf-text) !important;
        }

        .workflow-muted {
            color: var(--wf-muted) !important;
        }

        /* 创意带货工作流定稿样式锁：只允许这个入口控制复合节点布局，避免旧样式/缩放逻辑回写 */
        .node.workflow-host.workflow-final-lock {
            width: 1500px;
            height: 540px;
            min-width: 1260px;
            min-height: 320px;
            max-width: none;
            max-height: none;
            background: rgba(13, 22, 41, 0.98) !important;
            border-color: rgba(45, 178, 224, 0.34) !important;
            box-shadow: 0 14px 36px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(0, 210, 255, 0.08) !important;
        }

        .node.workflow-host.workflow-final-lock .node-header {
            min-height: 36px !important;
            height: 36px !important;
            padding: 5px 10px !important;
            background: linear-gradient(90deg, rgba(18, 88, 112, 0.98), rgba(48, 39, 96, 0.98)) !important;
            border-bottom: 1px solid rgba(0, 212, 255, 0.22) !important;
        }

        .node.workflow-host.workflow-final-lock .node-title {
            font-size: 12px !important;
            color: #43e8ad !important;
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.26) !important;
        }

        .node.workflow-host.workflow-final-lock .node-body {
            overflow: hidden !important;
            height: calc(100% - 36px) !important;
            padding: 0 !important;
        }

        .node.workflow-host.workflow-final-lock .node-workflow-container {
            padding: 8px !important;
            gap: 6px !important;
            overflow: hidden !important;
            background: rgba(11, 24, 45, 0.86) !important;
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
            min-height: 0 !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-main-container {
            display: grid !important;
            grid-template-columns:
                minmax(195px, 0.86fr)
                minmax(190px, 0.96fr)
                minmax(190px, 0.96fr)
                minmax(220px, 1.08fr)
                minmax(205px, 1.02fr)
                minmax(280px, 1.34fr) !important;
            gap: 5px !important;
            min-width: 0 !important;
            overflow: hidden !important;
            align-items: stretch !important;
            height: auto !important;
            min-height: 0 !important;
            flex: 1 1 auto !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-panel {
            padding: 6px !important;
            gap: 4px !important;
            border-radius: 6px !important;
            font-size: 10px !important;
            line-height: 1.22 !important;
            color: var(--wf-text) !important;
            background: rgba(6, 31, 50, 0.94) !important;
            border: 1px solid rgba(0, 212, 255, 0.26) !important;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025) !important;
            min-height: 0 !important;
            width: auto !important;
            min-width: 0 !important;
            flex: initial !important;
            flex-shrink: initial !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-panel-title {
            min-height: 22px !important;
            padding: 3px 8px !important;
            font-size: 12px !important;
            line-height: 1.2 !important;
            display: flex;
            align-items: center;
            background: linear-gradient(90deg, rgba(0, 132, 176, 0.42), rgba(42, 88, 135, 0.34)) !important;
            color: #43e8ad !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-panel select,
        .node.workflow-host.workflow-final-lock .workflow-panel input,
        .node.workflow-host.workflow-final-lock .workflow-panel textarea {
            font-size: 12px !important;
            line-height: 1.25 !important;
            min-height: 22px !important;
            padding: 2px 6px !important;
            background: rgba(4, 18, 32, 0.92) !important;
            color: rgba(215, 235, 248, 0.92) !important;
            border-color: rgba(100, 200, 255, 0.34) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-label,
        .node.workflow-host.workflow-final-lock .workflow-panel-label,
        .node.workflow-host.workflow-final-lock .workflow-panel-title,
        .node.workflow-host.workflow-final-lock .video-method-label,
        .node.workflow-host.workflow-final-lock .video-node-label,
        .node.workflow-host.workflow-final-lock .video-model-label {
            color: var(--wf-accent) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-model-price,
        .node.workflow-host.workflow-final-lock .workflow-price,
        .node.workflow-host.workflow-final-lock .workflow-panel [class*="price"] {
            color: #facc15 !important;
        }

        .node.workflow-host.workflow-final-lock .input-panel {
            display: flex !important;
            flex-direction: column !important;
            gap: 4px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-images {
            flex: 0 0 auto !important;
            gap: 3px !important;
            min-height: 0 !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-images .workflow-image-drop-container {
            width: 100% !important;
            aspect-ratio: 1 / 1 !important;
            flex: 0 0 auto !important;
            min-height: 0 !important;
            max-height: none !important;
            box-sizing: border-box !important;
            gap: 3px !important;
            padding: 3px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-description {
            flex: 1 1 auto !important;
            gap: 3px !important;
            min-height: 104px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-description .workflow-input-textarea {
            flex: 1 1 auto !important;
            min-height: 96px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-run-btn {
            background: linear-gradient(135deg, #ff6a2a, #ff3d18) !important;
            color: #fff !important;
            box-shadow: none !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-load-btn {
            background: rgba(0, 160, 255, 0.18) !important;
            color: #64c8ff !important;
            border-color: rgba(100, 200, 255, 0.45) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-clear-btn {
            background: rgba(255, 82, 82, 0.16) !important;
            color: #ff6e6e !important;
            border-color: rgba(255, 110, 110, 0.45) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-action-btn:hover,
        .node.workflow-host.workflow-final-lock .video-generate-btn:hover,
        .node.workflow-host.workflow-final-lock .video-mode-btn:hover {
            filter: brightness(1.12) !important;
            transform: translateY(-1px) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-action-btn:active,
        .node.workflow-host.workflow-final-lock .video-generate-btn:active,
        .node.workflow-host.workflow-final-lock .video-mode-btn:active {
            transform: translateY(1px) scale(0.98) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-video-actions {
            display: flex !important;
            grid-template-columns: none !important;
            gap: 5px !important;
            align-items: stretch !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-video-actions .video-generate-btn {
            width: 100% !important;
            margin: 0 !important;
            min-height: 24px !important;
        }

        .node.workflow-host.workflow-final-lock .multi-video-container {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 5px !important;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            max-height: none !important;
            min-height: 0 !important;
            flex: 1 1 auto !important;
        }

        .node.workflow-host.workflow-final-lock .multi-video-node-card {
            min-height: 128px !important;
            height: 128px !important;
            padding: 4px !important;
            gap: 3px !important;
            border-radius: 6px !important;
            background: transparent !important;
            overflow: hidden !important;
        }

        .node.workflow-host.workflow-final-lock .multi-video-content {
            min-height: 0 !important;
            height: min(188px, 28vh) !important;
            flex: 1 1 auto !important;
            overflow: hidden !important;
            display: grid !important;
            place-items: center !important;
            background: rgba(0, 0, 0, 0.38) !important;
        }

        .node.workflow-host.workflow-final-lock .multi-video-content video,
        .node.workflow-host.workflow-final-lock [class*="multi-video-content-"] video,
        .node.workflow-host.workflow-final-lock .workflow-panel-auto-fit-video {
            width: auto !important;
            height: auto !important;
            max-width: 100% !important;
            max-height: 100% !important;
            object-fit: contain !important;
            border-radius: 4px !important;
            background: rgba(0, 0, 0, 0.72) !important;
            display: block !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-video-preview-shell {
            position: relative !important;
            width: 100% !important;
            height: 100% !important;
            min-height: 0 !important;
            border-radius: 4px !important;
            overflow: hidden !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-video-preview-image {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            display: block !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-video-preview-text {
            position: absolute !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            max-height: 58% !important;
            overflow: hidden !important;
            padding: 5px 6px !important;
            box-sizing: border-box !important;
            color: rgba(100, 255, 150, 0.94) !important;
            font-size: 10px !important;
            line-height: 1.25 !important;
            text-align: left !important;
            text-shadow: 0 1px 3px rgba(0, 60, 80, 0.55) !important;
            background: transparent !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 4 !important;
            -webkit-box-orient: vertical !important;
        }

        .workflow-video-waiting-shell {
            min-height: 92px;
            display: grid;
            place-items: center;
            border: 1px dashed rgba(79, 220, 255, 0.28);
            background: rgba(0, 12, 24, 0.42);
        }

        .workflow-video-waiting-shell .workflow-video-preview-text,
        .node.workflow-host.workflow-final-lock .workflow-video-waiting-shell .workflow-video-preview-text {
            position: static !important;
            max-width: calc(100% - 20px);
            max-height: none !important;
            border-radius: 999px;
            background: rgba(2, 20, 34, 0.72) !important;
            color: rgba(220, 250, 255, 0.96) !important;
            text-align: center !important;
            display: block !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-status {
            width: 100%;
            height: 100%;
            min-height: 108px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            box-sizing: border-box;
            border-radius: 7px;
            border: 1px solid rgba(34, 211, 238, 0.34);
            background: linear-gradient(135deg, rgba(8, 47, 73, 0.84), rgba(15, 23, 42, 0.92));
            box-shadow: inset 0 0 0 1px rgba(67, 232, 173, 0.08);
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-status[data-state="done"] {
            border-color: rgba(67, 232, 173, 0.44);
            background: linear-gradient(135deg, rgba(6, 78, 59, 0.72), rgba(7, 28, 45, 0.94));
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-status[data-state="failed"] {
            border-color: rgba(255, 120, 120, 0.48);
            background: linear-gradient(135deg, rgba(88, 28, 28, 0.72), rgba(15, 23, 42, 0.94));
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            color: rgba(220, 250, 255, 0.96);
            font-size: 11px;
            font-weight: 700;
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-head span {
            color: #43e8ad;
            font-size: 12px;
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-track {
            height: 7px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(15, 45, 68, 0.92);
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-track span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #22d3ee, #43e8ad);
            transition: width 0.28s ease;
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-text {
            color: rgba(170, 226, 245, 0.92);
            font-size: 10px;
            line-height: 1.35;
            word-break: break-word;
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-player {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            min-height: 0;
            object-fit: contain;
            border-radius: 7px;
            border: 1px solid rgba(67, 232, 173, 0.34);
            background: rgba(0, 0, 0, 0.72);
            display: block;
            margin: 0 auto;
        }

        .node.workflow-host.workflow-final-lock .workflow-inline-video-lazy-shell {
            height: min(280px, 36vh) !important;
            min-height: 118px !important;
            display: grid !important;
            place-items: center !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-video-fit-shell {
            aspect-ratio: var(--workflow-video-ratio, 16 / 9);
        }

        .deploy-concurrent-image-bubble {
            position: fixed;
            z-index: 140000;
            display: none;
            width: min(520px, 44vw);
            max-height: min(620px, 72vh);
            padding: 8px;
            border: 1px solid rgba(56, 189, 248, 0.45);
            border-radius: 8px;
            background: rgba(2, 8, 18, 0.96);
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58), 0 0 28px rgba(14, 165, 233, 0.16);
            pointer-events: none;
        }

        .deploy-concurrent-image-bubble img {
            display: block;
            width: 100%;
            max-height: calc(min(620px, 72vh) - 16px);
            object-fit: contain;
            border-radius: 6px;
        }

        .deploy-concurrent-image-preview-overlay {
            position: fixed;
            inset: 0;
            z-index: 140001;
            display: grid;
            place-items: center;
            padding: 28px;
            background: rgba(0, 5, 12, 0.82);
        }

        .deploy-concurrent-image-preview-overlay img {
            max-width: min(1200px, 94vw);
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 22px 90px rgba(0, 0, 0, 0.68);
        }

        .deploy-concurrent-preview-close {
            position: fixed;
            top: 18px;
            right: 18px;
            width: 34px;
            height: 34px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.38);
            background: rgba(15, 23, 42, 0.92);
            color: #e2e8f0;
            cursor: pointer;
            font-size: 20px;
            line-height: 1;
        }

        .deploy-concurrent-video-menu {
            z-index: 140002;
            min-width: 150px;
        }

        .node.workflow-host.workflow-final-lock .video-panel {
            gap: 3px !important;
        }

        .node.workflow-host.workflow-final-lock .video-panel .video-route-row,
        .node.workflow-host.workflow-final-lock .video-panel .video-model-selector-wrap,
        .node.workflow-host.workflow-final-lock .video-panel .video-comfy-address-row {
            gap: 3px !important;
        }

        .node.workflow-host.workflow-final-lock .video-comfy-config {
            display: grid;
            gap: 3px;
            padding: 4px;
            border: 1px solid rgba(100, 200, 255, 0.20);
            border-radius: 5px;
            background: rgba(2, 20, 36, 0.58);
        }

        .node.workflow-host.workflow-final-lock .video-comfy-address-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
        }

        .node.workflow-host.workflow-final-lock .video-comfy-copy-btn {
            min-height: 20px !important;
            padding: 1px 7px !important;
            border-radius: 4px !important;
            border: 1px solid rgba(67, 232, 173, 0.42) !important;
            background: rgba(67, 232, 173, 0.14) !important;
            color: #7fffd4 !important;
            font-size: 11px !important;
            cursor: pointer;
        }

        .node.workflow-host.workflow-final-lock .video-panel select {
            min-height: 20px !important;
            padding-top: 1px !important;
            padding-bottom: 1px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-status-label {
            min-width: 0 !important;
            flex: 0 1 260px !important;
            max-width: 300px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-image-drop-container {
            min-height: 132px !important;
            height: 132px !important;
            flex: 0 0 132px !important;
            background: rgba(4, 20, 36, 0.82) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-textarea {
            min-height: 104px !important;
            height: auto !important;
            flex: 1 1 104px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-images .workflow-image-drop-container {
            width: 100% !important;
            height: auto !important;
            aspect-ratio: 1 / 1 !important;
            flex: 0 0 auto !important;
            min-height: 0 !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-input-description .workflow-input-textarea {
            min-height: 96px !important;
            flex: 1 1 auto !important;
        }

        .node.workflow-host.workflow-final-lock .commerce-result-textarea,
        .node.workflow-host.workflow-final-lock .director-result-textarea {
            min-height: 0 !important;
            flex: 1 1 auto !important;
            background: rgba(4, 18, 32, 0.88) !important;
            color: rgba(225, 240, 250, 0.94) !important;
        }

        .node.workflow-host.workflow-final-lock .slice-image-container {
            min-height: 0 !important;
            height: auto !important;
            flex: 1 1 auto !important;
            background: rgba(5, 26, 46, 0.78) !important;
            position: relative !important;
            z-index: 1 !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-slice-actions {
            flex: 0 0 28px !important;
            min-height: 28px !important;
            position: relative !important;
            z-index: 5 !important;
            pointer-events: auto !important;
            background: rgba(6, 31, 50, 0.84) !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-slice-actions .workflow-action-btn,
        .node.workflow-host.workflow-final-lock .workflow-slice-actions button {
            position: relative !important;
            z-index: 6 !important;
            pointer-events: auto !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-image-drop-container > div,
        .node.workflow-host.workflow-final-lock .slice-frame-image,
        .node.workflow-host.workflow-final-lock .slice-frame-placeholder {
            background: rgba(4, 18, 32, 0.88) !important;
            border-radius: 4px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-image-drop-container img,
        .node.workflow-host.workflow-final-lock .slice-frame-image img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            object-position: center center !important;
            display: block !important;
            background: rgba(2, 12, 24, 0.72) !important;
        }

        .node.workflow-host.workflow-final-lock .smart-group-list {
            background: rgba(5, 26, 46, 0.72) !important;
            color: rgba(225, 240, 250, 0.94) !important;
            min-height: 0 !important;
            flex: 1 1 auto !important;
            overflow: auto !important;
        }

        .node.workflow-host.workflow-final-lock .video-node-container {
            min-height: 112px !important;
            height: min(168px, 22vh) !important;
            max-height: 168px !important;
            flex: 0 0 min(168px, 22vh) !important;
            display: grid !important;
            place-items: center !important;
            align-items: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;
            padding: 4px !important;
            overflow: hidden !important;
            background: rgba(5, 26, 46, 0.78) !important;
        }

        .node.workflow-host.workflow-final-lock .video-node-container > video,
        .node.workflow-host.workflow-final-lock .video-node-container > .workflow-inline-video-player,
        .node.workflow-host.workflow-final-lock .video-node-container .workflow-inline-video-lazy-shell,
        .node.workflow-host.workflow-final-lock .video-node-container .workflow-inline-video-lazy-shell video {
            width: 100% !important;
            height: 100% !important;
            max-width: 100% !important;
            max-height: 100% !important;
            min-width: 0 !important;
            min-height: 0 !important;
            object-fit: contain !important;
            box-sizing: border-box !important;
        }

        .node.workflow-host.workflow-final-lock .video-node-container .workflow-inline-video-lazy-shell {
            min-height: 0 !important;
            display: grid !important;
            place-items: center !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-action-btn,
        .node.workflow-host.workflow-final-lock .video-generate-btn,
        .node.workflow-host.workflow-final-lock .smart-group-apply-btn {
            min-height: 22px !important;
            padding: 5px 12px !important;
            font-size: 12px !important;
            border-radius: 6px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-bottom-panel {
            height: 34px !important;
            flex: 0 0 34px !important;
            gap: 6px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-retry-select {
            width: 48px !important;
            min-height: 22px !important;
            padding: 2px 4px !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-bottom-mode-wrap {
            margin-left: auto !important;
            display: flex !important;
            align-items: center !important;
            gap: 4px !important;
            flex: 0 0 auto !important;
        }

        .node.workflow-host.workflow-final-lock .workflow-bottom-mode-wrap .video-mode-btn {
            min-width: 60px !important;
            min-height: 24px !important;
            padding: 4px 12px !important;
            margin: 0 !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock {
            background: #ffffff !important;
            border-color: #c8def0 !important;
            box-shadow: 0 10px 28px rgba(20, 90, 140, 0.10), inset 0 0 0 1px rgba(0, 140, 210, 0.08) !important;
            color: #17324a !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .node-header {
            background: linear-gradient(90deg, #d8efff, #f0e8ff) !important;
            border-bottom-color: #bddcf1 !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .node-title,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel-title,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-label,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel-label,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .video-method-label,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .video-node-label,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .video-model-label {
            color: #087f5b !important;
            text-shadow: none !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .node-workflow-container {
            background: #f7fbff !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel {
            background: #ffffff !important;
            border-color: #c5dff1 !important;
            color: #17324a !important;
            box-shadow: 0 2px 8px rgba(15, 80, 130, 0.06) !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel-title {
            background: #dff1ff !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel select,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel input,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-panel textarea {
            background: #ffffff !important;
            color: #17324a !important;
            border-color: #9fc8e4 !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-image-drop-container,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .slice-image-container,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .slice-frame-placeholder,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .slice-frame-image,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .smart-group-list,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .video-node-container,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .multi-video-node-card,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .multi-video-content,
        [data-theme="light"] .node.workflow-host.workflow-final-lock [class*="multi-video-content-"] {
            background: #eef7ff !important;
            color: #17324a !important;
            border-color: #c5dff1 !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .slice-frame-placeholder {
            background: #f8fbff !important;
            color: #1680b5 !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .multi-video-content,
        [data-theme="light"] .node.workflow-host.workflow-final-lock [class*="multi-video-content-"] {
            color: #087f5b !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .commerce-result-textarea,
        [data-theme="light"] .node.workflow-host.workflow-final-lock .director-result-textarea {
            background: #ffffff !important;
            color: #17324a !important;
        }

        [data-theme="light"] .node.workflow-host.workflow-final-lock .workflow-status-label {
            background: transparent !important;
            color: #087f5b !important;
        }

        /* grid 跟随内容高度，不撑满父容器 */
        .node:has(.node-image-list) .image-list-grid,
        .node.image-list-host .image-list-grid {
            width: max-content;
            min-width: 100%;
            max-width: none;
            height: max-content;     /* 关键：跟随内容 */
            min-height: 100%;        /* 兜底：至少填满（无图片时） */
            overflow: visible;
        }

        /* 容器跟随内容高度 */
        .node:has(.node-image-list) .node-image-list,
        .node.image-list-host .node-image-list {
            overflow: visible;
            height: auto;            /* 关键：跟随内容 */
        }

        .node:has(.node-image-list) .node-body,
        .node.image-list-host .node-body {
            height: auto;            /* 关键：跟随内容 */
        }

        /* 图片项高度用 min-height（防止 align-items: stretch 撑高） */
        .node:has(.node-image-list) .image-list-item,
        .node.image-list-host .image-list-item {
            align-self: flex-start;  /* 关键：不被 flex 拉伸 */
        }
        
        .image-list-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 40px;
            z-index: 1;
            pointer-events: none;
        }
        
        .image-list-placeholder svg {
            width: 48px;
            height: 48px;
            opacity: 0.5;
            pointer-events: none;
        }

        /* 图片列表网格 - 固定网格布局
           关键修复：使用 CSS Grid 替代 float + Packery percentPosition
           避免：
             1) 50% 宽度 3张图 = 150% 溢出导致的位置错乱
             2) float + percentPosition + min-height:100% 引起的无限扩展
             3) item.style.width 百分比 + maxBottom 计算触发的节点高度反馈循环 */
        .image-list-grid {
            width: 100%;
            height: 100%;
            position: relative;
            display: grid;
            grid-template-columns: repeat(var(--il-cols, 2), 1fr);
            grid-auto-rows: var(--il-cell-size, 120px);
            gap: 2px;
            align-content: start;
            overflow: hidden;
            box-sizing: border-box;
        }
        
        /* 每个图片项 - 不再使用 float 布局 */
        .image-list-item {
            border-radius: 0;
            overflow: hidden;
            transition: all 0.2s ease;
            position: relative;
            background: rgba(0, 0, 0, 0.2);
        }
        
        .image-list-item img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: grab;
        }
        
        .image-list-item img:active {
            cursor: grabbing;
        }
        
        /* 图片选中状态 */
        .image-list-item.selected {
            outline: 2px solid #a855f7;
            outline-offset: -2px;
            box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
        }
        
        .image-list-item.selected::after {
            content: '';
            position: absolute;
            top: 4px;
            right: 4px;
            width: 16px;
            height: 16px;
            background: #a855f7;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 图片右键菜单 */
        .image-context-menu {
            position: fixed;
            background: rgba(30, 41, 59, 0.98);
            border: 1px solid rgba(148, 163, 184, 0.3);
            border-radius: 8px;
            padding: 4px;
            z-index: 100000;
            min-width: 140px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }
        
        .image-context-menu-item {
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            color: #e2e8f0;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.15s;
        }
        
        .image-context-menu-item:hover {
            background: rgba(168, 85, 247, 0.2);
            color: #a855f7;
        }
        
        .image-context-menu-item.danger:hover {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        
        .image-context-menu-divider {
            height: 1px;
            background: rgba(148, 163, 184, 0.2);
            margin: 4px 0;
        }
        
        /* 图片列表布局切换按钮 - 节点 header 右侧 */
        .image-list-layout-toggle {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: var(--text-secondary);
            font-size: 11px;
            cursor: pointer;
            user-select: none;
            transition: all 0.15s ease;
        }
        
        .image-list-layout-toggle:hover {
            background: rgba(0, 212, 255, 0.2);
            border-color: rgba(0, 212, 255, 0.5);
            color: #00d4ff;
        }
        
        .image-list-layout-toggle svg {
            width: 12px;
            height: 12px;
        }
        
        /* 关键修复 v20260607-6：让 .image-list-grid 本身就是 flex 容器
           修复内容：之前的 .image-list-grid { display: none } 把图片项全隐藏了
           现在 grid 容器继承父容器的 layout 模式
           结构：.node-image-list > .image-list-grid > .image-list-item */
        .image-list-grid {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: auto;
            box-sizing: border-box;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 6px;
            padding: 4px;
        }
        
        /* 横向：单行 flex */
        .image-list-single-row .image-list-grid {
            flex-direction: row;
        }
        
        /* 竖向：单列 flex */
        .image-list-single-col .image-list-grid {
            flex-direction: column;
        }
        
        /* 单行/单列中的图片项 - 关键：图片尺寸由 JS 设置 */
        .image-list-grid .image-list-item {
            flex-shrink: 0;  /* 关键：不收缩 */
            position: relative;
        }

        /* 图片列表新版展示：参考创意工作流输入区和资产加载器的紧凑网格 */
        .node.image-list-host .node-body,
        .node:has(.node-image-list) .node-body {
            height: calc(100% - 42px) !important;
            min-height: 0 !important;
            overflow: hidden !important;
        }

        .node.image-list-host .node-image-list,
        .node:has(.node-image-list) .node-image-list {
            height: 100% !important;
            min-height: 180px;
            overflow: hidden !important;
            background: transparent !important;
            border: 0 !important;
            border-radius: 0;
        }

        .node.image-list-host .image-list-grid,
        .node:has(.node-image-list) .image-list-grid {
            display: grid !important;
            width: 100% !important;
            min-width: 0 !important;
            height: 100% !important;
            min-height: 0 !important;
            grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
            --il-dynamic-cell: minmax(86px, 1fr);
            grid-template-columns: repeat(auto-fit, var(--il-dynamic-cell));
            grid-auto-rows: auto;
            gap: 6px;
            padding: 0;
            overflow: auto !important;
            align-content: start;
            justify-content: stretch;
            box-sizing: border-box;
        }

        .node.image-list-host .image-list-list-mode .image-list-grid,
        .node:has(.node-image-list) .image-list-list-mode .image-list-grid {
            grid-template-columns: minmax(0, 1fr);
            grid-auto-rows: auto;
        }

        .node.image-list-host .image-list-item,
        .node:has(.node-image-list) .image-list-item {
            width: auto !important;
            height: auto !important;
            min-width: 0;
            min-height: 0;
            aspect-ratio: 1 / 1;
            align-self: stretch !important;
            border-radius: 3px;
            overflow: hidden;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        .node.image-list-host .image-list-item img,
        .node:has(.node-image-list) .image-list-item img {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            background: transparent !important;
        }

        [data-theme="light"] .node.image-list-host .node-image-list,
        [data-theme="light"] .node:has(.node-image-list) .node-image-list {
            background: transparent !important;
            border-color: transparent !important;
        }

        [data-theme="light"] .node.image-list-host .image-list-item,
        [data-theme="light"] .node:has(.node-image-list) .image-list-item {
            background: transparent !important;
            border-color: transparent !important;
        }

        .node.image-list-host .image-list-item.selected,
        .node:has(.node-image-list) .image-list-item.selected {
            outline: 1px solid #a855f7 !important;
            outline-offset: -1px !important;
            box-shadow: none !important;
        }

        .node.image-list-host .image-list-item.selected::after,
        .node:has(.node-image-list) .image-list-item.selected::after {
            content: none !important;
            display: none !important;
        }

        .image-list-hover-preview {
            position: fixed;
            z-index: 100001;
            display: none;
            padding: 6px;
            max-width: min(420px, 42vw);
            max-height: min(420px, 56vh);
            background: rgba(9, 18, 32, 0.96);
            border: 1px solid rgba(0, 212, 255, 0.42);
            border-radius: 6px;
            box-shadow: 0 18px 50px rgba(0, 0, 0, 0.52), 0 0 22px rgba(0, 212, 255, 0.18);
            pointer-events: none;
            box-sizing: border-box;
        }

        .image-list-hover-preview img {
            display: block;
            max-width: 100%;
            max-height: calc(min(420px, 56vh) - 12px);
            object-fit: contain;
            border-radius: 4px;
        }
        
        /* 编辑器节点 */
        .node-editor {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        /* 编辑器工具栏 */
        .editor-toolbar {
            display: flex;
            gap: 4px;
            padding: 6px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 6px;
            margin-bottom: 8px;
            flex-shrink: 0;
        }
        
        [data-theme="light"] .editor-toolbar {
            background: rgba(0, 0, 0, 0.05);
        }
        
        .editor-btn {
            width: 28px;
            height: 28px;
            border: none;
            background: transparent;
            color: var(--text-primary);
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: background 0.2s;
        }
        
        .editor-btn:hover {
            background: var(--accent-color);
            color: white;
        }
        
        .editor-btn:active {
            transform: scale(0.95);
        }
        
        /* 编辑器内容区域 */
        .editor-content {
            flex: 1;
            overflow-y: auto;
        }
        
        /* 富文本编辑区域 */
        .editor-area {
            width: 100%;
            min-height: 100%;
            padding: 12px;
            background: transparent;
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.8;
            outline: none;
            border-radius: 6px;
            word-wrap: break-word;
            word-break: break-word;
        }
        
        .editor-area:empty::before {
            content: attr(placeholder);
            color: var(--text-muted);
            pointer-events: none;
        }
        
        .editor-area:focus {
            background: rgba(0, 0, 0, 0.1);
        }
        
        [data-theme="light"] .editor-area:focus {
            background: rgba(0, 0, 0, 0.02);
        }
        
        /* 文件节点 - 50x50 缩略图 */
        .file-node {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            margin: 4px;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            vertical-align: middle;
            overflow: hidden;
            position: relative;
        }
        
        .file-node:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        
        [data-theme="light"] .file-node {
            background: rgba(0, 0, 0, 0.08);
        }
        
        /* 文件缩略图 */
        .file-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 文件图标 */
        .file-icon {
            width: 30px;
            height: 30px;
            color: var(--text-primary);
        }
        
        /* 文件类型提示（小标签） */
        .file-type-label {
            position: absolute;
            bottom: 2px;
            right: 2px;
            font-size: 8px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 1px 4px;
            border-radius: 3px;
            text-transform: uppercase;
        }
        
        /* 预览浮层 */
        .preview-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }
        
        .preview-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        /* 预览容器 */
        .preview-container {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: var(--bg-secondary);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }
        
        /* 预览关闭按钮 */
        .preview-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            background: rgba(0, 0, 0, 0.6);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        
        .preview-close:hover {
            background: rgba(255, 80, 80, 0.8);
        }
        
        /* 图片预览 */
        .preview-image {
            max-width: 90vw;
            max-height: 85vh;
            display: block;
            object-fit: contain;
        }
        
        /* 视频预览 */
        .preview-video {
            max-width: 90vw;
            max-height: 85vh;
            min-width: 400px;
        }
        
        /* 音频预览 */
        .preview-audio-container {
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            min-width: 300px;
        }
        
        .preview-audio-icon {
            width: 64px;
            height: 64px;
            color: var(--accent-color);
        }
        
        .preview-audio-info {
            color: var(--text-primary);
            text-align: center;
        }
        
        .preview-audio {
            width: 100%;
        }
        
        /* 文档预览 */
        .preview-doc-container {
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            min-width: 350px;
            text-align: center;
        }
        
        .preview-doc-icon {
            width: 64px;
            height: 64px;
            color: var(--accent-color);
        }
        
        .preview-doc-info {
            color: var(--text-primary);
        }
        
        .preview-doc-hint {
            color: var(--text-muted);
            font-size: 13px;
        }
        
        /* 节点选中状态 - 最高优先级 */
        .node.selected {
            z-index: 100 !important;
            border: 2px solid #4cff8c !important;
            box-shadow: 0 0 12px rgba(76, 255, 140, 0.4), 0 0 24px rgba(76, 255, 140, 0.15) !important;
        }
        
        /* 必须用属性选择器提高优先级，覆盖 [data-theme="dark"] .node */
        [data-theme="dark"] .node.selected {
            z-index: 100 !important;
            border: 2px solid #4cff8c !important;
            box-shadow: 0 0 12px rgba(76, 255, 140, 0.4), 0 0 24px rgba(76, 255, 140, 0.15) !important;
        }
        
        [data-theme="light"] .node.selected {
            z-index: 100 !important;
            border: 2px solid #a855f7 !important;
            box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), 0 0 24px rgba(168, 85, 247, 0.15) !important;
        }
        
        /* 强制覆盖所有情况 */
        html .node.selected {
            border: 2px solid #4cff8c !important;
            box-shadow: 0 0 12px rgba(76, 255, 140, 0.4), 0 0 24px rgba(76, 255, 140, 0.15) !important;
        }
        
        /* 框选框样式 */
        .box-select-box {
            position: fixed;
            border: 2px solid rgba(124, 77, 255, 1);
            background: rgba(124, 77, 255, 0.15);
            border-radius: 4px;
            pointer-events: none;
            z-index: 10000;
            box-shadow: 0 0 10px rgba(124, 77, 255, 0.5);
        }
        
        /* 选中信息提示 */
        #selectionInfo {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(124, 77, 255, 0.9);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        
        /* 组框样式 - 暗系主题蓝色 */
        .group-frame {
            background: rgba(0, 150, 255, 0.04);
            border: 2px solid rgba(0, 150, 255, 0.35);
            border-radius: 8px;
        }
        
        .group-title-bar {
            background: rgba(0, 150, 255, 0.2);
            border-bottom: 1px solid rgba(0, 150, 255, 0.15);
        }
        
        .group-resize-handle {
            background: rgba(0, 150, 255, 0.4);
        }
        
        /* 亮系主题 - 组框紫色 */
        [data-theme="light"] .group-frame {
            background: rgba(124, 77, 255, 0.05);
            border: 2px solid rgba(124, 77, 255, 0.4);
        }
        
        [data-theme="light"] .group-title-bar {
            background: rgba(124, 77, 255, 0.25);
            border-bottom: 1px solid rgba(124, 77, 255, 0.2);
        }
        
        [data-theme="light"] .group-resize-handle {
            background: rgba(124, 77, 255, 0.45);
        }
        
        .node-header {
            background: var(--bg-node-header);
            padding: 12px;
            border-bottom: 1px solid var(--border-color);
            border-radius: 10px 10px 0 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .node-icon {
            font-size: 20px;
        }
        
        .node-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-node);
            user-select: none;
            pointer-events: none;
            flex: 0 0 auto;
        }

        .node-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .node-download-btn {
            width: 24px;
            height: 24px;
            border: 1px solid rgba(34, 197, 94, 0.35);
            border-radius: 6px;
            background: rgba(15, 23, 42, 0.52);
            color: #7dd3fc;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex: 0 0 auto;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }

        .node-download-btn:hover {
            background: rgba(14, 165, 233, 0.18);
            border-color: rgba(56, 189, 248, 0.75);
            color: #e0f2fe;
        }

        .node-download-btn svg {
            width: 15px;
            height: 15px;
            pointer-events: none;
        }

        [data-theme="light"] .node-download-btn {
            background: rgba(255, 255, 255, 0.72);
            color: #2563eb;
            border-color: rgba(37, 99, 235, 0.28);
        }
        
        /* 节点标题颜色：暗系绿，亮系紫 */
        [data-theme="dark"] .node-title {
            color: #22c55e;
        }
        
        [data-theme="light"] .node-title {
            color: #a855f7;
        }
        
        .node-body {
            padding: 12px;
        }
        
        .node-description {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .node-port {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            position: absolute;
            cursor: crosshair;
            z-index: 20;
            transition: all 0.3s ease;
        }
        
        .node-port.input {
            left: -7px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--accent);
            border: 2px solid var(--bg-node);
            box-shadow: 0 0 6px var(--glow-cyan), inset 0 0 4px rgba(255,255,255,0.3);
        }
        
        .node-port.output {
            right: -7px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--accent-gradient);
            border: 2px solid var(--bg-node);
            box-shadow: 0 0 6px var(--glow-purple), inset 0 0 4px rgba(255,255,255,0.3);
        }
        
        .node-port:hover {
            transform: translateY(-50%) scale(1.5);
            box-shadow: 0 0 16px var(--glow-cyan), 0 0 30px var(--glow-cyan);
        }
        
        .node-port.connecting {
            animation: portPulse 0.8s ease-in-out infinite;
        }
        
        .node-port.snap-target {
            transform: translateY(-50%) scale(1.8);
            box-shadow: 0 0 20px var(--glow-cyan), 0 0 40px var(--glow-cyan);
            background: var(--glow-cyan);
            transition: transform 0.1s ease, box-shadow 0.1s ease;
        }
        
        @keyframes portPulse {
            0%, 100% { box-shadow: 0 0 6px var(--glow-cyan), 0 0 12px var(--glow-cyan); }
            50% { box-shadow: 0 0 16px var(--glow-cyan), 0 0 30px var(--glow-cyan), 0 0 50px var(--glow-cyan); }
        }
        
        /* 连接线 SVG 容器 */
        .connections-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 15;
            overflow: visible !important;
        }
        
        /* 连接线路径 */
        .link-path {
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            cursor: pointer;
            transition: stroke-width 0.15s ease, filter 0.2s ease;
            pointer-events: stroke; /* 只让线条接收点击事件 */
        }
        
        /* 连接线删除按钮 */
        .link-delete-btn {
            pointer-events: auto; /* 让删除按钮可以接收点击 */
            cursor: pointer;
        }
        
        .link-path:hover {
            stroke-width: 3;
        }
        
        /* 连接拖拽临时线 - 丝滑跟随 */
        .link-dragging {
            fill: none;
            stroke-width: 3;
            stroke-linecap: round;
            stroke-dasharray: 8 4;
            opacity: 1;
            transition: d 0.05s linear;
            pointer-events: none;
        }
        
        /* 暗系临时连线颜色 */
        [data-theme="dark"] .link-dragging { stroke: url(#dragTempGradient); }
        
        /* 亮系临时连线颜色 */
        [data-theme="light"] .link-dragging { stroke: #a855f7; }
        
        /* 暗系连线颜色 */
        [data-theme="dark"] .link-path { stroke: #2980b9; stroke-width: 2.5; }
        [data-theme="dark"] .link-path.selected { stroke: #4cff8c !important; filter: drop-shadow(0 0 8px rgba(76, 255, 140, 0.6)); stroke-width: 3 !important; }
        [data-theme="dark"] .link-path.related { stroke: #4cff8c !important; filter: drop-shadow(0 0 10px rgba(76, 255, 140, 0.8)); stroke-width: 3 !important; }
        [data-theme="dark"] .link-dragging { stroke: #2980b9; }
        
        /* 亮系连线颜色 */
        [data-theme="light"] .link-path { stroke: #a855f7; stroke-width: 2.5; }
        [data-theme="light"] .link-path.selected { stroke: url(#flowGradient); filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5)); stroke-width: 3 !important; }
        [data-theme="light"] .link-path.related { stroke: #a855f7 !important; filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.8)); stroke-width: 3 !important; }
        [data-theme="light"] .link-dragging { stroke: #a855f7; }
        
        /* 默认连线颜色（无 data-theme 时的备用） */
        .link-path { stroke: #2980b9; stroke-width: 2.5; }
        .link-path.selected { stroke: #4cff8c !important; filter: drop-shadow(0 0 8px rgba(76, 255, 140, 0.6)); stroke-width: 3 !important; }
        .link-path.related { stroke: #4cff8c !important; filter: drop-shadow(0 0 10px rgba(76, 255, 140, 0.8)); stroke-width: 3 !important; }
        
        /* 节点选中关联线高亮 - 最高优先级 */
        svg .link-path.related { stroke: #4cff8c !important; stroke-width: 3 !important; filter: drop-shadow(0 0 12px rgba(76, 255, 140, 0.9)); }
        #connectionsSvg .link-path.related { stroke: #4cff8c !important; stroke-width: 3 !important; filter: drop-shadow(0 0 12px rgba(76, 255, 140, 0.9)); }
        
        /* 流光动画遮罩 */
        .flow-mask {
            fill: none;
            stroke: rgba(255,255,255,0.35);
            stroke-width: 1.2;
            stroke-dasharray: 5 10;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .flow-mask.active {
            opacity: 1;
            animation: flowMove 1s linear infinite;
        }
        
        @keyframes flowMove {
            0% { stroke-dashoffset: 0; }
            100% { stroke-dashoffset: -15; }
        }
        
        /* 删除连接按钮 */
        .link-delete-btn {
            fill: rgba(255, 50, 50, 0.9);
            opacity: 0;
            transition: opacity 0.2s;
        }
        
        .link-delete-btn:hover {
            fill: rgba(255, 30, 30, 1);
        }
        
        .link-delete-btn.visible {
            opacity: 1;
        }
        
        /* 主题切换按钮 */
        .theme-toggle {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: var(--bg-modal);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 18px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            margin-right: 8px;
            overflow: hidden;
        }
        
        .theme-toggle:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-hover);
            transform: translateY(-2px) rotate(15deg);
            box-shadow: 0 4px 12px var(--glow-cyan);
        }

        .theme-switch-icon-dark,
        .theme-switch-icon-light,
        .brightness-icon {
            position: relative;
            display: inline-block;
            width: 18px;
            height: 18px;
            flex: 0 0 18px;
        }

        .theme-switch-icon-dark::before,
        .brightness-icon::before {
            content: "";
            position: absolute;
            inset: 5px;
            border: 2px solid currentColor;
            border-radius: 50%;
        }

        .theme-switch-icon-dark::after,
        .brightness-icon::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background:
                linear-gradient(currentColor, currentColor) 50% 0 / 2px 3px no-repeat,
                linear-gradient(currentColor, currentColor) 50% 100% / 2px 3px no-repeat,
                linear-gradient(currentColor, currentColor) 0 50% / 3px 2px no-repeat,
                linear-gradient(currentColor, currentColor) 100% 50% / 3px 2px no-repeat;
        }

        .theme-switch-icon-light::before {
            content: "";
            position: absolute;
            inset: 2px;
            border-radius: 50%;
            background: currentColor;
        }

        .theme-switch-icon-light::after {
            content: "";
            position: absolute;
            right: 0;
            top: 0;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background: var(--bg-modal);
        }

        .node-library-title-icon {
            display: inline-flex;
            width: 18px;
            height: 18px;
            vertical-align: -3px;
            color: var(--accent);
            border: 1px solid currentColor;
            border-radius: 5px;
            background:
                linear-gradient(currentColor, currentColor) 50% 5px / 10px 1px no-repeat,
                linear-gradient(currentColor, currentColor) 50% 9px / 10px 1px no-repeat,
                linear-gradient(currentColor, currentColor) 50% 13px / 10px 1px no-repeat;
        }
        
        [data-theme="light"] .theme-switch-icon-dark { display: none; }
        [data-theme="dark"] .theme-switch-icon-light { display: none; }
        
        /* 亮度调节 */
        .brightness-control {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-right: 8px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .top-bar-left:hover .brightness-control {
            opacity: 1;
            visibility: visible;
        }
        
        .brightness-control label {
            color: var(--text-muted);
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .brightness-control input[type="range"] {
            -webkit-appearance: none;
            appearance: none;
            width: 90px;
            height: 4px;
            border-radius: 2px;
            background: var(--border-color);
            outline: none;
            cursor: pointer;
        }
        
        .brightness-control input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--accent-gradient);
            border: 2px solid var(--bg-primary);
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .brightness-control input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }
        
        .brightness-control input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--accent-gradient);
            border: 2px solid var(--bg-primary);
            cursor: pointer;
        }
        
        .brightness-value {
            min-width: 32px;
            text-align: center;
            font-size: 12px;
            color: var(--accent);
            font-weight: 600;
        }
        
        /* 引导提示 */
        .hint {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 12px 20px;
            color: var(--text-muted);
            font-size: 13px;
            backdrop-filter: blur(10px);
            z-index: 5;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }
        
        .hint.active {
            background: rgba(0, 212, 255, 0.15);
            border-color: rgba(0, 212, 255, 0.4);
            color: var(--text-primary);
        }
        
        .hint-icon {
            font-size: 16px;
            flex-shrink: 0;
        }
        
        .hint-text {
            flex: 1;
        }
        
        /* 日志按钮 */
        .log-toggle {
            position: absolute;
            bottom: 215px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(138, 43, 226, 0.2));
            border: 2px solid rgba(0, 212, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 
                0 5px 15px rgba(0, 212, 255, 0.3),
                0 0 20px rgba(0, 212, 255, 0.2);
            z-index: 100;
        }
        
        .log-toggle:hover {
            transform: scale(1.1);
            border-color: rgba(0, 212, 255, 0.8);
            box-shadow: 
                0 8px 25px rgba(0, 212, 255, 0.4),
                0 0 30px rgba(0, 212, 255, 0.3);
        }
        
        .log-toggle svg {
            width: 20px;
            height: 20px;
            stroke: #00d4ff;
            stroke-width: 2;
        }
        
        .log-toggle .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 18px;
            height: 18px;
            background: #ff4757;
            border-radius: 50%;
            font-size: 11px;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
        }
        
        /* 日志面板 */
        .log-panel {
            position: absolute;
            bottom: 80px;
            right: 20px;
            width: 400px;
            max-height: 300px;
            background: var(--bg-modal);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 15px;
            overflow-y: auto;
            backdrop-filter: blur(10px);
            box-shadow: 
                0 10px 30px rgba(0, 0, 0, 0.5),
                0 0 20px var(--glow-cyan);
            display: none;
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            transition: all 0.3s ease;
        }
        
        .log-panel.visible {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        
        .log-panel h3 {
            color: var(--accent);
            font-size: 14px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .log-panel h3 .close-btn {
            width: 20px;
            height: 20px;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        
        .log-panel h3 .close-btn:hover {
            opacity: 1;
        }
        
        .log-panel h3 .close-btn svg {
            width: 16px;
            height: 16px;
            stroke: var(--accent);
            stroke-width: 2;
        }
        
        .log-item {
            font-size: 12px;
            padding: 5px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .log-item.success {
            color: #10b981;
        }
        
        .log-item.error {
            color: #f44;
        }
        
        .log-item.info {
            color: var(--accent);
        }
        
        /* 自定义弹窗 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        .modal-content {
            background: var(--bg-modal);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            min-width: 360px;
            max-width: 480px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: modalIn 0.25s ease;
        }
        
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        
        .modal-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .modal-icon {
            font-size: 24px;
        }
        
        .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }
        
        .modal-input {
            width: 100%;
            padding: 12px 16px;
            border-radius: 10px;
            border: 2px solid var(--border-color);
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
            font-size: 15px;
            outline: none;
            transition: border-color 0.3s;
            margin-bottom: 20px;
        }
        
        .modal-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 12px var(--glow-cyan);
        }
        
        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }
        
        .modal-btn {
            padding: 10px 24px;
            border-radius: 10px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .modal-btn-cancel {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }
        
        .modal-btn-cancel:hover {
            background: rgba(255, 255, 255, 0.15);
        }
        
        .modal-btn-confirm {
            background: var(--accent-gradient);
            color: #fff;
            box-shadow: 0 4px 12px var(--glow-cyan);
        }
        
        .modal-btn-confirm:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--glow-cyan);
        }
        
        /* API配置按钮 */
        .api-config-btn {
            background: transparent;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 6px 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .api-config-btn:hover {
            background: var(--bg-hover);
            border-color: var(--accent-color);
        }
        
        .api-config-btn svg {
            stroke: var(--text-secondary);
        }
        
        .api-config-btn:hover svg {
            stroke: var(--accent-color);
        }
        
        /* API配置模态框 */
        .api-config-modal-content {
            width: 800px;
            max-width: 90vw;
            max-height: 80vh;
        }
        
        .api-config-body {
            display: flex;
            gap: 20px;
            padding: 20px;
            min-height: 400px;
        }
        
        .api-config-left {
            width: 200px;
            flex-shrink: 0;
        }
        
        .api-config-right {
            flex: 1;
            min-width: 0;
        }
        
        .api-config-section-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .api-config-node-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .api-config-node-item {
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s ease;
        }
        
        .api-config-node-item:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
        }
        
        .api-config-node-item.active {
            background: var(--accent-color);
            color: #fff;
        }
        
        .api-config-detail {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        
        .api-config-empty {
            color: var(--text-secondary);
            font-size: 14px;
            text-align: center;
            padding: 40px;
        }
        
        .api-config-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .api-config-label {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        .api-config-select,
        .api-config-input {
            padding: 8px 12px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            background: var(--bg-node);
            color: var(--text-primary);
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s ease;
        }
        
        .api-config-select:focus,
        .api-config-input:focus {
            border-color: var(--accent-color);
        }
        
        .api-config-save-btn {
            margin-top: 16px;
            padding: 10px 20px;
            background: var(--accent-gradient);
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .api-config-save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px var(--glow-cyan);
        }
        
        .api-config-section {
            margin-bottom: 20px;
        }
        
        .api-config-node-models {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-height: 400px;
            overflow-y: auto;
            padding-right: 8px;
        }
        
        .api-config-category {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .api-config-category-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--accent-color);
            padding: 4px 8px;
            background: var(--bg-hover);
            border-radius: 4px;
        }
        
        .api-config-node-model-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 4px 0;
        }
        
        .api-config-node-name {
            flex: 0 0 120px;
            font-size: 13px;
            color: var(--text-secondary);
        }
        
        .api-config-model-select {
            flex: 1;
            min-width: 0;
        }
        
        /* 节点右键菜单 */
        .node-context-menu {
            position: fixed;
            background: var(--bg-node);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 6px 0;
            min-width: 180px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            z-index: 10000;
            backdrop-filter: blur(12px);
        }
        
        .context-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 16px;
            cursor: pointer;
            transition: background 0.2s;
            font-size: 13px;
            color: var(--text-primary);
        }
        
        .context-menu-item:hover {
            background: rgba(168, 85, 247, 0.15);
        }
        
        .context-menu-item.danger {
            color: #f44;
        }
        
        .context-menu-item.danger:hover {
            background: rgba(255, 68, 68, 0.15);
        }
        
        .context-menu-icon {
            font-size: 14px;
            width: 20px;
            text-align: center;
        }
        
        .context-menu-text {
            flex: 1;
        }
        
        .context-menu-shortcut {
            font-size: 11px;
            color: var(--text-secondary);
            opacity: 0.6;
        }
        
        .context-menu-divider {
            height: 1px;
            background: var(--border-color);
            margin: 6px 0;
        }
        /* Performance guard: keep the canvas usable on high-refresh displays and WebView shells. */
        :root[data-performance-mode="safe"] *,
        :root[data-performance-mode="safe"] *::before,
        :root[data-performance-mode="safe"] *::after {
            animation-duration: 0.001ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
        }

        :root[data-performance-mode="safe"] .flow-mask.active,
        :root[data-performance-mode="safe"] .node-port.connecting,
        :root[data-performance-mode="safe"] .note-bounce,
        :root[data-performance-mode="safe"] .audio-placeholder svg {
            animation: none !important;
        }
body.qda-sidebar-node-pointer-dragging,
body.qda-sidebar-node-pointer-dragging * {
    user-select: none !important;
    -webkit-user-select: none !important;
}

body.qda-sidebar-node-pointer-dragging {
    cursor: grabbing;
}

.node-item.node-item-dragging {
    cursor: grabbing;
}

.project-type-remark {
    color: rgba(255, 210, 90, 0.86);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    margin-left: 6px;
    white-space: nowrap;
}
