document.addEventListener('DOMContentLoaded', () => {
  function applyFont() {
    document.querySelectorAll('.fbs-task-description-content').forEach(host => {
      if (host.shadowRoot) {
        if (!host.shadowRoot.querySelector('#force-times-font')) {
          const st = document.createElement('style');
          st.id = 'force-times-font';
          st.textContent = `
            body, p, div, span {
              font-family: "Times New Roman", Times, serif !important;
              line-height: 1.6 !important;
              font-size: 16px !important;
            }
          `;
          host.shadowRoot.appendChild(st);
        }
      }
    });
  }

  // chạy ngay + theo dõi thay đổi modal/task
  applyFont();
  new MutationObserver(applyFont).observe(document.body, { childList: true, subtree: true });
});
