/* Kanban DTF: dark or light, chosen per browser. Loaded in , so the page draws in its theme from the start and never flashes the other one. */ (() => { const KEY = 'kanban-theme'; const root = document.documentElement; let saved = null; try { saved = localStorage.getItem(KEY); } catch (e) { /* private window: dark */ } root.dataset.theme = saved === 'light' ? 'light' : 'dark'; window.kanbanTheme = { get: () => root.dataset.theme, set(theme) { root.dataset.theme = theme; try { localStorage.setItem(KEY, theme); } catch (e) { /* kept for this page only */ } }, toggle() { this.set(this.get() === 'light' ? 'dark' : 'light'); return this.get(); }, }; })();