try {
  var t = localStorage.getItem("picobot-theme");
  if (!t) t = matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
  var a = localStorage.getItem("picobot-accent");
  if (!["blue", "purple", "teal", "green", "orange", "magenta"].includes(a)) a = "blue";
  document.documentElement.dataset.theme = t;
  document.documentElement.dataset.accent = a;
} catch (e) {}
