/* Day / night switch (glass knob drawn in WebGL by js/pt-mode.js) */
.ptm { position: relative; width: 64px; height: 34px; flex: none; display: inline-block; vertical-align: middle; }
.ptm-gl { position: absolute; left: -28px; top: -19px; width: 120px !important; height: 72px !important; max-width: none !important; max-height: none !important; pointer-events: none; }
.ptm-btn { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: 17px; background: transparent; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.ptm-btn:active { cursor: grabbing; }
.ptm-btn:focus-visible { outline: 2px solid #f3b65a; outline-offset: 4px; }
.ptm-css { display: none; }
.ptm--css .ptm-css { display: block; position: absolute; inset: 0; border-radius: 17px; background: #121a26; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
html[data-mode="day"] .ptm--css .ptm-css { background: #e9e5dc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.ptm-css-knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,.22); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 6px 14px -6px #9ec2ff; transform: translateX(calc(var(--ptm-t, 0) * 30px)); }
html[data-mode="day"] .ptm-css-knob { box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 -6px 14px -6px #ffa83a; }
