/* Pull cord: switches light/dark. Vanilla port; see docs/THIRD-PARTY.md. Uses only tokens. */
.cord { position: fixed; top: 0; right: calc(env(safe-area-inset-right, 0px) + max(1.375rem, 2.4vw) - 196px); z-index: 30; width: var(--cord-width); height: var(--cord-height); color: var(--color-cord); mix-blend-mode: difference; pointer-events: none; view-transition-name: cord; }
.cord svg { display: block; width: var(--cord-width); height: var(--cord-height); }
:root::view-transition { pointer-events: none; }
::view-transition-group(root) { animation-duration: 0.5s; }
::view-transition-old(cord) { display: none; }
::view-transition-new(cord), ::view-transition-group(cord) { animation: none; }
.cord-inner { position: absolute; inset: 0; }
.cord-inner.drop { animation: cord-drop 0.6s 0.4s cubic-bezier(0.45, 0, 0.9, 0.5) both; }
@keyframes cord-drop { 0% { opacity: 0; transform: translateY(-230px); } 20% { opacity: 1; } 100% { transform: none; } }
.cord-line { stroke: currentColor; stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cord-bead { fill: none; stroke: currentColor; stroke-width: 1.2; }
.cord-knob { position: absolute; left: 187px; top: 153px; width: var(--cord-knob); height: var(--cord-knob); padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.cord-knob:active { cursor: grabbing; }
.cord-knob:focus-visible { outline: 2px solid var(--color-cord); outline-offset: -9px; }
@media (max-width: 40rem) { .cord { display: none; } }
@media (prefers-reduced-motion: reduce) { .cord-inner.drop { animation: none; } }
