mono-theme-toggle {
  display: block;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  color: var(--ink, #181818);
}
mono-theme-toggle [data-spring-cord] {
  position: absolute;
  left: 50%;
  width: 2px;
  height: .5rem;
  background: currentColor;
  transform-origin: center top;
  transform: translateX(-50%) rotate(var(--spring-angle, 0rad)) scaleY(var(--spring-stretch, 1));
}
mono-theme-toggle [data-spring-handle] {
  position: absolute;
  top: .48rem;
  left: 50%;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: .3rem;
  background: var(--ink, #181818);
  color: var(--paper, #fafafa);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: translate(calc(-50% + var(--spring-x, 0px)), var(--spring-y, 0px));
}
mono-theme-toggle [data-spring-handle]::after { content: ""; position: absolute; inset: -.4rem; }
mono-theme-toggle [data-spring-handle]:active { cursor: grabbing; }
mono-theme-toggle [data-spring-handle]:has(:focus-visible) { outline: 2px solid var(--ink, #181818); outline-offset: 3px; }
mono-theme-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
mono-theme-toggle svg { pointer-events: none; }
mono-theme-toggle .theme-moon, html[data-theme="dark"] mono-theme-toggle .theme-sun { display: none; }
html[data-theme="dark"] mono-theme-toggle .theme-moon { display: block; }
[data-theme="light"] [data-site-theme] .mu-spring-toggle { --spring-paper: #fff; --spring-ink: #000; }
[data-theme="light"] [data-site-theme] .mu-spring-sun { display: none; }
[data-theme="light"] [data-site-theme] .mu-spring-cloud { display: block; }
.mono-live-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.component-header > nav { margin-inline-start: auto; }
@media (max-width: 34rem) {
  .component-header { flex-wrap: wrap; gap: .3rem .65rem; padding-block: .4rem; }
  .component-header > nav { order: 1; width: 100%; margin: 0; }
  .component-header > mono-theme-toggle { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  mono-theme-toggle :is([data-spring-cord], [data-spring-handle]) { transform: translateX(-50%); }
}
@media (forced-colors: active) {
  mono-theme-toggle [data-spring-handle] { border: 1px solid ButtonText; color: ButtonText; background: ButtonFace; }
  mono-theme-toggle [data-spring-cord] { background: CanvasText; forced-color-adjust: none; }
}
