/* The theme picker in the footer: Dark, Light or System, the same segmented control as Settings in the app (.x-seg).
   The choice is kept in this browser (localStorage "backa-theme"); the script in <head> sets data-theme on <html>
   before the page paints, and with no choice the page follows the system. Colours come from tokens.css. */
.theme-seg { display: inline-flex; gap: 1px; padding: 2px; border-radius: var(--r-lg); background: var(--panel-2); box-shadow: var(--ring); }
.theme-seg button { display: inline-grid; place-items: center; border: 0; background: none; width: 24px; height: 22px; padding: 0; border-radius: var(--r-md); color: var(--text-2); cursor: pointer; transition: color .15s, background .15s; }
.theme-seg button:hover { color: var(--text); }
.theme-seg button[aria-pressed="true"] { background: var(--sheet-solid); color: var(--text); box-shadow: var(--lift-sm), var(--ring-2); }
.theme-seg button:focus-visible { outline: 1.5px solid var(--text-2); outline-offset: 1px; }
.theme-seg svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
