class ProcessPhase extends HTMLElement { connectedCallback() { const phase = this.getAttribute('phase') || 'Discovery'; const color = this.getAttribute('color') || 'blue-100'; const start = this.getAttribute('start') || '1'; const span = this.getAttribute('span') || '4'; const icon = this.getAttribute('icon') || 'search'; const title = this.getAttribute('title') || 'Process Step'; const desc = this.getAttribute('desc') || ''; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `

${title}

${desc ? `

${desc}

` : ''}
`; // Initialize feather icons in shadow DOM if (window.feather) { window.feather.replace({ class: 'phase-icon i' }); } } } customElements.define('process-phase', ProcessPhase);