/* WeChat-Ai bot ??????????????????????????*/

:root {
  /* Aelu陪伴 · synced with view.kuafuai.net home UI */
  --bot-bg: #fffdfb;
  --bot-card: rgba(255, 255, 255, 0.75);
  --bot-card-bg: rgba(255, 255, 255, 0.75);
  --bot-text: #333130;
  --bot-muted: #77706e;
  --bot-border: rgba(238, 218, 207, 0.3);
  --bot-dark: #9b6256;
  --bot-dark-hover: #8a564b;
  --bot-accent: #a56c60;
  --bot-accent-hover: #9b6256;
  --bot-accent-soft: rgba(155, 98, 86, 0.1);
  --bot-accent-hot: #c45c38;
  --bot-btn-bg: rgba(255, 255, 255, 0.75);
  --bot-btn-text: #333130;
  --bot-grad: linear-gradient(135deg, #bf7a5e 0%, #a56c60 100%);
  --bot-btn-grad: linear-gradient(135deg, #bf7a5e 0%, #a56c60 100%);
  --bot-btn-hover: linear-gradient(135deg, #b87256 0%, #9b6256 100%);
  --bot-btn-shadow: rgba(165, 108, 96, 0.28);
  --bot-shadow: rgba(170, 111, 79, 0.1);
  --bot-green-bg: #edf7ef;
  --bot-green-text: #559e5f;
  --bot-green-border: rgba(85, 158, 95, 0.22);
  --bot-radius-lg: 26px;
  --bot-radius-md: 20px;
  --bot-radius-sm: 14px;
  --bot-gap: 16px;
  --bot-gap-sm: 12px;
  --bot-page-x: 16px;
  --bot-shadow-sm: 0 2px 8px rgba(170, 111, 79, 0.06);
  --bot-shadow-md:
    0 3px 10px rgba(170, 111, 79, 0.06),
    0 1px 3px rgba(170, 111, 79, 0.04);
  --bot-shadow-lg:
    0 4px 14px rgba(170, 111, 79, 0.08),
    0 2px 6px rgba(170, 111, 79, 0.05);
  --bot-ease: cubic-bezier(0.25, 0.8, 0.45, 1);
  --bot-ease-soft: cubic-bezier(0.33, 1, 0.48, 1);
}

html.bot-dash-root.page-landing-root {
  --bot-text: #333130;
  --bot-btn-text: #333130;
  --bot-dark: #9b6256;
  --bot-dark-hover: #8a564b;
  --bot-accent: #a56c60;
  --bot-accent-hover: #9b6256;
  --bot-border: rgba(238, 218, 207, 0.3);
}

html.bot-dash-root {
  background: transparent !important;
  background-color: transparent !important;
}

html.bot-dash-root body {
  background: transparent !important;
  color: var(--bot-text);
  font-family: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== Cohesive dashboard layer ===== */
.bot-dash *, .bot-modal-root * { letter-spacing: 0; }

.bot-dash-main {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(14px, 2.4vw, 28px);
}

.bot-dash-grid,
.bot-stat-grid,
.bot-create-cards,
.bot-agents-list,
.bot-agent-form {
  gap: clamp(12px, 1.8vw, 20px);
}

.bot-profile-card,
.bot-stat-card,
.bot-chart-card,
.bot-create-card,
.bot-agent-item,
.bot-agent-form__section,
.bot-agent-detail__card,
.bot-bind-card,
.bot-agents-empty,
.bot-upload-zone,
.bot-reward-entry {
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius-md);
  box-shadow: var(--bot-shadow-md);
  background: var(--bot-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 弹窗一律实底，禁止透出背后页面（优惠挽留态除外，需独立视觉） */
.bot-modal-root .bot-modal,
.bot-modal.bot-modal--bind,
.bot-modal.bot-modal--method,
.bot-modal.bot-modal--custom,
.bot-modal.bot-modal--stars,
.bot-modal.bot-modal--activate:not([data-activate-mode="offer"]),
.bot-modal.bot-modal--create {
  background: #fffdfb !important;
  background-color: #fffdfb !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius-lg);
  box-shadow: var(--bot-shadow-lg);
}

.bot-create-card,
.bot-agent-item,
.bot-action-btn,
.bot-profile-card,
.bot-stat-card {
  transition: transform .2s var(--bot-ease), box-shadow .2s var(--bot-ease), border-color .2s ease;
}

@media (hover: hover) {
  .bot-create-card:hover,
  .bot-agent-item:hover,
  .bot-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--bot-shadow-lg);
    border-color: rgba(155, 98, 86, 0.22);
  }
}

.bot-agent-form__input,
.bot-agent-form__textarea {
  min-height: 46px;
  border-radius: var(--bot-radius-sm);
  border: none;
  background: #fff;
  color: var(--bot-text);
  line-height: 1.55;
  box-shadow: 0 2px 10px rgba(63, 63, 70, 0.07);
  transition: box-shadow .2s ease;
}

.bot-agent-form__textarea { min-height: 112px; resize: vertical; }
.bot-agent-form__input:focus,
.bot-agent-form__textarea:focus {
  border: none;
  outline: none;
  box-shadow: 0 4px 16px rgba(63, 63, 70, 0.12);
}

.bot-agent-form__btn,
.bot-agent-item__btn,
.bot-agents-empty__btn,
.bot-agent-detail__edit-btn,
.bot-agent-detail__ghost-btn,
.bot-agent-detail__delete-btn,
.bot-bind-card__actions button {
  min-height: 44px;
  border-radius: var(--bot-radius-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.bot-dash-subhead { margin-bottom: clamp(16px, 2.2vw, 26px); }
.bot-dash-subhead__title { line-height: 1.25; }
.bot-dash-subhead__sub,
.bot-modal__sub,
.bot-profile-card__sub,
.bot-agent-form__hint { line-height: 1.65; }

.bot-modal {
  width: min(92vw, 560px);
  max-height: min(88dvh, 760px);
  border-radius: var(--bot-radius-lg);
  border: 1px solid rgba(68, 64, 60, 0.08);
  box-shadow: 0 24px 64px rgba(63, 63, 70, 0.16);
}
.bot-modal__head { gap: 14px; }
.bot-modal__close { width: 40px; height: 40px; border-radius: var(--bot-radius-sm); }

.bot-bind-card__qr {
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
}
.bot-bind-card__qr img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.1); transform-origin: center; }
.bot-bind-card__tips { border-radius: var(--bot-radius-sm); line-height: 1.75; }

.bot-dash-bottom-nav {
  border-top-color: rgba(68, 64, 60, 0.09);
  box-shadow: 0 -8px 24px rgba(63, 63, 70, 0.05);
}
.bot-dash-bottom-nav__item { min-width: 0; }
.bot-dash-bottom-nav__label { white-space: nowrap; }

@media (max-width: 768px) {
  .bot-dash-main { padding-inline: 14px; }
  .bot-dash-top { margin-inline: 16px; }
  .bot-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); }
  .bot-profile-card,
  .bot-stat-card,
  .bot-chart-card,
  .bot-create-card,
  .bot-agent-item,
  .bot-agent-form__section { padding: 16px; }
}

html.bot-dash-root:has(.bot-dash) {
  overflow: hidden;
  height: 100%;
}

html.bot-dash-root:has(.bot-dash) body {
  overflow: hidden;
  height: 100%;
}

.bot-dash.ss-dashboard {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.bot-dash .ss-content-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
}

/* ===== Top capsule bar (default pages: sticky in flow) ===== */
.bot-dash-top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  margin: max(10px, env(safe-area-inset-top)) 16px 14px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(220, 200, 190, 0.25);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(170, 111, 79, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.35s var(--bot-ease-soft), background 0.35s var(--bot-ease-soft);
  overflow: visible;
}

.bot-dash-top::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--bot-ease-soft);
}

.bot-dash-top.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(170, 111, 79, 0.1);
}

.bot-dash-top.is-scrolled::after {
  opacity: 0;
}

.bot-dash-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: var(--bot-text);
}

.bot-dash-top__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bf7a5e 0%, #a56c60 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(165, 108, 96, 0.3);
}

.bot-dash-top__mark svg {
  display: block;
}

.bot-dash-top__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333130;
}

.bot-dash-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(220, 200, 190, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #53504c;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 52;
}

.bot-dash-menu-btn__label {
  display: inline;
  line-height: 1;
  letter-spacing: 0.02em;
}

.bot-dash-menu-btn:active {
  transform: scale(0.96);
  background: var(--bot-accent-soft);
  color: var(--bot-dark);
}

.bot-dash-menu-btn[aria-expanded="true"],
.bot-dash-menu-btn.is-fan-open {
  background: #f8ede8;
  color: #9b6256;
  border-color: rgba(155, 98, 86, 0.18);
}

.bot-dash-menu-btn__label {
  line-height: 1;
}

.bot-dash-sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--bot-radius-md);
  border: 1px solid var(--bot-border);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.bot-dash-sidebar__user:hover {
  background: #fafafa;
}

.bot-dash-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(63, 63, 70, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.bot-dash-drawer-backdrop:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

html.bot-drawer-lock,
html.bot-drawer-lock body {
  overflow: hidden !important;
  touch-action: none;
}

@media (min-width: 769px) {
  .bot-dash-menu-btn,
  .bot-dash-sidebar__close,
  .bot-dash-drawer-backdrop {
    display: none !important;
  }
}

.bot-dash-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 50;
  width: min(300px, 86vw);
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--bot-border);
  box-shadow: 8px 0 40px rgba(63, 63, 70, 0.12);
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.bot-dash.drawer-open .bot-dash-sidebar {
  transform: translateX(0);
}

.bot-dash.drawer-open .ss-content-col {
  overflow: hidden;
  touch-action: none;
}

.bot-dash-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid rgba(232, 223, 212, 0.8);
  flex-shrink: 0;
}

.bot-dash-sidebar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--bot-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.bot-dash-sidebar__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--bot-radius-sm);
  background: var(--bot-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--bot-shadow);
}

.bot-dash-sidebar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--bot-border);
  border-radius: var(--bot-radius-sm);
  background: var(--bot-card);
  color: var(--bot-text);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bot-dash-sidebar__close:active {
  background: #f3f4f6;
}

.bot-dash-sidebar__menu {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-dash-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--bot-radius-md);
  color: #57534e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.bot-dash-sidebar__link:active {
  background: #f3f4f6;
}

.bot-dash-sidebar__link.is-active {
  background: var(--bot-accent-soft);
  color: var(--bot-dark);
  font-weight: 600;
}

.bot-dash-sidebar__icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.bot-dash-sidebar__foot {
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bot-border);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.98);
}

.bot-dash-sidebar__user--static {
  cursor: default;
}

.bot-dash-sidebar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bot-grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.bot-user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.bot-user-avatar-img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.bot-dash-sidebar__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.bot-dash-sidebar__meta strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--bot-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-dash-sidebar__meta span {
  font-size: 11px;
  color: var(--bot-dark);
  font-weight: 500;
}

/* ===== ??? ===== */
.bot-dash-main.ss-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px var(--bot-page-x) calc(76px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--bot-gap);
}

.bot-dash-grid {
  display: flex;
  flex-direction: column;
  gap: var(--bot-gap);
}

.bot-dash-grid__primary,
.bot-dash-grid__secondary {
  display: flex;
  flex-direction: column;
  gap: var(--bot-gap);
  min-width: 0;
}

/* ===== ???????? ===== */
@keyframes bot-enter-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bot-chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bot-chart-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bot-enter {
  opacity: 0;
  animation: bot-enter-rise 0.4s var(--bot-ease-soft) both;
  animation-delay: var(--bot-enter-delay, 0s);
}


.bot-profile-card,
.bot-stat-card,
.bot-chart-card {
  transition: transform 0.4s var(--bot-ease-soft), box-shadow 0.4s var(--bot-ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  .bot-enter {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .bot-chart-svg polyline,
  .bot-chart-svg circle,
  .bot-chart-svg path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Hero profile card ===== */
.bot-profile-card {
  background: var(--bot-card-bg);
  border-radius: var(--bot-radius-lg);
  border: 1px solid var(--bot-border);
  box-shadow: var(--bot-shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}

.bot-profile-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bot-profile-card__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bot-profile-card__points {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
}

.bot-profile-card__points-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bot-text);
}

.bot-profile-card__points-label {
  font-size: 11px;
  font-weight: 400;
  color: #807a78;
}

.bot-profile-card__points-link {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  background: var(--bot-grad);
  box-shadow: 0 2px 6px rgba(165, 108, 96, 0.25);
}

.bot-profile-card__points-link:active {
  opacity: 0.75;
}

.bot-profile-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 100%;
}

.bot-profile-card__sub {
  margin: 0;
  font-size: 14px;
  color: var(--bot-muted);
  line-height: 1.55;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bot-profile-card__main {
  min-width: 0;
  flex: 1;
}

.bot-profile-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.bot-profile-card__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bot-text);
  line-height: 1.2;
}

.bot-profile-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bot-green-bg);
  color: var(--bot-green-text);
  border: none;
  font-size: 11px;
  font-weight: 500;
}

.bot-profile-card--empty .bot-profile-card__sub {
  max-width: 240px;
}

.bot-profile-card__back {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--bot-border);
  color: var(--bot-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, transform 0.15s ease;
}

.bot-profile-card__back:active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(0.99);
}

/* ===== ?????? 2?3 ===== */
.bot-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bot-gap-sm);
}

.bot-reward-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  padding: 16px 88px 16px 16px;
  border-radius: var(--bot-radius-md);
  background: #fff8f3;
  border: 1px solid rgba(238, 218, 207, 0.7);
  box-shadow: var(--bot-shadow-md);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--bot-ease), box-shadow .2s var(--bot-ease), border-color .2s ease;
}
button.bot-reward-entry {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bot-reward-entry:active { transform: scale(0.99); }
.bot-reward-entry__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--bot-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f1ee;
  color: #a98275;
}
.bot-reward-entry__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-right: 4px;
}
.bot-reward-entry__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bot-text);
  line-height: 1.2;
}
.bot-reward-entry__sub {
  font-size: 12px;
  color: var(--bot-muted);
  line-height: 1.4;
}
.bot-reward-entry__tag {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #9b6256;
  background: #f8ede8;
  border: 1px solid rgba(155, 98, 86, 0.1);
  white-space: nowrap;
}
.bot-reward-entry--warehouse {
  border-color: var(--bot-border);
}
.bot-reward-entry--warehouse .bot-reward-entry__icon {
  background: #f8f1ee;
  color: #a98275;
}
.bot-reward-entry--warehouse .bot-reward-entry__tag {
  color: #9b6256;
  background: #f8ede8;
}
.bot-reward-entry--video {
  border-color: rgba(196, 92, 56, 0.22);
  background: linear-gradient(135deg, #fff7f0 0%, #ffeede 55%, #fff4ec 100%);
}
.bot-reward-entry--video .bot-reward-entry__icon {
  background: #f7ece6;
  color: #c45c38;
}
.bot-reward-entry--video .bot-reward-entry__tag {
  color: #9b6256;
  background: rgba(255, 255, 255, 0.72);
}

.bot-modal-root--video-quota {
  z-index: 200 !important;
}
.bot-modal-root--video-quota .vq-modal__gallery {
  display: grid;
  gap: 8px;
  width: 100%;
}
.bot-modal-root--video-quota .vq-modal__shot {
  display: block;
  width: 100%;
  border-radius: var(--bot-radius-md);
  background: #fff;
  object-fit: cover;
  max-height: 120px;
  box-shadow: 0 4px 16px rgba(68, 64, 60, 0.08);
}
.bot-modal-root--video-quota .bot-modal.bot-modal--bind {
  background: #fffdfb !important;
  background-color: #fffdfb !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bot-modal-root--video-quota .bot-modal-backdrop {
  background: rgba(45, 40, 38, 0.58) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bot-modal-root--video-quota .bot-bind-card__qr,
.bot-modal-root--video-quota .bot-bind-card__qr-link,
.bot-modal-root--video-quota #botVideoQuotaQr {
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  pointer-events: auto !important;
  touch-action: auto !important;
}
.bot-modal-root--video-quota .bot-bind-card__qr {
  width: min(196px, 58vw);
  height: min(196px, 58vw);
  border-radius: 18px;
  overflow: hidden;
  background: #fff !important;
}
.bot-modal-root--video-quota .bot-bind-card__qr-loading {
  display: none !important;
  pointer-events: none !important;
}
.bot-modal-root--video-quota .bot-bind-card__qr-link {
  display: block;
  width: 100%;
  height: 100%;
}
html.bot-modal-lock .bot-dash-main.is-vq-locked,
.bot-dash-main.is-vq-locked {
  overflow: hidden !important;
}

.bot-action-grid {
  margin-top: 0;
}

.bot-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 14px;
  border-radius: 999px;
  border: 1px solid var(--bot-border);
  background: var(--bot-btn-bg);
  color: var(--bot-btn-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 2px 6px rgba(170, 111, 79, 0.05),
    inset 0 1px rgba(255, 255, 255, 0.9);
  transition: background 0.3s var(--bot-ease-soft), color 0.3s var(--bot-ease-soft), transform 0.35s var(--bot-ease-soft), box-shadow 0.35s var(--bot-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.bot-action-btn:active {
  transform: scale(0.99);
}

.bot-action-btn.is-active {
  background: var(--bot-btn-grad);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset,
    0 4px 14px var(--bot-btn-shadow);
}

/* ===== ??? 2?2 ===== */
.bot-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bot-gap-sm);
}

.bot-stat-card {
  background: #ffffff;
  border-radius: var(--bot-radius-md);
  border: 1px solid var(--bot-border);
  box-shadow: var(--bot-shadow-md);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 14px 16px;
  min-height: 80px;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  visibility: visible;
  color: var(--bot-text);
}

.bot-stat-card.bot-enter {
  /* solid card + animation; never leave permanently invisible */
  animation: bot-enter-rise 0.4s var(--bot-ease-soft) both;
}

.bot-stat-card__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #807a78;
  margin-bottom: 6px;
  line-height: 1.3;
}

.bot-stat-card__value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #333130;
  line-height: 1.1;
}

/* ===== Chart / dialog card ===== */
.bot-chart-card {
  background: var(--bot-card-bg);
  border-radius: var(--bot-radius-lg);
  border: 1px solid var(--bot-border);
  box-shadow: var(--bot-shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}

.bot-chart-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bot-text);
}

.bot-chart-card__canvas {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.bot-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bot-chart-svg polyline {
  stroke: #a56c60 !important;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: bot-chart-draw 1.6s var(--bot-ease-soft) forwards;
  animation-delay: calc(var(--bot-enter-delay, 0s) + 0.3s);
}

.bot-chart-svg path {
  opacity: 0;
  fill: rgba(165, 108, 96, 0.14) !important;
  animation: bot-chart-fade 1.2s var(--bot-ease-soft) forwards;
  animation-delay: calc(var(--bot-enter-delay, 0s) + 0.4s);
}

.bot-chart-svg circle {
  opacity: 0;
  stroke: #a56c60 !important;
  animation: bot-chart-fade 0.9s var(--bot-ease-soft) forwards;
  animation-delay: calc(var(--bot-enter-delay, 0s) + 1.1s);
}

/* ===== ??????? ===== */
.bot-dash-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  align-items: stretch;
  gap: 4px;
  padding: 0 10px calc(env(safe-area-inset-bottom, 0px));
  min-height: 50px;
  background: #fff;
  border-top: none;
  box-shadow: 0 -2px 10px rgba(170, 111, 79, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bot-dash-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 4px 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #807a78;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.28s var(--bot-ease-soft), background 0.28s var(--bot-ease-soft), transform 0.2s var(--bot-ease-soft);
}

.bot-dash-bottom-nav__item:active {
  transform: scale(0.97);
}

.bot-dash-bottom-nav__item.is-active {
  color: #9b6256;
  font-weight: 600;
  background: transparent;
}

.bot-dash-bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.bot-dash-bottom-nav__label {
  line-height: 1.1;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .bot-dash-bottom-nav {
    display: flex;
  }

  .bot-profile-card__row {
    flex-direction: column;
    align-items: stretch;
  }

  .bot-profile-card__top {
    align-items: center;
  }

  .bot-profile-card__points-num {
    font-size: 20px;
  }

  .bot-profile-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .bot-profile-card__actions .bot-agent-item__btn {
    flex: 1 1 auto;
  }
}

/* ===== Toast ===== */
html.bot-dash-root .toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(28, 28, 30, 0.88);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--bot-radius-md);
  font-size: 14px;
  z-index: 13000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

html.bot-dash-root .toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* dialog / 邀请码层打开时，提示必须盖在弹窗之上 */
html.bot-dash-root dialog .toast,
html.bot-dash-root dialog[open] .toast,
html.bot-dash-root .me-invite-layer .toast,
html.me-invite-lock .toast {
  position: fixed;
  z-index: 2147483000;
}

/* ===== PC ??? ===== */
@media (min-width: 769px) {
  html.bot-dash-root:has(.bot-dash) {
    overflow: auto;
    height: auto;
  }

  html.bot-dash-root:has(.bot-dash) body {
    overflow: auto;
    height: auto;
  }

  .bot-dash.ss-dashboard {
    display: flex;
    flex-direction: row;
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    overflow: hidden;
  }

  .bot-dash-sidebar {
    display: flex;
    flex-direction: column;
    width: 248px;
    flex-shrink: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid var(--bot-border);
    box-shadow: 4px 0 24px rgba(63, 63, 70, 0.03);
    position: sticky;
    top: 0;
    z-index: 40;
    transform: none;
    transition: none;
    padding-bottom: 0;
    overflow: hidden;
  }

  .bot-dash-sidebar__head {
    padding: 24px 20px 14px;
    border-bottom: none;
  }

  .bot-dash-sidebar__link:hover {
    background: var(--bot-accent-soft);
    color: var(--bot-dark);
  }

  .bot-dash-sidebar__link.is-active {
    background: var(--bot-accent-soft);
    color: var(--bot-dark);
  }

  .bot-dash-sidebar__foot {
    padding: 16px;
    background: transparent;
  }

  .bot-dash .ss-content-col {
    flex: 1;
    min-width: 0;
    height: 100vh;
    max-width: none;
    margin: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
  }

  .bot-dash-top {
    margin: 16px 20px 14px;
    padding: 8px 12px 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(220, 200, 190, 0.25);
    box-shadow: 0 2px 8px rgba(170, 111, 79, 0.06);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .bot-dash-top::after {
    display: none;
  }

  .bot-dash-top__name {
    font-size: 17px;
    font-weight: 800;
  }

  .bot-dash-main.ss-main {
    padding: 20px 28px 36px;
    gap: 20px;
    max-width: 1080px;
  }

  .bot-dash-bottom-nav {
    display: none !important;
  }

  .bot-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
  }

  .bot-dash-grid__primary,
  .bot-dash-grid__secondary {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }

  .bot-profile-card {
    padding: 22px 24px 18px;
  }

  .bot-profile-card__name {
    font-size: 30px;
  }

  .bot-profile-card__back:hover {
    background: #e8e5e1;
  }

  .bot-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bot-action-btn {
    min-height: 48px;
    font-size: 14px;
  }

  .bot-action-btn:hover:not(.is-active) {
    background: linear-gradient(165deg, #fffaf6 0%, #fff3ea 100%);
    transform: translateY(-1px);
    box-shadow: var(--bot-shadow-md);
  }

  .bot-action-btn.is-active:hover {
    background: var(--bot-btn-hover);
    transform: translateY(-1px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.38) inset,
      0 -1px 0 rgba(0, 0, 0, 0.12) inset,
      0 6px 18px var(--bot-btn-shadow);
  }

  .bot-profile-card:hover,
  .bot-chart-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--bot-shadow-lg);
  }

  .bot-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bot-stat-card {
    padding: 16px 14px;
    min-height: 84px;
    transition: transform 0.4s var(--bot-ease-soft), box-shadow 0.4s var(--bot-ease-soft);
  }

  .bot-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--bot-shadow-md);
  }

  .bot-stat-card__value {
    font-size: 24px;
  }

  .bot-chart-card {
    padding: 20px 18px 16px;
    flex: 1;
  }

  .bot-chart-card__title {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .bot-chart-card__canvas {
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .bot-dash-main.ss-main {
    padding: 24px 36px 44px;
    gap: 22px;
  }

  .bot-dash-grid {
    gap: 22px;
  }

  .bot-dash-grid__primary,
  .bot-dash-grid__secondary {
    gap: 22px;
  }

  .bot-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-chart-card__canvas {
    height: 220px;
  }
}

@media (min-width: 1280px) {
  .bot-dash-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
  }

  .bot-dash-grid__primary,
  .bot-dash-grid__secondary {
    gap: 24px;
  }

  .bot-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bot-chart-card__canvas {
    height: 260px;
  }
}

/* ===== ?????? ===== */
.bot-dash-main--agents,
.bot-dash-main--form {
  justify-content: flex-start;
}

.bot-agents-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: min(420px, calc(100dvh - 220px));
  padding: 32px 20px;
}

.bot-agents-empty__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bot-text);
}

.bot-agents-empty__desc {
  margin: 0 0 28px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bot-muted);
}

.bot-agents-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.28);
  transition: background 0.3s var(--bot-ease-soft), transform 0.2s var(--bot-ease-soft), box-shadow 0.3s var(--bot-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.bot-agents-empty__btn:active {
  transform: scale(0.98);
  background: #06ad56;
}

/* 未开通账号：创建按钮保持微信绿 */
.bot-agents-empty__btn--need-activate {
  background: #07c160 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.28) !important;
}

/* ===== ????? ===== */
.bot-dash-subhead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  margin: max(10px, env(safe-area-inset-top)) var(--bot-page-x) 0;
  padding: 8px 4px 4px;
}

.bot-dash-subhead__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: var(--bot-radius-sm);
  border: 1px solid var(--bot-border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--bot-text);
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: var(--bot-shadow-sm);
}

.bot-dash-subhead__meta {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.bot-dash-subhead__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bot-text);
  line-height: 1.25;
}

.bot-dash-subhead__sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bot-muted);
}

@media (min-width: 769px) {
  .bot-dash-subhead {
    margin: 0;
    padding: 16px 28px 8px;
  }

  .bot-dash-subhead__title {
    font-size: 22px;
  }
}

/* ===== ?? ===== */
html.bot-modal-lock,
html.bot-modal-lock body {
  overflow: hidden !important;
}

.bot-modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bot-modal-root[hidden] {
  display: none !important;
}

/* 弹窗打开时顶栏回到页面层，被遮罩盖住（不要压在激活框之上） */
html.bot-modal-lock .bot-dash-top {
  z-index: 40 !important;
}

.bot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 63, 70, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bot-modal {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--bot-radius-lg);
  border: none;
  background: #fffdfb;
  box-shadow:
    0 8px 28px rgba(63, 63, 70, 0.10),
    0 22px 56px rgba(63, 63, 70, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 22px 18px 20px;
}

.bot-modal[hidden] {
  display: none !important;
}

.bot-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.bot-modal__titles {
  min-width: 0;
  flex: 1;
}

.bot-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bot-text);
}

.bot-modal__sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bot-muted);
}

.bot-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--bot-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bot-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.bot-create-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bot-create-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 16px 14px;
  border: none;
  border-radius: var(--bot-radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--bot-shadow-sm);
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s var(--bot-ease-soft), box-shadow 0.3s var(--bot-ease-soft), border-color 0.3s var(--bot-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.bot-create-card:active {
  transform: scale(0.99);
}

.bot-create-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--bot-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.bot-create-card__icon--custom,
.bot-create-card__icon--build,
.bot-create-card__icon--repo {
  background: rgba(232, 180, 168, 0.28);
  color: #5c3d36;
}

.bot-create-card__icon--clone {
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
}

.bot-create-card--row {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px;
}

.bot-create-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bot-create-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bot-text);
}

.bot-create-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--bot-muted);
}

.bot-create-cards--method {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bot-modal {
    padding: 24px 22px 22px;
  }

  .bot-create-cards:not(.bot-create-cards--method) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bot-create-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--bot-shadow-md);
  }
}

/* ===== ?????? ===== */
.bot-modal--create {
  width: min(560px, calc(100vw - 40px));
  max-height: min(84dvh, 520px);
  padding: 16px 14px 14px;
}

.bot-modal--create .bot-modal__head {
  margin-bottom: 12px;
}

.bot-modal--create .bot-modal__title {
  font-size: 17px;
}

.bot-modal--create .bot-modal__sub {
  margin-top: 4px;
  font-size: 12px;
}

.bot-modal--create .bot-create-cards {
  gap: 12px;
}

.bot-modal--create .bot-create-card {
  padding: 18px 16px;
  gap: 14px;
  min-height: 78px;
}

.bot-modal--create .bot-create-card--row {
  align-items: center;
  padding: 18px 16px;
}

.bot-modal--create .bot-create-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
}

.bot-modal--create .bot-create-card__title {
  font-size: 16px;
}

.bot-modal--create .bot-create-card__desc {
  font-size: 13px;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .bot-modal--create .bot-create-cards {
    gap: 12px;
  }
}

/* ===== 积分不足门槛 ===== */
.bot-modal--stars {
  width: min(420px, calc(100vw - 40px));
  padding: 24px 18px 22px;
  background: var(--bot-card-bg);
  color: var(--bot-text);
}

.bot-modal--stars .bot-modal__title {
  font-size: 18px;
  color: var(--bot-text);
}

.bot-modal--stars .bot-modal__sub {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bot-muted);
}

.bot-stars-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.bot-stars-gate__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--bot-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--bot-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, transform 0.12s ease;
}

.bot-stars-gate__btn:active {
  transform: scale(0.99);
}

.bot-stars-gate__btn--primary {
  border: 0;
  background: var(--bot-btn-grad);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 4px 14px var(--bot-btn-shadow);
}

.bot-stars-gate__btn--primary:hover {
  background: var(--bot-btn-hover);
}

/* ===== 账号激活弹窗 ===== */
.bot-modal--activate {
  width: min(380px, calc(100vw - 40px));
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
  background: var(--bot-card-bg);
  color: var(--bot-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.bot-activate__close {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 3;
}

.bot-activate__icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--bot-grad);
  box-shadow: 0 8px 20px rgba(165, 108, 96, 0.28);
}

.bot-activate__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--bot-text);
}

.bot-activate__lead {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--bot-text);
}

.bot-activate__lead strong {
  color: var(--bot-dark);
}

.bot-activate__desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--bot-muted);
}

.bot-activate__pay {
  display: block;
  margin: 22px 0 0;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.28);
  box-sizing: border-box;
}

.bot-activate__pay:active {
  transform: scale(0.99);
  background: #06ad56;
}

.bot-activate__pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.bot-activate__status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--bot-muted);
}

.bot-activate__pack {
  display: block;
  margin: 16px auto 0;
  font-size: 16px;
  font-weight: 700;
  color: #9f1239;
  text-decoration: none;
}

.bot-activate__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--bot-muted);
}

/* ===== 激活挽留优惠态（与正价弹窗明显区分） ===== */
.bot-activate__ribbon {
  position: absolute;
  top: 14px;
  left: -6px;
  right: auto;
  z-index: 2;
  padding: 6px 12px 6px 14px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(135deg, #e4572e 0%, #f4a261 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(228, 87, 46, 0.35);
  transform-origin: left center;
}
.bot-activate__ribbon::after {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  bottom: -6px;
  border: 3px solid transparent;
  border-top-color: #9c2f14;
  border-right-color: #9c2f14;
}
.bot-activate__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c2410c;
}
.bot-activate__price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 10px;
  margin: 14px 0 4px;
  perspective: 600px;
}
/* display:flex/inline-flex 会盖掉原生 [hidden]，正价页会漏出优惠价对比 */
.bot-activate__price-box[hidden],
.bot-activate__ribbon[hidden],
.bot-activate__eyebrow[hidden],
.bot-activate__save[hidden],
.bot-activate__pack[hidden],
.bot-activate__icon-svg[hidden] {
  display: none !important;
}
.bot-activate__price-old {
  font-size: 16px;
  font-weight: 600;
  color: #9a908c;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.bot-activate__price-arrow {
  font-size: 14px;
  color: #e4572e;
  font-weight: 700;
}
.bot-activate__price-new {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: #c2410c;
  letter-spacing: -0.02em;
}
.bot-activate__save {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}
.bot-activate__icon-svg[hidden] {
  display: none !important;
}

.bot-modal-root .bot-modal.bot-modal--activate[data-activate-mode="offer"] {
  padding-top: 36px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(244, 162, 97, 0.35), transparent 55%),
    linear-gradient(165deg, #fff7ed 0%, #ffffff 48%, #ecfdf5 100%) !important;
  background-color: #fff7ed !important;
  border: 2px solid rgba(228, 87, 46, 0.5) !important;
  box-shadow:
    0 18px 40px rgba(194, 65, 12, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset !important;
  transform-style: preserve-3d;
  overflow: visible;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__icon {
  background: linear-gradient(145deg, #f97316, #ea580c 55%, #16a34a) !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35) !important;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__title {
  color: #9a3412;
  font-size: 24px;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__lead {
  margin-top: 8px;
  color: #7c2d12;
  font-weight: 600;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__lead strong {
  color: #c2410c;
  font-size: 1.08em;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__desc {
  color: #9a3412;
  opacity: 0.78;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__hint {
  color: #b45309;
  font-weight: 700;
}
.bot-modal--activate[data-activate-mode="offer"] .bot-activate__pay {
  margin-top: 18px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #b91c1c 100%) !important;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.4) !important;
  animation: botActivatePayPulse 1.6s ease-in-out infinite;
}
.bot-modal--activate.is-offer-enter {
  animation: botActivateOfferFlip 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bot-modal--activate.is-offer-enter .bot-activate__price-new {
  animation: botActivatePricePop 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bot-modal--activate.is-offer-enter .bot-activate__ribbon {
  animation: botActivateRibbonIn 0.55s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bot-modal--activate.is-offer-enter .bot-activate__icon {
  animation: botActivateIconBounce 0.7s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bot-modal--activate.is-offer-enter .bot-activate__save {
  animation: botActivatePricePop 0.65s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bot-modal-root.is-activate-offer .bot-modal-backdrop {
  background: rgba(28, 16, 8, 0.62);
  transition: background 0.35s ease;
}

@keyframes botActivateOfferFlip {
  0% {
    opacity: 0.35;
    transform: perspective(900px) rotateY(-18deg) rotateX(6deg) scale(0.88) translateY(12px);
    filter: blur(1px);
  }
  55% {
    opacity: 1;
    transform: perspective(900px) rotateY(6deg) rotateX(-2deg) scale(1.03) translateY(-2px);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateY(0) rotateX(0) scale(1) translateY(0);
    filter: none;
  }
}
@keyframes botActivatePricePop {
  0% { transform: scale(0.6) translateY(10px); opacity: 0; }
  60% { transform: scale(1.12) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes botActivateRibbonIn {
  0% { transform: translateX(-24px) scale(0.8); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes botActivateIconBounce {
  0% { transform: scale(0.7) rotate(-12deg); opacity: 0.4; }
  55% { transform: scale(1.12) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes botActivatePayPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(220, 38, 38, 0.4); transform: scale(1); }
  50% { box-shadow: 0 10px 28px rgba(220, 38, 38, 0.55); transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .bot-modal--activate.is-offer-enter,
  .bot-modal--activate.is-offer-enter .bot-activate__price-new,
  .bot-modal--activate.is-offer-enter .bot-activate__ribbon,
  .bot-modal--activate.is-offer-enter .bot-activate__icon,
  .bot-modal--activate.is-offer-enter .bot-activate__save,
  .bot-modal--activate[data-activate-mode="offer"] .bot-activate__pay {
    animation: none !important;
  }
}



/* ===== 账号激活成功态（主题色） ===== */
.bot-activate__main[hidden] { display: none !important; }
.bot-activate-success[hidden] { display: none !important; }

.bot-modal--activate.is-activate-success .bot-activate__close {
  display: none !important;
}
.bot-modal--activate.is-activate-success {
  padding: 36px 22px 28px;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(191, 122, 94, 0.22), transparent 58%),
    linear-gradient(165deg, #fffdfb 0%, #fff8f4 45%, #ffffff 100%) !important;
  border: 1px solid rgba(238, 218, 207, 0.55) !important;
  box-shadow: var(--bot-shadow-lg), 0 0 0 1px rgba(255,255,255,0.8) inset !important;
  overflow: hidden;
}

.bot-activate-success {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  animation: botActivateSuccessIn 0.55s var(--bot-ease-soft) both;
}

.bot-activate-success__aura {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 122, 94, 0.28) 0%, transparent 70%);
  pointer-events: none;
  animation: botActivateAura 2.4s ease-in-out infinite;
}

.bot-activate-success__icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  margin: 6px 0 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bot-grad);
  box-shadow:
    0 12px 28px rgba(165, 108, 96, 0.32),
    0 0 0 8px rgba(191, 122, 94, 0.12);
  animation: botActivateIconBounce 0.7s var(--bot-ease-soft) both;
}

.bot-activate-success__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bot-accent);
}

.bot-activate-success__title {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--bot-text);
  letter-spacing: -0.01em;
}

.bot-activate-success__desc {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  max-width: 16em;
  font-size: 13px;
  line-height: 1.65;
  color: var(--bot-muted);
}

.bot-activate-success__btn {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--bot-btn-grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px var(--bot-btn-shadow);
}
.bot-activate-success__btn:active {
  transform: scale(0.99);
  background: var(--bot-btn-hover);
}

@keyframes botActivateSuccessIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes botActivateAura {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* 绑定成功：跟主题，不用刺眼绿 */
.bot-bind-result--theme {
  position: relative;
  padding: 16px 10px 8px;
  gap: 8px;
}
.bot-bind-result__aura {
  position: absolute;
  top: 0;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 122, 94, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.bot-bind-result__eyebrow {
  position: relative;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bot-accent);
}
.bot-bind-result--theme .bot-bind-result__icon--ok {
  position: relative;
  background: var(--bot-grad);
  box-shadow:
    0 10px 24px rgba(165, 108, 96, 0.3),
    0 0 0 7px rgba(191, 122, 94, 0.12);
}
.bot-bind-result--theme .bot-bind-result__title {
  color: var(--bot-text);
}
.bot-bind-result--theme .bot-bind-result__desc {
  color: var(--bot-muted);
}
.bot-modal--bind[data-bind-view="success"] {
  background:
    radial-gradient(120% 80% at 50% -15%, rgba(191, 122, 94, 0.16), transparent 55%),
    var(--bot-card-bg) !important;
}

@media (prefers-reduced-motion: reduce) {
  .bot-activate-success,
  .bot-activate-success__icon,
  .bot-activate-success__aura {
    animation: none !important;
  }
}

.bot-modal--activate-pay {
  width: min(360px, calc(100vw - 40px));
  padding: 22px 18px 20px;
  background: var(--bot-card-bg);
}

.bot-activate-pay__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.bot-activate-pay__amount {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--bot-text);
}

.bot-activate-pay__status {
  margin: 0;
  font-size: 13px;
  color: var(--bot-muted);
}

/* ===== 自定义创建 / AI ===== */
.bot-modal--form {
  width: min(420px, calc(100vw - 40px));
  max-height: min(84dvh, 580px);
  padding: 16px 14px 14px;
}

.bot-modal--form .bot-modal__head {
  margin-bottom: 12px;
}

.bot-modal--form .bot-modal__title {
  font-size: 17px;
}

.bot-modal--form .bot-modal__sub {
  margin-top: 4px;
  font-size: 12px;
}

.bot-modal--form .bot-agent-form {
  gap: 10px;
}

.bot-modal--form .bot-agent-form__field {
  gap: 6px;
}

.bot-modal--form .bot-agent-form__label {
  font-size: 12px;
}

.bot-modal--form .bot-agent-form__input,
.bot-modal--form .bot-agent-form__textarea {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: var(--bot-radius-sm);
}

.bot-modal--form .bot-agent-form__textarea--lg {
  min-height: 140px;
}

.bot-modal--form .bot-agent-form__hint {
  font-size: 11px;
}

.bot-modal--form .bot-agent-form__actions {
  gap: 8px;
  margin-top: 2px;
}

.bot-modal--form .bot-agent-form__btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.bot-modal--form .bot-agent-result {
  padding: 10px 12px;
  font-size: 13px;
}

/* ===== ?? ===== */
.bot-agent-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bot-agent-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-agent-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bot-muted);
}

.bot-agent-form__label em {
  font-style: normal;
  color: var(--bot-dark);
}

.bot-agent-form__input,
.bot-agent-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: none;
  border-radius: var(--bot-radius-md);
  background: #fff;
  color: var(--bot-text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  box-shadow: 0 2px 10px rgba(63, 63, 70, 0.07);
  transition: box-shadow 0.2s ease;
}

.bot-agent-form__input:focus,
.bot-agent-form__textarea:focus {
  outline: none;
  border: none;
  box-shadow: 0 4px 16px rgba(63, 63, 70, 0.12);
}

.bot-agent-form__textarea--lg {
  min-height: 180px;
}

.bot-agent-form__hint {
  font-size: 12px;
  color: var(--bot-muted);
  line-height: 1.4;
}

.bot-agent-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.bot-agent-form__actions--page {
  margin-top: 8px;
}

.bot-agent-form__actions--full {
  justify-content: stretch;
}

.bot-agent-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--bot-ease-soft), transform 0.2s var(--bot-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.bot-agent-form__btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--bot-text);
}

.bot-agent-form__btn--primary {
  background: var(--bot-btn-grad);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px var(--bot-btn-shadow);
}

.bot-agent-form__btn--block {
  width: 100%;
  min-height: 48px;
}

.bot-agent-form__btn:active {
  transform: scale(0.98);
}

.bot-agent-page {
  border-radius: var(--bot-radius-lg);
  border: none;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--bot-shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 16px 20px;
}

.bot-agent-page__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bot-agent-result {
  padding: 14px;
  border-radius: var(--bot-radius-md);
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--bot-shadow-sm);
  color: var(--bot-text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ===== ??? ===== */
.bot-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 24px 16px;
  border: 1.5px dashed rgba(124, 58, 237, 0.22);
  border-radius: var(--bot-radius-md);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.bot-upload-zone.has-file {
  border-style: solid;
  border-color: rgba(124, 58, 237, 0.28);
  background: var(--bot-accent-soft);
}

.bot-upload-zone__icon {
  color: var(--bot-dark);
  opacity: 0.85;
}

.bot-upload-zone__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bot-text);
}

.bot-upload-zone__sub {
  font-size: 12px;
  color: var(--bot-muted);
}

.bot-upload-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bot-muted);
  font-size: 12px;
}

.bot-upload-divider::before,
.bot-upload-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bot-border);
}

@media (min-width: 769px) {
  .bot-agent-page {
    padding: 22px 24px 24px;
  }

  .bot-agents-empty {
    min-height: 480px;
  }
}

/* ===== 绑定弹窗：强制不透明主题底（盖过 .bot-modal 半透明） ===== */
.bot-modal.bot-modal--bind,
.bot-modal-root .bot-modal.bot-modal--bind {
  width: min(380px, calc(100vw - 40px));
  max-height: min(84dvh, 600px);
  padding: 16px 14px 14px;
  background: #fffdfb !important;
  background-color: #fffdfb !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(238, 218, 207, 0.65) !important;
  box-shadow:
    0 8px 28px rgba(170, 111, 79, 0.14),
    0 22px 56px rgba(63, 63, 70, 0.14);
}
.bot-modal-root:has(.bot-modal--bind) .bot-modal-backdrop,
.bot-modal-root--video-quota .bot-modal-backdrop {
  background: rgba(45, 40, 38, 0.58) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.bot-modal--bind .bot-modal__head {
  margin-bottom: 12px;
}

.bot-modal--bind .bot-modal__title {
  font-size: 17px;
}

.bot-modal--bind .bot-modal__sub {
  margin-top: 4px;
  font-size: 12px;
}

.bot-bind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bot-bind-card__agent {
  font-size: 15px;
  font-weight: 700;
  color: var(--bot-text);
}

.bot-bind-card__code {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: var(--bot-radius-sm);
  background: #f5efe8;
  color: var(--bot-text);
  font-size: 14px;
  letter-spacing: 0.04em;
  user-select: all;
}

.bot-bind-card__qr {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--bot-border);
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bot-shadow-sm);
  -webkit-touch-callout: default;
}

.bot-bind-card__qr[hidden],
.bot-bind-card__tips[hidden] {
  display: none !important;
}

.bot-bind-card__qr-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bot-muted);
  background: #fff;
}

.bot-bind-card__qr-loading[hidden] {
  display: none !important;
}

.bot-bind-card__qr.is-loading img[data-bind-loaded],
.bot-bind-card__qr.is-loading canvas[data-bind-loaded] {
  /* 刷新时保留旧图；仍可长按（勿 pointer-events:none） */
  opacity: 0.45 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.bot-bind-card__qr.is-loading img:not([data-bind-loaded]),
.bot-bind-card__qr.is-loading canvas:not([data-bind-loaded]) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
.bot-bind-card__qr.is-loading .bot-bind-card__qr-loading {
  display: flex !important;
  pointer-events: none !important;
  background: rgba(255, 253, 251, 0.72);
}

.bot-bind-card__qr:not(.is-loading) .bot-bind-card__qr-loading {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.bot-bind-card__qr img:not([src]) {
  display: none;
}

.bot-bind-card__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(196, 92, 62, 0.15);
  border-top-color: var(--bot-primary, #c45c3e);
  border-radius: 50%;
  animation: bot-bind-spin 0.85s linear infinite;
}

@keyframes bot-bind-spin {
  to { transform: rotate(360deg); }
}

.bot-bind-card__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  transform-origin: center center;
}

.bot-bind-card__code {
  font-size: 13px;
  color: var(--bot-muted);
}

.bot-bind-card__code strong {
  color: var(--bot-text);
  letter-spacing: 0.08em;
}

.bot-bind-card__copy {
  margin-left: 8px;
  padding: 2px 10px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
}

.bot-bind-card__copy:hover {
  background: rgba(37, 99, 235, 0.14);
}

.bot-bind-card__tips {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--bot-radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--bot-shadow-sm);
}

.bot-bind-card__tips p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bot-muted);
}

.bot-bind-card__tips p:last-child {
  margin-bottom: 0;
}

.bot-bind-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bot-muted);
}

.bot-bind-card__status[data-state="connected"] {
  color: #059669;
}

.bot-bind-card__status[data-state="scanned"] {
  color: #2563eb;
}

.bot-bind-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: bot-bind-pulse 1.4s ease-in-out infinite;
}

.bot-bind-card__status[data-state="connected"] .bot-bind-card__dot {
  background: #059669;
  animation: none;
}

.bot-bind-card__status[data-state="scanned"] .bot-bind-card__dot {
  background: #2563eb;
}

.bot-bind-card__switch-tip {
  margin-top: 8px;
  color: #2563eb;
  font-size: 12px;
}

.bot-bind-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.bot-bind-card__actions .bot-agent-form__btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.bot-bind-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.bot-bind-view[hidden] {
  display: none !important;
}

/* ????? modal ????????? */
.bot-modal--bind[data-bind-view="scan"] [data-bind-panel]:not([data-bind-panel="scan"]),
.bot-modal--bind[data-bind-view="connecting"] [data-bind-panel]:not([data-bind-panel="connecting"]),
.bot-modal--bind[data-bind-view="success"] [data-bind-panel]:not([data-bind-panel="success"]),
.bot-modal--bind[data-bind-view="expired"] [data-bind-panel]:not([data-bind-panel="expired"]) {
  display: none !important;
}

.bot-bind-info {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8f3;
  border: 1px solid rgba(238, 218, 207, 0.65);
  box-shadow: 0 4px 16px rgba(170, 111, 79, 0.08);
}

.bot-bind-info strong {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1c1917;
}

.bot-bind-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #78716c;
}

.bot-bind-guide {
  display: none !important;
}

.bot-modal--bind .bot-bind-card__qr {
  width: min(240px, 68vw);
  height: min(240px, 68vw);
  border-radius: 18px;
  border: 1px solid rgba(238, 218, 207, 0.7);
  background: #ffffff !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 10px 30px rgba(194, 120, 60, 0.14),
    0 0 40px rgba(251, 146, 60, 0.12);
  -webkit-touch-callout: default !important;
  touch-action: auto !important;
}

.bot-modal--bind .bot-bind-card__qr-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
  -webkit-touch-callout: default !important;
  pointer-events: auto !important;
  touch-action: auto !important;
}

.bot-modal--bind .bot-bind-card__qr img,
.bot-modal--bind .bot-bind-card__qr canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  /* 略放大，吃掉 PNG 白边，让码贴满框 */
  transform: scale(1.1);
  transform-origin: center center;
  border-radius: 0;
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  pointer-events: auto !important;
  touch-action: auto !important;
}

.bot-modal--bind .bot-bind-card__qr canvas {
  display: none !important;
  pointer-events: none !important;
}

.bot-modal--bind .bot-bind-card__qr-loading {
  pointer-events: none;
  border-radius: 18px;
  background: #ffffff;
}

.bot-modal--bind .bot-bind-card__qr-loading[hidden],
.bot-modal--bind .bot-bind-card__qr img[hidden],
.bot-modal--bind .bot-bind-card__qr canvas[hidden] {
  display: none !important;
}

.bot-modal--bind .bot-bind-card__status,
.bot-modal--bind #botBindConfirmBtn {
  display: none !important;
}

.bot-bind-qr-tip {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #9b6256;
  line-height: 1.5;
}
.bot-bind-card__actions--scan {
  margin-top: 4px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.bot-bind-hero {
  position: relative;
  width: min(280px, 78vw);
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.85) 0%, transparent 42%),
    linear-gradient(145deg, #fff7f0 0%, #fde8d8 48%, #f8d5c4 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.bot-bind-hero__ring {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 120px;
  height: 42px;
  margin: -21px 0 0 -60px;
  border: 3px solid rgba(201, 130, 110, 0.75);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow:
    0 0 18px rgba(201, 130, 110, 0.35),
    inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.bot-bind-hero__spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}
.bot-bind-hero__spark--a { left: 22%; top: 30%; }
.bot-bind-hero__spark--b { right: 24%; top: 38%; width: 4px; height: 4px; }
.bot-bind-hero__spark--c { left: 48%; bottom: 22%; width: 5px; height: 5px; }

.bot-bind-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 8px 4px;
  width: 100%;
}

.bot-bind-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.bot-bind-result__icon--ok {
  background: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}

.bot-bind-result__icon--warn {
  width: auto;
  min-width: 42px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 16px;
  font-weight: 800;
}

.bot-bind-result__title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #1c1917;
}

.bot-bind-result__desc {
  margin: 0;
  max-width: 28em;
  font-size: 13px;
  line-height: 1.65;
  color: #78716c;
}

.bot-bind-result__btn {
  width: 100%;
  max-width: 280px;
  margin-top: 8px;
  min-height: 46px;
  border-radius: 999px;
}

.bot-profile-card__badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

@keyframes bot-bind-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

/* ===== ??? ===== */
.bot-bind-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px;
  border-radius: var(--bot-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--bot-shadow-md);
  text-align: center;
}

.bot-bind-page__ok {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.bot-bind-page__title {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--bot-text);
}

.bot-bind-page__sub,
.bot-bind-page__meta,
.bot-bind-page__hint,
.bot-bind-page__error {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--bot-muted);
}

.bot-bind-page__error {
  color: #dc2626;
}

.bot-bind-page__form {
  text-align: left;
  margin-top: 16px;
}

/* ===== ????? ===== */
.bot-agents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-agent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px;
  border-radius: var(--bot-radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--bot-shadow-sm);
}

.bot-agent-item__main {
  min-width: 0;
  flex: 1;
}

.bot-agent-item__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.bot-agent-item__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
}

.bot-agent-item__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--bot-text);
  line-height: 1.25;
}

.bot-agent-item__core {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bot-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.bot-agent-item__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--bot-shadow-sm);
  color: var(--bot-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bot-agent-item__btn:active {
  transform: scale(0.98);
}

.bot-agent-item__btn--wechat {
  background: #07c160;
  color: #fff;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.28);
}

.bot-agent-item__btn--wechat:active {
  background: #06ad56;
}

/* ===== 智能体详情 ===== */
.bot-dash-subhead--detail {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 14px;
}

.bot-dash-subhead__backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--bot-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.bot-dash-subhead--detail .bot-dash-subhead__title {
  font-size: 24px;
}

.bot-dash-main--detail {
  padding-bottom: 28px;
}

.bot-agent-detail__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  padding: 20px 16px;
  border-radius: var(--bot-radius-lg);
}

.bot-agent-detail__identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.bot-agent-detail__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: var(--bot-btn-grad, linear-gradient(165deg, #c9a08f 0%, #b88978 55%, #a87868 100%));
  box-shadow: 0 8px 18px rgba(168, 120, 104, 0.28);
}

.bot-agent-detail__identity-main {
  flex: 1;
  min-width: 0;
}

.bot-agent-detail__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.bot-agent-detail__name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bot-text);
  line-height: 1.15;
}

.bot-agent-detail__core {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--bot-muted);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border: 0;
  border-radius: var(--bot-radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.bot-agent-detail__bind {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #b45309;
  font-weight: 600;
}

.bot-agent-detail__actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  width: 100%;
}

.bot-agent-detail__edit-btn,
.bot-agent-detail__ghost-btn,
.bot-agent-detail__manage-btn,
.bot-agent-detail__delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--bot-radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.bot-agent-detail__edit-btn {
  border: none;
  color: #fff;
  background: var(--bot-btn-grad);
  box-shadow: 0 8px 18px var(--bot-btn-shadow, rgba(168, 120, 104, 0.32));
}

.bot-agent-detail__ghost-btn {
  border: 1px solid rgba(194, 120, 60, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  color: var(--bot-text);
  font-size: 13px;
  font-weight: 600;
}

/* Companion stats: detail page only (hidden on home) */
.bot-dash-main:not(.bot-dash-main--detail) .bot-stat-grid,
html.bot-dash-root #botDashStatGrid {
  display: none !important;
}

.bot-agent-detail__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.bot-agent-detail__stat {
  min-width: 0;
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  border-radius: var(--bot-radius-md);
  background: #ffffff;
  border: 1px solid rgba(238, 218, 207, 0.3);
  box-shadow:
    0 3px 10px rgba(170, 111, 79, 0.06),
    0 1px 3px rgba(170, 111, 79, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bot-agent-detail__stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #807a78;
}

.bot-agent-detail__stat-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #333130;
  line-height: 1.15;
  word-break: break-word;
}

.bot-agent-detail__footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid rgba(194, 120, 60, 0.1);
}

.bot-agent-detail__manage-btn {
  border: 1px solid rgba(194, 120, 60, 0.2);
  background: #fff;
  color: var(--bot-dark, #a87868);
}

.bot-agent-detail__delete-btn {
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(254, 226, 226, 0.55);
  color: #dc2626;
  box-shadow: none;
}

.bot-agent-detail__edit-btn:active,
.bot-agent-detail__ghost-btn:active,
.bot-agent-detail__manage-btn:active,
.bot-agent-detail__delete-btn:active {
  transform: scale(0.98);
}

.bot-profile-card__badge--companion {
  background: var(--bot-green-bg);
  color: var(--bot-green-text);
  border: none;
  gap: 6px;
}

.bot-profile-card__badge--companion i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.bot-profile-card__badge--bound {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: none;
}

.bot-profile-card__badge--frozen {
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
  border: none;
}

.bot-agent-item__badge--frozen {
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
}

.bot-agent-detail__ghost-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bot-live-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bot-live-badges--detail {
  margin-top: 2px;
}

.bot-profile-card__live-hint,
.bot-agent-detail__live-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bot-muted, #64748b);
}

.bot-live-badge--wx-online {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: none;
}

.bot-live-badge--wx-offline {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: none;
}

.bot-chat-recovery {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: var(--bot-radius-md);
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.18);
}

.bot-chat-recovery__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bot-chat-recovery__text {
  flex: 1;
  min-width: 200px;
}

.bot-chat-recovery__text strong {
  display: block;
  margin-bottom: 6px;
  color: #9a3412;
}

.bot-chat-recovery__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #7c2d12;
}

.bot-chat-recovery__qr {
  width: 160px;
  height: 160px;
  border-radius: var(--bot-radius-sm);
  background: #fff;
}

.bot-chat-recovery--notice .bot-chat-recovery__body {
  align-items: flex-start;
}

@media (min-width: 769px) {
  .bot-agent-detail__card {
    padding: 24px;
    max-width: 720px;
  }

  .bot-agent-detail__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bot-agent-form__section {
  margin-bottom: 18px;
}

.bot-agent-form__section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--bot-text);
  margin-bottom: 6px;
}

.bot-agent-form__section-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bot-text-muted, #6b7280);
}

.bot-bind-card__agent {
  font-size: 18px;
  font-weight: 700;
  color: var(--bot-text);
}

.bot-modal--sticker {
  max-width: 420px;
}

.bot-sticker-panel {
  padding: 4px 2px 8px;
}

.bot-sticker-panel__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--bot-radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--bot-shadow-sm);
}

.bot-sticker-panel__preview img {
  width: 72px;
  height: 72px;
  border-radius: var(--bot-radius-md);
  object-fit: cover;
  background: #fff7ed;
}

.bot-sticker-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bot-sticker-panel__meta strong {
  font-size: 15px;
  color: var(--bot-text);
}

.bot-sticker-panel__meta span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--bot-text-muted, #6b7280);
}

.bot-sticker-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--bot-radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--bot-shadow-sm);
  cursor: pointer;
}

.bot-sticker-switch__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--bot-text);
}

.bot-sticker-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bot-sticker-switch__track {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d6d3d1;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.bot-sticker-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.bot-sticker-switch__input:checked + .bot-sticker-switch__track {
  background: #9b6256;
}

.bot-sticker-switch__input:checked + .bot-sticker-switch__track .bot-sticker-switch__thumb {
  transform: translateX(22px);
}

.bot-sticker-panel__hint {
  margin: 12px 4px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bot-text-muted, #6b7280);
}

/* ????????? */
.bot-persona-presets{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
}
.bot-persona-preset{
  border:1px solid rgba(68,64,60,.18);
  background:#fff;
  color:#44403c;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  line-height:1.2;
  cursor:pointer;
}
.bot-persona-preset.is-active,
.bot-persona-preset:hover{
  border-color:#9b6256;
  color:#9b6256;
  background:rgba(155,98,86,.08);
}
.bot-agent-form__hint{
  margin:0 0 14px;
  font-size:12px;
  line-height:1.5;
  color:#78716c;
}

/* ===== ?????? UI? ===== */
.bot-recharge-page {
  --rc-rose: #a67c8e;
  --rc-rose-hover: #946d80;
  --rc-pink-soft: #f8f0e8;
  --rc-pink-mid: #f5ebe3;
  --rc-text: #3f3a3c;
  --rc-muted: #8a8186;
  --rc-border: rgba(194, 120, 60, 0.12);
  --rc-gold: #c9a24d;
  --rc-radius: 26px;
  --rc-card-bg: rgba(255, 255, 255, 0.75);
  --rc-border: rgba(238, 218, 207, 0.3);
  --rc-card-shadow:
    0 3px 10px rgba(170, 111, 79, 0.06),
    0 1px 3px rgba(170, 111, 79, 0.04);
  max-width: 920px;
  padding-bottom: 28px;
  color: var(--rc-text);
}

.bot-recharge-crumb {
  display: none !important;
}

.bot-recharge-hero {
  padding: 28px 24px 26px;
  border-radius: var(--rc-radius);
  background:
    radial-gradient(120% 140% at 90% 10%, rgba(255, 255, 255, 0.7) 0%, transparent 55%),
    linear-gradient(135deg, #fff4ec 0%, #fff8f3 48%, #fffaf6 100%);
  border: 1px solid var(--rc-border);
  box-shadow: var(--rc-card-shadow);
}

.bot-recharge-hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(63, 58, 60, 0.1);
  color: #6f676c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bot-recharge-hero__title {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2f2a2c;
}

.bot-recharge-hero__desc {
  margin: 0;
  max-width: 38em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--rc-muted);
}

.bot-recharge-balance {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--bot-radius-md);
  background: var(--rc-card-bg);
  border: 1px solid var(--rc-border);
  box-shadow: var(--rc-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-recharge-balance__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #2f2a2c;
  letter-spacing: -0.02em;
}

.bot-recharge-balance__label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--rc-muted);
}

.bot-recharge-packs {
  margin-top: 10px;
}

.bot-recharge-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bot-recharge-section-head__main {
  min-width: 0;
  flex: 1;
}

.bot-recharge-section-head__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #2f2a2c;
}

.bot-recharge-section-head__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--rc-muted);
  line-height: 1.5;
}

.bot-billing-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(165, 108, 96, 0.1);
  border: 1px solid rgba(165, 108, 96, 0.14);
  gap: 2px;
  margin-top: 2px;
}

.bot-billing-toggle__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #8b8582;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  font-family: inherit;
}

.bot-billing-toggle__btn.is-active {
  background: #fff;
  color: #a56c60;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.bot-recharge-pack[hidden] {
  display: none !important;
}

.bot-recharge-redeem-btn {
  flex-shrink: 0;
  margin-top: 2px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(194, 120, 60, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #5c3d36;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 2px 8px rgba(194, 120, 60, 0.08);
  transition: background .15s ease, transform .12s ease;
}

.bot-recharge-redeem-btn:hover {
  background: #fff;
}

.bot-recharge-redeem-btn:active {
  transform: scale(0.98);
}

.bot-recharge-pack-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-recharge-pack {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px;
  border-radius: var(--bot-radius-md);
  background: var(--rc-card-bg);
  border: 1px solid var(--rc-border);
  box-shadow: var(--rc-card-shadow);
  transform: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.bot-recharge-pack:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(194, 120, 60, 0.08) inset,
    0 4px 8px rgba(194, 120, 60, 0.07),
    0 14px 30px rgba(194, 120, 60, 0.14),
    0 22px 44px rgba(68, 64, 60, 0.05);
}

.bot-recharge-pack--featured {
  /* 与普通卡片同底色，仅保留角标区分 */
  padding-top: 12px;
  border-color: var(--rc-border);
  background: var(--rc-card-bg);
  box-shadow: var(--rc-card-shadow);
}

.bot-recharge-pack__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8c76a, #c9a24d);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 4.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.bot-recharge-pack__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  text-align: center;
  flex: 1;
}

.bot-recharge-pack__pts-row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
}

.bot-recharge-pack__points-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #2f2a2c;
}

.bot-recharge-pack__points-unit {
  font-size: 13px;
  font-weight: 650;
  color: #8b8582;
}

.bot-recharge-pack__price {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #a56c60;
  line-height: 1;
}

.bot-recharge-pack__price span {
  font-size: 11px;
  font-weight: 700;
  margin-right: 1px;
}

.bot-recharge-pack__btn {
  margin-top: auto;
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--bot-btn-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset,
    0 4px 14px var(--bot-btn-shadow);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}

.bot-recharge-pack__btn:hover {
  background: var(--bot-btn-hover);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 6px 18px var(--bot-btn-shadow);
}

.bot-recharge-pack__btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 8px rgba(168, 120, 104, 0.28);
}

.bot-recharge-tips {
  margin-top: 24px;
}

.bot-recharge-tips__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #2f2a2c;
}

.bot-recharge-tips__box {
  padding: 16px 18px;
  border-radius: var(--bot-radius-md);
  background: linear-gradient(165deg, #fff9f4 0%, #fff3ea 100%);
  border: 1px solid var(--rc-border);
  box-shadow: var(--rc-card-shadow);
}

.bot-recharge-tips__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--rc-muted);
  font-size: 13px;
  line-height: 1.65;
}

.bot-recharge-orders {
  margin-top: 24px;
  padding: 18px 18px 22px;
  border-radius: var(--bot-radius-md);
  background: var(--rc-card-bg);
  border: 1px solid var(--rc-border);
  box-shadow: var(--rc-card-shadow);
}

.bot-recharge-orders__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.bot-recharge-orders__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #2f2a2c;
}

.bot-recharge-orders__hint {
  font-size: 12px;
  color: #b0a8ad;
}

.bot-recharge-orders__empty {
  padding: 28px 10px 18px;
  text-align: center;
  font-size: 13px;
  color: #b0a8ad;
}

@media (max-width: 760px) {
  .bot-recharge-hero {
    padding: 22px 18px 20px;
  }

  .bot-recharge-pack-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bot-recharge-pack {
    padding: 14px 16px;
    gap: 12px;
  }

  .bot-recharge-pack--featured {
    padding-top: 14px;
  }

  .bot-recharge-pack__btn {
    height: 32px;
    font-size: 12px;
  }

  .bot-recharge-pack__btn {
    height: 34px;
    font-size: 12px;
  }
}

/* ===== ????????????? ===== */
html.bot-fan-lock,
html.bot-fan-lock body {
  overflow: hidden;
}

.bot-fan-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bot-fan-menu:not([hidden]) {
  pointer-events: auto;
}

.bot-fan-menu__scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  /* 奶油轻雾：右上菜单源自然散开，毛玻璃柔化背景 */
  background:
    radial-gradient(
      ellipse 130% 110% at 100% 0%,
      rgba(255, 248, 244, 0.72) 0%,
      rgba(255, 248, 244, 0.38) 42%,
      rgba(255, 248, 244, 0.12) 72%,
      rgba(255, 248, 244, 0.04) 100%
    );
  backdrop-filter: blur(9px) saturate(1.08);
  -webkit-backdrop-filter: blur(9px) saturate(1.08);
  opacity: 0;
  cursor: default;
  pointer-events: none;
  transition: opacity 0.32s var(--bot-ease-soft);
  -webkit-tap-highlight-color: transparent;
}

.bot-fan-menu.is-open .bot-fan-menu__scrim {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.bot-fan-menu__stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.bot-fan-menu__item {
  --fan-i: 0;
  --fan-angle: 120deg;
  --fan-r: 0px;
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(165deg, #4a4442 0%, #35312f 55%, #2c2826 100%);
  color: #f5f0ec;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.28) inset,
    0 6px 14px rgba(40, 32, 30, 0.26),
    0 2px 5px rgba(40, 32, 30, 0.16);
  opacity: 0;
  transform:
    translate(-50%, -50%)
    rotate(var(--fan-angle))
    translate(var(--fan-r))
    rotate(calc(-1 * var(--fan-angle)))
    scale(0.35);
  transition:
    transform 0.48s cubic-bezier(0.2, 1.2, 0.36, 1),
    opacity 0.24s ease;
  transition-delay: 0s;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}

.bot-fan-menu__item.is-accent {
  background: linear-gradient(135deg, #bf7a5e 0%, #a56c60 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 6px 16px rgba(165, 108, 96, 0.38);
}

/* circular arc (same radius) from near-down to far-left */
.bot-fan-menu.is-open .bot-fan-menu__item:nth-child(1) {
  z-index: 6;
  --fan-angle: 88deg;
  --fan-r: 118px;
  opacity: 1;
  transition-delay: 0ms;
}
.bot-fan-menu.is-open .bot-fan-menu__item:nth-child(2) {
  z-index: 5;
  --fan-angle: 118deg;
  --fan-r: 118px;
  opacity: 1;
  transition-delay: 45ms;
}
.bot-fan-menu.is-open .bot-fan-menu__item:nth-child(3) {
  z-index: 4;
  --fan-angle: 148deg;
  --fan-r: 118px;
  opacity: 1;
  transition-delay: 90ms;
}
.bot-fan-menu.is-open .bot-fan-menu__item:nth-child(4) {
  z-index: 3;
  --fan-angle: 176deg;
  --fan-r: 118px;
  opacity: 1;
  transition-delay: 135ms;
}

.bot-fan-menu.is-open .bot-fan-menu__item {
  transform:
    translate(-50%, -50%)
    rotate(var(--fan-angle))
    translate(var(--fan-r))
    rotate(calc(-1 * var(--fan-angle)))
    scale(1);
}

/* 收起：沿展开弧线收回，顺序与展开相反 */
.bot-fan-menu.is-closing .bot-fan-menu__item {
  --fan-r: 0px;
  opacity: 0;
  transform:
    translate(-50%, -50%)
    rotate(var(--fan-angle))
    translate(var(--fan-r))
    rotate(calc(-1 * var(--fan-angle)))
    scale(0.35);
  transition:
    transform 0.42s cubic-bezier(0.4, 0.0, 0.2, 1),
    opacity 0.3s ease;
}

.bot-fan-menu.is-closing .bot-fan-menu__item:nth-child(1) {
  z-index: 6;
  --fan-angle: 88deg;
  transition-delay: 135ms;
}
.bot-fan-menu.is-closing .bot-fan-menu__item:nth-child(2) {
  z-index: 5;
  --fan-angle: 118deg;
  transition-delay: 90ms;
}
.bot-fan-menu.is-closing .bot-fan-menu__item:nth-child(3) {
  z-index: 4;
  --fan-angle: 148deg;
  transition-delay: 45ms;
}
.bot-fan-menu.is-closing .bot-fan-menu__item:nth-child(4) {
  z-index: 3;
  --fan-angle: 176deg;
  transition-delay: 0ms;
}

.bot-fan-menu.is-closing .bot-fan-menu__scrim {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--bot-ease-soft);
}

.bot-fan-menu.is-open .bot-fan-menu__item:active {
  filter: brightness(0.95);
}

.bot-dash-menu-btn.is-fan-open {
  z-index: 90;
  background: var(--bot-btn-grad) !important;
  color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 4px 14px var(--bot-btn-shadow);
}

@media (hover: hover) {
  .bot-fan-menu.is-open .bot-fan-menu__item:hover {
    filter: brightness(1.08);
  }
}

@media (max-width: 380px) {
  .bot-fan-menu__item {
    width: 52px;
    height: 52px;
    font-size: 12px;
  }
  .bot-fan-menu.is-open .bot-fan-menu__item:nth-child(1) { --fan-r: 104px; }
  .bot-fan-menu.is-open .bot-fan-menu__item:nth-child(2) { --fan-r: 104px; }
  .bot-fan-menu.is-open .bot-fan-menu__item:nth-child(3) { --fan-r: 104px; }
  .bot-fan-menu.is-open .bot-fan-menu__item:nth-child(4) { --fan-r: 104px; }
}

/* ===== ???? ===== */
.bot-dash-main--warehouse {
  max-width: 980px;
}

.bot-warehouse {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 28px;
}

.bot-warehouse__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bot-warehouse__title {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bot-text);
}

.bot-warehouse__sub {
  margin: 0;
  max-width: 36em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bot-muted);
}

.bot-warehouse__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--bot-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--bot-shadow-sm);
}

.bot-warehouse__back--primary {
  background: var(--bot-btn-grad, linear-gradient(165deg, #c9a08f 0%, #a87868 100%));
  color: #fff;
  border: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.1) inset,
    0 4px 14px var(--bot-btn-shadow, rgba(168, 120, 104, 0.28));
}

.bot-warehouse__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bot-warehouse__nav .bot-warehouse__back {
  margin-top: 0;
}

.bot-warehouse__back--block {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
}

.bot-warehouse__back--grow {
  flex: 1 1 auto;
  min-width: 7.5em;
  box-sizing: border-box;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
}

.bot-agents-page__nav {
  margin: 0 0 14px;
}

.bot-warehouse__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bot-warehouse-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 16px;
  border-radius: var(--bot-radius-lg);
  border: 1px solid var(--bot-border);
  background: var(--bot-card-bg);
  box-shadow: var(--bot-shadow-md);
}

.bot-warehouse-card__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--bot-text);
}

.bot-warehouse-card__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bot-text);
}

.bot-warehouse-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bot-warehouse-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 180, 168, 0.28);
  color: #8a4f45;
  font-size: 12px;
  font-weight: 600;
}

.bot-warehouse-card__summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--bot-muted);
}

.bot-warehouse-card__meta {
  display: grid;
  grid-template-columns: minmax(88px, 0.85fr) minmax(0, 1.4fr);
  gap: 8px;
}

.bot-warehouse-card__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--bot-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(248, 246, 243, 0.9);
}

.bot-warehouse-card__box-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bot-muted);
}

.bot-warehouse-card__box-value {
  font-size: 13px;
  line-height: 1.45;
  color: var(--bot-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bot-warehouse-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.bot-warehouse-card__btn {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.bot-warehouse-card__btn--ghost {
  background: rgba(240, 238, 235, 0.95);
  color: var(--bot-text);
}

.bot-warehouse-card__btn--primary {
  background: #1f1f1f;
  color: #fff;
}

.bot-warehouse-card__btn:active {
  transform: scale(0.99);
}

.bot-warehouse-preview__body {
  margin: 0;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 14px;
  border-radius: var(--bot-radius-md);
  background: rgba(248, 246, 243, 0.95);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--bot-text);
}

@media (min-width: 720px) {
  .bot-warehouse__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
/* ===== Activate pay ways (legacy / unused when channels hidden) ===== */
.bot-activate-payways{display:grid;grid-template-columns:1fr;gap:8px;margin:14px 0 0;width:100%;text-align:left}
.bot-activate-payway{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid rgba(194,120,60,.18);border-radius: var(--bot-radius-md);background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.bot-activate-payway input{position:absolute;opacity:0;pointer-events:none}
.bot-activate-payway.is-active,.bot-activate-payway:has(input:checked){border-color:#9b6256;box-shadow:0 0 0 2px rgba(155,98,86,.16)}
.bot-activate-payway__title{font-size:13px;font-weight:700;color:#2b2426}
.bot-activate-payway__sub{font-size:11px;color:#8a7f84}

/* ===== Perf: WeChat / mobile — blur & long enter anims are expensive ===== */
@media (max-width: 768px) {
  .bot-dash-root *,
  .bot-dash-root *::before,
  .bot-dash-root *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .bot-enter {
    animation-duration: 0.28s !important;
  }

  .bot-profile-card,
  .bot-stat-card,
  .bot-chart-card {
    transition: none !important;
  }

  .bot-chart-svg polyline,
  .bot-chart-svg path,
  .bot-chart-svg circle {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-dash-root *,
  .bot-dash-root *::before,
  .bot-dash-root *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ===== WeChat bind / video-quota: solid modal + long-press QR ===== */
.bot-modal-root .bot-modal,
.bot-modal-root .bot-modal.bot-modal--bind,
.bot-modal-root .bot-modal.bot-modal--method,
.bot-modal-root .bot-modal.bot-modal--custom,
.bot-modal-root .bot-modal.bot-modal--stars,
.bot-modal-root .bot-modal.bot-modal--activate {
  background: #fffdfb !important;
  background-color: #fffdfb !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bot-modal-root .bot-modal-backdrop {
  background: rgba(45, 40, 38, 0.58) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.bot-modal--bind .bot-bind-card__qr img,
#botBindQrImg,
#botVideoQuotaQr {
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  pointer-events: auto !important;
  touch-action: auto !important;
}
.bot-modal--bind .bot-bind-card__qr-loading {
  pointer-events: none !important;
}

