document.addEventListener('DOMContentLoaded',()=>{const start=document.querySelector('[name="start_at"]'),end=document.querySelector('[name="end_at"]');if(start&&end){start.addEventListener('change',()=>{if(!end.value&&start.value){const d=new Date(start.value);d.setMinutes(d.getMinutes()+60);end.value=d.toISOString().slice(0,16)}})}});
