/* ============================================================
   CECP 敬拜团内通系统 — Frontend Stylesheet
   Prefix: .cf-   (collision-safe for embedding in any CMS)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&family=Playfair+Display:wght@600;700&display=swap');

html.cf-intercom-open,
html.cf-intercom-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ============================================================
   ▌ CECP — 成员端终版聊天布局
   - 时间 / 在线恢复为正常小状态条
   - 成员端改成微信式双聊天区
   - 快捷信息改为一条一条点击
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app {
  width: min(100%, 1120px) !important;
  gap: 16px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header {
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-copy {
  gap: 6px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-title {
  font-size: 1.2rem !important;
  line-height: 1.15 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-sub {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-tools {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-pill,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 999px !important;
  background: var(--cf-surface-soft) !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-icon {
  font-size: 0.92rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--cf-gold) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-date,
:where(#cecp-root, [data-cecp-root]).cf-mode-client #cf-status-label {
  font-size: 0.72rem !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status .cf-dot {
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  padding: 16px 18px !important;
  border-radius: 22px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-device-row {
  align-items: center !important;
  gap: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-note {
  margin-top: 12px !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--single {
  grid-template-columns: 1fr !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side {
  gap: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 560px !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background: var(--cf-surface-strong) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-sub {
  margin-top: 4px !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--cf-border-strong) !important;
  background: var(--cf-blue-soft) !important;
  color: var(--cf-blue) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle-count {
  color: var(--cf-muted) !important;
  font-weight: 600 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-arrow {
  transition: transform 0.18s ease !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle.open .cf-quick-arrow {
  transform: rotate(180deg) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
  position: relative !important;
  inset: auto !important;
  display: none !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 1px solid var(--cf-border) !important;
  border-radius: 18px !important;
  background: var(--cf-surface-strong) !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown::before,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show::before {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
  display: block !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown > .cf-cue-grid,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show > .cf-cue-grid,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  max-height: none !important;
  overflow: visible !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid var(--cf-border) !important;
  background: var(--cf-surface-soft) !important;
  text-align: left !important;
  transform: none !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:hover,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:active {
  border-color: var(--cf-blue) !important;
  background: var(--cf-blue-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: var(--cf-blue-soft) !important;
  flex: 0 0 38px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-label {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--cf-text) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-desc {
  font-size: 0.76rem !important;
  line-height: 1.45 !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-height: 320px !important;
  padding: 8px !important;
  border-radius: 18px !important;
  background: color-mix(in srgb, var(--cf-surface-soft) 84%, var(--cf-bg-deep)) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: min(100%, 88%) !important;
  margin-right: auto !important;
  padding: 12px 14px !important;
  border-radius: 18px 18px 18px 8px !important;
  border: 1px solid var(--cf-border) !important;
  background: var(--cf-surface-soft) !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item.is-outgoing {
  margin-left: auto !important;
  margin-right: 0 !important;
  border-radius: 18px 18px 8px 18px !important;
  border-color: var(--cf-blue) !important;
  background: var(--cf-blue-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-icon {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-body {
  width: 100% !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-meta-row {
  margin-bottom: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-from {
  margin-bottom: 0 !important;
  padding: 6px 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chip,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-read-btn {
  min-height: 28px !important;
  padding: 0 9px !important;
  font-size: 0.68rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-text,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-text {
  font-size: 0.88rem !important;
  line-height: 1.58 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-time,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-time {
  align-self: flex-end !important;
  font-size: 0.68rem !important;
  color: var(--cf-muted-2) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg {
  gap: 6px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
  max-width: min(100%, 88%) !important;
  padding: 12px 14px !important;
  border-radius: 18px 18px 18px 8px !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg.is-mine .cf-room-bubble {
  border-radius: 18px 18px 8px 18px !important;
  background: var(--cf-blue-soft) !important;
  border-color: var(--cf-blue) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-tools-row {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-clear-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input {
  min-height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: var(--cf-surface-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button {
  min-width: 72px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-muted {
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px dashed var(--cf-border) !important;
  color: var(--cf-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-tools {
    justify-content: flex-start !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-pill,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
    padding: 6px 10px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-device-row {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 45 !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36) !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show > .cf-cue-grid {
    max-height: min(52dvh, 420px) !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread {
    min-height: 240px !important;
    max-height: 34dvh !important;
  }
}

@media (max-width: 420px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-date {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-title {
    font-size: 1.08rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-sub {
    font-size: 0.76rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-sub {
    font-size: 0.74rem !important;
  }
}

/* ============================================================
   ▌ CECP — Final Mobile Overrides
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
  width: min(100%, 1480px) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
  grid-template-columns: minmax(420px, 0.92fr) minmax(480px, 1.08fr) !important;
  gap: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  min-height: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-badge-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-device-main {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
  min-height: 180px !important;
  max-height: 30vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
  min-height: 560px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
  min-height: 260px !important;
  max-height: 38vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input {
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 820px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-preview-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-history-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
    min-height: 180px !important;
    max-height: 26vh !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
    min-height: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
    min-height: 220px !important;
    max-height: 32vh !important;
  }
}

@media (max-width: 480px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app {
    overflow-x: hidden !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding-inline: 14px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
    max-width: 100% !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
    font-size: 0.74rem !important;
  }
}

/* ============================================================
   ▌ CECP — Final Mobile Overrides
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
  width: min(100%, 1480px) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
  grid-template-columns: minmax(420px, 0.92fr) minmax(480px, 1.08fr) !important;
  gap: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  min-height: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-badge-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-device-main {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
  min-height: 180px !important;
  max-height: 30vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
  min-height: 560px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
  min-height: 260px !important;
  max-height: 38vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input {
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 820px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-preview-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-history-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
    min-height: 180px !important;
    max-height: 26vh !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
    min-height: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
    min-height: 220px !important;
    max-height: 32vh !important;
  }
}

@media (max-width: 480px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app {
    overflow-x: hidden !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding-inline: 14px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
    max-width: 100% !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
    font-size: 0.74rem !important;
  }
}


/* ============================================================
   ▌ CECP — 手机端优先的通道布局收口
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-badge-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-device-main {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-badge-label {
  margin: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-device-reset-main {
  margin-left: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
  min-height: 180px !important;
  max-height: 30vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
  min-height: 560px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
  min-height: 260px !important;
  max-height: 38vh !important;
}

@media (max-width: 820px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
    grid-template-columns: 1fr !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-preview-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-history-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-note {
    margin-top: 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel-banner {
    padding: 10px 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-head,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-mini-row,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-head,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-main {
    align-items: flex-start !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
    gap: 8px !important;
    margin-top: 10px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input {
    min-height: 42px !important;
    font-size: 16px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose button {
    min-width: 66px !important;
    min-height: 42px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
    min-height: 180px !important;
    max-height: 26vh !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
    min-height: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
    min-height: 220px !important;
    max-height: 32vh !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock .cf-quick-sheet-list {
    max-height: 34vh !important;
  }
}

@media (max-width: 480px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-badge-wrap {
    align-items: flex-start !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-device-reset-main {
    margin-left: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
    font-size: 0.74rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-text {
    font-size: 0.94rem !important;
  }
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input {
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 480px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app {
    overflow-x: hidden !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
    grid-template-columns: 1fr !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose button {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
    max-width: 100% !important;
  }
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-actions {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-actions .cf-clear-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle {
  min-height: 31px !important;
  padding: 0 10px !important;
  gap: 4px !important;
  font-size: 0.7rem !important;
  border-color: rgba(157, 172, 209, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--cf-text) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle .cf-quick-arrow {
  font-size: 0.72rem !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-overlay.show {
  display: block !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-backdrop {
  position: absolute !important;
  inset: 0 !important;
  border: 0 !important;
  background: rgba(4, 7, 12, 0.72) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet {
  position: absolute !important;
  left: 50% !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: min(92vw, 420px) !important;
  max-height: min(70dvh, 620px) !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  background: rgba(17, 20, 26, 0.94) !important;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42) !important;
  overflow: hidden !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-bottom: 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet-kicker {
  color: var(--cf-muted) !important;
  font-size: 0.68rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet-title {
  color: var(--cf-text) !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-close {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--cf-text) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet-list {
  display: grid !important;
  gap: 6px !important;
  max-height: min(58dvh, 520px) !important;
  overflow-y: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--cf-text) !important;
  text-align: left !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item:hover,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item:active {
  background: rgba(255, 255, 255, 0.11) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  font-size: 0.84rem !important;
  flex: 0 0 26px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-label {
  color: var(--cf-text) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-desc {
  color: var(--cf-muted) !important;
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet {
    width: calc(100vw - 16px) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    padding: 10px !important;
    border-radius: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet-list {
    gap: 5px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item {
    min-height: 38px !important;
    padding: 7px 9px !important;
    border-radius: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-label {
    font-size: 0.82rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-desc {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 420px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-date {
    display: inline-flex !important;
    font-size: 0.65rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-item-desc {
    display: none !important;
  }
}

html.cf-page-shell,
body.cf-page-shell {
  margin: 0;
  min-height: 100%;
  background: #090b12;
  /* 锁住 CMS 背景层，防止底层页面继续滚动 */
  overflow: hidden !important;
  overscroll-behavior: none;
}

:where(#cecp-root, [data-cecp-root]) {
  --cf-bg: #090b12;
  --cf-bg-deep: #05060a;
  --cf-surface: rgba(16, 20, 30, 0.82);
  --cf-surface-strong: rgba(12, 16, 24, 0.92);
  --cf-surface-soft: rgba(24, 30, 43, 0.9);
  --cf-border: rgba(157, 172, 209, 0.14);
  --cf-border-strong: rgba(157, 172, 209, 0.24);
  --cf-text: #edf1ff;
  --cf-muted: #8f9bb9;
  --cf-muted-2: #647089;
  --cf-gold: #f3d283;
  --cf-gold-soft: rgba(243, 210, 131, 0.18);
  --cf-blue: #5ba3ff;
  --cf-green: #59d68c;
  --cf-red: #ff6a6a;
  --cf-amber: #ffb156;
  --cf-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
  --cf-shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.25);
  --cf-font-title: 'ZCOOL XiaoWei', serif;
  --cf-font-body: 'Noto Sans SC', sans-serif;
  --cf-radius: 20px;
  --cf-radius-sm: 14px;
  --cf-float-right: 42px;
  --cf-float-bottom: 94px;
  --cf-float-right-auto: var(--cf-float-right);
  --cf-float-bottom-auto: var(--cf-float-bottom);
  --cf-launcher-size: 58px;
  --cf-panel-width: 360px;
  --cf-panel-max-height: 720px;
}

:where(#cecp-root, [data-cecp-root]),
:where(#cecp-root, [data-cecp-root]) * {
  box-sizing: border-box;
}

:where(#cecp-root, [data-cecp-root]) * {
  margin: 0;
  padding: 0;
}

:where(#cecp-root, [data-cecp-root]) {
  position: relative;
  width: 100%;
  color: var(--cf-text);
  font-family: var(--cf-font-body);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page {
  /* ── JS 已把 ROOT 移到 body 直属子节点，这里直接覆盖视口 ── */
  position: fixed;
  inset: 0;
  z-index: 2147483639;
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at top left, rgba(255, 171, 79, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(91, 163, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom center, rgba(89, 214, 140, 0.1), transparent 32%),
    linear-gradient(180deg, #121726 0%, var(--cf-bg) 42%, var(--cf-bg-deep) 100%);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page::before,
:where(#cecp-root, [data-cecp-root]).cf-layout-page::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.12;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page::before {
  top: -140px;
  right: -90px;
  background: #ff9d57;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page::after {
  bottom: -170px;
  left: -110px;
  background: #4a89ff;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating {
  position: fixed;
  right: var(--cf-float-right-auto, var(--cf-float-right));
  bottom: var(--cf-float-bottom-auto, var(--cf-float-bottom));
  z-index: 2147483640;
  width: var(--cf-launcher-size, 58px);
  min-width: var(--cf-launcher-size, 58px);
  min-height: var(--cf-launcher-size, 58px);
  overflow: visible;
  background: none;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: auto;
  isolation: isolate;
}

.cf-stage {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.cf-widget-shell {
  position: relative;
  width: var(--cf-launcher-size, 58px);
  min-height: var(--cf-launcher-size, 58px);
  pointer-events: auto;
}

.cf-launcher {
  position: relative;
  width: var(--cf-launcher-size, 58px);
  height: var(--cf-launcher-size, 58px);
  border: 1px solid rgba(243, 210, 131, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 227, 161, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(14, 20, 30, 0.98), rgba(7, 10, 16, 0.96));
  color: #fff5d8;
  font-size: max(1.1rem, calc(var(--cf-launcher-size, 58px) * 0.42));
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: auto;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 210, 131, 0.32);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(243, 210, 131, 0.08);
}

.cf-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cf-launcher-badge {
  position: absolute;
  top: -3px;
  right: -1px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8b8b, #e33d3d);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(227, 61, 61, 0.35);
}

.cf-widget-mask {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(5, 8, 12, 0.22);
  touch-action: none;
  transition: opacity 0.18s ease;
}

.cf-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(var(--cf-launcher-size, 58px) + 12px);
  width: min(var(--cf-panel-width, 360px), calc(100vw - 12px));
  max-width: calc(100vw - 12px);
  max-height: min(var(--cf-panel-max-height, 720px), calc(100dvh - 28px));
  border: 1px solid rgba(157, 172, 209, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 171, 79, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(91, 163, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 20, 29, 0.98), rgba(8, 10, 16, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

:where(#cecp-root, [data-cecp-root]).cf-widget-open .cf-widget-mask {
  opacity: 1;
  pointer-events: auto;
}

:where(#cecp-root, [data-cecp-root]).cf-widget-open .cf-widget-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cf-widget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(157, 172, 209, 0.12);
  background: rgba(255, 255, 255, 0.015);
}

.cf-widget-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cf-widget-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.cf-widget-kicker {
  color: var(--cf-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cf-widget-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cf-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.ym-lb-open :where(#cecp-root, [data-cecp-root]).cf-layout-floating {
  opacity: 0;
  pointer-events: none;
}

.cf-widget-close:hover {
  color: #fff;
  border-color: rgba(243, 210, 131, 0.22);
  background: rgba(243, 210, 131, 0.06);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cf-tone-default {
  --cf-accent: #f3d283;
  --cf-accent-soft: rgba(243, 210, 131, 0.18);
  --cf-accent-ring: rgba(243, 210, 131, 0.35);
  --cf-accent-ink: #fff7df;
}

.cf-tone-gold {
  --cf-accent: #f3d283;
  --cf-accent-soft: rgba(243, 210, 131, 0.18);
  --cf-accent-ring: rgba(243, 210, 131, 0.35);
  --cf-accent-ink: #fff7df;
}

.cf-tone-orange {
  --cf-accent: #ff9c46;
  --cf-accent-soft: rgba(255, 156, 70, 0.18);
  --cf-accent-ring: rgba(255, 156, 70, 0.34);
  --cf-accent-ink: #fff3e7;
}

.cf-tone-green {
  --cf-accent: #48d080;
  --cf-accent-soft: rgba(72, 208, 128, 0.18);
  --cf-accent-ring: rgba(72, 208, 128, 0.34);
  --cf-accent-ink: #ecfff4;
}

.cf-tone-purple {
  --cf-accent: #a879ff;
  --cf-accent-soft: rgba(168, 121, 255, 0.18);
  --cf-accent-ring: rgba(168, 121, 255, 0.34);
  --cf-accent-ink: #f5ecff;
}

.cf-tone-yellow {
  --cf-accent: #ffd84d;
  --cf-accent-soft: rgba(255, 216, 77, 0.2);
  --cf-accent-ring: rgba(255, 216, 77, 0.36);
  --cf-accent-ink: #fff9dc;
}

.cf-tone-red {
  --cf-accent: #ff6363;
  --cf-accent-soft: rgba(255, 99, 99, 0.18);
  --cf-accent-ring: rgba(255, 99, 99, 0.34);
  --cf-accent-ink: #ffecec;
}

.cf-tone-blue {
  --cf-accent: #62abff;
  --cf-accent-soft: rgba(98, 171, 255, 0.18);
  --cf-accent-ring: rgba(98, 171, 255, 0.34);
  --cf-accent-ink: #edf6ff;
}

.cf-tone-white {
  --cf-accent: #f2efe5;
  --cf-accent-soft: rgba(242, 239, 229, 0.16);
  --cf-accent-ring: rgba(242, 239, 229, 0.34);
  --cf-accent-ink: #fffdf6;
}

.cf-tone-black {
  --cf-accent: #222833;
  --cf-accent-soft: rgba(61, 70, 89, 0.34);
  --cf-accent-ring: rgba(116, 129, 161, 0.24);
  --cf-accent-ink: #edf2ff;
}

.cf-tone-brown {
  --cf-accent: #9f6c46;
  --cf-accent-soft: rgba(159, 108, 70, 0.2);
  --cf-accent-ring: rgba(159, 108, 70, 0.34);
  --cf-accent-ink: #fff1e7;
}

.cf-app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 24px) clamp(14px, 2.8vw, 22px) calc(28px + env(safe-area-inset-bottom));
  gap: 14px;
}

.cf-op {
  width: min(100%, 1480px);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page .cf-client-app {
  width: min(100%, 1280px);
}

.cf-client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
  gap: clamp(14px, 2vw, 20px);
  align-items: start;
}

.cf-client-main,
.cf-client-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-operator.cf-layout-page {
  min-height: 100dvh;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-operator.cf-layout-page .cf-app {
  width: min(100%, 1480px);
  max-width: none;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page:fullscreen {
  width: 100vw;
  height: 100vh;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page:fullscreen .cf-op {
  width: 100%;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-page:fullscreen .cf-app {
  min-height: 100dvh;
  padding: 18px 18px 24px;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-app {
  width: 100%;
  min-height: 0;
  padding: 14px;
  gap: 12px;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-op {
  width: 100%;
}

.cf-header,
.cf-panel,
.cf-setup-card,
.cf-client-hero,
.cf-bcast {
  backdrop-filter: blur(18px);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-header,
:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-panel,
:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-setup-card,
:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-client-hero,
:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-bcast {
  backdrop-filter: none;
}

.cf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  box-shadow: var(--cf-shadow-soft);
}

.cf-header-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cf-title {
  font-family: var(--cf-font-title);
  font-size: 1.35rem;
  color: var(--cf-gold);
  letter-spacing: 0.01em;
}

.cf-header-sub {
  color: var(--cf-muted);
  font-size: 0.8rem;
}

.cf-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-screen-btn {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  color: var(--cf-text);
  font-family: var(--cf-font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cf-screen-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 210, 131, 0.24);
  background: rgba(243, 210, 131, 0.08);
}

.cf-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--cf-muted);
}

.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf-red);
  transition: background 0.3s, box-shadow 0.3s;
}

.cf-dot.online {
  background: var(--cf-green);
  box-shadow: 0 0 0 5px rgba(89, 214, 140, 0.12), 0 0 12px rgba(89, 214, 140, 0.4);
  animation: cf-pulse 2s infinite;
}

@keyframes cf-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(89, 214, 140, 0.25), 0 0 12px rgba(89, 214, 140, 0.4);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(89, 214, 140, 0), 0 0 16px rgba(89, 214, 140, 0.2);
  }
}

.cf-setup-card {
  width: min(100%, 780px);
  margin: auto;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--cf-surface-strong);
  border: 1px solid var(--cf-border-strong);
  border-radius: 30px;
  box-shadow: var(--cf-shadow);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-setup-card {
  width: 100%;
  padding: 20px 18px;
  border-radius: 22px;
}

.cf-setup-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(243, 210, 131, 0.2);
  border-radius: 999px;
  background: rgba(243, 210, 131, 0.08);
  color: var(--cf-gold);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.cf-setup-card h2 {
  margin-bottom: 10px;
  font-family: var(--cf-font-title);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: #fff5dc;
}

.cf-setup-sub {
  max-width: 520px;
  margin-bottom: 22px;
  color: var(--cf-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.cf-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cf-preset-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 16px;
  overflow: hidden;
  background: rgba(19, 23, 34, 0.95);
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  color: var(--cf-text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cf-preset-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cf-accent-soft), transparent 55%);
  opacity: 0.9;
}

.cf-preset-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cf-accent-ring);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.cf-preset-btn.sel {
  border-color: var(--cf-accent-ring);
  box-shadow: 0 0 0 1px var(--cf-accent-ring), 0 18px 30px rgba(0, 0, 0, 0.28);
  background: rgba(23, 29, 42, 0.98);
}

.cf-preset-led,
.cf-preset-mic,
.cf-preset-copy {
  position: relative;
  z-index: 1;
}

.cf-preset-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cf-accent);
  box-shadow: 0 0 0 5px var(--cf-accent-soft), 0 0 12px var(--cf-accent-ring);
  flex-shrink: 0;
}

.cf-preset-mic {
  font-size: 1.5rem;
}

.cf-preset-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cf-preset-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cf-accent-ink);
  line-height: 1.3;
}

.cf-preset-sub {
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--cf-muted);
}

.cf-selected {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  background: rgba(17, 22, 31, 0.72);
}

.cf-selected.show {
  display: flex;
}

.cf-selected-label,
.cf-badge-label,
.cf-panel-title,
.cf-section-label {
  letter-spacing: 0.06em;
}

.cf-selected-label {
  color: var(--cf-muted);
  font-size: 0.72rem;
}

.cf-btn-primary {
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ffe3a1, #f3c95f);
  border: none;
  border-radius: 16px;
  color: #2a1b00;
  font-family: var(--cf-font-title);
  font-size: 1.28rem;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(243, 201, 95, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.cf-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.cf-identity-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--cf-accent-soft), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--cf-accent-ring);
  border-radius: 999px;
  color: var(--cf-accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.cf-identity-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cf-accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px var(--cf-accent-soft);
  flex-shrink: 0;
}

.cf-identity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 0.96rem;
  flex-shrink: 0;
}

.cf-identity-text {
  display: inline-block;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.cf-selected-pill,
.cf-badge,
.cf-member-pill,
.cf-log-from {
  font-family: var(--cf-font-body);
}

.cf-client-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(243, 210, 131, 0.08), transparent 45%),
    var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: 24px;
  box-shadow: var(--cf-shadow-soft);
}

.cf-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-badge-label {
  color: var(--cf-muted);
  font-size: 0.72rem;
}

.cf-badge {
  padding: 12px 16px;
}

.cf-client-note {
  color: var(--cf-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.cf-device-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(243, 210, 131, 0.18);
  background: rgba(243, 210, 131, 0.08);
}

.cf-device-note.is-subtle {
  border-color: var(--cf-border);
  background: rgba(255, 255, 255, 0.03);
}

.cf-device-note-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cf-text);
  font-size: 0.8rem;
  line-height: 1.55;
}

.cf-device-note-pill {
  padding: 6px 10px;
}

.cf-device-reset-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 131, 0.24);
  background: rgba(243, 210, 131, 0.1);
  color: #fff6de;
  font-family: var(--cf-font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-device-reset-btn:hover {
  transform: translateY(-1px);
  background: rgba(243, 210, 131, 0.16);
}

.cf-bcast {
  padding: 14px 18px;
  background:
    linear-gradient(135deg, rgba(91, 163, 255, 0.18), transparent 65%),
    rgba(16, 23, 34, 0.96);
  border: 1px solid rgba(91, 163, 255, 0.32);
  border-radius: 18px;
  animation: cf-slidein 0.3s ease;
  box-shadow: var(--cf-shadow-soft);
}

@keyframes cf-slidein {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cf-bcast-popup {
  position: fixed;
  left: 50%;
  top: 16px;
  width: min(560px, calc(100vw - 24px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(98, 171, 255, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(91, 163, 255, 0.16), transparent 54%),
    rgba(12, 18, 27, 0.96);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateX(-50%) translateY(-16px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2147483641;
}

.cf-bcast-popup[hidden] {
  display: none !important;
}

.cf-bcast-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cf-bcast-popup-head {
  color: #9ec6ff;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.cf-bcast-popup-text {
  color: var(--cf-text);
  font-size: 0.96rem;
  line-height: 1.6;
}

.cf-bcast-popup-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cf-bcast-popup-time {
  color: var(--cf-muted-2);
  font-size: 0.76rem;
}

.cf-bcast-popup-read {
  border: 1px solid rgba(243, 210, 131, 0.22);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 16px;
  background: rgba(243, 210, 131, 0.08);
  color: #fff5d8;
  font-family: var(--cf-font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-bcast-popup-read:hover {
  transform: translateY(-1px);
  background: rgba(243, 210, 131, 0.14);
  border-color: rgba(243, 210, 131, 0.3);
}

.cf-section-label {
  margin-top: 2px;
  margin-bottom: 2px;
  color: var(--cf-muted);
  font-size: 0.72rem;
}

.cf-cue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cf-cue-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  min-height: 92px;
  padding: 16px 15px;
  background:
    linear-gradient(145deg, rgba(243, 210, 131, 0.08), transparent 42%),
    var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  color: var(--cf-text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-cue-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 210, 131, 0.28);
  background:
    linear-gradient(145deg, rgba(243, 210, 131, 0.12), transparent 42%),
    var(--cf-surface-soft);
}

.cf-cue-btn:active {
  transform: scale(0.98);
}

.cf-cue-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.cf-cue-btn:active::after {
  opacity: 1;
}

.cf-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cf-cue-label,
.cf-cue-desc {
  position: relative;
  z-index: 1;
}

.cf-cue-label {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.cf-cue-desc {
  margin-top: 4px;
  color: var(--cf-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.cf-custom-area {
  display: flex;
  gap: 10px;
}

.cf-custom-area input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  background: rgba(12, 16, 24, 0.96);
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  color: var(--cf-text);
  font-family: var(--cf-font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: manipulation;
}

.cf-custom-area input:focus {
  border-color: rgba(243, 210, 131, 0.3);
  box-shadow: 0 0 0 4px rgba(243, 210, 131, 0.08);
}

.cf-custom-area input::placeholder {
  color: var(--cf-muted-2);
}

.cf-custom-area button {
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: linear-gradient(135deg, rgba(243, 210, 131, 0.18), rgba(243, 210, 131, 0.08));
  border: 1px solid rgba(243, 210, 131, 0.24);
  border-radius: 16px;
  color: var(--cf-gold);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-custom-area button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(243, 210, 131, 0.28), rgba(243, 210, 131, 0.12));
}

.cf-flash {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2147483642;
  padding: 10px 16px;
  background: rgba(14, 18, 27, 0.96);
  border: 1px solid var(--cf-border-strong);
  border-radius: 999px;
  color: var(--cf-text);
  font-size: 0.86rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
  box-shadow: var(--cf-shadow-soft);
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-flash {
  left: auto;
  right: 18px;
  bottom: 18px;
  transform: none;
}

.cf-flash.show {
  opacity: 1;
}

.cf-flash.is-error {
  border-color: rgba(255, 106, 106, 0.4);
  color: #ffdede;
}

.cf-op-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cf-stat-card {
  padding: 18px 18px 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 46%),
    var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: 22px;
  box-shadow: var(--cf-shadow-soft);
}

.cf-stat-alert {
  background:
    linear-gradient(145deg, rgba(255, 99, 99, 0.12), transparent 46%),
    var(--cf-surface);
}

.cf-stat-label {
  color: var(--cf-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.cf-stat-value {
  margin-top: 8px;
  color: #fff6de;
  font-family: var(--cf-font-title);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.cf-op-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.cf-panel {
  padding: 16px;
  background: var(--cf-surface);
  border: 1px solid var(--cf-border);
  border-radius: 24px;
  box-shadow: var(--cf-shadow-soft);
}

.cf-panel-title {
  margin-bottom: 12px;
  color: var(--cf-muted);
  font-size: 0.72rem;
}

.cf-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cf-clear-btn {
  min-height: 36px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  color: var(--cf-muted);
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-clear-btn:hover {
  color: #ffd8d8;
  border-color: rgba(255, 106, 106, 0.28);
}

.cf-panel-members {
  min-height: 260px;
}

.cf-member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-member-empty,
.cf-log-empty {
  color: var(--cf-muted);
  font-size: 0.8rem;
}

.cf-member-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-member-item .cf-member-pill {
  flex: 1;
}

.cf-kick-btn {
  flex-shrink: 0;
  min-height: 32px;
  padding: 4px 10px;
  background: rgba(255, 106, 106, 0.07);
  border: 1px solid rgba(255, 106, 106, 0.22);
  border-radius: 8px;
  color: var(--cf-red);
  font-size: 0.72rem;
  font-family: var(--cf-font-body);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}

.cf-kick-btn:hover {
  background: rgba(255, 106, 106, 0.14);
  border-color: rgba(255, 106, 106, 0.40);
  transform: translateY(-1px);
}

.cf-kick-btn:active {
  transform: translateY(0);
}

.cf-member-pill {
  width: 100%;
  justify-content: flex-start;
  padding: 11px 14px;
  border-radius: 16px;
}

.cf-panel-log {
  min-height: 520px;
}

.cf-panel-client-log {
  min-height: 240px;
}

.cf-panel-member-chat {
  min-height: 340px;
}

.cf-member-chat-note {
  margin-bottom: 12px;
  color: var(--cf-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.cf-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.cf-log-client {
  max-height: 320px;
}

.cf-log-member-chat {
  max-height: 380px;
  gap: 12px;
}

:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-panel-log,
:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-panel-client-log,
:where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-panel-member-chat {
  min-height: 0;
}

.cf-log::-webkit-scrollbar {
  width: 5px;
}

.cf-log::-webkit-scrollbar-thumb {
  background: rgba(157, 172, 209, 0.18);
  border-radius: 999px;
}

.cf-log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--cf-surface-soft);
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  animation: cf-slidein 0.2s ease;
}

.cf-log-item.is-outgoing {
  border-color: rgba(243, 210, 131, 0.18);
}

.cf-log-item.is-incoming {
  border-color: rgba(98, 171, 255, 0.18);
}

.cf-log-issue {
  border-color: rgba(255, 177, 86, 0.28);
}

.cf-log-chat {
  border-color: rgba(98, 171, 255, 0.24);
}

.cf-log-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  flex-shrink: 0;
}

.cf-log-body {
  flex: 1;
  min-width: 0;
}

.cf-log-from {
  margin-bottom: 8px;
  padding: 8px 12px;
}

.cf-log-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cf-log-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--cf-border);
  color: var(--cf-muted);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.02);
}

.cf-log-chip-in {
  border-color: rgba(98, 171, 255, 0.2);
  color: #b7d6ff;
}

.cf-log-chip-chat {
  border-color: rgba(98, 171, 255, 0.22);
  color: #b7d6ff;
}

.cf-log-chip-bcast {
  border-color: rgba(243, 210, 131, 0.26);
  color: #f3d283;
}

.cf-log-broadcast {
  border-color: rgba(243, 210, 131, 0.20);
}

.cf-log-read-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 210, 131, 0.22);
  background: rgba(243, 210, 131, 0.08);
  color: #fff5d8;
  font-size: 0.76rem;
  font-family: var(--cf-font-body);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-log-read-btn:hover {
  transform: translateY(-1px);
  background: rgba(243, 210, 131, 0.14);
}

.cf-log-text {
  display: block;
  color: var(--cf-text);
  font-size: 0.88rem;
  line-height: 1.6;
  word-break: break-word;
}

.cf-log-time {
  margin-top: 2px;
  color: var(--cf-muted-2);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.cf-room-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  animation: cf-slidein 0.2s ease;
}

.cf-room-msg.is-mine {
  align-items: flex-end;
}

.cf-room-msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cf-room-from {
  padding: 7px 11px;
}

.cf-room-time {
  color: var(--cf-muted-2);
  font-size: 0.72rem;
}

.cf-room-bubble {
  max-width: min(100%, 440px);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--cf-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--cf-surface-soft);
  box-shadow: var(--cf-shadow-soft);
}

.cf-room-msg.is-mine .cf-room-bubble {
  border-color: rgba(243, 210, 131, 0.24);
  background:
    linear-gradient(145deg, rgba(243, 210, 131, 0.08), transparent 55%),
    rgba(29, 24, 12, 0.86);
}

.cf-room-text {
  display: block;
  color: var(--cf-text);
  font-size: 0.88rem;
  line-height: 1.6;
  word-break: break-word;
}

.cf-panel-bcast {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 168px;
}

.cf-bcast-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-bcast-preset {
  min-height: 38px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  color: var(--cf-text);
  font-family: var(--cf-font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-bcast-preset:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 210, 131, 0.24);
  background: rgba(243, 210, 131, 0.08);
}

@media (max-width: 860px) {
  :where(#cecp-root, [data-cecp-root]).cf-layout-page .cf-client-app,
  :where(#cecp-root, [data-cecp-root]).cf-mode-operator.cf-layout-page .cf-app {
    width: min(100%, 760px);
  }

  .cf-client-grid,
  .cf-op-summary {
    grid-template-columns: 1fr;
  }

  .cf-op-row {
    grid-template-columns: 1fr;
  }

  .cf-room-bubble {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .cf-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cf-cue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  :where(#cecp-root, [data-cecp-root]).cf-layout-page .cf-app {
    padding: 14px 12px 26px;
  }

  .cf-header {
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .cf-title {
    font-size: 1.16rem;
  }

  .cf-header-tools {
    width: 100%;
    justify-content: space-between;
  }

  .cf-setup-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .cf-preset-grid {
    grid-template-columns: 1fr;
  }

  :where(#cecp-root, [data-cecp-root]).cf-layout-floating {
    --cf-float-right: 18px;
    --cf-float-bottom: 80px;
  }

  .cf-widget-panel {
    width: min(var(--cf-panel-width, calc(100vw - 22px)), calc(100vw - 22px));
    max-height: min(var(--cf-panel-max-height, 540px), calc(100dvh - 20px));
  }

  .cf-bcast-popup {
    top: 12px;
    width: min(560px, calc(100vw - 12px));
  }
}

/* ============================================================
   ▌ CECP — 全屏浮动面板扩展
   用法：根元素加 data-fullscreen="1"
   ============================================================ */

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-widget-panel {
  position: fixed;
  inset: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100dvh !important;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  transform: translateY(100%);
  transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-widget-open
  .cf-widget-panel {
  transform: translateY(0) !important;
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-widget-open
  .cf-widget-mask {
  background: rgba(3, 5, 9, 0.62);
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-widget-bar {
  padding-top: max(14px, env(safe-area-inset-top));
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-widget-panel .cf-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-widget-bar,
:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-stage > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-panel-log,
:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-panel-client-log,
:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-panel-member-chat {
  min-height: 0;
  flex: 1;
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-log {
  max-height: none;
  flex: 1;
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-flash {
  left: 50%;
  right: auto;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
}

/* ============================================================
   ▌ CECP — 浅色主题（自动跟随系统）
   原来的深色主题保持默认；以下样式在浅色模式下自动覆盖
   ============================================================ */

@media (prefers-color-scheme: light) {

  /* 页面壳背景 */
  html.cf-page-shell,
  body.cf-page-shell {
    background: #f0ece3;
  }

  html.cf-intercom-open,
  html.cf-intercom-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  /* ── 全局 CSS 变量覆盖 ── */
  :where(#cecp-root, [data-cecp-root]) {
    --cf-bg:           #f0ece3;
    --cf-bg-deep:      #e6e0d4;
    --cf-surface:      rgba(255, 252, 246, 0.86);
    --cf-surface-strong: rgba(255, 253, 249, 0.96);
    --cf-surface-soft: rgba(253, 250, 244, 0.92);
    --cf-border:       rgba(110, 95, 70, 0.16);
    --cf-border-strong: rgba(110, 95, 70, 0.28);
    --cf-text:         #18130a;
    --cf-muted:        #6b5c41;
    --cf-muted-2:      #9e8a6a;
    --cf-gold:         #9a6b00;
    --cf-gold-soft:    rgba(154, 107, 0, 0.12);
    --cf-blue:         #1d62b8;
    --cf-green:        #1a8048;
    --cf-red:          #bf2e1f;
    --cf-amber:        #b06a00;
    --cf-shadow:       0 30px 60px rgba(0, 0, 0, 0.10);
    --cf-shadow-soft:  0 18px 38px rgba(0, 0, 0, 0.07);
  }

  /* ── 页面布局背景渐变 ── */
  :where(#cecp-root, [data-cecp-root]).cf-layout-page {
    background:
      radial-gradient(circle at top left,  rgba(220, 165, 60, 0.14),  transparent 30%),
      radial-gradient(circle at top right, rgba(70, 130, 210, 0.10),  transparent 28%),
      radial-gradient(circle at bottom center, rgba(50, 180, 100, 0.07), transparent 32%),
      linear-gradient(180deg, #ede8dc 0%, var(--cf-bg) 42%, var(--cf-bg-deep) 100%) !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-layout-page::before {
    background: #e8a030;
    opacity: 0.10;
  }
  :where(#cecp-root, [data-cecp-root]).cf-layout-page::after {
    background: #4080e0;
    opacity: 0.09;
  }

  /* ── 浮动启动按钮 ── */
  .cf-launcher {
    border-color: rgba(154, 107, 0, 0.22);
    background:
      radial-gradient(circle at 30% 25%, rgba(255, 220, 130, 0.28), transparent 36%),
      linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(248, 243, 228, 0.96));
    color: #6b3d00;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
  }
  .cf-launcher:hover {
    border-color: rgba(154, 107, 0, 0.40);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(154, 107, 0, 0.10);
  }

  /* ── 浮动面板 ── */
  .cf-widget-panel {
    border-color: rgba(110, 95, 70, 0.18);
    background:
      radial-gradient(circle at top left,  rgba(220, 165, 60, 0.10), transparent 34%),
      radial-gradient(circle at top right, rgba(70, 130, 210, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(255, 252, 245, 0.99), rgba(250, 246, 238, 0.99));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
  }

  /* 面板顶栏 */
  .cf-widget-bar {
    border-bottom-color: rgba(110, 95, 70, 0.14);
    background: rgba(0, 0, 0, 0.018);
  }

  /* 关闭按钮 */
  .cf-widget-close {
    border-color: var(--cf-border);
    background: rgba(0, 0, 0, 0.03);
    color: var(--cf-muted);
  }
  .cf-widget-close:hover {
    color: #18130a;
    border-color: rgba(154, 107, 0, 0.30);
    background: rgba(154, 107, 0, 0.07);
  }

  /* 遮罩 */
  .cf-widget-mask {
    background: rgba(40, 30, 10, 0.18);
  }

  /* ── 卡片 / 面板 通用背景 ── */
  .cf-header {
    background: var(--cf-surface);
    border-color: var(--cf-border);
  }

  .cf-setup-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)),
      var(--cf-surface-strong);
    border-color: var(--cf-border-strong);
  }

  .cf-setup-card h2 {
    color: #2a1c04;
  }

  .cf-setup-kicker {
    border-color: rgba(154, 107, 0, 0.22);
    background: rgba(154, 107, 0, 0.08);
    color: var(--cf-gold);
  }

  /* ── 选项按钮（乐器 / 设备） ── */
  .cf-preset-btn {
    background: rgba(248, 244, 236, 0.98);
    border-color: var(--cf-border);
  }
  .cf-preset-btn:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
  }
  .cf-preset-btn.sel {
    background: rgba(255, 252, 242, 0.99);
  }

  /* 提示按钮 */
  .cf-cue-btn {
    background:
      linear-gradient(145deg, rgba(154, 107, 0, 0.06), transparent 42%),
      var(--cf-surface);
    border-color: var(--cf-border);
  }
  .cf-cue-btn:hover {
    border-color: rgba(154, 107, 0, 0.26);
    background:
      linear-gradient(145deg, rgba(154, 107, 0, 0.10), transparent 42%),
      var(--cf-surface-soft);
  }

  /* 主操作按钮保持金色，稍微加深 */
  .cf-btn-primary {
    background: linear-gradient(135deg, #ffe09a, #e8b030);
    color: #2a1600;
    box-shadow: 0 18px 30px rgba(200, 150, 0, 0.18);
  }

  /* ── 英雄区 ── */
  .cf-client-hero {
    background:
      linear-gradient(145deg, rgba(154, 107, 0, 0.07), transparent 45%),
      var(--cf-surface);
    border-color: var(--cf-border);
  }

  /* 设备提示条 */
  .cf-device-note {
    border-color: rgba(154, 107, 0, 0.20);
    background: rgba(154, 107, 0, 0.07);
  }
  .cf-device-note.is-subtle {
    border-color: var(--cf-border);
    background: rgba(0, 0, 0, 0.025);
  }
  .cf-device-reset-btn {
    border-color: rgba(154, 107, 0, 0.26);
    background: rgba(154, 107, 0, 0.09);
    color: #5a3200;
  }
  .cf-device-reset-btn:hover {
    background: rgba(154, 107, 0, 0.15);
  }

  /* ── 广播横幅 ── */
  .cf-bcast {
    background:
      linear-gradient(135deg, rgba(29, 98, 184, 0.12), transparent 65%),
      rgba(240, 245, 255, 0.96);
    border-color: rgba(29, 98, 184, 0.26);
  }

  /* 广播弹窗 */
  .cf-bcast-popup {
    background:
      linear-gradient(145deg, rgba(70, 130, 210, 0.10), transparent 54%),
      rgba(248, 251, 255, 0.98);
    border-color: rgba(29, 98, 184, 0.22);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
  }
  .cf-bcast-popup-head {
    color: #1a60b0;
  }
  .cf-bcast-popup-read {
    border-color: rgba(154, 107, 0, 0.24);
    background: rgba(154, 107, 0, 0.08);
    color: #4a2800;
  }
  .cf-bcast-popup-read:hover {
    background: rgba(154, 107, 0, 0.14);
    border-color: rgba(154, 107, 0, 0.32);
  }

  /* 广播预设按钮 */
  .cf-bcast-preset {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--cf-border);
    color: var(--cf-text);
  }
  .cf-bcast-preset:hover {
    border-color: rgba(154, 107, 0, 0.26);
    background: rgba(154, 107, 0, 0.07);
  }

  /* ── 日志条目 ── */
  .cf-log-item {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.6), transparent 45%),
      var(--cf-surface-soft);
    border-color: var(--cf-border);
  }
  .cf-log-item.is-outgoing {
    border-color: rgba(154, 107, 0, 0.20);
  }
  .cf-log-item.is-incoming {
    border-color: rgba(29, 98, 184, 0.18);
  }
  .cf-log-issue {
    border-color: rgba(180, 100, 0, 0.26);
  }
  .cf-log-chat {
    border-color: rgba(29, 98, 184, 0.22);
  }
  .cf-log-icon {
    background: rgba(0, 0, 0, 0.04);
  }
  .cf-log-chip {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--cf-border);
    color: var(--cf-muted);
  }
  .cf-log-chip-in,
  .cf-log-chip-chat {
    border-color: rgba(29, 98, 184, 0.20);
    color: #1a5aa8;
  }
  .cf-log-read-btn {
    border-color: rgba(154, 107, 0, 0.24);
    background: rgba(154, 107, 0, 0.07);
    color: #4a2800;
  }
  .cf-log-read-btn:hover {
    background: rgba(154, 107, 0, 0.13);
  }

  /* 聊天气泡 */
  .cf-room-bubble {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.6), transparent 45%),
      var(--cf-surface-soft);
    border-color: var(--cf-border);
  }
  .cf-room-msg.is-mine .cf-room-bubble {
    border-color: rgba(154, 107, 0, 0.24);
    background:
      linear-gradient(145deg, rgba(154, 107, 0, 0.08), transparent 55%),
      rgba(255, 250, 238, 0.92);
  }

  /* ── 自定义输入框 ── */
  .cf-custom-area input {
    background: rgba(255, 252, 244, 0.98);
    border-color: var(--cf-border);
    color: var(--cf-text);
  }
  .cf-custom-area input::placeholder {
    color: var(--cf-muted-2);
  }
  .cf-custom-area input:focus {
    border-color: rgba(154, 107, 0, 0.32);
    box-shadow: 0 0 0 4px rgba(154, 107, 0, 0.08);
  }
  .cf-custom-area button {
    background: linear-gradient(135deg, rgba(154, 107, 0, 0.14), rgba(154, 107, 0, 0.07));
    border-color: rgba(154, 107, 0, 0.26);
    color: #7a4800;
  }
  .cf-custom-area button:hover {
    background: linear-gradient(135deg, rgba(154, 107, 0, 0.22), rgba(154, 107, 0, 0.12));
  }

  /* ── 浮动通知 Toast ── */
  .cf-flash {
    background: rgba(255, 252, 244, 0.98);
    border-color: var(--cf-border-strong);
    color: var(--cf-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }
  .cf-flash.is-error {
    border-color: rgba(191, 46, 31, 0.36);
    color: #8a1a10;
  }

  /* ── 统计卡片（调音台视图） ── */
  .cf-stat-card {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 46%),
      var(--cf-surface);
    border-color: var(--cf-border);
  }
  .cf-stat-alert {
    background:
      linear-gradient(145deg, rgba(191, 46, 31, 0.08), transparent 46%),
      var(--cf-surface);
  }
  .cf-stat-value {
    color: #2a1600;
  }

  .cf-panel {
    background: var(--cf-surface);
    border-color: var(--cf-border);
  }

  /* ── 成员 pill ── */
  .cf-member-pill {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--cf-border);
  }

  /* ── 操作按钮通用 ── */
  .cf-screen-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--cf-border);
    color: var(--cf-text);
  }
  .cf-screen-btn:hover {
    border-color: rgba(154, 107, 0, 0.26);
    background: rgba(154, 107, 0, 0.07);
  }

  .cf-clear-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--cf-border);
    color: var(--cf-muted);
  }
  .cf-clear-btn:hover {
    color: #8a1a10;
    border-color: rgba(191, 46, 31, 0.26);
  }

  /* 已选身份徽章 */
  .cf-selected {
    background: rgba(0, 0, 0, 0.025);
    border-color: var(--cf-border);
  }

  /* 在线状态点颜色不变（绿 / 红本身对比度足够） */

  /* 全屏模式：浅色遮罩加深一点 */
  :where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-widget-open
    .cf-widget-mask {
    background: rgba(30, 20, 5, 0.28);
  }

} /* end @media (prefers-color-scheme: light) */

/* ============================================================
   ▌ CECP — 设备占用状态样式
   ============================================================ */

.cf-preset-btn.taken {
  opacity: 0.44;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
  border-style: dashed;
}

.cf-preset-btn.taken .cf-preset-led {
  background: var(--cf-muted-2);
  box-shadow: none;
}

.cf-preset-btn.taken .cf-preset-sub {
  color: var(--cf-red);
  opacity: 0.8;
}

.cf-preset-taken-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 106, 106, 0.18);
  border: 1px solid rgba(255, 106, 106, 0.3);
  color: var(--cf-red);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  z-index: 2;
}

@media (prefers-color-scheme: light) {
  .cf-preset-btn.taken {
    border-color: rgba(150, 150, 150, 0.3);
  }
  .cf-preset-taken-badge {
    background: rgba(191, 46, 31, 0.10);
    border-color: rgba(191, 46, 31, 0.24);
    color: var(--cf-red);
  }
}

/* ============================================================
   CECP Dashboard Fusion UI — merged from cecp-sound-dashboard.html
   Visual-only override: keeps existing JS/API, auto light/dark follows device.
   ============================================================ */
:where(#cecp-root,[data-cecp-root]){
  color-scheme:light dark;
  --cf-font-body:'Noto Sans SC',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --cf-font-title:'Playfair Display','ZCOOL XiaoWei',serif;
  --cf-font-mono:'DM Mono',ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  --cf-radius:16px;--cf-radius-sm:10px;--cf-dash-radius:16px;--cf-dash-radius-sm:10px;
}
@media(prefers-color-scheme:dark){
  html.cf-page-shell,body.cf-page-shell{background:#090b12!important}
  :where(#cecp-root,[data-cecp-root]){--cf-bg:#090b12;--cf-bg-deep:#05060a;--cf-surface:rgba(16,20,30,.88);--cf-surface-strong:rgba(13,17,25,.96);--cf-surface-soft:rgba(24,30,43,.94);--cf-border:rgba(157,172,209,.15);--cf-border-strong:rgba(157,172,209,.24);--cf-text:#edf1ff;--cf-muted:#9aa6c2;--cf-muted-2:#68738b;--cf-gold:#f3d283;--cf-gold-soft:rgba(243,210,131,.16);--cf-green:#59d68c;--cf-green-soft:rgba(89,214,140,.14);--cf-blue:#5ba3ff;--cf-blue-soft:rgba(91,163,255,.14);--cf-red:#ff6a6a;--cf-red-soft:rgba(255,106,106,.13);--cf-shadow:0 30px 60px rgba(0,0,0,.40);--cf-shadow-soft:0 18px 38px rgba(0,0,0,.26)}
  :where(#cecp-root,[data-cecp-root]).cf-layout-page{background:radial-gradient(circle at 10% 0%,rgba(255,156,70,.18),transparent 31%),radial-gradient(circle at 95% 6%,rgba(91,163,255,.16),transparent 30%),radial-gradient(circle at 52% 100%,rgba(89,214,140,.10),transparent 34%),linear-gradient(180deg,#111827 0%,#090b12 48%,#05060a 100%)!important}
}
@media(prefers-color-scheme:light){
  html.cf-page-shell,body.cf-page-shell{background:#f5f3ef!important}
  :where(#cecp-root,[data-cecp-root]){--cf-bg:#f5f3ef;--cf-bg-deep:#edeae4;--cf-surface:rgba(255,255,255,.92);--cf-surface-strong:rgba(255,255,255,.98);--cf-surface-soft:rgba(250,249,247,.96);--cf-border:#e4e0d8;--cf-border-strong:rgba(120,106,82,.24);--cf-text:#1a1916;--cf-muted:#6b6660;--cf-muted-2:#9e9990;--cf-gold:#c9922a;--cf-gold-soft:#f5e6cc;--cf-green:#3a7d5e;--cf-green-soft:#d4ede3;--cf-blue:#2e6da4;--cf-blue-soft:#d5e8f5;--cf-red:#c0392b;--cf-red-soft:#fde8e6;--cf-shadow:0 20px 50px rgba(34,27,14,.11);--cf-shadow-soft:0 4px 24px rgba(34,27,14,.09)}
  :where(#cecp-root,[data-cecp-root]).cf-layout-page{background:radial-gradient(circle at 7% 0%,rgba(201,146,42,.15),transparent 30%),radial-gradient(circle at 92% 8%,rgba(46,109,164,.10),transparent 31%),radial-gradient(circle at 50% 100%,rgba(58,125,94,.08),transparent 34%),linear-gradient(180deg,#faf8f3 0%,#f5f3ef 46%,#edeae4 100%)!important}
}
:where(html.dark, html[data-theme="dark"], html[data-color-mode="dark"], body.dark, body[data-theme="dark"], body[data-color-mode="dark"]) :where(#cecp-root,[data-cecp-root]),
:where(#cecp-root,[data-cecp-root]).cf-theme-dark,
:where(#cecp-root,[data-cecp-root])[data-theme="dark"],
:where(#cecp-root,[data-cecp-root])[data-color-mode="dark"]{color-scheme:dark;--cf-bg:#090b12;--cf-bg-deep:#05060a;--cf-surface:rgba(16,20,30,.88);--cf-surface-strong:rgba(13,17,25,.96);--cf-surface-soft:rgba(24,30,43,.94);--cf-border:rgba(157,172,209,.15);--cf-border-strong:rgba(157,172,209,.24);--cf-text:#edf1ff;--cf-muted:#9aa6c2;--cf-muted-2:#68738b;--cf-gold:#f3d283;--cf-gold-soft:rgba(243,210,131,.16);--cf-green:#59d68c;--cf-green-soft:rgba(89,214,140,.14);--cf-blue:#5ba3ff;--cf-blue-soft:rgba(91,163,255,.14);--cf-red:#ff6a6a;--cf-red-soft:rgba(255,106,106,.13);--cf-shadow:0 30px 60px rgba(0,0,0,.40);--cf-shadow-soft:0 18px 38px rgba(0,0,0,.26)}
:where(html.light, html[data-theme="light"], html[data-color-mode="light"], body.light, body[data-theme="light"], body[data-color-mode="light"]) :where(#cecp-root,[data-cecp-root]),
:where(#cecp-root,[data-cecp-root]).cf-theme-light,
:where(#cecp-root,[data-cecp-root])[data-theme="light"],
:where(#cecp-root,[data-cecp-root])[data-color-mode="light"]{color-scheme:light;--cf-bg:#f5f3ef;--cf-bg-deep:#edeae4;--cf-surface:rgba(255,255,255,.92);--cf-surface-strong:rgba(255,255,255,.98);--cf-surface-soft:rgba(250,249,247,.96);--cf-border:#e4e0d8;--cf-border-strong:rgba(120,106,82,.24);--cf-text:#1a1916;--cf-muted:#6b6660;--cf-muted-2:#9e9990;--cf-gold:#c9922a;--cf-gold-soft:#f5e6cc;--cf-green:#3a7d5e;--cf-green-soft:#d4ede3;--cf-blue:#2e6da4;--cf-blue-soft:#d5e8f5;--cf-red:#c0392b;--cf-red-soft:#fde8e6;--cf-shadow:0 20px 50px rgba(34,27,14,.11);--cf-shadow-soft:0 4px 24px rgba(34,27,14,.09)}
:where(html.dark, html[data-theme="dark"], html[data-color-mode="dark"], body.dark, body[data-theme="dark"], body[data-color-mode="dark"]) :where(#cecp-root,[data-cecp-root]).cf-layout-page,
:where(#cecp-root,[data-cecp-root]).cf-theme-dark.cf-layout-page,
:where(#cecp-root,[data-cecp-root])[data-theme="dark"].cf-layout-page,
:where(#cecp-root,[data-cecp-root])[data-color-mode="dark"].cf-layout-page{background:radial-gradient(circle at 10% 0%,rgba(255,156,70,.18),transparent 31%),radial-gradient(circle at 95% 6%,rgba(91,163,255,.16),transparent 30%),radial-gradient(circle at 52% 100%,rgba(89,214,140,.10),transparent 34%),linear-gradient(180deg,#111827 0%,#090b12 48%,#05060a 100%)!important}
:where(html.light, html[data-theme="light"], html[data-color-mode="light"], body.light, body[data-theme="light"], body[data-color-mode="light"]) :where(#cecp-root,[data-cecp-root]).cf-layout-page,
:where(#cecp-root,[data-cecp-root]).cf-theme-light.cf-layout-page,
:where(#cecp-root,[data-cecp-root])[data-theme="light"].cf-layout-page,
:where(#cecp-root,[data-cecp-root])[data-color-mode="light"].cf-layout-page{background:radial-gradient(circle at 7% 0%,rgba(201,146,42,.15),transparent 30%),radial-gradient(circle at 92% 8%,rgba(46,109,164,.10),transparent 31%),radial-gradient(circle at 50% 100%,rgba(58,125,94,.08),transparent 34%),linear-gradient(180deg,#faf8f3 0%,#f5f3ef 46%,#edeae4 100%)!important}
:where(html.dark, html[data-theme="dark"], html[data-color-mode="dark"], body.dark, body[data-theme="dark"], body[data-color-mode="dark"]) :where(html.cf-page-shell,body.cf-page-shell){background:#090b12!important}
:where(html.light, html[data-theme="light"], html[data-color-mode="light"], body.light, body[data-theme="light"], body[data-color-mode="light"]) :where(html.cf-page-shell,body.cf-page-shell){background:#f5f3ef!important}
html.cf-page-shell.dark,
html.dark body.cf-page-shell,
html[data-theme="dark"] body.cf-page-shell,
html[data-color-mode="dark"] body.cf-page-shell,
html.cf-page-shell[data-theme="dark"],
html.cf-page-shell[data-color-mode="dark"],
body.cf-page-shell.dark,
body.cf-page-shell[data-theme="dark"],
body.cf-page-shell[data-color-mode="dark"]{background:#090b12!important}
html.cf-page-shell.light,
html.light body.cf-page-shell,
html[data-theme="light"] body.cf-page-shell,
html[data-color-mode="light"] body.cf-page-shell,
html.cf-page-shell[data-theme="light"],
html.cf-page-shell[data-color-mode="light"],
body.cf-page-shell.light,
body.cf-page-shell[data-theme="light"],
body.cf-page-shell[data-color-mode="light"]{background:#f5f3ef!important}
:where(#cecp-root,[data-cecp-root]).cf-layout-page .cf-app{padding:clamp(18px,2.3vw,32px) clamp(16px,3vw,34px) calc(30px + env(safe-area-inset-bottom));gap:18px}
:where(#cecp-root,[data-cecp-root]).cf-layout-page .cf-op{width:min(100%,1480px)}
.cf-header{position:sticky;top:0;z-index:8;border-radius:var(--cf-dash-radius);padding:16px 20px;background:var(--cf-surface-strong);border:1px solid var(--cf-border);box-shadow:var(--cf-shadow-soft);backdrop-filter:blur(18px) saturate(1.08)}
.cf-title{font-family:var(--cf-font-title);font-size:clamp(1.35rem,2.2vw,1.75rem);line-height:1.08;color:var(--cf-text);letter-spacing:-.015em}.cf-title::first-letter{color:var(--cf-gold)}
.cf-header-sub,.cf-panel-title,.cf-section-label,.cf-stat-label,.cf-badge-label{color:var(--cf-muted);font-size:.75rem;font-weight:600;letter-spacing:.055em}
.cf-status{min-height:36px;padding:8px 12px;border-radius:var(--cf-dash-radius-sm);border:1px solid var(--cf-border);background:var(--cf-surface-soft)}
.cf-screen-btn,.cf-clear-btn,.cf-widget-close,.cf-bcast-preset,.cf-device-reset-btn{border-radius:var(--cf-dash-radius-sm);font-weight:600}
.cf-panel,.cf-setup-card,.cf-client-hero,.cf-stat-card,.cf-bcast,.cf-log-item,.cf-room-bubble,.cf-preset-btn,.cf-cue-btn,.cf-selected,.cf-device-note{border-color:var(--cf-border);box-shadow:var(--cf-shadow-soft)}
.cf-panel,.cf-client-hero,.cf-stat-card,.cf-setup-card{background:var(--cf-surface-strong);border-radius:var(--cf-dash-radius)}.cf-panel{padding:18px}.cf-panel-title-row{min-height:38px;padding-bottom:2px}
.cf-op-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cf-stat-card{position:relative;min-height:112px;padding:20px 20px 18px 84px;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s}.cf-stat-card:hover{transform:translateY(-2px);border-color:var(--cf-gold);box-shadow:var(--cf-shadow)}
.cf-stat-card::before{content:'🎧';position:absolute;left:20px;top:20px;width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;font-size:22px;background:var(--cf-green-soft);color:var(--cf-green)}.cf-stat-card:nth-child(2)::before{content:'💬';background:var(--cf-blue-soft);color:var(--cf-blue)}.cf-stat-card:nth-child(3)::before{content:'⚠️';background:var(--cf-red-soft);color:var(--cf-red)}
.cf-stat-alert{background:var(--cf-surface-strong)}.cf-stat-label{margin-bottom:8px}.cf-stat-value{margin-top:0;font-family:var(--cf-font-body);font-size:clamp(2rem,4.2vw,3rem);font-weight:800;letter-spacing:-.05em;color:var(--cf-text)}
.cf-op-row{grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:16px}.cf-panel-members,.cf-panel-log{min-height:520px}.cf-member-list{gap:8px}.cf-member-pill{border-radius:var(--cf-dash-radius-sm);background:var(--cf-surface-soft)}.cf-member-item{padding:2px 0}
.cf-client-grid{grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:16px}.cf-client-main,.cf-client-side{gap:16px}.cf-client-hero{padding:20px;gap:14px;background:linear-gradient(135deg,rgba(201,146,42,.10),transparent 62%),var(--cf-surface-strong)}
.cf-badge{border-radius:999px;padding:11px 15px}.cf-device-note{background:var(--cf-surface-soft);border-radius:var(--cf-dash-radius-sm);box-shadow:none}.cf-cue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cf-cue-btn{min-height:96px;padding:15px;border-radius:var(--cf-dash-radius);background:var(--cf-surface-strong);box-shadow:var(--cf-shadow-soft)}.cf-cue-btn:hover{transform:translateY(-2px);border-color:var(--cf-gold)}.cf-icon{width:48px;height:48px;border-radius:14px;background:var(--cf-gold-soft)}.cf-cue-label{font-size:.96rem;font-weight:700}.cf-cue-desc{color:var(--cf-muted)}
.cf-custom-area{gap:10px}.cf-custom-area input{min-height:48px;border-radius:var(--cf-dash-radius-sm);background:var(--cf-surface-soft);border-color:var(--cf-border);color:var(--cf-text);font-size:16px}.cf-custom-area button,.cf-btn-primary{min-height:48px;border-radius:var(--cf-dash-radius-sm);background:var(--cf-gold);border-color:var(--cf-gold);color:#271700;font-family:var(--cf-font-body);font-weight:800;box-shadow:0 8px 22px rgba(201,146,42,.22)}.cf-custom-area button:hover,.cf-btn-primary:hover{transform:translateY(-1px);filter:saturate(1.05) brightness(1.02)}
.cf-log{padding-right:4px}.cf-log-item,.cf-room-bubble{background:var(--cf-surface-soft);border-radius:var(--cf-dash-radius)}.cf-log-icon{border-radius:12px;background:var(--cf-blue-soft)}.cf-log-text,.cf-room-text{color:var(--cf-text)}.cf-log-time,.cf-room-time{font-family:var(--cf-font-mono)}.cf-room-msg.is-mine .cf-room-bubble{background:var(--cf-gold-soft);border-color:var(--cf-gold)}.cf-panel-member-chat,.cf-panel-client-log{display:flex;flex-direction:column}.cf-panel-member-chat .cf-log,.cf-panel-client-log .cf-log{flex:1}.cf-member-chat-compose{margin-top:12px}
.cf-panel-bcast{background:linear-gradient(135deg,rgba(46,109,164,.10),transparent 66%),var(--cf-surface-strong)}.cf-bcast-presets{gap:8px}.cf-bcast-preset{background:var(--cf-surface-soft);color:var(--cf-text)}.cf-bcast-preset:hover{transform:translateY(-1px);border-color:var(--cf-gold);background:var(--cf-gold-soft)}.cf-bcast-popup{background:var(--cf-surface-strong);border-color:var(--cf-blue)}
.cf-setup-card{width:min(100%,860px);padding:clamp(22px,4vw,34px)}.cf-setup-kicker{border-radius:999px;font-weight:700}.cf-setup-card h2{font-family:var(--cf-font-title);letter-spacing:-.02em;color:var(--cf-text)}.cf-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cf-preset-btn{min-height:82px;border-radius:var(--cf-dash-radius);background:var(--cf-surface-soft)}.cf-preset-btn:hover:not(.taken){transform:translateY(-2px);border-color:var(--cf-accent-ring);box-shadow:var(--cf-shadow-soft)}.cf-preset-btn.sel{background:var(--cf-surface-strong)}.cf-preset-name{font-weight:800}
:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-header,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-panel,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-client-hero,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-stat-card{box-shadow:none;backdrop-filter:none}:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-app{padding:14px;gap:12px}:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-op-summary,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-client-grid,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-op-row,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-preset-grid,:where(#cecp-root,[data-cecp-root]).cf-layout-floating .cf-cue-grid{grid-template-columns:1fr}
@media(max-width:1100px){.cf-op-row,.cf-client-grid{grid-template-columns:1fr}.cf-panel-members,.cf-panel-log{min-height:0}.cf-panel-log .cf-log{max-height:56dvh}}
@media(max-width:860px){.cf-op-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cf-stat-card{min-height:98px;padding:16px 14px 14px 64px}.cf-stat-card::before{left:14px;top:16px;width:38px;height:38px;border-radius:12px;font-size:18px}.cf-stat-value{font-size:2rem}.cf-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){:where(#cecp-root,[data-cecp-root]).cf-layout-page .cf-app{padding:12px 10px calc(22px + env(safe-area-inset-bottom));gap:12px}.cf-header{position:relative;top:auto;padding:14px;gap:12px}.cf-header-tools,.cf-status,.cf-screen-btn{width:100%}.cf-header-tools{display:grid;grid-template-columns:1fr}.cf-status{justify-content:center}.cf-op-summary{grid-template-columns:1fr;gap:10px}.cf-stat-card{min-height:86px}.cf-client-hero,.cf-panel,.cf-stat-card,.cf-setup-card{border-radius:14px}.cf-cue-grid,.cf-preset-grid{grid-template-columns:1fr}.cf-cue-btn{min-height:78px}.cf-custom-area{display:grid;grid-template-columns:1fr}.cf-custom-area button{width:100%}.cf-member-chat-compose{grid-template-columns:1fr}.cf-log-client,.cf-log-member-chat,.cf-log{max-height:46dvh}.cf-bcast-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cf-bcast-preset{border-radius:10px}}


/* ============================================================
   ▌ CECP — 顶部当前时间
   ============================================================ */

.cf-live-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(243, 210, 131, 0.12), rgba(255, 255, 255, 0.03));
  color: var(--cf-text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.cf-live-clock-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.cf-live-clock-main {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cf-accent, var(--cf-gold));
}

.cf-live-clock-date {
  padding-left: 2px;
  color: var(--cf-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

@media (prefers-color-scheme: light) {
  .cf-live-clock-pill {
    background:
      linear-gradient(135deg, rgba(154, 107, 0, 0.10), rgba(255, 255, 255, 0.72));
    border-color: var(--cf-border);
  }
}

@media (max-width: 540px) {
  .cf-live-clock-pill {
    min-height: 34px;
    padding: 6px 10px;
  }

  .cf-live-clock-date {
    display: none;
  }
}


/* ============================================================
   ▌ CECP — 选择设备后填写名字
   ============================================================ */

.cf-name-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: grid-template-rows .24s ease, opacity .2s ease, transform .2s ease;
}

.cf-name-panel.show {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-top: 14px;
}

.cf-name-panel > * {
  min-height: 0;
}

.cf-name-label {
  display: block;
  margin-bottom: 8px;
  color: var(--cf-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.cf-name-input-row {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(243, 210, 131, .10), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.cf-name-device {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 13px;
  background: var(--cf-accent-soft, rgba(243,210,131,.16));
  color: var(--cf-accent-ink, var(--cf-text));
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.cf-name-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cf-border);
  border-radius: 13px;
  background: rgba(255,255,255,.05);
  color: var(--cf-text);
  padding: 0 13px;
  font-family: var(--cf-font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cf-name-input::placeholder {
  color: var(--cf-muted-2);
}

.cf-name-input:focus {
  border-color: var(--cf-accent-ring, rgba(243,210,131,.35));
  box-shadow: 0 0 0 4px var(--cf-accent-soft, rgba(243,210,131,.16));
  background: rgba(255,255,255,.08);
}

.cf-name-hint {
  margin-top: 8px;
  color: var(--cf-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.cf-name-hint span {
  color: var(--cf-accent, var(--cf-gold));
  font-weight: 800;
}

@media (prefers-color-scheme: light) {
  .cf-name-input-row {
    background:
      linear-gradient(135deg, rgba(201,146,42,.10), rgba(255,255,255,.72));
  }

  .cf-name-input {
    background: rgba(255,255,255,.78);
  }

  .cf-name-input:focus {
    background: #fff;
  }
}

@media (max-width: 520px) {
  .cf-name-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cf-name-device {
    justify-content: flex-start;
  }
}


/* ============================================================
   ▌ CECP — 手机端设备选择至少两列
   ============================================================ */

@media (max-width: 640px) {
  :where(#cecp-root, [data-cecp-root]) .cf-preset-grid,
  :where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-btn {
    min-height: 74px;
    padding: 12px 10px;
    gap: 9px;
    border-radius: 15px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-mic {
    font-size: 1.28rem;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-name {
    font-size: 0.88rem;
    line-height: 1.22;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-sub {
    font-size: 0.68rem;
    margin-top: 3px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-led {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px var(--cf-accent-soft), 0 0 10px var(--cf-accent-ring);
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-taken-badge {
    right: 7px;
    top: 7px;
    font-size: 0.62rem;
    padding: 3px 6px;
  }
}

/* 超小屏也保持 2 列，只进一步压缩间距 */
@media (max-width: 370px) {
  :where(#cecp-root, [data-cecp-root]) .cf-preset-grid,
  :where(#cecp-root, [data-cecp-root]).cf-layout-floating .cf-preset-grid {
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-btn {
    min-height: 70px;
    padding: 10px 8px;
    gap: 7px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-name {
    font-size: 0.82rem;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-sub {
    font-size: 0.64rem;
  }
}


/* ============================================================
   ▌ CECP — 快捷消息 DropList + 手机最多两列
   ============================================================ */

.cf-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cf-quick-sub {
  margin-top: 4px;
  color: var(--cf-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.cf-quick-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--cf-accent-soft, rgba(243, 210, 131, .14)), rgba(255, 255, 255, .04));
  color: var(--cf-accent-ink, var(--cf-text));
  font-family: var(--cf-font-body);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-quick-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--cf-accent-ring, rgba(243, 210, 131, .32));
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.cf-quick-arrow {
  display: inline-flex;
  transition: transform .18s ease;
  font-size: 1rem;
  line-height: 1;
}

.cf-quick-toggle.open .cf-quick-arrow {
  transform: rotate(180deg);
}

.cf-quick-dropdown {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: grid-template-rows .24s ease, opacity .2s ease, transform .2s ease;
  margin-bottom: 12px;
}

.cf-quick-dropdown.show {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cf-quick-dropdown > .cf-cue-grid {
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--cf-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, var(--cf-accent-soft, rgba(243,210,131,.12)), transparent 38%),
    rgba(255,255,255,.025);
}

/* 桌面保持清楚的卡片网格，手机最多/固定两列 */
@media (max-width: 640px) {
  :where(#cecp-root, [data-cecp-root]) .cf-quick-head {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-toggle {
    width: 100%;
    min-height: 42px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 82px;
    padding: 11px 10px;
    gap: 8px;
    border-radius: 15px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn .cf-icon {
    width: 28px;
    height: 28px;
    font-size: 1.08rem;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-label {
    font-size: .82rem;
    line-height: 1.2;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-desc {
    font-size: .66rem;
    line-height: 1.25;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 370px) {
  :where(#cecp-root, [data-cecp-root]) .cf-cue-grid {
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 78px;
    padding: 10px 8px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-label {
    font-size: .78rem;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-desc {
    font-size: .62rem;
  }
}

@media (prefers-color-scheme: light) {
  .cf-quick-dropdown > .cf-cue-grid {
    background:
      radial-gradient(circle at top left, rgba(201,146,42,.10), transparent 38%),
      rgba(255,255,255,.70);
  }
}


/* ============================================================
   ▌ CECP — 手机首屏可达 + 吃鸡式快捷消息浮层
   - 手机端把最重要操作压到首屏：当前设备、快捷消息、手动发送
   - 快捷消息按钮固定在操作区顶部，点开后以底部浮层出现
   ============================================================ */

@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]).cf-layout-page .cf-app {
    padding: 10px 10px calc(16px + env(safe-area-inset-bottom)) !important;
    gap: 9px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header {
    padding: 10px 12px !important;
    border-radius: 16px !important;
    gap: 10px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-title {
    font-size: 1.08rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header-sub {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header-tools {
    gap: 7px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status {
    font-size: 0;
    gap: 0;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status .cf-dot {
    width: 10px;
    height: 10px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-pill {
    min-height: 32px !important;
    padding: 5px 9px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-client-hero {
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-badge-wrap {
    gap: 7px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-badge-label {
    font-size: .66rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-identity-pill {
    padding: 7px 10px !important;
    gap: 7px !important;
    max-width: 100%;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-identity-text {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-client-note,
  :where(#cecp-root, [data-cecp-root]) .cf-device-note {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-client-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-client-main {
    gap: 8px !important;
    order: 1;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-client-side {
    gap: 9px !important;
    order: 2;
  }

  /* 首屏核心：消息快捷入口 */
  :where(#cecp-root, [data-cecp-root]) .cf-quick-head {
    position: sticky;
    top: 8px;
    z-index: 30;
    margin-bottom: 6px !important;
    padding: 10px;
    border: 1px solid var(--cf-border);
    border-radius: 16px;
    background:
      linear-gradient(135deg, var(--cf-accent-soft, rgba(243, 210, 131, .15)), rgba(255,255,255,.05)),
      var(--cf-surface-strong);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 26px rgba(0,0,0,.16);
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-sub {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-toggle {
    min-height: 40px !important;
    border-radius: 14px !important;
  }

  /* 点开后不是在页面里撑开，而是像游戏快捷消息一样从底部浮起来 */
  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown {
    margin: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show {
    position: fixed !important;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 2147483646;
    max-height: min(58dvh, 420px);
    overflow: visible;
    transform: translateY(0) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show::before {
    content: '消息快捷';
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 4px 8px;
    color: var(--cf-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .05em;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid {
    max-height: calc(min(58dvh, 420px) - 34px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px !important;
    border-radius: 22px !important;
    box-shadow:
      0 24px 56px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.08);
  }

  /* 快捷消息手机端最多/固定两列，方便拇指点 */
  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show .cf-cue-grid,
  :where(#cecp-root, [data-cecp-root]) .cf-cue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 76px !important;
    padding: 10px 9px !important;
  }

  /* 手动发送也压缩，尽量保持在首屏内 */
  :where(#cecp-root, [data-cecp-root]) .cf-section-label {
    margin-top: 2px !important;
    font-size: .72rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-custom-area {
    gap: 7px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-custom-area input {
    min-height: 42px !important;
    font-size: .9rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-custom-area button {
    min-height: 42px !important;
    padding-inline: 13px !important;
  }

  /* 记录区降低首屏存在感，操作优先 */
  :where(#cecp-root, [data-cecp-root]) .cf-panel {
    border-radius: 16px !important;
    padding: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-log {
    max-height: 190px !important;
  }
}

@media (max-width: 380px) {
  :where(#cecp-root, [data-cecp-root]) .cf-app {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 72px !important;
    padding: 9px 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-desc {
    -webkit-line-clamp: 1 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-identity-text {
    max-width: 170px;
  }
}

@media (prefers-color-scheme: light) and (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]) .cf-quick-head {
    background:
      linear-gradient(135deg, rgba(201,146,42,.10), rgba(255,255,255,.76)),
      var(--cf-surface-strong);
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid {
    box-shadow:
      0 24px 56px rgba(80,64,30,.18),
      inset 0 1px 0 rgba(255,255,255,.75);
  }
}


/* ============================================================
   ▌ CECP — 降低透明度：手机快捷面板更实、更清楚
   ============================================================ */

@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]) .cf-quick-head {
    background: var(--cf-surface-strong) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: var(--cf-border-strong) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid {
    background: var(--cf-surface-strong) !important;
    border-color: var(--cf-border-strong) !important;
    box-shadow:
      0 24px 58px rgba(0,0,0,.42),
      0 0 0 1px rgba(255,255,255,.04) inset !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    background: var(--cf-surface-soft) !important;
    border-color: var(--cf-border-strong) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn:hover,
  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn:active {
    background: linear-gradient(135deg, var(--cf-accent-soft), var(--cf-surface-soft)) !important;
    border-color: var(--cf-accent-ring) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-custom-area,
  :where(#cecp-root, [data-cecp-root]) .cf-panel,
  :where(#cecp-root, [data-cecp-root]) .cf-client-hero,
  :where(#cecp-root, [data-cecp-root]) .cf-header {
    background: var(--cf-surface-strong) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-custom-area input {
    background: var(--cf-surface-soft) !important;
  }
}

@media (prefers-color-scheme: light) and (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]) {
    --cf-surface-strong: #ffffff;
    --cf-surface-soft: #f8f6f1;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-head,
  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid,
  :where(#cecp-root, [data-cecp-root]) .cf-custom-area,
  :where(#cecp-root, [data-cecp-root]) .cf-panel,
  :where(#cecp-root, [data-cecp-root]) .cf-client-hero,
  :where(#cecp-root, [data-cecp-root]) .cf-header {
    background: #ffffff !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn,
  :where(#cecp-root, [data-cecp-root]) .cf-custom-area input {
    background: #f8f6f1 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid {
    box-shadow:
      0 24px 58px rgba(70,55,25,.20),
      0 0 0 1px rgba(255,255,255,.80) inset !important;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]) {
    --cf-surface-strong: #111724;
    --cf-surface-soft: #171f2f;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-head,
  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid,
  :where(#cecp-root, [data-cecp-root]) .cf-custom-area,
  :where(#cecp-root, [data-cecp-root]) .cf-panel,
  :where(#cecp-root, [data-cecp-root]) .cf-client-hero,
  :where(#cecp-root, [data-cecp-root]) .cf-header {
    background: #111724 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn,
  :where(#cecp-root, [data-cecp-root]) .cf-custom-area input {
    background: #171f2f !important;
  }
}


/* ============================================================
   ▌ CECP — 敬拜通道布局（参考图版）
   - 保留现有主题和快捷信息内容
   - 成员端改为左侧发送 / 左下广播 / 右侧群聊 / 右下快捷信息
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
  width: min(100%, 1320px) !important;
  gap: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
  grid-template-columns: minmax(420px, 0.92fr) minmax(480px, 1.08fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side {
  display: grid !important;
  gap: 18px !important;
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
  min-height: 0 !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(12, 17, 26, 0.94) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel {
  gap: 14px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel-banner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  border-radius: 18px !important;
  background: rgba(15, 21, 31, 0.88) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel-chip,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-mini-label,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-chip {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 163, 255, 0.2) !important;
  background: rgba(91, 163, 255, 0.1) !important;
  color: #dcecff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel-identity {
  margin: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose--stage {
  margin-top: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-mini-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-mini-label {
  background: rgba(89, 214, 140, 0.1) !important;
  border-color: rgba(89, 214, 140, 0.16) !important;
  color: #d8ffe8 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
  min-height: 220px !important;
  max-height: 280px !important;
  padding: 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-preview-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-history-panel {
  padding: 18px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0)),
    rgba(12, 17, 26, 0.94) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history {
  min-height: 100% !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  min-height: 188px !important;
  padding: 18px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  background:
    radial-gradient(circle at top right, rgba(91, 163, 255, 0.1), transparent 36%),
    rgba(9, 13, 20, 0.94) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-head,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-text {
  font-size: 1.04rem !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
  color: var(--cf-text) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-time,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-time {
  font-family: var(--cf-font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--cf-muted-2) !important;
  white-space: nowrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-status,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-state {
  color: var(--cf-muted) !important;
  font-size: 0.74rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history {
  display: grid !important;
  gap: 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-item {
  display: grid !important;
  gap: 8px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  background: rgba(16, 22, 33, 0.94) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-item.is-unread {
  border-color: rgba(91, 163, 255, 0.3) !important;
  background:
    linear-gradient(180deg, rgba(91, 163, 255, 0.11), rgba(91, 163, 255, 0.02)),
    rgba(16, 22, 33, 0.96) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-text {
  color: var(--cf-text) !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 160px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px dashed rgba(157, 172, 209, 0.14) !important;
  color: var(--cf-muted) !important;
  text-align: center !important;
  line-height: 1.6 !important;
  background: rgba(11, 15, 23, 0.78) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
  min-height: 640px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
  min-height: 360px !important;
  max-height: none !important;
  flex: 1 1 auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-overlay--dock {
  position: static !important;
  inset: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  z-index: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-overlay--dock[hidden] {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0)),
    rgba(12, 17, 26, 0.95) !important;
  box-shadow: var(--cf-shadow-soft) !important;
  transform: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock .cf-quick-sheet-head {
  margin-bottom: 14px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock .cf-quick-sheet-list {
  max-height: 470px !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock .cf-quick-item {
  min-height: 82px !important;
  border-radius: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-actions {
  flex-wrap: wrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
  font-size: 0.82rem !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 1160px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
    grid-template-columns: 1fr !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
    min-height: 280px !important;
  }
}

@media (max-width: 780px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
    grid-template-columns: 1fr !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel-banner,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-mini-row,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-preview-head,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-broadcast-history-main {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-preview-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-history-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock .cf-quick-sheet-list {
    max-height: 320px !important;
  }
}


/* ============================================================
   ▌ CECP — 双通道发送 + 音控分栏 + 快捷消息直接显示
   ============================================================ */

.cf-dual-compose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cf-compose-card {
  min-width: 0;
}

.cf-cue-card {
  cursor: default;
}

.cf-cue-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cf-cue-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
  width: 100%;
}

.cf-cue-send {
  min-height: 32px;
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--cf-text);
  font-family: var(--cf-font-body);
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cf-cue-send:active {
  transform: scale(.98);
}

.cf-cue-to-sound {
  border-color: var(--cf-accent-ring, var(--cf-border));
  background: var(--cf-accent-soft, rgba(243,210,131,.16));
  color: var(--cf-accent-ink, var(--cf-text));
}

.cf-cue-to-team {
  background: rgba(91, 163, 255, .12);
  border-color: rgba(91, 163, 255, .28);
  color: var(--cf-text);
}

.cf-op-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(420px, 1.7fr) minmax(340px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.cf-op-layout .cf-panel {
  min-width: 0;
}

.cf-panel-comms-log,
.cf-panel-broadcast-log {
  min-height: 430px;
}

.cf-panel-broadcast-log {
  display: flex;
  flex-direction: column;
}

.cf-panel-broadcast-log .cf-bcast-presets {
  margin-bottom: 10px;
}

.cf-bcast-log {
  flex: 1;
  min-height: 180px;
}

.cf-panel-comms-log .cf-log {
  min-height: 340px;
}

@media (max-width: 1280px) {
  .cf-op-layout {
    grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.1fr);
  }

  .cf-panel-broadcast-log,
  .cf-panel-comms-log {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  :where(#cecp-root, [data-cecp-root]) .cf-dual-compose {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-toggle {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown,
  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show {
    position: static !important;
    display: block !important;
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    max-height: none !important;
    margin-bottom: 8px !important;
    overflow: visible !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show::before {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown > .cf-cue-grid,
  :where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid {
    max-height: 35dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 112px !important;
    align-items: stretch !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-card-main {
    align-items: flex-start;
    gap: 8px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-actions {
    gap: 6px;
    margin-top: 8px;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-send {
    min-height: 34px;
    font-size: .72rem;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-op-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: light) {
  .cf-cue-send {
    background: #fff;
  }

  .cf-cue-to-team {
    background: #edf5ff;
    color: #24547e;
  }
}


/* ============================================================
   ▌ CECP — 恢复快捷信息第一版样式
   - 保留新增快捷消息
   - 快捷消息不再分「音控 / 群员」
   - 点击快捷消息默认发给音控
   ============================================================ */

:where(#cecp-root, [data-cecp-root]) .cf-cue-card,
:where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
  cursor: pointer;
}

:where(#cecp-root, [data-cecp-root]) .cf-cue-actions,
:where(#cecp-root, [data-cecp-root]) .cf-cue-send {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-cue-card-main {
  display: contents !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-dual-compose {
  display: block !important;
}

@media (max-width: 760px) {
  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 82px !important;
    padding: 11px 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn .cf-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 1.08rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-label {
    font-size: .82rem !important;
    line-height: 1.2 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-desc {
    font-size: .66rem !important;
    line-height: 1.25 !important;
    margin-top: 3px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

@media (max-width: 370px) {
  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 78px !important;
    padding: 10px 8px !important;
  }
}


/* ============================================================
   ▌ CECP — 修复敬拜成员端：换设备 / 在线文字 / 时间日期恢复
   ============================================================ */

/* 之前为了首屏可达把手机端一些文字隐藏得太狠，这里只恢复关键状态 */
@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]) .cf-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.76rem !important;
    color: var(--cf-muted) !important;
    white-space: nowrap !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status .cf-dot {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 auto !important;
  }

  :where(#cecp-root, [data-cecp-root]) #cf-status-label {
    display: inline !important;
    font-size: 0.76rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-pill {
    display: inline-flex !important;
    min-height: 34px !important;
    padding: 5px 9px !important;
    gap: 6px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-icon {
    display: inline-flex !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-main {
    display: inline !important;
    font-size: 0.9rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-date {
    display: inline !important;
    font-size: 0.66rem !important;
  }

  /* 换设备按钮/重选设备按钮强制恢复 */
  :where(#cecp-root, [data-cecp-root]) #cf-reset-device,
  :where(#cecp-root, [data-cecp-root]) .cf-reset-device,
  :where(#cecp-root, [data-cecp-root]) [data-cf-reset-device] {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  :where(#cecp-root, [data-cecp-root]) #cf-reset-device {
    min-height: 34px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }

  /* 当前设备区域不能把换设备按钮挤没 */
  :where(#cecp-root, [data-cecp-root]) .cf-client-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-badge-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header-tools {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-shrink: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header {
    align-items: center !important;
  }
}

@media (max-width: 390px) {
  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-date {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status {
    font-size: 0.72rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) #cf-reset-device {
    font-size: 0.72rem !important;
    padding-inline: 9px !important;
  }
}


/* ============================================================
   ▌ CECP — 快捷信息正常页面展开版
   - 不折叠
   - 不底部浮层
   - 不内部上下滑动
   - 全部快捷信息直接在页面里显示
   ============================================================ */

:where(#cecp-root, [data-cecp-root]) .cf-quick-toggle {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-quick-head {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-quick-sub {
  display: block !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown,
:where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: block !important;
  grid-template-rows: 1fr !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 0 12px !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown::before,
:where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show::before {
  display: none !important;
  content: none !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown > .cf-cue-grid,
:where(#cecp-root, [data-cecp-root]) .cf-quick-dropdown.show > .cf-cue-grid {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 手机端仍保持两列，但让页面整体滚动，不让快捷区自己滚 */
@media (max-width: 760px) {
  :where(#cecp-root, [data-cecp-root]) .cf-quick-head {
    display: block !important;
    margin-bottom: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-quick-sub {
    display: block !important;
    margin-top: 3px !important;
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-cue-btn {
    min-height: 82px !important;
    padding: 11px 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }
}


/* ============================================================
   ▌ CECP — 手机端状态栏不截断 + 换设备固定显示
   ============================================================ */

:where(#cecp-root, [data-cecp-root]) .cf-device-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-device-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

:where(#cecp-root, [data-cecp-root]) .cf-device-reset-main,
:where(#cecp-root, [data-cecp-root]) #cf-reset-device {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-height: 36px !important;
  padding: 8px 13px !important;
  border: 1px solid var(--cf-border-strong, var(--cf-border)) !important;
  border-radius: 999px !important;
  background: var(--cf-accent-soft, rgba(243, 210, 131, .16)) !important;
  color: var(--cf-accent-ink, var(--cf-text)) !important;
  font-family: var(--cf-font-body) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]) .cf-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-header-tools {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    max-width: 58% !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-pill {
    order: 1 !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    max-width: none !important;
    min-width: fit-content !important;
    padding: 5px 8px !important;
    border: 1px solid var(--cf-border) !important;
    border-radius: 999px !important;
    background: var(--cf-surface-soft, rgba(255,255,255,.06)) !important;
    color: var(--cf-muted) !important;
    font-size: .72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status .cf-dot {
    width: 7px !important;
    height: 7px !important;
    flex: 0 0 7px !important;
  }

  :where(#cecp-root, [data-cecp-root]) #cf-status-label {
    display: inline-block !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: .72rem !important;
    line-height: 1 !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-client-hero {
    overflow: visible !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-device-row {
    flex-wrap: nowrap !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-device-main .cf-identity-pill {
    max-width: min(62vw, 260px) !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-device-main .cf-identity-text {
    max-width: min(46vw, 190px) !important;
  }

  :where(#cecp-root, [data-cecp-root]) #cf-reset-device {
    min-height: 34px !important;
    padding: 7px 11px !important;
    font-size: .74rem !important;
  }
}

@media (max-width: 390px) {
  :where(#cecp-root, [data-cecp-root]) .cf-header-tools {
    max-width: 62% !important;
    gap: 5px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-pill {
    padding: 5px 7px !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-date {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-status {
    padding: 5px 7px !important;
    font-size: .7rem !important;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-device-main .cf-identity-text {
    max-width: 42vw !important;
  }

  :where(#cecp-root, [data-cecp-root]) #cf-reset-device {
    padding-inline: 9px !important;
  }
}

/* ============================================================
   ▌ CECP — 手机浮窗稳定性 + 浅色模式对比度修复
   ============================================================ */

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating .cf-widget-bar {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

:where(#cecp-root[data-fullscreen], [data-cecp-root][data-fullscreen]).cf-layout-floating
  .cf-widget-panel .cf-stage {
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

@media (prefers-color-scheme: light) {
  :where(#cecp-root, [data-cecp-root]) {
    --cf-muted: #4f473c;
    --cf-muted-2: #6a6154;
    --cf-gold: #8a5a00;
    --cf-gold-soft: rgba(138, 90, 0, 0.12);
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-default,
  :where(#cecp-root, [data-cecp-root]) .cf-tone-gold {
    --cf-accent-ink: #5b3a00;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-orange {
    --cf-accent-ink: #5d2f00;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-green {
    --cf-accent-ink: #0f5a38;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-purple {
    --cf-accent-ink: #4f2b7a;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-yellow {
    --cf-accent-ink: #624700;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-red {
    --cf-accent-ink: #7d2015;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-blue {
    --cf-accent-ink: #123f73;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-white {
    --cf-accent-ink: #33404d;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-black {
    --cf-accent-ink: #1f2937;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-tone-brown {
    --cf-accent-ink: #5b3215;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-widget-kicker,
  :where(#cecp-root, [data-cecp-root]) .cf-header-sub,
  :where(#cecp-root, [data-cecp-root]) .cf-panel-title,
  :where(#cecp-root, [data-cecp-root]) .cf-section-label,
  :where(#cecp-root, [data-cecp-root]) .cf-stat-label,
  :where(#cecp-root, [data-cecp-root]) .cf-badge-label,
  :where(#cecp-root, [data-cecp-root]) .cf-setup-sub,
  :where(#cecp-root, [data-cecp-root]) .cf-member-chat-note,
  :where(#cecp-root, [data-cecp-root]) .cf-device-note-copy,
  :where(#cecp-root, [data-cecp-root]) .cf-name-label,
  :where(#cecp-root, [data-cecp-root]) .cf-name-hint,
  :where(#cecp-root, [data-cecp-root]) .cf-log-chip,
  :where(#cecp-root, [data-cecp-root]) #cf-status-label {
    color: var(--cf-muted);
  }

  :where(#cecp-root, [data-cecp-root]) .cf-preset-sub,
  :where(#cecp-root, [data-cecp-root]) .cf-cue-desc,
  :where(#cecp-root, [data-cecp-root]) .cf-log-time,
  :where(#cecp-root, [data-cecp-root]) .cf-room-time,
  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-date,
  :where(#cecp-root, [data-cecp-root]) .cf-name-input::placeholder {
    color: var(--cf-muted-2);
  }

  :where(#cecp-root, [data-cecp-root]) .cf-log-chip-in,
  :where(#cecp-root, [data-cecp-root]) .cf-log-chip-chat {
    color: #1a5aa8;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-log-chip-bcast,
  :where(#cecp-root, [data-cecp-root]) .cf-live-clock-main,
  :where(#cecp-root, [data-cecp-root]) .cf-name-hint span {
    color: #7b4f00;
  }

  :where(#cecp-root, [data-cecp-root]) .cf-name-input,
  :where(#cecp-root, [data-cecp-root]) .cf-custom-area input {
    caret-color: #6b4500;
  }
}

/* ============================================================
   ▌ CECP — 成员端终版聊天布局
   - 时间 / 在线恢复为正常小状态条
   - 成员端改成微信式双聊天区
   - 快捷信息改为一条一条点击
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app {
  width: min(100%, 1120px) !important;
  gap: 16px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header {
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-copy {
  gap: 6px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-title {
  font-size: 1.2rem !important;
  line-height: 1.15 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-sub {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-tools {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-pill,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(157, 172, 209, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(19, 25, 36, 0.9) !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-icon {
  font-size: 0.92rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--cf-gold) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-date,
:where(#cecp-root, [data-cecp-root]).cf-mode-client #cf-status-label {
  font-size: 0.72rem !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status .cf-dot {
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  padding: 16px 18px !important;
  border-radius: 22px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-device-row {
  align-items: center !important;
  gap: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-note {
  margin-top: 12px !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--single {
  grid-template-columns: 1fr !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side {
  gap: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 560px !important;
  padding: 16px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(12, 17, 26, 0.94) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-copy {
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-sub {
  margin-top: 4px !important;
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(91, 163, 255, 0.24) !important;
  background: rgba(91, 163, 255, 0.1) !important;
  color: #d9ebff !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle-count {
  color: var(--cf-muted) !important;
  font-weight: 600 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-arrow {
  transition: transform 0.18s ease !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle.open .cf-quick-arrow {
  transform: rotate(180deg) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
  position: relative !important;
  inset: auto !important;
  display: none !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  border-radius: 18px !important;
  background: rgba(11, 15, 23, 0.94) !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown::before,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show::before {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
  display: block !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown > .cf-cue-grid,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show > .cf-cue-grid,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  max-height: none !important;
  overflow: visible !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  background: rgba(22, 29, 43, 0.96) !important;
  text-align: left !important;
  transform: none !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:hover,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:active {
  border-color: rgba(91, 163, 255, 0.34) !important;
  background: rgba(28, 37, 55, 0.98) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  background: rgba(91, 163, 255, 0.12) !important;
  flex: 0 0 38px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-label {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--cf-text) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-desc {
  font-size: 0.76rem !important;
  line-height: 1.45 !important;
  color: var(--cf-muted) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-height: 320px !important;
  padding: 8px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.85), rgba(10, 14, 20, 0.55)),
    rgba(7, 10, 15, 0.92) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: min(100%, 88%) !important;
  margin-right: auto !important;
  padding: 12px 14px !important;
  border-radius: 18px 18px 18px 8px !important;
  border: 1px solid rgba(157, 172, 209, 0.14) !important;
  background: rgba(20, 28, 40, 0.96) !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item.is-outgoing {
  margin-left: auto !important;
  margin-right: 0 !important;
  border-radius: 18px 18px 8px 18px !important;
  border-color: rgba(91, 163, 255, 0.24) !important;
  background: linear-gradient(180deg, rgba(91, 163, 255, 0.14), rgba(91, 163, 255, 0.08)), rgba(20, 28, 40, 0.98) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-icon {
  display: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-body {
  width: 100% !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-meta-row {
  margin-bottom: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-from {
  margin-bottom: 0 !important;
  padding: 6px 10px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chip,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-read-btn {
  min-height: 28px !important;
  padding: 0 9px !important;
  font-size: 0.68rem !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-text,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-text {
  font-size: 0.88rem !important;
  line-height: 1.58 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-time,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-time {
  align-self: flex-end !important;
  font-size: 0.68rem !important;
  color: var(--cf-muted-2) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg {
  gap: 6px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
  max-width: min(100%, 88%) !important;
  padding: 12px 14px !important;
  border-radius: 18px 18px 18px 8px !important;
  box-shadow: none !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg.is-mine .cf-room-bubble {
  border-radius: 18px 18px 8px 18px !important;
  background:
    linear-gradient(180deg, rgba(91, 163, 255, 0.14), rgba(91, 163, 255, 0.08)),
    rgba(20, 28, 40, 0.98) !important;
  border-color: rgba(91, 163, 255, 0.24) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input {
  min-height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: rgba(18, 24, 35, 0.94) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button {
  min-width: 72px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-muted {
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px dashed rgba(157, 172, 209, 0.16) !important;
  color: var(--cf-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-tools {
    justify-content: flex-start !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-pill,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
    padding: 6px 10px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-device-row {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-head {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    z-index: 45 !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36) !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show > .cf-cue-grid {
    max-height: min(52dvh, 420px) !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread {
    min-height: 240px !important;
    max-height: 34dvh !important;
  }
}

@media (max-width: 420px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-date {
    display: none !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-title {
    font-size: 1.08rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header-sub {
    font-size: 0.76rem !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-sub {
    font-size: 0.74rem !important;
  }
}

/* ============================================================
   ▌ CECP — Final Mobile Overrides
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
  width: min(100%, 1480px) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
  grid-template-columns: minmax(420px, 0.92fr) minmax(480px, 1.08fr) !important;
  gap: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  min-height: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-badge-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 12px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero .cf-device-main {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
  min-height: 180px !important;
  max-height: 30vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
  min-height: 560px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
  min-height: 260px !important;
  max-height: 38vh !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input {
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 820px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app--channel {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid--channel {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-secondary {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-main,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-side {
    gap: 12px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-stage-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-preview-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-history-panel,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-sheet--dock {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread--stage {
    min-height: 180px !important;
    max-height: 26vh !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel {
    min-height: 0 !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-member--channel .cf-log-chat-thread {
    min-height: 220px !important;
    max-height: 32vh !important;
  }
}

@media (max-width: 480px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-app {
    overflow-x: hidden !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding-inline: 14px !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
    max-width: 100% !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-main {
    font-size: 0.74rem !important;
  }
}

/* ============================================================
   ▌ CECP — Client UI Restore
   ============================================================ */

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-badge-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: auto !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-device-main {
  display: block !important;
}

@media (max-width: 640px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-hero {
    padding: 14px !important;
    border-radius: 18px !important;
  }
}

/* ============================================================
   ▌ CECP — 微信风格气泡 + 身份 pill 缩小
   ============================================================ */

/* 成员群聊气泡 — padding/字号减半 */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg {
  gap: 3px !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
  padding: 5px 9px !important;
  max-width: min(100%, 82%) !important;
  border-radius: 12px 12px 12px 3px !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg.is-mine .cf-room-bubble {
  border-radius: 12px 12px 3px 12px !important;
}
/* 微信：自己消息不显示头部名字 */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg.is-mine .cf-room-msg-head {
  display: none !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-text {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-time {
  font-size: 0.6rem !important;
}

/* 音控 log-item — 减半 */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item {
  padding: 6px 10px !important;
  gap: 4px !important;
  border-radius: 12px 12px 12px 3px !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item.is-outgoing {
  border-radius: 12px 12px 3px 12px !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-text {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

/* 身份 pill — padding/字号减半 */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-from,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-from {
  padding: 2px 7px !important;
  gap: 5px !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-from .cf-identity-icon,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-from .cf-identity-icon {
  width: 12px !important;
  font-size: 0.72rem !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-from .cf-identity-text,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-from .cf-identity-text {
  font-size: 0.68rem !important;
}
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-from .cf-identity-swatch,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-from .cf-identity-swatch {
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 0 2px var(--cf-accent-soft) !important;
}

/* 手机 ≤640px 进一步收紧面板 */
@media (max-width: 640px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-sub {
    display: none !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel-head {
    margin-bottom: 6px !important;
    gap: 6px !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-clear-btn {
    min-height: 26px !important;
    padding: 0 7px !important;
    font-size: 0.68rem !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-panel-title {
    font-size: 0.84rem !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input {
    min-height: 34px !important;
    font-size: 0.8rem !important;
    padding: 0 10px !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose button,
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose button {
    min-height: 34px !important;
    min-width: 46px !important;
    padding: 0 9px !important;
    font-size: 0.78rem !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread {
    min-height: 140px !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-clear-inline {
    font-size: 0.64rem !important;
    min-height: 24px !important;
    padding: 0 8px !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel {
    padding: 8px !important;
  }
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-grid {
    gap: 6px !important;
  }
}
/* ============================================================
   ▌ CECP — 参考式成员端布局 (Reference-style client layout)
   ▌ 左侧：设备标识 + 快捷信息按钮
   ▌ 右侧：统一沟通频道（音控请求 + 广播 + 群聊）
   ============================================================ */

/* Root / app shell */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-app {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  gap: 0 !important;
  padding: 0 !important;
}

/* Header stays full-width at top */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-header {
  flex: 0 0 auto !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--cf-border) !important;
}

/* Body: side-by-side */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: row !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* ── Left column: controls ───────────────────────── */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-controls-col {
  flex: 0 0 340px !important;
  max-width: 340px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 16px 16px 20px !important;
  overflow-y: auto !important;
  border-right: 1px solid var(--cf-border) !important;
}

/* Device hero inside left col */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-controls-col .cf-client-hero {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: var(--cf-surface-strong) !important;
  border: 1px solid var(--cf-border) !important;
}

/* Section label */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-section-label {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--cf-muted) !important;
  margin-bottom: 6px !important;
}

/* Cue grid: 2-column in left col */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-grid-inline {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 7px !important;
}

/* Cue button */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--cf-border) !important;
  background: var(--cf-surface-soft) !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.13s ease !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:hover {
  border-color: var(--cf-blue) !important;
  background: var(--cf-blue-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:active {
  transform: scale(0.97) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-icon {
  font-size: 1.1rem !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--cf-text) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-desc {
  font-size: 0.66rem !important;
  color: var(--cf-muted) !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Custom section */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-custom-section {
  display: flex !important;
  flex-direction: column !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-section .cf-stage-message-compose {
  margin-top: 12px !important;
}

/* ── Right column: unified chat ──────────────────── */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Unified panel */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-unified-panel {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px !important;
  gap: 10px !important;
  min-height: 0 !important;
}

/* Unified chat thread */
:where(#cecp-root, [data-cecp-root]).cf-mode-client #cf-unified-chat {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 4px 2px !important;
}

/* Chat panel header inside unified panel */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-unified-panel .cf-chat-panel-head {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}

/* ── Responsive: stack on narrow screens ─────────── */
@media (max-width: 700px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-client-body {
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-controls-col {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--cf-border) !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-grid-inline {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-col {
    flex: 1 1 auto !important;
    min-height: 320px !important;
  }
}

@media (max-width: 480px) {
  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-grid-inline {
    grid-template-columns: 1fr 1fr !important;
  }

  :where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-controls-col {
    padding: 12px !important;
    gap: 12px !important;
  }
}

/* Theme-safe overrides for the current client layout. Earlier legacy blocks
   contain fixed dark rgba values; keep this last so theme variables win. */
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-live-clock-pill,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-status {
  border-color: var(--cf-border) !important;
  background: var(--cf-surface-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-panel,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-dropdown.show {
  border-color: var(--cf-border) !important;
  background: var(--cf-surface-strong) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn {
  border-color: var(--cf-border) !important;
  background: var(--cf-surface-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:hover,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-cue-btn:active {
  border-color: var(--cf-blue) !important;
  background: var(--cf-blue-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-quick-toggle {
  border-color: var(--cf-border-strong) !important;
  background: var(--cf-blue-soft) !important;
  color: var(--cf-blue) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-icon {
  background: var(--cf-blue-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-chat-thread {
  background: color-mix(in srgb, var(--cf-surface-soft) 84%, var(--cf-bg-deep)) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-bubble {
  border-color: var(--cf-border) !important;
  background: var(--cf-surface-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-log-item.is-outgoing,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-room-msg.is-mine .cf-room-bubble {
  border-color: var(--cf-blue) !important;
  background: var(--cf-blue-soft) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-compose input,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-member-chat-compose input,
:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-custom-area input {
  background: var(--cf-surface-soft) !important;
  border-color: var(--cf-border) !important;
  color: var(--cf-text) !important;
}

:where(#cecp-root, [data-cecp-root]).cf-mode-client .cf-chat-muted {
  border-color: var(--cf-border) !important;
}
