/* The theme switch of /setup and the setup assistant (layouts/_theme_switch).
   Small and quiet: three icons in a pill, the chosen one raised. Works on the
   plain background and, with .on-grad, on the PerfectFlow gradient. */
.pf-ts { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(120, 112, 150, .12); border: 1px solid rgba(120, 112, 150, .22); }
.pf-ts button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: inherit; opacity: .7; cursor: pointer; transition: background .2s, opacity .2s, box-shadow .2s; }
.pf-ts button:hover { opacity: 1; }
.pf-ts button:focus-visible { outline: 2px solid #7A0FFE; outline-offset: 1px; }
.pf-ts button[aria-checked="true"] { opacity: 1; background: #fff; color: #12101A; box-shadow: 0 1px 3px rgba(18, 16, 26, .18); }
.pf-ts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .pf-ts { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .pf-ts button[aria-checked="true"] { background: #2D2940; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pf-ts.on-grad, :root[data-theme="dark"] .pf-ts.on-grad { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.pf-ts.on-grad button[aria-checked="true"], :root[data-theme="dark"] .pf-ts.on-grad button[aria-checked="true"] { background: #fff; color: #12101A; }
/* Placements */
.pf-ts.pf-ts-corner { position: fixed; top: 14px; right: 14px; z-index: 140; }
@media (prefers-reduced-motion: reduce) { .pf-ts button { transition: none; } }
