/* ============================================================
   GooseHyperGlassCDN 液态玻璃开关接入样式
   浅色模式：白色卡片背景；深色模式：黑色卡片背景（跟随 body.darkmode）
   ============================================================ */

/* 开关容器：替换原 .bt-onoff 在 flex 行中的位置（右对齐） */
.lg-switch-wrap {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
}

/* 原开关保留在 DOM 中（状态与事件转发的目标），视觉上完全隐藏 */
.lg-switch-wrap .bt-onoff,
.lg-switch-wrap .bt-onofftext {
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* 液态玻璃开关本体：108×64（紧凑卡片，随 --bt-scale 缩放） */
liquid-glass.lg-switch {
  display: block;
  width: calc(var(--bt-scale, 1) * 108px);
  height: calc(var(--bt-scale, 1) * 64px);
}
