.studio-shell{--bg-0:#0a0e17;--bg-1:#0f1421;--bg-2:#161c2c;--bg-3:#1d2538;--line:#232b3f;--text-0:#e8ecf5;--text-1:#aab3c8;--text-2:#6b7591;--cyan:#25d4c8;--purple:#8b5cf6;--pink:#ec4899;--orange:#f59e0b;--green:#10b981;--blue:#3b82f6;--red:#ef4444;--yellow:#fbbf24;display:flex;height:100vh;background:var(--bg-0);color:var(--text-0);font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden}.studio-shell *{box-sizing:border-box}.studio-shell .sidebar{width:72px;background:var(--bg-1);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:16px 0;flex-shrink:0}.studio-shell .sidebar .logo{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,rgba(196,181,253,.18),rgba(124,58,237,.18));display:flex;align-items:center;justify-content:center;margin-bottom:24px;box-shadow:0 4px 18px rgba(124,58,237,.35);cursor:pointer;transition:transform .18s,box-shadow .18s;text-decoration:none}.studio-shell .sidebar .logo:hover{transform:translateY(-1px) rotate(8deg);box-shadow:0 6px 22px rgba(124,58,237,.5)}.studio-shell .sidebar .logo svg{width:28px;height:28px;display:block}.studio-shell .sidebar .logo img{width:38px;height:38px;-o-object-fit:contain;object-fit:contain;display:block}.studio-shell .nav-item{width:56px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;border-radius:12px;margin-bottom:4px;color:var(--text-2);text-decoration:none;transition:all .2s;gap:4px;position:relative}.studio-shell .nav-item svg{width:22px;height:22px}.studio-shell .nav-item span{font-size:11px}.studio-shell .nav-item:hover{color:var(--text-0);background:var(--bg-2)}.studio-shell .nav-item.active{color:var(--cyan);background:rgba(37,212,200,.1)}.studio-shell .nav-item.active:before{content:"";position:absolute;left:-16px;top:14px;width:3px;height:28px;background:var(--cyan);border-radius:0 3px 3px 0}.studio-shell .main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.studio-shell .topbar{height:60px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;background:var(--bg-1);gap:24px;flex-shrink:0}.studio-shell .topbar .brand{display:flex;align-items:center;gap:10px}.studio-shell .topbar .brand img{width:30px;height:30px;-o-object-fit:contain;object-fit:contain;display:block}.studio-shell .topbar h1{font-size:16px;font-weight:600;color:var(--text-0);margin:0}.studio-shell .topbar .crumb{color:var(--text-2);font-size:13px}.studio-shell .topbar .right{margin-left:auto;display:flex;gap:12px;align-items:center}.studio-shell .badge{font-size:11px;padding:3px 8px;border-radius:6px;background:rgba(37,212,200,.1);color:var(--cyan);border:1px solid rgba(37,212,200,.2);cursor:pointer;display:inline-flex;align-items:center;gap:6px}.studio-shell .badge .dot{width:6px;height:6px;border-radius:50%;background:var(--cyan)}.studio-shell .usage-badge{font-size:12px;padding:4px 10px;border-radius:6px;background:rgba(37,212,200,.08);color:var(--cyan);border:1px solid rgba(37,212,200,.2);cursor:pointer;font-weight:600;font-family:SF Mono,monospace}.studio-shell .usage-badge.exhausted{background:rgba(239,68,68,.1);color:var(--red);border-color:rgba(239,68,68,.25)}.studio-shell .balance-group{display:inline-flex;align-items:center;gap:6px}.studio-shell .topup-btn{font-size:11px;padding:4px 10px;border-radius:6px;background:linear-gradient(90deg,var(--cyan),#1bb5aa);color:var(--bg-0);border:1px solid transparent;cursor:pointer;font-weight:600;text-decoration:none;font-family:inherit;transition:opacity .15s,transform .15s}.studio-shell .topup-btn:hover{opacity:.9;transform:translateY(-1px)}.studio-shell .user-pill-wrap{position:relative}.studio-shell .user-pill{display:flex;align-items:center;gap:8px;padding:6px 12px;background:var(--bg-2);border:1px solid var(--line);border-radius:20px;font-size:13px;color:var(--text-1);cursor:pointer;font-family:inherit}.studio-shell .user-pill:hover{border-color:var(--text-2)}.studio-shell .user-pill .chev{color:var(--text-2);transition:transform .15s}.studio-shell .user-pill .chev.open{transform:rotate(180deg)}.studio-shell .user-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:180px;background:var(--bg-1);border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 36px rgba(0,0,0,.45);z-index:100}.studio-shell .user-menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:9px 10px;border-radius:8px;font-size:13px;color:var(--text-1);background:transparent;border:none;cursor:pointer;text-decoration:none;font-family:inherit;text-align:left}.studio-shell .user-menu-item:hover{background:var(--bg-2);color:var(--text-0)}.studio-shell .user-menu-item.logout{color:var(--red)}.studio-shell .user-menu-divider{height:1px;background:var(--line);margin:6px 4px}.studio-shell .user-pill .avatar{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--pink));display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;color:white}.studio-shell .lang-switch{display:inline-flex;background:var(--bg-2);border:1px solid var(--line);border-radius:10px;padding:2px}.studio-shell .lang-switch button{padding:4px 12px;background:transparent;border:none;color:var(--text-2);font-size:12px;font-weight:500;cursor:pointer;border-radius:8px;font-family:inherit;min-width:36px}.studio-shell .lang-switch button:hover{color:var(--text-0)}.studio-shell .lang-switch button.active{background:var(--bg-3);color:var(--text-0);box-shadow:0 1px 4px rgba(0,0,0,.2)}.studio-shell .content{flex:1;overflow-y:auto;padding:32px;min-height:0}.studio-shell .content::-webkit-scrollbar{width:8px}.studio-shell .content::-webkit-scrollbar-track{background:transparent}.studio-shell .content::-webkit-scrollbar-thumb{background:var(--bg-3);border-radius:4px}.studio-shell .hero{background:linear-gradient(135deg,rgba(37,212,200,.08),rgba(139,92,246,.08));border:1px solid var(--line);border-radius:20px;padding:32px;margin-bottom:32px;position:relative;overflow:hidden}.studio-shell .hero:before{content:"";position:absolute;right:-100px;top:-100px;width:400px;height:400px;background:radial-gradient(circle,rgba(37,212,200,.15),transparent 70%);pointer-events:none}.studio-shell .hero h2{font-size:28px;font-weight:700;margin:0 0 8px;background:linear-gradient(90deg,var(--cyan),var(--purple));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.studio-shell .hero p{color:var(--text-1);font-size:15px;margin:0 0 20px;max-width:600px;line-height:1.6}.studio-shell .quick-actions{display:flex;gap:12px;flex-wrap:wrap}.studio-shell .btn{border:none;cursor:pointer;font-size:14px;font-weight:500;padding:10px 18px;border-radius:10px;transition:all .2s;font-family:inherit;display:inline-flex;align-items:center;gap:6px;text-decoration:none}.studio-shell .btn-primary{background:linear-gradient(90deg,var(--cyan),#1bb5aa);color:#0a0e17}.studio-shell .btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(37,212,200,.3)}.studio-shell .btn-ghost{background:var(--bg-2);color:var(--text-0);border:1px solid var(--line)}.studio-shell .btn-ghost:hover{background:var(--bg-3)}.studio-shell .promo-banner{background:linear-gradient(135deg,rgba(139,92,246,.12),rgba(236,72,153,.08));border:1px solid rgba(139,92,246,.3);border-radius:16px;padding:20px 24px;margin-bottom:32px;cursor:pointer;transition:all .2s}.studio-shell .promo-banner:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(139,92,246,.18);border-color:var(--purple)}.studio-shell .promo-content{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}.studio-shell .promo-tag{display:inline-block;font-size:11px;font-weight:600;color:var(--orange);background:rgba(245,158,11,.1);padding:3px 10px;border-radius:6px;margin-bottom:8px}.studio-shell .promo-banner h3{font-size:18px;font-weight:600;margin:0 0 4px}.studio-shell .promo-banner .ranking{color:var(--cyan);font-weight:700}.studio-shell .promo-banner p{color:var(--text-1);font-size:13px;margin:0}.studio-shell .promo-banner .promo-lead{display:flex;align-items:center;gap:16px}.studio-shell .promo-banner .promo-logo{width:60px;height:60px;-o-object-fit:contain;object-fit:contain;flex-shrink:0}.studio-shell .promo-cta{display:flex;align-items:center;gap:16px}.studio-shell .promo-price .old{color:var(--text-2);text-decoration:line-through;margin-right:8px;font-size:14px}.studio-shell .promo-price .new{color:var(--cyan);font-size:22px;font-weight:700}.studio-shell .promo-price .period{color:var(--text-1);font-size:13px;margin-left:2px}.studio-shell .promo-price .save{display:block;font-size:11px;color:var(--text-2);margin-top:2px}.studio-shell .promo-cta button{background:linear-gradient(90deg,var(--purple),var(--pink));color:white;border:none;padding:10px 20px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}.studio-shell .promo-cta button:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(139,92,246,.3)}.studio-shell .section-title{font-size:18px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;gap:8px}.studio-shell .section-title .dot{width:4px;height:16px;border-radius:2px;background:var(--cyan)}.studio-shell .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-bottom:32px}.studio-shell .card{background:var(--bg-1);border:1px solid var(--line);border-radius:16px;padding:20px;cursor:pointer;transition:all .25s;position:relative;overflow:hidden;text-decoration:none;color:var(--text-0);display:block}.studio-shell .card:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--accent,var(--cyan))}.studio-shell .card:hover{transform:translateY(-3px);border-color:var(--accent,var(--cyan));background:var(--bg-2)}.studio-shell .card .icon-row{display:flex;align-items:center;gap:12px;margin-bottom:12px}.studio-shell .card .icon{width:44px;height:44px;border-radius:10px;background:var(--accent-soft,rgba(37,212,200,.1));color:var(--accent,var(--cyan));display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:22px}.studio-shell .card .icon svg{width:22px;height:22px}.studio-shell .card h3{font-size:16px;font-weight:600;margin:0}.studio-shell .card .desc{color:var(--text-1);font-size:13px;line-height:1.6;margin-bottom:14px;min-height:64px}.studio-shell .card .tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.studio-shell .card .tag{font-size:11px;padding:3px 8px;border-radius:6px;background:rgba(255,255,255,.04);color:var(--text-1);border:1px solid var(--line)}.studio-shell .card .tag.featured{background:var(--accent-soft,rgba(37,212,200,.08));color:var(--accent,var(--cyan));border-color:var(--accent-border,rgba(37,212,200,.2))}.studio-shell .card .footer{display:flex;justify-content:space-between;align-items:center;font-size:12px}.studio-shell .card .model{color:var(--text-2);font-family:SF Mono,monospace}.studio-shell .card .cta{color:var(--accent,var(--cyan));font-weight:500;padding:4px 10px;border-radius:6px;background:var(--accent-soft,rgba(37,212,200,.08))}.studio-shell .card.cyan{--accent:#25d4c8;--accent-soft:rgba(37,212,200,.1);--accent-border:rgba(37,212,200,.2)}.studio-shell .card.purple{--accent:#8b5cf6;--accent-soft:rgba(139,92,246,.1);--accent-border:rgba(139,92,246,.2)}.studio-shell .card.pink{--accent:#ec4899;--accent-soft:rgba(236,72,153,.1);--accent-border:rgba(236,72,153,.2)}.studio-shell .card.orange{--accent:#f59e0b;--accent-soft:rgba(245,158,11,.1);--accent-border:rgba(245,158,11,.2)}.studio-shell .card.green{--accent:#10b981;--accent-soft:rgba(16,185,129,.1);--accent-border:rgba(16,185,129,.2)}.studio-shell .card.blue{--accent:#3b82f6;--accent-soft:rgba(59,130,246,.1);--accent-border:rgba(59,130,246,.2)}.studio-shell .card.red{--accent:#ef4444;--accent-soft:rgba(239,68,68,.1);--accent-border:rgba(239,68,68,.2)}.studio-shell .card.yellow{--accent:#fbbf24;--accent-soft:rgba(251,191,36,.1);--accent-border:rgba(251,191,36,.2)}.studio-shell .workbench-single{width:100%;padding:4px 0 48px;display:flex;flex-direction:column;gap:0}.studio-shell .workbench-single .wb-back{margin-bottom:12px}.studio-shell .workbench-single .wb-title{font-size:22px;font-weight:700;margin:0 0 4px}.studio-shell .workbench-single .wb-subtitle{color:var(--text-2);font-size:13px;margin:0 0 24px}.studio-shell .workbench-single .wb-form{display:flex;flex-direction:column;gap:18px;margin-bottom:20px}.studio-shell .workbench-single .wb-form .field{margin-bottom:0}.studio-shell .workbench-single .preset-row{grid-template-columns:repeat(2,1fr);margin-bottom:0}.studio-shell .workbench-single .preview-header{margin-top:28px;margin-bottom:12px}.studio-shell .workbench-single .preview-stage{min-height:360px}.studio-shell .workbench{display:grid;grid-template-columns:380px 1fr;gap:24px;height:calc(100vh - 60px - 64px)}.studio-shell .panel-left,.studio-shell .panel-right{background:var(--bg-1);border:1px solid var(--line);border-radius:16px;padding:24px;overflow-y:auto}.studio-shell .panel-right{display:flex;flex-direction:column}.studio-shell .wb-back{color:var(--text-1);font-size:13px;cursor:pointer;margin-bottom:16px;display:inline-flex;align-items:center;gap:4px;text-decoration:none}.studio-shell .wb-back:hover{color:var(--text-0)}.studio-shell .wb-title{font-size:20px;font-weight:600;margin:0 0 4px}.studio-shell .wb-subtitle{color:var(--text-1);font-size:13px;margin-bottom:24px}.studio-shell .field{margin-bottom:18px}.studio-shell .field label{display:block;font-size:13px;font-weight:500;color:var(--text-0);margin-bottom:8px}.studio-shell .field .hint{color:var(--text-2);font-size:11px;font-weight:400;margin-left:6px}.studio-shell .field .hint.required{color:var(--red)}.studio-shell .field input[type=number],.studio-shell .field input[type=text],.studio-shell .field select,.studio-shell .field textarea{width:100%;background:var(--bg-2);border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--text-0);font-size:13px;font-family:inherit;outline:none;transition:border-color .2s}.studio-shell .field textarea{min-height:100px;resize:vertical;line-height:1.5}.studio-shell .field input:focus,.studio-shell .field select:focus,.studio-shell .field textarea:focus{border-color:var(--cyan)}.studio-shell .chip-row{display:flex;gap:6px;flex-wrap:wrap}.studio-shell .chip{padding:6px 12px;border-radius:8px;background:var(--bg-2);border:1px solid var(--line);color:var(--text-1);font-size:12px;cursor:pointer;transition:all .15s}.studio-shell .chip:hover{background:var(--bg-3);color:var(--text-0)}.studio-shell .chip.active{background:rgba(37,212,200,.1);border-color:var(--cyan);color:var(--cyan)}.studio-shell .upload-zone{border:1.5px dashed var(--line);border-radius:10px;padding:24px;text-align:center;cursor:pointer;transition:all .2s;background:var(--bg-2)}.studio-shell .upload-zone:hover{border-color:var(--cyan);background:rgba(37,212,200,.04)}.studio-shell .upload-zone svg{width:28px;height:28px;color:var(--text-2);margin-bottom:6px}.studio-shell .upload-zone .main-text{font-size:13px;color:var(--text-0);margin-bottom:2px}.studio-shell .upload-zone .sub-text{font-size:11px;color:var(--text-2)}.studio-shell .upload-zone img.preview{max-width:100%;max-height:200px;border-radius:8px}.studio-shell .submit-btn{width:100%;background:linear-gradient(90deg,var(--cyan),#1bb5aa);color:#0a0e17;border:none;padding:14px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;font-family:inherit}.studio-shell .submit-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(37,212,200,.25)}.studio-shell .submit-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.studio-shell .preset-row{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px}.studio-shell .preset{padding:10px;background:var(--bg-2);border:1px solid var(--line);border-radius:8px;cursor:pointer;text-align:left;transition:all .15s}.studio-shell .preset:hover{border-color:var(--cyan);background:rgba(37,212,200,.04)}.studio-shell .preset.active{border-color:var(--cyan);background:rgba(37,212,200,.08)}.studio-shell .preset .preset-title{font-size:12px;color:var(--text-0);margin-bottom:2px;font-weight:500}.studio-shell .preset .preset-desc{font-size:10px;color:var(--text-2);line-height:1.4}.studio-shell .preview-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.studio-shell .preview-header h4{font-size:14px;font-weight:600;margin:0}.studio-shell .preview-stage{flex:1;background:var(--bg-2);border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:center;min-height:320px;position:relative;overflow:hidden}.studio-shell .preview-stage.empty .placeholder{text-align:center;color:var(--text-2);font-size:13px}.studio-shell .preview-stage.empty .placeholder svg{width:48px;height:48px;margin-bottom:12px;opacity:.5}.studio-shell .preview-stage img,.studio-shell .preview-stage video{max-width:100%;max-height:100%;border-radius:8px}.studio-shell .preview-stage .multi-grid{display:grid;gap:8px;width:100%;height:100%;padding:8px}.studio-shell .preview-stage .multi-grid.cols-2{grid-template-columns:repeat(2,1fr)}.studio-shell .preview-stage.loading:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(37,212,200,.1),transparent);animation:studio-shimmer 1.5s infinite}@keyframes studio-shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}.studio-shell .preview-stage .loading-block{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text-2);font-size:12px}.studio-shell .preview-stage .spinner{width:40px;height:40px;border:2px solid var(--bg-3);border-top-color:var(--cyan);border-radius:50%;animation:studio-spin .9s linear infinite}@keyframes studio-spin{to{transform:rotate(1turn)}}.studio-shell .gen-info{background:var(--bg-2);border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:12px;font-size:12px;color:var(--text-1);display:grid;grid-template-columns:auto 1fr;gap:6px 14px;line-height:1.6}.studio-shell .gen-info .key{color:var(--text-2)}.studio-shell .error-banner{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.3);color:var(--red);padding:10px 12px;border-radius:8px;font-size:12px;margin-top:12px}.studio-shell .chat-container{display:grid;grid-template-columns:280px 1fr;gap:16px;height:calc(100vh - 60px - 64px)}.studio-shell .chat-list{background:var(--bg-1);border:1px solid var(--line);border-radius:16px;padding:16px;overflow-y:auto}.studio-shell .chat-list h4{font-size:13px;color:var(--text-2);margin:0 0 12px}.studio-shell .chat-item{padding:10px 12px;border-radius:8px;cursor:pointer;margin-bottom:4px;font-size:13px;color:var(--text-1)}.studio-shell .chat-item:hover{background:var(--bg-2);color:var(--text-0)}.studio-shell .chat-item.active{background:rgba(37,212,200,.08);color:var(--cyan)}.studio-shell .chat-item .ts{font-size:11px;color:var(--text-2);margin-top:2px}.studio-shell .chat-main{background:var(--bg-1);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;overflow:hidden;min-height:0}.studio-shell .chat-stream{flex:1;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:16px}.studio-shell .msg{display:flex;gap:12px;max-width:80%}.studio-shell .msg.user{align-self:flex-end;flex-direction:row-reverse}.studio-shell .msg .av{width:32px;height:32px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.studio-shell .msg.user .av{background:linear-gradient(135deg,var(--purple),var(--pink));color:white}.studio-shell .msg.ai .av{background:linear-gradient(135deg,var(--cyan),#1bb5aa);color:var(--bg-0)}.studio-shell .msg .bubble{padding:12px 16px;border-radius:12px;font-size:14px;line-height:1.6;white-space:pre-wrap}.studio-shell .msg.user .bubble{background:rgba(139,92,246,.12);color:var(--text-0)}.studio-shell .msg.ai .bubble{background:var(--bg-2);color:var(--text-0)}.studio-shell .chat-input-area{border-top:1px solid var(--line);padding:16px 20px;display:flex;gap:12px;align-items:flex-end;background:var(--bg-1)}.studio-shell .chat-input{flex:1;background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:10px 14px;color:var(--text-0);resize:none;font-family:inherit;font-size:14px;min-height:40px;max-height:120px;outline:none}.studio-shell .chat-input:focus{border-color:var(--cyan)}.studio-shell .send-btn{width:40px;height:40px;border-radius:10px;background:var(--cyan);color:var(--bg-0);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center}.studio-shell .send-btn:hover{background:#1bb5aa}.studio-shell .send-btn:disabled{opacity:.5;cursor:not-allowed}.studio-shell .chat-attach-btn{width:40px;height:40px;border-radius:10px;background:var(--bg-2);border:1px solid var(--line);color:var(--text-1);cursor:pointer;display:flex;align-items:center;justify-content:center}.studio-shell .chat-attach-btn:hover{color:var(--cyan);border-color:var(--cyan)}.studio-shell .chat-attach-btn:disabled{opacity:.5;cursor:not-allowed}.studio-shell .chat-pending-attachments{display:flex;flex-wrap:wrap;gap:6px}.studio-shell .chat-attachment-thumb{position:relative;width:48px;height:48px;border-radius:8px;overflow:hidden;background:var(--bg-2);border:1px solid var(--line)}.studio-shell .chat-attachment-thumb img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.studio-shell .chat-attachment-remove{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:50%;background:rgba(0,0,0,.6);color:white;border:none;cursor:pointer;font-size:9px;display:flex;align-items:center;justify-content:center;font-family:inherit}.studio-shell .chat-attachments-preview{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}.studio-shell .chat-attachment-img{max-width:180px;max-height:180px;border-radius:8px}.studio-shell .site-footer{border-top:1px solid var(--line);padding-top:24px;margin-top:32px;color:var(--text-2);font-size:12px}.studio-shell .site-footer a{color:var(--text-1);text-decoration:none}.studio-shell .site-footer a:hover{color:var(--cyan)}.studio-shell .modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.studio-shell .modal{background:var(--bg-1);border:1px solid var(--line);border-radius:18px;padding:28px;max-width:480px;width:100%;color:var(--text-0)}.studio-shell .modal h3{font-size:22px;font-weight:700;margin:0 0 6px;background:linear-gradient(90deg,var(--cyan),var(--purple));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.studio-shell .modal p{color:var(--text-1);font-size:14px;margin:0 0 20px}.studio-shell .wf-confirm-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.studio-shell .wf-confirm-actions button{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid var(--line);background:var(--bg-2);color:var(--text-1);font-family:inherit;transition:opacity .15s,transform .15s}.studio-shell .wf-confirm-actions button:hover{transform:translateY(-1px)}.studio-shell .wf-confirm-actions button.primary{background:linear-gradient(90deg,var(--cyan),#1bb5aa);color:var(--bg-0);border-color:transparent}.studio-shell .wf-confirm-actions button.danger{background:rgba(239,68,68,.12);color:var(--red);border-color:rgba(239,68,68,.3)}.studio-shell .modal .tier-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.studio-shell .modal .tier{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:16px;cursor:pointer;text-align:center;transition:all .15s}.studio-shell .modal .tier:hover{border-color:var(--cyan)}.studio-shell .modal .tier.featured{border-color:var(--purple);background:rgba(139,92,246,.06)}.studio-shell .modal .tier .label{font-size:11px;color:var(--text-2);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}.studio-shell .modal .tier .price{font-size:18px;font-weight:700;color:var(--text-0)}.studio-shell .modal .tier .save{font-size:11px;color:var(--cyan);margin-top:4px}.studio-shell .modal .modal-actions{display:flex;gap:12px;justify-content:flex-end}.studio-shell .modal .modal-actions button{border:none;padding:10px 18px;border-radius:10px;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit}.studio-shell .modal .modal-actions .cancel{background:var(--bg-2);color:var(--text-1);border:1px solid var(--line)}.studio-shell .modal .modal-actions .subscribe{background:linear-gradient(90deg,var(--purple),var(--pink));color:white}.studio-shell .mine-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}.studio-shell .mine-filter{padding:6px 14px;border-radius:20px;background:var(--bg-2);border:1px solid var(--line);color:var(--text-1);font-size:12px;cursor:pointer}.studio-shell .mine-filter:hover{color:var(--text-0);border-color:var(--text-2)}.studio-shell .mine-filter.active{background:rgba(37,212,200,.1);border-color:var(--cyan);color:var(--cyan)}.studio-shell .mine-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.studio-shell .mine-tile{aspect-ratio:1;border-radius:12px;border:1px solid var(--line);overflow:hidden;background:var(--bg-2);position:relative;text-decoration:none;color:var(--text-0)}.studio-shell .mine-tile img,.studio-shell .mine-tile video{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.studio-shell .mine-tile .overlay{position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,14,23,.85),transparent 60%);padding:12px;display:flex;flex-direction:column;justify-content:flex-end;opacity:0;transition:opacity .2s}.studio-shell .mine-tile:hover .overlay{opacity:1}.studio-shell .mine-tile .overlay .prompt{font-size:12px;line-height:1.4}.studio-shell .mine-tile .overlay .model{font-size:10px;color:var(--text-2);font-family:monospace;margin-top:4px}.studio-shell .mine-empty{text-align:center;padding:60px 20px;color:var(--text-2)}.studio-shell .mine-empty .title{color:var(--text-0);font-size:16px;font-weight:600;margin-bottom:8px}.studio-shell .mine-load-more{display:block;margin:24px auto 0;padding:10px 24px;background:var(--bg-2);border:1px solid var(--line);color:var(--text-1);border-radius:10px;cursor:pointer;font-family:inherit;font-size:13px}.studio-shell .mine-load-more:hover{border-color:var(--cyan);color:var(--cyan)}.studio-shell .wf-shell{display:grid;grid-template-columns:240px 1fr 320px;gap:12px;height:calc(100vh - 60px - 64px)}.studio-shell .wf-toolbar{display:flex;align-items:center;gap:12px;padding:8px 12px;background:var(--bg-1);border:1px solid var(--line);border-radius:12px;margin-bottom:12px;height:48px;flex-shrink:0}.studio-shell .wf-toolbar .wb-back{margin-bottom:0}.studio-shell .wf-toolbar input[type=text]{background:var(--bg-2);border:1px solid var(--line);border-radius:8px;padding:6px 10px;color:var(--text-0);font-size:13px;outline:none;width:240px}.studio-shell .wf-toolbar input[type=text]:focus{border-color:var(--cyan)}.studio-shell .wf-toolbar .toolbar-status{font-size:11px;color:var(--text-2);margin-left:auto}.studio-shell .wf-toolbar .toolbar-status.dirty{color:var(--orange)}.studio-shell .wf-toolbar .toolbar-status.saved{color:var(--green)}.studio-shell .wf-toolbar button{background:var(--bg-2);border:1px solid var(--line);color:var(--text-1);padding:6px 12px;border-radius:8px;font-size:12px;font-family:inherit;cursor:pointer}.studio-shell .wf-toolbar button:hover{color:var(--text-0);border-color:var(--text-2)}.studio-shell .wf-toolbar button.primary{background:linear-gradient(90deg,var(--cyan),#1bb5aa);color:var(--bg-0);border-color:transparent;font-weight:600}.studio-shell .wf-toolbar button.primary:hover{opacity:.9}.studio-shell .wf-toolbar button.danger{background:var(--red);color:var(--bg-0);border-color:transparent;font-weight:600}.studio-shell .wf-toolbar button.danger:hover{opacity:.9}.studio-shell .wf-toolbar button:disabled{opacity:.5;cursor:not-allowed}.studio-shell .wf-toolbar select{background:var(--bg-2);border:1px solid var(--line);color:var(--text-1);padding:6px 10px;border-radius:8px;font-size:12px;font-family:inherit}.studio-shell .wf-lib{background:var(--bg-1);border:1px solid var(--line);border-radius:14px;padding:16px;overflow-y:auto}.studio-shell .wf-lib-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.studio-shell .wf-lib h4{font-size:13px;font-weight:600;color:var(--text-0);margin:0}.studio-shell .wf-lib-hint{font-size:11px;color:var(--text-2)}.studio-shell .wf-lib-list{display:flex;flex-direction:column;gap:6px}.studio-shell .wf-lib-item{padding:10px 12px;background:var(--bg-2);border:1px solid var(--line);border-radius:10px;font-size:13px;display:flex;align-items:center;gap:10px;cursor:grab;transition:all .15s;color:var(--text-1)}.studio-shell .wf-lib-item:hover{border-color:var(--cyan);background:var(--bg-3);transform:translateY(-1px)}.studio-shell .wf-lib-item:active{cursor:grabbing;transform:translateY(0)}.studio-shell .wf-lib-item .lib-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.studio-shell .wf-lib-item .lib-label{flex:1;color:var(--text-0)}.studio-shell .wf-lib-item .lib-plus{color:var(--text-2);font-size:14px}.studio-shell .wf-lib-item:hover .lib-plus{color:var(--cyan)}.studio-shell .wf-prefab{display:flex;flex-direction:column;gap:6px}.studio-shell .wf-prefab h4{font-size:13px;font-weight:600;color:var(--text-0);margin:0 0 6px}.studio-shell .wf-prefab-item{padding:9px 12px;background:rgba(37,212,200,.06);border:1px dashed var(--line);border-radius:8px;cursor:pointer;font-size:12px;color:var(--text-1);transition:all .15s;line-height:1.4;word-break:break-word}.studio-shell .wf-prefab-item:hover{background:rgba(37,212,200,.12);color:var(--cyan);border-color:var(--cyan);transform:translateY(-1px)}.studio-shell .wf-prefab-item:active{transform:translateY(0)}.studio-shell .wf-mine-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:50;width:280px;max-height:360px;overflow-y:auto;background:var(--bg-1);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,.4);padding:6px}.studio-shell .wf-mine-empty{padding:16px;text-align:center;font-size:12px;color:var(--text-2)}.studio-shell .wf-mine-item{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--text-0)}.studio-shell .wf-mine-item:hover{background:var(--bg-2)}.studio-shell .wf-mine-item.active{background:rgba(37,212,200,.1)}.studio-shell .wf-mine-name{font-size:13px}.studio-shell .wf-mine-meta{font-size:10px;color:var(--text-2);font-family:SF Mono,monospace}.studio-shell .wf-canvas{background:var(--bg-1);border:1px solid var(--line);border-radius:14px;position:relative;overflow:hidden;min-height:400px}.studio-shell .wf-empty-guide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;padding:24px;z-index:5}.studio-shell .wf-empty-card{pointer-events:auto;max-width:440px;width:100%;text-align:center;background:rgba(20,26,40,.6);border:1px dashed var(--line);border-radius:16px;padding:28px 24px;backdrop-filter:blur(2px)}.studio-shell .wf-empty-card .wf-empty-icon{font-size:28px;width:56px;height:56px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:var(--accent-soft,rgba(139,92,246,.12))}.studio-shell .wf-empty-card h3{font-size:18px;font-weight:700;margin:0 0 12px;color:var(--text-0)}.studio-shell .wf-empty-card ol{list-style:none;margin:0 0 18px;padding:0;color:var(--text-2);font-size:13px;line-height:1.9;counter-reset:step}.studio-shell .wf-empty-card ol li{counter-increment:step}.studio-shell .wf-empty-card ol li:before{content:counter(step);display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-right:8px;border-radius:50%;background:var(--bg-3);color:var(--text-1);font-size:10px;font-weight:700}.studio-shell .wf-empty-card strong{color:var(--cyan)}.studio-shell .wf-empty-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}.studio-shell .wf-empty-actions button{padding:9px 14px;border-radius:10px;border:1px solid var(--line);background:var(--bg-2);color:var(--text-1);font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:border-color .15s,transform .15s}.studio-shell .wf-empty-actions button:hover{border-color:var(--cyan);transform:translateY(-1px)}.studio-shell .wf-canvas .react-flow{background:transparent;height:100%}.studio-shell .wf-canvas .react-flow__background{background:var(--bg-1)}.studio-shell .wf-canvas .react-flow__node{font-family:inherit;font-size:12px}.studio-shell .wf-canvas .react-flow__handle{width:10px;height:10px;border:2px solid var(--bg-1);background:var(--text-2)}.studio-shell .wf-canvas .react-flow__handle.connectable:hover{background:var(--cyan)}.studio-shell .wf-canvas .react-flow__edge-path{stroke:var(--text-2);stroke-width:2}.studio-shell .wf-canvas .react-flow__edge.selected .react-flow__edge-path{stroke:var(--cyan)}.studio-shell .wf-canvas .react-flow__controls,.studio-shell .wf-canvas .react-flow__minimap{background:var(--bg-2);border:1px solid var(--line);border-radius:8px}.studio-shell .wf-canvas .react-flow__controls{overflow:hidden}.studio-shell .wf-canvas .react-flow__controls-button{background:transparent;border-bottom:1px solid var(--line);color:var(--text-1)}.studio-shell .wf-canvas .react-flow__controls-button:hover{background:var(--bg-3);color:var(--cyan)}.studio-shell .wf-node-card{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;min-width:200px;max-width:280px;overflow:hidden;transition:border-color .15s,box-shadow .15s}.studio-shell .wf-node-card.selected{border-color:var(--accent,var(--cyan));box-shadow:0 0 0 3px var(--accent-soft,rgba(37,212,200,.18))}.studio-shell .wf-node-card.running{border-color:var(--orange)}.studio-shell .wf-node-card.succeeded{border-color:var(--green)}.studio-shell .wf-node-card.failed{border-color:var(--red)}.studio-shell .wf-node-card .head{padding:10px 12px;display:flex;align-items:center;gap:8px;background:linear-gradient(180deg,var(--accent-soft,rgba(37,212,200,.08)),transparent);border-bottom:1px solid var(--line)}.studio-shell .wf-node-card .head .icon{width:24px;height:24px;border-radius:6px;background:var(--accent-soft,rgba(37,212,200,.1));color:var(--accent,var(--cyan));display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}.studio-shell .wf-node-card .head .title{font-weight:600;font-size:12px;flex:1;color:var(--text-0)}.studio-shell .wf-node-card .head .status{font-size:10px;padding:1px 6px;border-radius:4px;text-transform:uppercase;letter-spacing:.3px}.studio-shell .wf-node-card .head .status.pending{background:var(--bg-3);color:var(--text-2)}.studio-shell .wf-node-card .head .status.running{background:rgba(245,158,11,.15);color:var(--orange)}.studio-shell .wf-node-card .head .status.succeeded{background:rgba(16,185,129,.15);color:var(--green)}.studio-shell .wf-node-card .head .status.failed{background:rgba(239,68,68,.15);color:var(--red)}.studio-shell .wf-node-card .body{padding:10px 12px;color:var(--text-1);font-size:11px;line-height:1.5;min-height:24px}.studio-shell .wf-nodepopup-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;padding:0 0 32px;pointer-events:none}.studio-shell .wf-nodepopup{pointer-events:auto;width:100%;max-width:720px;background:var(--bg-1);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.5);overflow:hidden}.studio-shell .wf-nodepopup-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}.studio-shell .wf-nodepopup-head .icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--bg-2);font-size:16px}.studio-shell .wf-nodepopup-head .meta{flex:1;min-width:0}.studio-shell .wf-nodepopup-head .meta .title{font-weight:600;font-size:14px;color:var(--text-0)}.studio-shell .wf-nodepopup-head .meta .sub{font-size:11px;color:var(--text-2);font-family:SF Mono,monospace}.studio-shell .wf-nodepopup-head button{width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:var(--bg-2);color:var(--text-1);cursor:pointer;font-size:13px}.studio-shell .wf-nodepopup-head button:hover{color:var(--text-0);border-color:var(--text-2)}.studio-shell .wf-nodepopup-body{padding:16px;max-height:40vh;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}.studio-shell .wf-nodepopup-body .field{margin:0}.studio-shell .wf-nodepopup-body .field textarea{grid-column:1/-1}.studio-shell .wf-nodepopup-body .empty{color:var(--text-2);font-size:12px}.studio-shell .wf-nodepopup-foot{display:flex;align-items:center;gap:12px;padding:14px 16px;border-top:1px solid var(--line);background:var(--bg-2)}.studio-shell .wf-nodepopup-ports{flex:1;display:flex;flex-wrap:wrap;gap:6px}.studio-shell .wf-nodepopup-ports .chip{font-size:10px;padding:3px 8px;border-radius:6px;background:var(--bg-3);color:var(--text-2);font-family:SF Mono,monospace}.studio-shell .wf-run-node{padding:9px 18px;border-radius:10px;border:1px solid transparent;background:linear-gradient(90deg,var(--cyan),#1bb5aa);color:var(--bg-0);font-weight:700;font-size:13px;font-family:inherit;cursor:pointer;white-space:nowrap}.studio-shell .wf-run-node:disabled{opacity:.6;cursor:default}.studio-shell .wf-node-card{position:relative}.studio-shell .wf-node-card .wf-port-label{position:absolute;transform:translateY(-50%);font-size:10px;color:var(--text-2);font-family:SF Mono,monospace;letter-spacing:.2px;white-space:nowrap;pointer-events:none;z-index:2}.studio-shell .wf-node-card .wf-port-label-in{left:14px}.studio-shell .wf-node-card .wf-port-label-out{right:14px}.studio-shell .wf-node-card .react-flow__handle{width:12px;height:12px;background:var(--accent,var(--cyan));border:2px solid var(--bg-1);z-index:3}.studio-shell .wf-node-card .react-flow__handle:hover{box-shadow:0 0 0 4px var(--accent-soft,rgba(37,212,200,.25))}.studio-shell .wf-node-card .body .model{display:inline-block;font-family:SF Mono,monospace;color:var(--text-2);font-size:10px;padding:2px 6px;background:rgba(255,255,255,.03);border-radius:4px}.studio-shell .wf-node-error{margin-top:8px;padding:6px 8px;border-radius:6px;background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);color:var(--red);font-size:10px;line-height:1.4;word-break:break-word}.studio-shell .wf-node-results{margin-top:8px;display:flex;flex-direction:column;gap:8px}.studio-shell .wf-node-out{display:flex;flex-direction:column;gap:3px}.studio-shell .wf-node-out>.label{font-size:9px;text-transform:uppercase;letter-spacing:.4px;color:var(--text-2)}.studio-shell .wf-node-out .wf-out-text{font-size:11px;line-height:1.45;color:var(--text-1);white-space:pre-wrap;word-break:break-word;max-height:120px;overflow-y:auto}.studio-shell .wf-node-out .wf-out-json{margin:0;font-family:SF Mono,monospace;font-size:9.5px;line-height:1.4;color:var(--text-2);background:rgba(255,255,255,.03);border-radius:6px;padding:6px 8px;max-height:140px;overflow:auto;white-space:pre-wrap;word-break:break-word}.studio-shell .wf-node-out .wf-out-img,.studio-shell .wf-node-out .wf-out-video{width:100%;border-radius:6px;display:block;background:var(--bg-3)}.studio-shell .wf-node-out .wf-out-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:4px}.studio-shell .wf-node-out .wf-out-imgs .wf-out-img{aspect-ratio:1/1;-o-object-fit:cover;object-fit:cover}.studio-shell .wf-node-out .wf-out-audio{width:100%;height:32px}.studio-shell .wf-node-card.cyan{--accent:#25d4c8;--accent-soft:rgba(37,212,200,.1)}.studio-shell .wf-node-card.purple{--accent:#8b5cf6;--accent-soft:rgba(139,92,246,.1)}.studio-shell .wf-node-card.pink{--accent:#ec4899;--accent-soft:rgba(236,72,153,.1)}.studio-shell .wf-node-card.orange{--accent:#f59e0b;--accent-soft:rgba(245,158,11,.1)}.studio-shell .wf-node-card.green{--accent:#10b981;--accent-soft:rgba(16,185,129,.1)}.studio-shell .wf-node-card.blue{--accent:#3b82f6;--accent-soft:rgba(59,130,246,.1)}.studio-shell .wf-node-card.red{--accent:#ef4444;--accent-soft:rgba(239,68,68,.1)}.studio-shell .wf-node-card.yellow{--accent:#fbbf24;--accent-soft:rgba(251,191,36,.1)}.studio-shell .wf-inspector{background:var(--bg-1);border:1px solid var(--line);border-radius:14px;padding:14px;overflow-y:auto}.studio-shell .wf-inspector h3{font-size:14px;font-weight:600;margin:0 0 4px}.studio-shell .wf-inspector .subtitle{font-size:11px;color:var(--text-2);margin:0 0 16px}.studio-shell .wf-inspector h4{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-2);margin:16px 0 8px;font-weight:600}.studio-shell .wf-inspector .port-row{display:flex;justify-content:space-between;font-size:11px;color:var(--text-1);padding:4px 8px;border-radius:6px;background:var(--bg-2);margin-bottom:3px}.studio-shell .wf-inspector .port-row .port-type{color:var(--text-2);font-family:SF Mono,monospace;font-size:10px}.studio-shell .wf-inspector .empty{color:var(--text-2);font-size:12px;text-align:center;padding:32px 16px;line-height:1.5}.studio-shell .wf-inspector .field{margin-bottom:14px}.studio-shell .wf-inspector .field label{font-size:11px;color:var(--text-1);margin-bottom:4px}.studio-shell .wf-inspector .field input[type=number],.studio-shell .wf-inspector .field input[type=text],.studio-shell .wf-inspector .field select,.studio-shell .wf-inspector .field textarea{width:100%;background:var(--bg-2);border:1px solid var(--line);border-radius:6px;padding:6px 8px;color:var(--text-0);font-size:12px;font-family:inherit;outline:none}.studio-shell .wf-inspector .field textarea{min-height:60px;resize:vertical}.studio-shell .wf-inspector .field input:focus,.studio-shell .wf-inspector .field select:focus,.studio-shell .wf-inspector .field textarea:focus{border-color:var(--cyan)}.studio-shell .wf-inspector .trace{background:var(--bg-2);border:1px solid var(--line);border-radius:6px;padding:8px 10px;font-size:10px;font-family:SF Mono,monospace;white-space:pre-wrap;word-break:break-word;color:var(--text-1);max-height:200px;overflow-y:auto}@media (max-width:900px){.studio-shell .content{padding:20px}.studio-shell .topbar{padding:0 16px;gap:12px}.studio-shell .topbar h1{font-size:14px}.studio-shell .topbar .crumb{display:none}.studio-shell .workbench{grid-template-columns:1fr;height:auto}.studio-shell .chat-container{grid-template-columns:1fr;height:calc(100vh - 60px - 32px)}.studio-shell .chat-list{display:none}.studio-shell .hero h2{font-size:22px}.studio-shell .wf-shell{grid-template-columns:1fr;height:auto}.studio-shell .wf-canvas{min-height:62vh}.studio-shell .wf-toolbar{flex-wrap:wrap;height:auto;padding:8px}.studio-shell .wf-toolbar input[type=text]{flex:1 1 100%}}@media (max-width:600px){.studio-shell .content{padding:16px}.studio-shell .topbar{padding:0 12px;gap:8px}.studio-shell .topbar h1{display:none}.studio-shell .topbar .right{gap:8px}.studio-shell .user-pill{padding:4px;gap:0}.studio-shell .user-pill span{display:none}.studio-shell .grid{grid-template-columns:1fr}.studio-shell .mine-grid{grid-template-columns:repeat(2,1fr)}}