/* Shared header controls: the demo's language toggle and the theme button. */
.prefs{display:flex;align-items:center;gap:8px}
.theme{display:none;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--track);color:var(--ink);cursor:pointer}
.js .theme{display:grid}
@media (hover:hover){.theme:hover{background:var(--btn-bg);color:var(--btn-fg)}}
.theme svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme .sun,.theme[data-shown="dark"] .moon{display:none}
.theme[data-shown="dark"] .sun{display:block}
.lang{display:flex;width:max-content;padding:3px;border-radius:999px;background:var(--track)}
.lang a{display:grid;place-items:center;min-width:44px;height:38px;padding:0 12px;border-radius:999px;font:700 12px/1 var(--sans);text-decoration:none;color:var(--ink-soft)}
.lang a[aria-current]{background:var(--btn-bg);color:var(--btn-fg)}
.lang a{position:relative}
.lang a::before{content:"";position:absolute;inset:-3px 0}
