.cmp{position:absolute;top:46px;right:18px;display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:var(--ink-3);font-family:"Space Mono",monospace;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.cmp-lbl{white-space:nowrap}
.cmp-track{position:relative;flex:none;width:36px;height:20px;border-radius:99px;background:rgba(255,255,255,.1);border:1px solid var(--line-2);transition:background .18s ease,border-color .18s ease}
.cmp-knob{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#cfcfda;transition:transform .18s ease,background .18s ease}
.cmp.on .cmp-track{background:#3b82f6;border-color:#3b82f6}
.cmp.on .cmp-knob{transform:translateX(16px);background:#fff}
.cmp.on .cmp-lbl{color:var(--txt)}
@media (max-width:620px){.cmp{top:44px;right:14px;font-size:9px}}


/* compound toggle: real tap target on phones */
@media (max-width:900px){
  .cmp{
    z-index:4;
    padding:7px 9px;
    margin:-7px -9px;
    border-radius:8px;
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .cmp-track{width:40px;height:22px}
  .cmp-knob{width:16px;height:16px;top:2px;left:2px}
  .cmp.on .cmp-knob{transform:translateX(18px)}
}
/* mobile: stack the countdown and the toggle instead of letting them collide */
@media (max-width:900px){
  html body .card.has-clock .res-clock{top:14px!important;right:26px!important;font-size:10.5px!important}
  html body .card.has-clock .cmp{top:60px!important;right:17px!important;margin:0!important;padding:7px 9px!important;border-radius:8px!important;z-index:4!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}
  html body .card.has-clock .cmp-track{width:40px!important;height:22px!important}
  html body .card.has-clock .cmp-knob{width:16px!important;height:16px!important;top:2px!important;left:2px!important}
  html body .card.has-clock .cmp.on .cmp-knob{transform:translateX(18px)!important}
}