:root {
  --tblr-primary: #2563eb;
  --tblr-font-sans-serif: Arial, "Microsoft YaHei", sans-serif;
}

body {
  background: #f6f8fb;
}

.public-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 222, 173, 0.45), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(199, 210, 254, 0.32), transparent 28%),
    linear-gradient(180deg, #fffaf3 0%, #f8fafc 48%, #ffffff 100%);
  color: #0f172a;
}

.public-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1080px;
  padding: 26px 20px 10px;
}

.public-brand {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.public-nav nav {
  display: flex;
  gap: 16px;
}

.public-nav nav a {
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.public-main {
  margin: 0 auto;
  max-width: 1080px;
  padding: 20px;
}

.navbar-vertical {
  background: #111827;
}

.navbar-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

.nav-section {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 18px 6px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.section-head h3 {
  margin-top: 0;
}

.compact-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.page-head h2,
h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  margin: 18px 0 10px;
}

.actions,
.toolbar,
.admin-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tblr-primary);
  background: var(--tblr-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  min-height: 36px;
  font-size: 14px;
}

.button:hover,
button:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  color: #334155;
  background: #fff;
  border-color: #cbd5e1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}

.admin-console {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.console-overview {
  order: 1;
}

#users {
  order: 2;
}

#invites {
  order: 3;
}

#model-settings {
  order: 4;
}

#server-status {
  order: 5;
}

#commercial-dashboard {
  order: 6;
}

#logs {
  order: 7;
}

.admin-metric-cards {
  margin-bottom: 0;
}

.hp-field {
  border: 0;
  height: 1px;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: auto;
  width: 1px;
}

.server-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.server-status-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.server-status-grid span,
.server-status-grid small {
  color: #64748b;
  display: block;
  font-size: 12px;
}

.server-status-grid strong {
  color: #0f172a;
  display: block;
  font-size: 18px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.server-service-table {
  margin-bottom: 0;
}

.card,
.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.user-shell {
  background: linear-gradient(120deg, #fff7ed, #f8fafc 44%, #eff6ff);
  color: #0f172a;
  min-height: 100vh;
}

.user-topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.user-brand {
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.user-nav {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.user-nav a {
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.user-nav a.active,
.user-nav a:hover {
  background: #0f172a;
  color: #fff;
}

.user-account {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 13px;
  gap: 10px;
  min-width: 0;
}

.user-account span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px clamp(14px, 4vw, 36px) 64px;
}

.card span {
  color: #64748b;
  display: block;
  font-size: 13px;
}

.card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin-top: 6px;
  color: #0f172a;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 12px 0 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  min-height: 36px;
}

textarea {
  font-family: Consolas, "Microsoft YaHei", monospace;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

/* 2026-05-20: 包对 wrapper —— 解决"label 和 input 各占一个 grid cell 导致跨列错位"的 bug。
   用法：<div class="form-grid"><div class="field"><label>...</label><input></div>...</div>
   一对 label+input 作为同一 grid cell，多列网格里就不会错位。 */
.form-grid > .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.form-grid > .field > label {
  font-size: 12px;
  color: #6a7280;
  font-weight: 500;
}
.form-grid > .field > input,
.form-grid > .field > select,
.form-grid > .field > textarea {
  width: 100%;
}
.form-grid > .field.field-inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.inline {
  display: inline-block;
  margin: 0 4px 4px 0;
}

.compact-form input[type="number"] {
  display: inline-block;
  width: 76px;
}

.badge {
  background: #e0f2fe;
  color: #075985;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.badge-muted {
  background: #f1f5f9;
  color: #475569;
}

.notice {
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #fed7aa;
  padding: 12px;
  border-radius: 8px;
}

.muted {
  color: #64748b;
}

.eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.lead {
  color: #475569;
  font-size: 17px;
  line-height: 1.7;
}

.claw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin: -8px 0 24px;
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.25), transparent 28%),
    linear-gradient(135deg, #ecfeff 0%, #f8fafc 48%, #fff7ed 100%);
  border: 1px solid #dbeafe;
  overflow: hidden;
  position: relative;
}

.companion-hero {
  background:
    radial-gradient(circle at 80% 14%, rgba(15, 23, 42, 0.06), transparent 24%),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.10);
  min-height: 560px;
}

.claw-hero::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), transparent);
  border-radius: 999px;
  content: "";
  height: 220px;
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
}

.claw-hero h1,
.claw-bind h1 {
  color: #0f172a;
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin: 0 0 18px;
}

.companion-cta {
  border-radius: 999px;
  font-size: 17px;
  margin-top: 12px;
  padding: 12px 22px;
}

.only-points {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 160px));
  margin-top: 34px;
}

.only-points span {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-weight: 800;
  padding: 14px 16px;
}

.phone-preview {
  align-self: center;
  background: #111827;
  border: 10px solid #0f172a;
  border-radius: 42px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 330px;
  min-height: 430px;
  padding: 26px 18px;
  width: 100%;
}

.only-section,
.trial-section,
.pricing-section,
.faq-section {
  padding: 72px 0 34px;
}

.only-section h2,
.trial-section h2,
.pricing-section h2,
.faq-section h2 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.only-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.only-grid article,
.trial-card,
.pricing-card,
.faq-section details {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
  padding: 24px;
}

.only-grid h3,
.trial-card h3,
.pricing-card h3 {
  color: #0f172a;
  font-size: 22px;
  margin-top: 0;
}

.only-grid p,
.trial-card p,
.pricing-card p,
.faq-section p {
  color: #64748b;
  line-height: 1.7;
}

.phone-bar {
  background: #334155;
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 28px;
  width: 82px;
}

.chat-bubble {
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 84%;
  padding: 12px 14px;
}

.chat-bubble.incoming {
  background: #f8fafc;
  color: #0f172a;
}

.chat-bubble.outgoing {
  background: #14b8a6;
  color: #fff;
  justify-self: end;
}

.claw-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.claw-steps span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: #115e59;
  font-weight: 700;
  padding: 8px 12px;
}

.claw-steps.vertical {
  display: grid;
  gap: 12px;
}

.claw-steps.vertical span {
  border-radius: 16px;
  color: #0f172a;
  padding: 14px 16px;
}

.claw-create-card,
.bind-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  box-shadow: 0 22px 80px rgba(15, 23, 42, 0.12);
  padding: 22px;
}

.claw-create-card label,
.bind-card label {
  color: #334155;
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

.claw-bot-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.claw-bot-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}

.qr-small {
  width: 132px;
  height: 132px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.qr-large {
  width: min(100%, 320px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.qr-panel {
  text-align: center;
}

.claw-bind {
  display: grid;
  min-height: 62vh;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.24), transparent 26%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.24), transparent 28%);
  border-radius: 24px;
}

.bind-card {
  max-width: 560px;
  width: 100%;
}

.success-card {
  border-color: #99f6e4;
}

.persona-showcase {
  margin-bottom: 24px;
}

.persona-grid,
.persona-select-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.persona-category-block {
  margin: 18px 0 22px;
}

.persona-switcher {
  display: block;
}

.persona-switcher summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
}

.persona-switcher summary::-webkit-details-marker {
  display: none;
}

.persona-switcher summary h3 {
  margin: 0 0 6px;
}

.persona-switcher summary p {
  margin: 0;
}

.persona-switcher-action {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #334155;
  flex: 0 0 auto;
  font-weight: 700;
  padding: 10px 14px;
}

.persona-switcher-action::before {
  content: attr(data-label);
}

.persona-switcher[open] .persona-switcher-action::before {
  content: attr(data-open-label);
}

.proactive-switcher summary {
  align-items: flex-start;
}

.proactive-switcher summary .badge {
  margin-bottom: 10px;
}

.proactive-mode-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.proactive-mode-card h3 {
  margin-top: 8px;
}

.proactive-mode-card form {
  flex: 0 0 auto;
}

.compact-schedule-form {
  margin-top: 18px;
}

.persona-category-title {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}

.persona-category-title strong {
  color: #0f172a;
  font-size: 18px;
}

.persona-category-title span {
  color: #64748b;
}

.persona-card,
.persona-choice {
  background:
    radial-gradient(circle at 80% 10%, rgba(20, 184, 166, 0.18), transparent 28%),
    #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 16px;
}

.pricing-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trial-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trial-card strong {
  color: #0f766e;
  display: block;
  font-size: 44px;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.trial-box {
  background: linear-gradient(135deg, #ecfeff, #fff7ed);
  border: 1px solid #bae6fd;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 16px;
}

.trial-box span {
  color: #334155;
  font-weight: 700;
}

.user-status-panel .grid-2 {
  align-items: center;
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  font-weight: 700;
  padding: 12px 14px;
}

.referral-panel .page-head {
  align-items: start;
}

.referral-count {
  color: #0f172a;
  font-size: 48px;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.commerce-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
}

.commerce-metrics div,
.commerce-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.commerce-metrics div {
  padding: 12px;
}

.commerce-metrics span,
.commerce-note,
.commerce-list span,
.mini-table span {
  color: #64748b;
  font-size: 12px;
}

.commerce-metrics strong {
  color: #0f172a;
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

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

.commerce-card {
  padding: 16px;
}

.commerce-card h4 {
  margin: 0 0 6px;
}

.mini-table {
  font-size: 13px;
  margin-top: 12px;
  width: 100%;
}

.mini-table th,
.mini-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 9px 6px;
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: #334155;
  font-weight: 800;
}

.mini-table strong,
.mini-table span {
  display: block;
}

#persona-management .persona-management-grid {
  grid-template-columns: 1fr;
}

#persona-management .persona-management-card {
  overflow-x: auto;
}

#persona-management .persona-preset-table {
  min-width: 860px;
}

#persona-management .persona-detail pre {
  font-size: 14px;
  max-height: 520px;
}

.persona-custom-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.persona-custom-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.persona-custom-main {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(300px, 1.2fr) minmax(360px, 2fr);
  align-items: start;
}

.persona-custom-main > div:first-child > strong {
  color: #0f172a;
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.persona-custom-main > div:first-child > span {
  color: #64748b;
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.persona-custom-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.persona-custom-meta div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.persona-custom-meta span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.persona-custom-meta strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.persona-custom-detail pre {
  font-size: 15px;
  line-height: 1.65;
  min-height: 220px;
  max-height: 620px;
  width: 100%;
}

.commerce-note {
  margin-top: 12px;
}

.retention-lines {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.retention-lines div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
}

.retention-lines span,
.retention-lines strong {
  display: block;
}

.retention-lines span {
  color: #64748b;
  font-size: 12px;
}

.retention-lines strong {
  color: #0f172a;
  margin-top: 4px;
}

.commerce-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.commerce-list li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.user-management-table {
  min-width: 1080px;
}

.user-primary {
  display: grid;
  gap: 3px;
}

.user-primary strong {
  color: #0f172a;
}

.user-primary span {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.usage-mini {
  display: grid;
  gap: 3px;
  min-width: 84px;
}

.usage-mini strong {
  color: #0f172a;
}

.usage-mini span {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.user-detail-toggle {
  min-width: 74px;
}

.user-detail-row td {
  background: #fff;
  border-top: 0;
  padding: 0 16px 18px;
}

.user-detail-row[hidden] {
  display: none;
}

.user-dropdown-panel {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  color: #334155;
  margin: 0 0 8px;
  max-height: none;
  overflow: visible;
  padding: 18px;
  width: auto;
}

.detail-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.detail-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.detail-section h4 {
  color: #0f172a;
  font-size: 15px;
  margin: 0 0 10px;
}

.detail-section label {
  color: #334155;
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

.profile-summary-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.profile-health {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-health span {
  background: #eef6ff;
  border: 1px solid #cfe8ff;
  border-radius: 999px;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.profile-summary-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  padding: 10px 12px;
}

.detail-actions {
  margin-bottom: 0;
}

.user-drawer summary {
  list-style: none;
}

.user-drawer summary::-webkit-details-marker {
  display: none;
}

.drawer-shade {
  background: rgba(15, 23, 42, 0.34);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.drawer-panel {
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -18px 0 60px rgba(15, 23, 42, 0.18);
  height: 100vh;
  margin-left: auto;
  max-width: 560px;
  overflow-y: auto;
  padding: 24px;
  width: min(100%, 560px);
}

.drawer-panel label {
  color: #334155;
  display: block;
  font-weight: 700;
  margin: 14px 0 6px;
}

.drawer-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.compact-drawer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.drawer-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.drawer-grid span {
  color: #64748b;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.drawer-grid strong {
  color: #0f172a;
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.pricing-card strong {
  color: #0f172a;
  display: block;
  font-size: 42px;
  letter-spacing: -0.05em;
  margin: 10px 0;
}

.pricing-card.featured {
  background: #0f172a;
  color: #fff;
}

.pricing-card.featured h3,
.pricing-card.featured strong {
  color: #fff;
}

.pricing-card.featured p {
  color: #cbd5e1;
}

.faq-section details {
  margin-bottom: 12px;
}

.faq-section summary {
  color: #0f172a;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.persona-card h3,
.persona-choice strong {
  color: #0f172a;
  display: block;
  font-size: 17px;
  margin: 6px 0;
}

.persona-card p,
.persona-choice span {
  color: #64748b;
  display: block;
  line-height: 1.55;
  margin: 0;
}

.persona-orb {
  align-items: center;
  background: linear-gradient(135deg, #0f766e, #f97316);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.persona-choice {
  cursor: pointer;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.persona-choice:hover {
  border-color: #14b8a6;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.persona-choice input {
  margin: 0 0 6px;
  min-height: auto;
  width: auto;
}

.persona-choice:has(input:checked) {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.user-persona-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
}

.persona-card-title {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.selected-pill {
  align-self: end;
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  width: fit-content;
}

.muted-pill {
  background: #f1f5f9;
  color: #64748b;
}

.sticky-actions {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  bottom: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  display: flex;
  gap: 10px;
  padding: 12px;
  position: sticky;
  z-index: 10;
}

.custom-persona-preview {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: block;
  height: 180px;
  margin: 12px 0;
  object-fit: cover;
  width: 180px;
}

.compact-upload-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-strip {
  align-items: center;
  background: #0f172a;
  border-radius: 20px;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr repeat(4, auto);
  margin: 0 0 24px;
  padding: 22px;
}

.pricing-strip h2 {
  color: #fff;
  margin: 0;
}

.price-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 14px;
}

.start-panel {
  align-items: start;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  margin-bottom: 24px;
  padding: 28px;
}

.start-panel h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
}

.start-panel .muted {
  color: #cbd5e1;
}

.selected-persona {
  background: #ecfeff;
  border: 1px solid #99f6e4;
  border-radius: 16px;
  margin: 18px 0;
  padding: 14px;
}

.selected-persona span {
  color: #0f766e;
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.selected-persona strong {
  color: #0f172a;
  display: block;
  font-size: 24px;
  margin-top: 4px;
}

.selected-persona-panel {
  background:
    radial-gradient(circle at 15% 15%, rgba(251, 146, 60, 0.18), transparent 24%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  overflow: hidden;
}

.selected-persona-panel h1 {
  color: #0f172a;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0;
  margin: 10px 0;
}

.selected-persona-compact {
  max-width: 720px;
}

.selected-persona-compact p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.persona-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.persona-meta-row span {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.persona-card-confirm {
  border-top: 1px solid #e2e8f0;
  margin-top: 18px;
  padding-top: 18px;
}

.persona-card-form {
  display: grid;
  gap: 12px;
}

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

.persona-card-form textarea,
.persona-card-form input,
.persona-card-form select {
  background: #f8fafc;
  border-color: #14b8a6;
}

.persona-examples {
  display: grid;
  gap: 12px;
}

.persona-examples h4 {
  margin: 4px 0 0;
}

.persona-example-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ooc-score {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 88px;
}

.ooc-score strong {
  color: #0f766e;
  font-size: 16px;
}

.ooc-score span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .persona-card-grid {
    grid-template-columns: 1fr;
  }
}

.persona-share-box {
  background: #f8fafc;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.persona-share-box p {
  margin: 4px 0 0;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 8px;
}

.persona-detail {
  margin-top: 6px;
}

.persona-detail summary {
  cursor: pointer;
  color: #2563eb;
  font-size: 0.88rem;
  line-height: 1.4;
}

.persona-detail pre {
  max-height: 280px;
  overflow: auto;
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 12px;
  min-height: 0;
}

.wechat-login-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  max-width: 360px;
}

.qr-preview {
  display: block;
  width: min(280px, 100%);
  height: auto;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

@media (max-width: 860px) {
  .user-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-nav {
    justify-content: flex-start;
  }

  .user-account {
    width: 100%;
  }

  .page-head {
    display: block;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .claw-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .only-grid,
  .trial-cards,
  .pricing-cards,
  .start-panel {
    grid-template-columns: 1fr;
  }

  .pricing-strip {
    grid-template-columns: 1fr 1fr;
  }

  .commerce-metrics,
  .commerce-grid,
  .persona-custom-main,
  .persona-custom-meta,
  .retention-lines,
  .server-status-grid {
    grid-template-columns: 1fr;
  }

  .drawer-grid {
    grid-template-columns: 1fr;
  }

  .compact-drawer-grid {
    grid-template-columns: 1fr;
  }

  .proactive-mode-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-dropdown-panel {
    margin: 0;
    position: static;
    width: auto;
  }
}

/* Admin users filter and compact table */
.admin-filter-card {
  background: #fff;
  border: 1px solid #e5ebf3;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.admin-search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}
.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-field label {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}
.filter-field input,
.filter-field select {
  height: 42px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.filter-field input:focus,
.filter-field select:focus {
  border-color: #4f8cff;
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
}
.filter-result-note {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}
.admin-users-stats .card {
  min-height: 86px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-users-table .select-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  padding: 0;
  text-align: center;
  background: #fff;
  box-shadow: 1px 0 0 #e5e7eb;
}

.admin-users-table thead .select-cell {
  z-index: 6;
  background: #f8fafc;
}

.admin-users-table .checkbox-hitbox {
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin: 0 auto;
  min-width: 48px;
  position: relative;
  touch-action: manipulation;
  user-select: none;
}

.admin-users-table .checkbox-hitbox:hover {
  background: #eff6ff;
}

.admin-users-table input[type="checkbox"] {
  accent-color: #2563eb;
  appearance: auto;
  -webkit-appearance: checkbox;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  min-height: 18px;
  padding: 0;
  position: relative;
  width: 18px;
  z-index: 8;
}

.admin-users-table th,
.admin-users-table td {
  vertical-align: middle;
}
/* 2026-05-19: 统一行高 + 长字段省略号，避免某些 cell（注册地区/长人设名）
   把行撑高 5-6 行让整表大小不一。

   关键：HTML <table> 默认 table-layout:auto 会按内容撑开列宽，td 的
   max-width 是 hint 不是硬约束。所以我们额外用 inline-block span 包住
   内容 + 给 span 设 max-width + overflow ellipsis（这是浏览器真正会
   遵守的截断方式）。td 自己 white-space:nowrap 作为第二道保险。 */
.admin-users-table tr.user-main-row {
  height: 60px;
}
.admin-users-table tr.user-main-row td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
/* 通用 truncate span：放在长字段 cell 里包住文本 */
.admin-users-table .cell-truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
/* 邮箱列稍宽 */
.admin-users-table tr.user-main-row td:nth-child(2) {
  max-width: 220px;
}
/* 注册地区列：原值像 "胡志明市 / Ho Chi Minh City (HCMC) / VN" 会换 5 行。
   单独限制宽度 + 强制 nowrap，配合 inner span 截断。 */
.admin-users-table tr.user-main-row td.register-region {
  max-width: 130px;
  width: 130px;
}
/* 当前人设列也限宽 */
.admin-users-table tr.user-main-row td.persona-name-cell {
  max-width: 110px;
  width: 110px;
}
.admin-users-table .user-primary {
  display: block;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  color: #0f172a;
}
.admin-users-table .row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-users-table .compact-button {
  min-height: 34px;
  padding: 0 12px;
}
.admin-users-table .col-checkbox {
  width: 56px;
  min-width: 56px;
}
@media (max-width: 1100px) {
  .admin-filter-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 700px) {
  .admin-search-row { grid-template-columns: 1fr; }
  .admin-filter-grid { grid-template-columns: 1fr; }
}
.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #f8fafc;
}
.bulk-actions-bar span {
  color: #475569;
  font-weight: 700;
}
.bulk-actions-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-users-table .col-checkbox,
.admin-users-table td:first-child {
  width: 56px;
  min-width: 56px;
  text-align: center;
}

/* === Slider Captcha (2026-05-14) === */
.slider-captcha {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}
.slider-captcha-track {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 40px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
}
.slider-captcha-target {
  position: absolute;
  top: 8px;
  width: 8px;
  height: 24px;
  background: linear-gradient(180deg, #4299e1, #066fd1);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(66, 153, 225, 0.6);
  animation: slider-target-pulse 1.6s ease-in-out infinite;
}
@keyframes slider-target-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.slider-captcha-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(66, 153, 225, 0.18), rgba(6, 111, 209, 0.35));
  transition: width 0.05s linear;
}
.slider-captcha-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border: 1px solid #066fd1;
  border-radius: 20px;
  color: #066fd1;
  font-size: 18px;
  font-weight: bold;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(6, 111, 209, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, box-shadow 0.15s;
}
.slider-captcha-handle:hover { background: #ffffff; }
.slider-captcha-handle:active { cursor: grabbing; }
.slider-captcha-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #6b7280;
  pointer-events: none;
  transition: opacity 0.2s;
}
.slider-captcha.verified .slider-captcha-handle {
  background: linear-gradient(180deg, #2fb344, #237b2f);
  border-color: #237b2f;
  color: #ffffff;
}
.slider-captcha.verified .slider-captcha-fill {
  background: linear-gradient(90deg, rgba(47, 179, 68, 0.2), rgba(47, 179, 68, 0.45));
}
.slider-captcha.verified .slider-captcha-target { opacity: 0; }
.slider-captcha.failed .slider-captcha-handle {
  background: linear-gradient(180deg, #ffffff, #fee2e2);
  border-color: #d63939;
  color: #d63939;
  animation: slider-shake 0.3s;
}
@keyframes slider-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.slider-captcha-status { font-size: 12px; }

/* === WeChat Connect Waiting Animation (2026-05-14) === */
.wechat-connect-stages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}
.wechat-connect-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.02);
  transition: background 0.3s, opacity 0.3s;
  opacity: 0.5;
}
.wechat-connect-stage.active {
  background: rgba(6, 111, 209, 0.08);
  opacity: 1;
}
.wechat-connect-stage.done {
  background: rgba(47, 179, 68, 0.08);
  opacity: 1;
}
.wechat-connect-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.wechat-connect-stage.active .wechat-connect-dot {
  background: #066fd1;
  color: #ffffff;
  animation: wechat-dot-pulse 1.4s ease-in-out infinite;
}
.wechat-connect-stage.done .wechat-connect-dot {
  background: #2fb344;
  color: #ffffff;
}
@keyframes wechat-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 111, 209, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(6, 111, 209, 0); }
}
.wechat-connect-stage-text {
  flex: 1;
  font-size: 14px;
}
.wechat-connect-stage-text strong { display: block; }
.wechat-connect-stage-text span {
  font-size: 12px;
  color: #6b7280;
}
/* Breathing gradient bar that shows during all waiting states */
.wechat-connect-progress {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d1d5db, #066fd1, #4299e1, #d1d5db);
  background-size: 300% 100%;
  animation: wechat-progress-flow 2.4s linear infinite;
}
.wechat-connect-progress.done {
  background: #2fb344;
  animation: none;
}
@keyframes wechat-progress-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* === Puzzle Captcha (2026-05-14) === */
.puzzle-captcha {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
  user-select: none;
  max-width: 300px;
}
.puzzle-captcha canvas[data-puzzle-canvas] {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 180px;
  border-radius: 14px;
  background: #F5EFE3;
  box-shadow: 0 4px 18px rgba(60, 40, 20, 0.08);
  border: 1px solid #E8DDC8;
}
.puzzle-track {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 44px;
  background: #FBF6EB;
  border: 1px solid #E8DDC8;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0;
}
.puzzle-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid #C4A882;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(143, 112, 80, 0.18);
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  outline: none;
}
.puzzle-handle:hover {
  box-shadow: 0 6px 18px rgba(143, 112, 80, 0.28);
}
.puzzle-handle:active { cursor: grabbing; }
.puzzle-handle canvas[data-puzzle-piece] {
  display: block;
  width: 48px;
  height: 48px;
  pointer-events: none;
}
.puzzle-track-hint {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #8A8278;
  pointer-events: none;
  transition: opacity 200ms ease;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  letter-spacing: 0.04em;
}
.puzzle-refresh {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #E8DDC8;
  background: #FFFFFF;
  color: #8F7050;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
  letter-spacing: 0;
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
              background 200ms ease,
              color 200ms ease;
}
.puzzle-refresh:hover {
  background: #F5EFE3;
  color: #2C2C2C;
  transform: translateY(-50%) rotate(120deg);
}
.puzzle-status {
  font-size: 12px;
  color: #8A8278;
  margin: 0;
  letter-spacing: 0.04em;
}
.puzzle-status[data-kind="ok"] { color: #5F8F45; }
.puzzle-status[data-kind="fail"] { color: #B8554C; }

.puzzle-captcha.verified .puzzle-handle {
  border-color: #5F8F45;
  box-shadow: 0 4px 14px rgba(95, 143, 69, 0.25);
}
.puzzle-captcha.failed .puzzle-handle {
  border-color: #B8554C;
  animation: puzzle-shake 0.32s ease;
}
@keyframes puzzle-shake {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  30% { transform: translateY(-50%) translateX(-5px); }
  70% { transform: translateY(-50%) translateX(5px); }
}

@media (max-width: 360px) {
  .puzzle-captcha canvas[data-puzzle-canvas],
  .puzzle-track {
    width: 100%;
  }
}

/* === WeChat Connect 强提示文案 + Stuck 警告 (2026-05-19) === */
/* Background: 2470057776@qq.com 案例发现"扫码"和"配对成功"用户分不清，
 * 卡在 confirming 阶段 > 60s 又没人提示 → 流失。
 * 加两块视觉强调：QR 区下方 tip 条 + confirming 阶段卡住后的 stuck 警告。 */
.wechat-connect-tip {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.5;
}
.wechat-connect-tip strong {
  color: #c2410c;
}

.wechat-connect-stuck {
  margin: 12px 0 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.55;
  animation: stuck-pulse 1.6s ease-in-out infinite;
}
.wechat-connect-stuck strong {
  color: #b91c1c;
}
.wechat-connect-stuck p {
  margin: 0;
}
.wechat-connect-stuck p + p {
  margin-top: 6px;
}
@keyframes stuck-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.08); }
}
