.gallery-container{max-width:100%!important;margin:0!important;padding:1rem!important;background:#fafafa!important;font-family:-apple-system,BlinkMacSystemFont,Inter,'Segoe UI',system-ui,sans-serif!important;line-height:1.5!important;color:#0a0a0a!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box!important}.gallery-container .gallery-header{text-align:center!important;margin-bottom:2rem!important;padding:1rem 0!important;box-sizing:border-box!important}.gallery-container .gallery-title{font-size:2rem!important;font-weight:700!important;color:#000!important;margin-bottom:.75rem!important;letter-spacing:-.02em!important;line-height:1.2!important}.gallery-container .gallery-description{color:#666!important;font-size:1rem!important;font-weight:400!important;margin:0!important;line-height:1.4!important}.gallery-container .gallery-controls{display:flex!important;gap:1rem!important;margin-bottom:2rem!important;flex-wrap:wrap!important;align-items:center!important;padding:0!important;box-sizing:border-box!important}.gallery-container .search-box{flex:1!important;min-width:200px!important;position:relative!important;box-sizing:border-box!important}.gallery-container .search-icon{position:absolute!important;left:1rem!important;top:50%!important;transform:translateY(-50%)!important;color:#a0aec0!important;z-index:2!important;pointer-events:none!important}.gallery-container .search-input{width:100%!important;padding:.75rem .75rem .75rem 2.5rem!important;border:1px solid #e5e5e5!important;border-radius:8px!important;font-size:.9375rem!important;transition:all .15s ease!important;background:#fff!important;box-sizing:border-box!important;font-family:inherit!important}.gallery-container .search-input:focus{outline:0!important;border-color:#000!important;box-shadow:0 0 0 3px rgba(0,0,0,.05)!important}.gallery-container .category-filters{display:flex!important;gap:.5rem!important;flex-wrap:wrap!important;align-items:center!important}.gallery-container .category-btn{padding:.5rem 1rem!important;border:1px solid #e5e5e5!important;background:#fff!important;color:#666!important;border-radius:8px!important;cursor:pointer!important;transition:all .15s ease!important;font-size:.875rem!important;font-weight:500!important;box-sizing:border-box!important;font-family:inherit!important;display:inline-block!important;text-align:center!important}.gallery-container .category-btn:hover{background:#f7f7f7!important;border-color:#d4d4d4!important;color:#000!important}.gallery-container .category-btn.active{background:#000!important;color:#fff!important;border-color:#000!important}.gallery-container .templates-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))!important;gap:1.5rem!important;margin-bottom:2rem!important;padding:0!important;box-sizing:border-box!important}.gallery-container .template-card{background:#fff!important;border:1px solid #e5e5e5!important;border-radius:12px!important;overflow:hidden!important;transition:all .15s ease!important;cursor:pointer!important;position:relative!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important}.gallery-container .template-card:hover{transform:translateY(-2px)!important;box-shadow:0 8px 30px rgba(0,0,0,.08)!important;border-color:#d4d4d4!important}.complete-template-card{overflow:hidden!important}.gallery-container .template-header{padding:1.5rem!important;border-bottom:1px solid #f0f0f0!important;box-sizing:border-box!important;flex:1!important}.gallery-container .template-category{display:inline-block!important;padding:.25rem .5rem!important;background:#f5f5f5!important;color:#666!important;border-radius:6px!important;font-size:.75rem!important;font-weight:500!important;margin-bottom:.75rem!important;text-transform:uppercase!important;letter-spacing:.05em!important;box-sizing:border-box!important;line-height:1!important}.gallery-container .template-icon{font-size:2rem!important;margin-bottom:.75rem!important;display:block!important;line-height:1!important}.gallery-container .template-title{font-size:1.125rem!important;font-weight:600!important;color:#000!important;margin-bottom:.5rem!important;letter-spacing:-.01em!important;line-height:1.3!important;font-family:inherit!important}.gallery-container .template-description{color:#666!important;font-size:.875rem!important;line-height:1.5!important;margin:0!important;font-family:inherit!important}.gallery-container .action-type-badge{display:inline-block!important;padding:.25rem .5rem!important;background:#f8f9fa!important;color:#495057!important;border-radius:4px!important;font-size:.75rem!important;font-weight:500!important;margin-top:.5rem!important;box-sizing:border-box!important;line-height:1.2!important;font-family:inherit!important}.gallery-container .template-features{padding:1.5rem!important;background:#fafafa!important;border-top:1px solid #f0f0f0!important;box-sizing:border-box!important}.gallery-container .features-title{font-size:.75rem!important;font-weight:600!important;color:#999!important;margin-bottom:.75rem!important;text-transform:uppercase!important;letter-spacing:.05em!important;line-height:1!important;font-family:inherit!important}.gallery-container .features-list{display:flex!important;flex-wrap:wrap!important;gap:.375rem!important;margin:0!important;padding:0!important}.gallery-container .feature-tag{padding:.25rem .5rem!important;background:#fff!important;border:1px solid #e5e5e5!important;border-radius:6px!important;font-size:.75rem!important;color:#333!important;font-weight:500!important;box-sizing:border-box!important;line-height:1.2!important;font-family:inherit!important;margin:0!important;display:inline-block!important}.gallery-container .action-preview{padding:1.5rem!important;background:#fafafa!important;border-top:1px solid #f0f0f0!important;box-sizing:border-box!important}.gallery-container .preview-title{font-size:.75rem!important;font-weight:600!important;color:#999!important;margin-bottom:.75rem!important;text-transform:uppercase!important;letter-spacing:.05em!important;line-height:1!important;font-family:inherit!important}.gallery-container .preview-content{display:flex!important;align-items:flex-start!important;gap:.75rem!important;margin:0!important;padding:0!important}.gallery-container .preview-icon{font-size:1.25rem!important;color:#000!important;flex-shrink:0!important;margin-top:.125rem!important;line-height:1!important}.gallery-container .preview-text{font-size:.875rem!important;color:#495057!important;line-height:1.4!important;margin:0!important;font-family:inherit!important}.gallery-container .template-summary{padding:1rem 1.5rem!important;background:#f8f9fa!important;border-top:1px solid #f0f0f0!important;display:flex!important;gap:1.5rem!important;justify-content:center!important;box-sizing:border-box!important}.gallery-container .summary-item{display:flex!important;align-items:center!important;gap:.5rem!important;font-size:.875rem!important;color:#666!important;font-weight:500!important}.gallery-container .summary-item i{color:#007bff!important;font-size:1rem!important}.gallery-container .template-detail-actions{padding:1rem 1.5rem!important;border-top:1px solid #f0f0f0!important;display:flex!important;justify-content:center!important;box-sizing:border-box!important}.gallery-container .detail-action-btn{padding:.75rem 1.5rem!important;background:#f8f9fa!important;color:#007bff!important;border:1px solid #e9ecef!important;border-radius:6px!important;cursor:pointer!important;display:flex!important;align-items:center!important;gap:.5rem!important;font-size:.875rem!important;font-weight:500!important;transition:all .2s ease!important;text-decoration:none!important;font-family:inherit!important}.gallery-container .detail-action-btn:hover{background:#007bff!important;color:#fff!important;border-color:#007bff!important}.gallery-container .template-components-compact{display:flex!important;flex-direction:column!important;gap:1rem!important;padding:1.5rem!important;background:#fafafa!important;box-sizing:border-box!important}.gallery-container .template-components{display:flex!important;flex-direction:column!important;gap:.75rem!important;padding:1.5rem!important;background:#fafafa!important;border-top:1px solid #f0f0f0!important;box-sizing:border-box!important}.gallery-container .components-group{background:#fff!important;border-radius:8px!important;padding:1rem!important;border:1px solid #e5e5e5!important;width:100%!important;box-sizing:border-box!important;position:relative!important}.gallery-container .components-group:hover{border-color:#007bff!important;box-shadow:0 2px 8px rgba(0,123,255,.1)!important}.gallery-container .component-section-compact{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:.75rem!important;background:#f9f9f9!important;border-radius:6px!important;border:1px solid #e5e5e5!important;margin-bottom:.5rem!important;box-sizing:border-box!important;transition:all .2s ease!important}.gallery-container .component-section-compact:hover{background:#f5f5f5!important;border-color:#d0d0d0!important}.gallery-container .component-section-compact:last-child{margin-bottom:0!important}.gallery-container .component-info{flex:1!important}.gallery-container .component-title-compact{font-size:.875rem!important;font-weight:600!important;color:#333!important;margin-bottom:.25rem!important;line-height:1.2!important}.gallery-container .component-type-compact{font-size:.75rem!important;color:#666!important;padding:.2rem .4rem!important;background:#e9ecef!important;border-radius:3px!important;display:inline-block!important;font-family:Monaco,Menlo,monospace!important}.gallery-container .btn-component-compact{padding:.4rem .6rem!important;font-size:.7rem!important;background:#fff!important;color:#666!important;border:1px solid #ddd!important;border-radius:4px!important;cursor:pointer!important;transition:all .15s ease!important;display:inline-flex!important;align-items:center!important;gap:.25rem!important;white-space:nowrap!important;flex-shrink:0!important}.gallery-container .btn-component-compact:hover{background:#007bff!important;color:#fff!important;border-color:#007bff!important}.gallery-container .components-header{margin-bottom:.75rem!important}.gallery-container .components-header h4{font-size:.875rem!important;font-weight:600!important;color:#333!important;margin:0 0 .75rem 0!important;line-height:1.2!important;font-family:inherit!important}.gallery-container .component-section{margin-bottom:.5rem!important;padding:.625rem!important;background:#f9f9f9!important;border-radius:6px!important;border:1px solid #e5e5e5!important;box-sizing:border-box!important;transition:all .2s ease!important}.gallery-container .component-section:hover{background:#f5f5f5!important;border-color:#d0d0d0!important}.gallery-container .component-section:last-of-type{margin-bottom:0!important}.gallery-container .component-title{font-size:.875rem!important;font-weight:600!important;color:#212529!important;margin-bottom:.5rem!important;line-height:1.2!important;font-family:inherit!important}.gallery-container .component-type{font-size:.75rem!important;color:#6c757d!important;margin-bottom:.75rem!important;padding:.25rem .5rem!important;background:#e9ecef!important;border-radius:4px!important;display:inline-block!important;font-family:Monaco,Menlo,monospace!important;line-height:1!important;box-sizing:border-box!important}.gallery-container .component-actions{display:flex!important;gap:.5rem!important;flex-wrap:wrap!important}.gallery-container .component-arrow{font-size:1.25rem!important;color:#666!important;align-self:center!important;transform:rotate(90deg)!important;margin:.25rem 0!important;line-height:1!important}.gallery-container .template-workflow-preview{padding:1.5rem!important;background:#fafafa!important;border-top:1px solid #f0f0f0!important;box-sizing:border-box!important}.gallery-container .workflow-title{font-size:.75rem!important;font-weight:600!important;color:#999!important;margin-bottom:1rem!important;text-transform:uppercase!important;letter-spacing:.05em!important;line-height:1!important;font-family:inherit!important}.gallery-container .workflow-steps{display:flex!important;align-items:center!important;gap:.5rem!important;flex-wrap:wrap!important}.gallery-container .workflow-step{display:flex!important;flex-direction:column!important;align-items:center!important;padding:.5rem!important;background:#fff!important;border-radius:6px!important;border:1px solid #dee2e6!important;min-width:80px!important;box-sizing:border-box!important}.gallery-container .step-icon{font-size:1.25rem!important;margin-bottom:.25rem!important;line-height:1!important}.gallery-container .step-label{font-size:.625rem!important;font-weight:600!important;color:#495057!important;margin-bottom:.125rem!important;text-align:center!important;line-height:1.2!important;font-family:inherit!important}.gallery-container .step-desc{font-size:.5rem!important;color:#6c757d!important;text-align:center!important;line-height:1.2!important;font-family:inherit!important}.gallery-container .workflow-arrow{font-size:1rem!important;color:#666!important;line-height:1!important}.gallery-container .step-actions{display:flex!important;align-items:center!important;gap:.5rem!important}.gallery-container .template-actions{display:flex!important;gap:.75rem!important;padding:1.5rem!important;border-top:1px solid #f0f0f0!important;box-sizing:border-box!important;flex-shrink:0!important}.gallery-container .btn-template{flex:1!important;padding:.75rem 1rem!important;border:1px solid #e5e5e5!important;background:#fff!important;color:#666!important;border-radius:8px!important;cursor:pointer!important;transition:all .15s ease!important;font-size:.875rem!important;font-weight:500!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important;text-decoration:none!important;box-sizing:border-box!important;font-family:inherit!important;line-height:1.2!important;min-height:44px!important}.gallery-container .btn-template:hover{background:#f7f7f7!important;border-color:#d4d4d4!important;color:#000!important}.gallery-container .btn-template.btn-primary{background:#000!important;color:#fff!important;border-color:#000!important}.gallery-container .btn-template.btn-primary:hover{background:#333!important;border-color:#333!important;color:#fff!important}.gallery-container .btn-component,.gallery-container .btn-preview-act,.gallery-container .btn-preview-ext{padding:.5rem .75rem!important;font-size:.75rem!important;border:1px solid #e5e5e5!important;background:#fff!important;color:#666!important;border-radius:6px!important;cursor:pointer!important;transition:all .15s ease!important;display:inline-flex!important;align-items:center!important;gap:.25rem!important;text-decoration:none!important;box-sizing:border-box!important;font-family:inherit!important;line-height:1!important;white-space:nowrap!important}.gallery-container .btn-component:hover,.gallery-container .btn-preview-act:hover,.gallery-container .btn-preview-ext:hover{background:#f7f7f7!important;border-color:#d4d4d4!important;color:#000!important}.gallery-container .btn-component i,.gallery-container .btn-preview-act i,.gallery-container .btn-preview-ext i{font-size:.75rem!important;line-height:1!important}.gallery-container .empty-state{text-align:center!important;padding:3rem 1rem!important;color:#6c757d!important;box-sizing:border-box!important}.gallery-container .empty-state i{font-size:3rem!important;margin-bottom:1rem!important;opacity:.3!important;line-height:1!important}.gallery-container .empty-state h3{font-size:1.25rem!important;font-weight:600!important;margin-bottom:.5rem!important;color:#495057!important;font-family:inherit!important;line-height:1.3!important}.gallery-container .empty-state p{font-size:.875rem!important;margin:0!important;font-family:inherit!important;line-height:1.4!important}@media(max-width:768px){.templates-grid{grid-template-columns:1fr;padding:0 .5rem}.gallery-controls{padding:0 .5rem}.template-card{padding:1rem}.workflow-steps{flex-direction:column;align-items:stretch}.workflow-arrow{transform:rotate(90deg);align-self:center}.step-actions{flex-direction:column;gap:.25rem}}.template-details-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.4);backdrop-filter:blur(12px);z-index:4000;display:none;padding:2rem;box-sizing:border-box;animation:fadeIn .3s ease-out}.template-details-modal[style*=block]{display:flex!important;align-items:center;justify-content:center}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.template-details-modal-content{background:#fff;border-radius:12px;max-width:720px;width:100%;max-height:90vh;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 4px 6px -1px rgba(0,0,0,.1),0 20px 25px -5px rgba(0,0,0,.15);position:relative;animation:slideUp .3s ease-out}@keyframes slideUp{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.template-details-modal .modal-header{padding:2rem;border-bottom:1px solid #e5e7eb;background:#fff;position:relative}.template-details-modal .modal-header-content{display:flex;align-items:flex-start;gap:1.25rem}.template-details-modal .template-icon-large{font-size:3.5rem;line-height:1;flex-shrink:0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}.template-details-modal .modal-title-section{flex:1;min-width:0}.template-details-modal .modal-template-title{font-size:1.75rem;font-weight:700;color:#0f172a;margin:0 0 .5rem 0;line-height:1.2;letter-spacing:-.02em}.template-details-modal .modal-template-description{font-size:1rem;color:#64748b;margin:0 0 1rem 0;line-height:1.5;font-weight:400}.template-details-modal .modal-template-category{display:inline-flex;align-items:center;padding:.375rem .875rem;background:rgba(15,23,42,.06);color:#475569;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;border-radius:20px;border:1px solid rgba(15,23,42,.1)}.template-details-modal .modal-close-btn{position:absolute;top:1.25rem;right:1.25rem;background:rgba(15,23,42,.05);border:1px solid rgba(15,23,42,.1);font-size:1.25rem;color:#64748b;cursor:pointer;padding:0;border-radius:10px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.template-details-modal .modal-close-btn:hover{background:#ef4444;color:#fff;border-color:#ef4444;transform:scale(1.05)}.template-details-modal .modal-content-area{overflow-y:auto;max-height:calc(80vh - 180px);padding:0}.template-details-modal .modal-features-section{padding:1.75rem 2rem;border-bottom:1px solid rgba(15,23,42,.08);background:#fefefe}.template-details-modal .modal-features-section h3{font-size:1.125rem;font-weight:600;color:#0f172a;margin:0 0 1.25rem 0;letter-spacing:-.01em}.template-details-modal .modal-features-list{display:flex;flex-wrap:wrap;gap:.625rem}.template-details-modal .modal-feature-tag{padding:.5rem 1rem;background:rgba(59,130,246,.08);color:#1e40af;font-size:.8125rem;font-weight:500;border-radius:20px;border:1px solid rgba(59,130,246,.15);transition:all .2s ease}.template-details-modal .modal-feature-tag:hover{background:rgba(59,130,246,.12);transform:translateY(-1px)}.template-details-modal .modal-workflow-section{padding:2rem;border-bottom:1px solid #e5e7eb;background:#fafafa}.template-details-modal .modal-workflow-section h3{font-size:1.125rem;font-weight:600;color:#111827;margin:0 0 1rem 0;letter-spacing:-.025em;text-align:center}.template-details-modal .workflow-explanation{text-align:center;margin-bottom:2rem}.template-details-modal .workflow-explanation p{color:#6b7280;font-size:.875rem;line-height:1.6;margin:0}.template-details-modal .workflow-flow{display:flex;align-items:flex-start;gap:2rem;margin-bottom:2rem}.template-details-modal .workflow-stage{flex:1;background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px rgba(0,0,0,.05);transition:all .2s ease}.template-details-modal .workflow-stage:hover{box-shadow:0 4px 12px rgba(0,0,0,.1);transform:translateY(-1px)}.template-details-modal .stage-header{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.template-details-modal .stage-number{width:28px;height:28px;background:#374151;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.75rem;flex-shrink:0}.template-details-modal .stage-title h4{font-size:1rem;font-weight:600;color:#111827;margin:0 0 .25rem 0;display:flex;align-items:center;gap:.5rem}.template-details-modal .stage-title p{font-size:.8125rem;color:#6b7280;margin:0}.template-details-modal .stage-items{display:flex;flex-direction:column;gap:.75rem}.template-details-modal .workflow-item{display:flex;align-items:center;gap:1rem;padding:.875rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;transition:all .2s ease}.template-details-modal .workflow-item:hover{background:#fff;border-color:#d1d5db;box-shadow:0 2px 4px rgba(0,0,0,.05)}.template-details-modal .item-icon{font-size:1rem;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#f3f4f6;color:#6b7280;border-radius:6px;flex-shrink:0}.template-details-modal .extension-item .item-icon{background:#f3f4f6;color:#374151}.template-details-modal .action-item .item-icon{background:#f3f4f6;color:#374151}.template-details-modal .item-content{flex:1;min-width:0}.template-details-modal .item-name{font-size:.8125rem;font-weight:500;color:#111827;margin-bottom:.25rem}.template-details-modal .item-desc,.template-details-modal .item-type{font-size:.6875rem;color:#6b7280;background:#f3f4f6;padding:.25rem .5rem;border-radius:4px;display:inline-block;font-family:ui-monospace,SFMono-Regular,"SF Mono",Monaco,Menlo,monospace;font-weight:500}.template-details-modal .item-preview-btn{padding:.5rem;background:#f9fafb;color:#6b7280;border:1px solid #e5e7eb;border-radius:4px;cursor:pointer;font-size:.75rem;transition:all .2s ease;flex-shrink:0}.template-details-modal .item-preview-btn:hover{background:#fff;color:#374151;border-color:#d1d5db}.template-details-modal .workflow-connector{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;margin-top:3rem}.template-details-modal .connector-line{width:2px;height:40px;background:#d1d5db;border-radius:1px;margin-bottom:.5rem}.template-details-modal .connector-arrow{width:40px;height:40px;background:#374151;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1rem;box-shadow:0 2px 4px rgba(0,0,0,.1)}.template-details-modal .connector-label{font-size:.6875rem;color:#6b7280;font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-top:.5rem}.template-details-modal .workflow-result{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;text-align:center}.template-details-modal .result-icon{font-size:1.25rem;color:#10b981}.template-details-modal .result-text{font-size:.875rem;font-weight:500;color:#374151}@media(max-width:1024px){.template-details-modal .workflow-flow{flex-direction:column;align-items:stretch;gap:1.5rem}.template-details-modal .workflow-connector{flex-direction:row;margin:0;height:60px}.template-details-modal .connector-line{width:40px;height:2px;margin-bottom:0;margin-right:.5rem}.template-details-modal .connector-arrow{transform:rotate(90deg)}}.template-details-modal .modal-actions-section{padding:1.5rem 2rem;display:flex;gap:.75rem;justify-content:center;background:#fff;border-top:1px solid #e5e7eb}.template-details-modal .modal-action-btn{padding:.625rem 1.25rem;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;display:flex;align-items:center;gap:.5rem;min-width:140px;justify-content:center}.template-details-modal .modal-preview-btn{background:#fff;color:#6b7280;border:1px solid #e5e7eb}.template-details-modal .modal-preview-btn:hover{background:#f9fafb;color:#374151;border-color:#d1d5db}.template-details-modal .modal-use-btn{background:#111827;color:#fff;border:1px solid #111827}.template-details-modal .modal-use-btn:hover{background:#000;border-color:#000}@media(max-width:768px){.template-details-modal{padding:1rem}.template-details-modal-content{max-height:95vh}.template-details-modal .modal-header{padding:1.5rem;flex-direction:column;text-align:center}.template-details-modal .modal-close-btn{position:absolute;top:.5rem;right:.5rem}.template-details-modal .modal-actions-section,.template-details-modal .modal-components-section,.template-details-modal .modal-features-section,.template-details-modal .modal-workflow-section{padding:1rem 1.5rem}.template-details-modal .modal-actions-section{flex-direction:column}.template-details-modal .modal-workflow-steps{flex-direction:column;align-items:stretch;gap:.25rem}}@media(max-width:480px){.gallery-title{font-size:1.5rem}.template-actions{flex-direction:column}.category-filters{gap:.25rem}.category-btn{font-size:.7rem;padding:.375rem .75rem}}.modal .gallery-container{max-height:80vh;overflow-y:auto}.modal .templates-grid{max-height:60vh;overflow-y:auto;padding-right:.5rem}.modal .templates-grid::-webkit-scrollbar{width:6px}.modal .templates-grid::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.modal .templates-grid::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.modal .templates-grid::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.template-details-modal .modal-close-btn svg{width:16px;height:16px}.template-details-modal .stage-title h4 svg{width:16px;height:16px;color:#6b7280}.template-details-modal .item-icon svg{width:16px;height:16px}.template-details-modal .item-preview-btn{display:flex;align-items:center;justify-content:center}.template-details-modal .item-preview-btn svg{width:14px;height:14px}.template-details-modal .connector-arrow svg{width:16px;height:16px}.template-details-modal .result-icon{display:flex;align-items:center;justify-content:center}.template-details-modal .result-icon svg{width:20px;height:20px}.template-details-modal .modal-action-btn svg{width:14px;height:14px}.template-details-modal{display:none;position:fixed;z-index:4000;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.4);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.template-details-modal[style*=block]{display:flex!important;align-items:center;justify-content:center;padding:20px}.template-details-modal-content{background:#fff;border-radius:16px;max-width:900px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)}.modal-header{padding:24px 32px;border-bottom:1px solid #e5e7eb;position:relative}.modal-close-btn{position:absolute;top:20px;right:20px;width:32px;height:32px;border-radius:8px;border:0;background:0 0;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.modal-close-btn:hover{background:#f3f4f6}.modal-header-content{display:flex;align-items:center;gap:16px;padding-right:40px}.modal-icon-wrapper{flex-shrink:0}.modal-template-icon{font-size:48px;line-height:1}.modal-title-section{flex:1}.modal-template-title{font-size:24px;font-weight:700;color:#111827;margin:0 0 4px 0;letter-spacing:-.025em}.modal-template-description{font-size:14px;color:#6b7280;margin:0 0 12px 0;line-height:1.5}.modal-template-badge{display:inline-block;padding:4px 10px;background:#f3f4f6;color:#4b5563;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;border-radius:6px}.modal-tabs-container{padding:0 32px;background:#fafafa;border-bottom:1px solid #e5e7eb}.modal-tabs{display:flex;gap:32px}.modal-tab{padding:16px 4px;background:0;border:0;border-bottom:2px solid transparent;cursor:pointer;font-size:14px;font-weight:500;color:#6b7280;display:flex;align-items:center;gap:8px;transition:all .2s;margin-bottom:-1px}.modal-tab:hover{color:#111827}.modal-tab.active{color:#111827;border-bottom-color:#111827}.modal-tab svg{width:16px;height:16px}.modal-content-area{flex:1;overflow-y:auto;background:#fff}.modal-tab-content{display:none;padding:32px}.modal-tab-content.active{display:block}.modal-section{margin-bottom:32px}.modal-section:last-child{margin-bottom:0}.modal-section-title{font-size:16px;font-weight:600;color:#111827;margin:0 0 16px 0}.modal-features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.modal-feature-item{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#f9fafb;border-radius:8px;font-size:14px;color:#374151}.modal-feature-item svg{width:16px;height:16px;color:#10b981;flex-shrink:0}.modal-metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px}.modal-metric-card{padding:16px;background:linear-gradient(135deg,#667eea 0,#764ba2 100%);border-radius:12px;color:#fff;text-align:center}.metric-value{font-size:24px;font-weight:700;margin-bottom:4px}.metric-label{font-size:12px;opacity:.9;text-transform:capitalize}.modal-summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.summary-card{display:flex;align-items:center;gap:16px;padding:20px;background:#f9fafb;border-radius:12px;border:1px solid #e5e7eb}.summary-card-icon{width:48px;height:48px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.summary-card-content{flex:1}.summary-card-value{font-size:24px;font-weight:700;color:#111827;margin-bottom:2px}.summary-card-label{font-size:12px;color:#6b7280}.modal-components-section{display:flex;flex-direction:column;gap:32px}.components-group{background:#f9fafb;border-radius:12px;padding:20px}.components-group-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#374151;margin-bottom:16px;text-transform:uppercase;letter-spacing:.05em}.components-list{display:flex;flex-direction:column;gap:12px}.component-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;transition:all .2s}.component-card:hover{box-shadow:0 4px 6px -1px rgba(0,0,0,.1)}.component-card-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.component-info{display:flex;align-items:center;gap:12px;flex:1}.component-icon{flex-shrink:0}.component-name{font-size:14px;font-weight:600;color:#111827;margin-bottom:2px}.component-type{font-size:12px;color:#6b7280}.component-preview-btn{padding:6px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:12px;font-weight:500;color:#6b7280;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s}.component-preview-btn:hover{background:#f3f4f6;color:#111827}.component-fields{margin-top:12px;padding-top:12px;border-top:1px solid #f3f4f6}.fields-label{font-size:11px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}.fields-list{display:flex;flex-wrap:wrap;gap:6px}.field-chip{padding:4px 8px;background:#f3f4f6;border-radius:4px;font-size:11px;color:#6b7280}.modal-workflow-visual{padding:32px}.workflow-diagram{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:48px}.workflow-step-card{background:#fff;border:2px solid #e5e7eb;border-radius:12px;padding:20px;text-align:center;position:relative;transition:all .2s}.workflow-step-card:hover{border-color:#9ca3af;transform:translateY(-2px);box-shadow:0 10px 15px -3px rgba(0,0,0,.1)}.step-number{position:absolute;top:-12px;left:50%;transform:translateX(-50%);width:24px;height:24px;background:#111827;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.step-content h4{font-size:14px;font-weight:600;color:#111827;margin:8px 0 4px 0}.step-content p{font-size:12px;color:#6b7280;margin:0 0 12px 0}.step-icon{width:48px;height:48px;margin:0 auto 12px;background:#f3f4f6;border-radius:12px;display:flex;align-items:center;justify-content:center}.step-icon.success{background:#10b981;color:#fff}.step-items{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.step-item-chip{padding:4px 8px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:4px;font-size:11px;color:#6b7280}.workflow-arrow-container{display:flex;align-items:center;color:#9ca3af}.workflow-result-card{background:linear-gradient(135deg,#10b981 0,#059669 100%);border-color:#10b981;color:#fff}.workflow-result-card .step-content h4,.workflow-result-card .step-content p{color:#fff}.workflow-example{background:#f9fafb;border-radius:12px;padding:24px}.workflow-example h4{font-size:14px;font-weight:600;color:#374151;margin:0 0 16px 0}.example-steps{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.example-step{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;font-size:12px;color:#4b5563}.example-number{width:20px;height:20px;background:#6b7280;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600}.example-arrow{color:#9ca3af;font-size:16px}.modal-footer{padding:20px 32px;border-top:1px solid #e5e7eb;display:flex;justify-content:flex-end;gap:12px;background:#fafafa}.modal-action-btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:8px;border:0;transition:all .2s}.modal-secondary{background:#fff;color:#6b7280;border:1px solid #e5e7eb}.modal-secondary:hover{background:#f3f4f6;color:#111827}.modal-primary{background:#111827;color:#fff}.modal-primary:hover{background:#000}.btn-template.btn-details{background:#fff;color:#4b5563;border-color:#e5e7eb}.btn-template.btn-details:hover{background:#f9fafb;color:#111827;border-color:#d1d5db}.btn-template.btn-details svg{width:16px;height:16px;margin-right:4px}@media(max-width:768px){.modal-header{padding:20px}.modal-tabs-container{padding:0 20px}.modal-tabs{gap:16px;overflow-x:auto}.modal-tab-content{padding:20px}.modal-footer{padding:16px 20px;flex-direction:column}.modal-action-btn{width:100%;justify-content:center}.workflow-diagram{flex-direction:column}.workflow-arrow-container{transform:rotate(90deg)}.modal-header-content{flex-direction:column;align-items:flex-start;text-align:left}.modal-template-icon{font-size:36px}}@media(max-width:480px){.modal-tabs{gap:8px}.modal-tab{padding:12px 4px;font-size:12px}.modal-tab svg{display:none}.example-steps{flex-direction:column;align-items:stretch}.example-arrow{transform:rotate(90deg)}}