/* xy88 固定首页背景 · 停背景视频 */
.stellar-plate-vid,
.stellar-plate--video .stellar-plate-vid {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.stellar-plate--video .stellar-plate-img,
.stellar-plate-img.is-on {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

#screen-home.active ~ .stellar-bg .stellar-plate-img,
body[data-home-static="1"] .stellar-plate-img.is-on {
  object-fit: cover;
  filter: saturate(1.05) brightness(0.92);
}

#screen-home .hero-brand .brand-fluid-img {
  filter: drop-shadow(0 0 18px rgba(120, 200, 255, 0.35));
}

#screen-home .home-menu .menu-row--lightrun {
  box-shadow:
    0 0 0 1px rgba(120, 190, 255, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 24px rgba(80, 160, 255, 0.06);
}

.auth-split {
  display: grid;
  gap: 14px;
}

.auth-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: rgba(8, 16, 32, 0.55);
}

.auth-panel-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #dbeafe;
}

.auth-or {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

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

#screen-cs .cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-size: 13px;
}

#screen-cs .cs-log {
  min-height: 220px;
  max-height: 52vh;
  overflow: auto;
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

#screen-cs .cs-compose {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

#screen-cs .cs-compose textarea {
  min-height: 72px;
  resize: vertical;
}


/* auth split pages + profile setup */
#screen-auth .auth-pick {
  display: grid;
  gap: 12px;
}
#screen-auth .auth-pick .btn-main {
  width: 100%;
}
.sub-bar--auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sub-bar--auth .sub-title {
  flex: 1;
  text-align: center;
  margin-right: 48px;
  font-weight: 700;
}
.auth-panel--solo {
  margin-top: 4px;
}
#screen-profile-setup .profile-setup-card {
  margin-top: 12vh;
}
#screen-profile-setup .profile-gender-tip {
  margin: 10px 0 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}
#screen-auth .page-inner--flat,
#screen-auth-phone .page-inner--flat,
#screen-auth-invite .page-inner--flat {
  padding-top: 0;
  margin-top: -8px;
}
#screen-auth .hero-brand,
#screen-auth-phone .hero-brand,
#screen-auth-invite .hero-brand {
  padding: 4px 8px 2px;
}

/* auth pick compact */
#screen-auth .auth-pick {
  gap: 10px;
  padding-bottom: 4px;
}
#screen-auth .auth-title {
  margin-bottom: 4px;
}
#screen-auth .auth-hint {
  margin-bottom: 10px;
}
#screen-auth .auth-card.auth-pick {
  margin: 0 0 4px;
  padding: 12px 14px 10px;
}

/* profile-setup · 手机性别选择 */
#screen-profile-setup.active {
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.97), rgba(10, 16, 30, 0.98));
}
#screen-profile-setup .profile-setup-card {
  margin-top: 8vh;
}
#screen-profile-setup .gender-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 14px;
}
#screen-profile-setup .gender-pick-btn {
  min-height: 48px;
  touch-action: manipulation;
  font-size: 15px;
}
#screen-profile-setup .gender-pick-btn.is-on {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.65);
}
#screen-profile-setup #setupName {
  font-size: 16px;
}
#screen-profile-setup #btnProfileSetup {
  min-height: 48px;
  touch-action: manipulation;
}

/* profile-setup · 手机性别按钮可点 */
#screen-profile-setup.active {
  position: relative;
  z-index: 90;
}
#screen-profile-setup .profile-setup-card {
  position: relative;
  z-index: 2;
}
#screen-profile-setup .gender-pick {
  position: relative;
  z-index: 3;
}
#screen-profile-setup .gender-pick-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 4;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(251, 191, 36, 0.35);
  user-select: none;
  -webkit-user-select: none;
}
#screen-profile-setup .profile-gender-skip {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.72);
  line-height: 1.45;
  text-align: center;
}

.gamble-pick-menu--settings .menu-electric-flow { display: none !important; }
.gamble-pick-menu--settings .menu-pick-title { letter-spacing: 0.02em !important; }
.settings-footer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
/* cs-hub-ui */
#screen-cs .cs-hub-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  gap: 10px;
}
#screen-cs .cs-hub-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#screen-cs .cs-hub-tab {
  border: 0;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(219, 234, 254, 0.72);
  background: transparent;
  cursor: pointer;
}
#screen-cs .cs-hub-tab.is-active {
  color: #eff6ff;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.42), rgba(37, 99, 235, 0.28));
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}
#screen-cs .cs-hub-panels {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#screen-cs .cs-hub-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}
#screen-cs .cs-hub-panel.is-active {
  display: flex;
}
#screen-cs .cs-hub-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#screen-cs .cs-hub-list--notes {
  min-height: 180px;
  max-height: 42vh;
}
#screen-cs .cs-hub-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
#screen-cs .cs-hub-row:last-child {
  border-bottom: 0;
}
#screen-cs .cs-hub-row:active {
  background: rgba(59, 130, 246, 0.12);
}
#screen-cs .cs-hub-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(59, 130, 246, 0.16);
}
#screen-cs .cs-hub-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
#screen-cs .cs-hub-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #eff6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen-cs .cs-hub-row-preview {
  font-size: 12px;
  color: rgba(219, 234, 254, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen-cs .cs-hub-row-meta {
  font-size: 11px;
  color: rgba(191, 219, 254, 0.55);
  white-space: nowrap;
}
#screen-cs .cs-hub-empty {
  padding: 28px 18px;
  text-align: center;
  color: rgba(219, 234, 254, 0.62);
  font-size: 13px;
  line-height: 1.6;
}
#screen-cs .cs-hub-note {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#screen-cs .cs-hub-note:last-child {
  border-bottom: 0;
}
#screen-cs .cs-hub-note-time {
  font-size: 11px;
  color: rgba(191, 219, 254, 0.55);
  margin-bottom: 4px;
}
#screen-cs .cs-hub-note-body {
  font-size: 13px;
  line-height: 1.55;
  color: #eff6ff;
  white-space: pre-wrap;
}
/* cs-group-chat */
#screen-cs-group-chat .cs-group-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 52px);
  padding: 0 !important;
  gap: 0;
}
#screen-cs-group-chat .cs-group-panel {
  flex: 1;
  min-height: 0;
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 0;
  border-right: 0;
}
#screen-cs-group-chat .cam-cs-chat {
  min-height: 220px;
  max-height: none;
}
#screen-cs-group-chat .cam-cs-compose {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
#screen-cs-group-chat .cs-group-msg-time {
  font-size: 10px;
  color: rgba(191, 219, 254, 0.5);
  margin-top: 4px;
}
/* cs-tg-pages — Telegram 四页 1:1 风格 */
#screen-cs .cs-tg-panels { gap: 0; }
#screen-cs .cs-tg-toolbar {
  padding: 8px 10px 6px;
  flex: 0 0 auto;
}
#screen-cs .cs-tg-toolbar-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(219, 234, 254, 0.82);
  padding: 8px 4px 4px;
}
#screen-cs .cs-tg-search {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: #eff6ff;
  background: rgba(0, 0, 0, 0.28);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#screen-cs .cs-tg-search::placeholder { color: rgba(191, 219, 254, 0.45); }
#screen-cs .cs-tg-list {
  border-radius: 0 0 14px 14px;
  background: rgba(15, 23, 42, 0.55);
}
#screen-cs .cs-tg-section {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.72);
}
#screen-cs .cs-tg-row {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
#screen-cs .cs-tg-row:last-child { border-bottom: 0; }
#screen-cs .cs-tg-row:active { background: rgba(59, 130, 246, 0.14); }
#screen-cs .cs-tg-row.is-pinned { background: rgba(59, 130, 246, 0.08); }
#screen-cs .cs-tg-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.35), rgba(29, 78, 216, 0.22));
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.16);
}
#screen-cs .cs-tg-avatar--channel {
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.22));
}
#screen-cs .cs-tg-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
#screen-cs .cs-tg-top,
#screen-cs .cs-tg-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
#screen-cs .cs-tg-title {
  font-size: 15px;
  font-weight: 700;
  color: #eff6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen-cs .cs-tg-time {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(191, 219, 254, 0.52);
}
#screen-cs .cs-tg-preview {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: rgba(219, 234, 254, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen-cs .cs-tg-badge {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #eff6ff;
  background: #3b82f6;
}
#screen-cs .cs-tg-meta {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(191, 219, 254, 0.5);
}
#screen-cs .cs-tg-compose textarea {
  min-height: 72px;
}

/* cs-hub-clean-20260731 · 工作台顶栏贴近飞机 */
#screen-cs .cs-head {
  align-items: center;
  margin: 0 0 10px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 2px 8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
#screen-cs .cs-head-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen-cs .cs-head-logout {
  flex: 0 0 auto;
  min-width: 56px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.88rem;
}
#screen-cs .cs-badge,
#screen-cs #csExpireHint,
#screen-cs .auth-hint#csExpireHint {
  display: none !important;
}
#screen-cs .cs-hub-tabs {
  margin-top: 2px;
}
/* cs-protocol-ui-20260731 */
#screen-cs .cs-tg-row--info {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(59, 130, 246, 0.1);
  pointer-events: none;
}

