/* ===== 我的工作台 v2.1（mine-page-redesign） ===== */
#page-mine {
  --mine-primary: #3B82F6;
  --mine-bg: #F7F8FA;
  --mine-card: #FFFFFF;
  --mine-text-1: #1F2937;
  --mine-text-2: #4B5563;
  --mine-text-3: #9CA3AF;
  --mine-text-4: #D1D5DB;
  --mine-divider: #F3F4F6;
  --mine-pale: #EFF6FF;
  --mine-paler: #F5F9FF;
  --mine-success: #10B981;
  --mine-success-pale: #ECFDF5;
  --mine-warning: #F59E0B;
  --mine-warning-pale: #FFFBEB;
  --mine-danger: #EF4444;
  --mine-danger-pale: #FEF2F2;
  --mine-purple: #8B5CF6;
  --mine-purple-pale: #F5F3FF;
  --mine-orange: #F97316;
  --mine-orange-pale: #FFF7ED;
  --mine-teal: #14B8A6;
  --mine-teal-pale: #F0FDFA;
  --mine-radius: 12px;
  --mine-shadow: 0 1px 2px rgba(0,0,0,0.03);
  background: var(--mine-bg);
}
#page-mine > .nav-header { background: var(--mine-card); }
#page-mine .mine-page-content {
  padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  background: var(--mine-bg);
}
#page-mine .mine-profile {
  background: var(--mine-card);
  padding: 20px 16px 16px;
}
#page-mine .mine-profile-row {
  display: flex; align-items: center; gap: 14px;
}
#page-mine .mine-avatar-box {
  position: relative; width: 56px; height: 56px; flex-shrink: 0;
}
#page-mine .mine-avatar {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #DBEAFE 0%, #93C5FD 50%, #3B82F6 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  border: 2px solid var(--mine-card);
  box-shadow: 0 2px 8px rgba(59,130,246,0.2);
  overflow: hidden; cursor: pointer;
}
#page-mine .mine-avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#page-mine .mine-avatar-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px; background: var(--mine-card); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); pointer-events: none;
}
#page-mine .mine-avatar-badge svg { width: 11px; height: 11px; color: var(--mine-text-3); }
#page-mine .mine-profile-info { flex: 1; min-width: 0; }
#page-mine .mine-name-row { display: flex; align-items: center; gap: 6px; }
#page-mine .mine-name {
  font-size: 18px; font-weight: 700; color: var(--mine-text-1); cursor: pointer;
}
#page-mine .mine-name-edit { width: 14px; height: 14px; color: var(--mine-text-3); cursor: pointer; flex-shrink: 0; }
#page-mine .mine-belong-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
#page-mine .mine-belong-action {
  display: inline-flex; align-items: center; padding: 0; margin-left: 2px;
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 500; color: var(--mine-primary); line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
#page-mine .mine-belong-action:active { opacity: 0.75; }
#page-mine .mine-tag {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 4px;
}
#page-mine .mine-tag--blue { background: var(--mine-pale); color: var(--mine-primary); }
#page-mine .mine-tag--gray { background: var(--mine-divider); color: var(--mine-text-2); }
#page-mine .mine-stats {
  display: flex; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--mine-divider);
}
#page-mine .mine-stat { flex: 1; text-align: center; position: relative; }
#page-mine .mine-stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 24px; background: var(--mine-divider);
}
#page-mine .mine-stat-num { font-size: 20px; font-weight: 700; color: var(--mine-text-1); line-height: 1.2; }
#page-mine .mine-stat-label { font-size: 11px; color: var(--mine-text-3); margin-top: 2px; }

#page-mine .mine-section { padding: 12px 16px 0; }
#page-mine .mine-section + .mine-section { margin-top: 12px; } /* 设计稿 24px：12+12 */
#page-mine .mine-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; padding: 0 2px;
}
#page-mine .mine-section-label {
  font-size: 13px; font-weight: 600; color: var(--mine-text-2);
  display: flex; align-items: center; gap: 4px;
}
#page-mine .mine-section-label::before {
  content: ''; width: 3px; height: 14px; background: var(--mine-primary); border-radius: 2px;
}
#page-mine .mine-section-label--muted { color: var(--mine-text-3); }
#page-mine .mine-section-label--muted::before { background: var(--mine-text-4); }
#page-mine .mine-section-hint {
  font-size: 11px; font-weight: 400; color: var(--mine-text-3); margin-left: 4px;
}

#page-mine .mine-sales-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
#page-mine .mine-sales-card {
  background: var(--mine-card); border-radius: var(--mine-radius);
  padding: 14px 8px 12px; text-align: center; border: none;
  cursor: pointer; position: relative; box-shadow: var(--mine-shadow);
  font-family: inherit; -webkit-tap-highlight-color: transparent;
}
#page-mine .mine-sales-card:active { transform: scale(0.97); }
#page-mine .mine-sales-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
#page-mine .mine-sales-icon svg { width: 22px; height: 22px; }
#page-mine .mine-sales-icon--blue { background: var(--mine-pale); color: var(--mine-primary); }
#page-mine .mine-sales-icon--teal { background: var(--mine-teal-pale); color: var(--mine-teal); }
#page-mine .mine-sales-icon--orange { background: var(--mine-orange-pale); color: var(--mine-orange); }
#page-mine .mine-sales-name {
  display: block; font-size: 13px; font-weight: 500; color: var(--mine-text-1);
}
#page-mine .mine-sales-sub {
  display: block; font-size: 10px; color: var(--mine-text-3); margin-top: 2px;
}
#page-mine .mine-sales-badge {
  position: absolute; top: 8px; right: 8px;
  min-width: 16px; height: 16px; background: var(--mine-danger); color: #fff;
  font-size: 10px; font-weight: 600; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
#page-mine .mine-sales-badge--gold { background: var(--mine-warning); }

#page-mine .mine-content-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
#page-mine .mine-content-card {
  position: relative;
  background: var(--mine-card); border-radius: var(--mine-radius);
  padding: 14px; display: flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; box-shadow: var(--mine-shadow);
  font-family: inherit; text-align: left; -webkit-tap-highlight-color: transparent;
}
#page-mine .mine-content-card:active { transform: scale(0.98); }
#page-mine .mine-content-card--span2 { grid-column: span 2; }
#page-mine .mine-content-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#page-mine .mine-content-icon svg { width: 20px; height: 20px; }
#page-mine .mine-content-icon--blue { background: var(--mine-pale); color: var(--mine-primary); }
#page-mine .mine-content-icon--purple { background: var(--mine-purple-pale); color: var(--mine-purple); }
#page-mine .mine-content-icon--warning { background: var(--mine-warning-pale); color: var(--mine-warning); }
#page-mine .mine-content-icon--success { background: var(--mine-success-pale); color: var(--mine-success); }
#page-mine .mine-content-icon--teal { background: var(--mine-teal-pale); color: var(--mine-teal); }
#page-mine .mine-content-icon--orange { background: var(--mine-orange-pale); color: var(--mine-orange); }
#page-mine .mine-content-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#page-mine .mine-content-name { font-size: 13px; font-weight: 500; color: var(--mine-text-1); }
#page-mine .mine-content-sub { font-size: 11px; color: var(--mine-text-3); margin-top: 1px; }
#page-mine .mine-content-arrow { width: 14px; height: 14px; color: var(--mine-text-4); flex-shrink: 0; }

#page-mine .mine-toolbox-card {
  width: 100%; border: none; padding: 0; cursor: pointer;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: var(--mine-radius); color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.2);
  position: relative; overflow: hidden; font-family: inherit; text-align: left;
}
#page-mine .mine-toolbox-card::before {
  content: ''; position: absolute; top: -30px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
#page-mine .mine-toolbox-inner {
  display: flex; align-items: center; gap: 12px; padding: 16px; position: relative; z-index: 1;
}
#page-mine .mine-toolbox-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#page-mine .mine-toolbox-icon svg { width: 24px; height: 24px; color: #fff; }
#page-mine .mine-toolbox-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#page-mine .mine-toolbox-title {
  font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
#page-mine .mine-toolbox-coming {
  font-size: 10px; font-weight: 500; background: rgba(255,255,255,0.25);
  padding: 2px 8px; border-radius: 8px;
}
#page-mine .mine-toolbox-desc { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 3px; }
#page-mine .mine-toolbox-arrow { width: 18px; height: 18px; color: rgba(255,255,255,0.7); flex-shrink: 0; }

#page-mine .mine-section--muted { margin-top: 8px; }
#page-mine .mine-settings-card {
  background: var(--mine-card); border-radius: var(--mine-radius);
  overflow: hidden; box-shadow: var(--mine-shadow);
}
#page-mine .mine-setting-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 14px; border: none; background: none; cursor: pointer;
  position: relative; font-family: inherit; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
#page-mine .mine-setting-item:active { background: var(--mine-paler); }
#page-mine .mine-setting-item:not(:last-child)::after {
  content: ''; position: absolute; left: 46px; right: 14px; bottom: 0;
  height: 1px; background: var(--mine-divider);
}
#page-mine .mine-setting-icon {
  width: 28px; height: 28px; border-radius: 8px; background: var(--mine-divider);
  color: var(--mine-text-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#page-mine .mine-setting-icon svg { width: 16px; height: 16px; }
#page-mine .mine-setting-name { flex: 1; font-size: 14px; color: var(--mine-text-1); }
#page-mine .mine-setting-value { font-size: 12px; color: var(--mine-text-3); }
#page-mine .mine-setting-arrow { width: 16px; height: 16px; color: var(--mine-text-4); flex-shrink: 0; }
#page-mine .mine-menu-badge {
  display: inline-flex; min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 8px; background: var(--mine-danger); color: #fff;
  font-size: 10px; font-weight: 600; align-items: center; justify-content: center;
}

#page-mine .mine-logout-card {
  display: block; width: calc(100% - 32px); margin: 12px 16px 0;
  padding: 14px; border: none; border-radius: var(--mine-radius);
  background: var(--mine-card); color: var(--mine-danger);
  font-size: 14px; font-weight: 500; text-align: center; cursor: pointer;
  box-shadow: var(--mine-shadow); font-family: inherit;
}
#page-mine .mine-logout-card:active { background: var(--mine-danger-pale); }
#page-mine .mine-app-footer {
  text-align: center; padding: 16px 0 8px;
}
#page-mine .mine-app-ver,
#page-mine .mine-app-brand { font-size: 11px; color: var(--mine-text-4); }
#page-mine .mine-app-brand { margin-top: 2px; }

/* ===== 工具百宝箱 UI · docs/handoff/toolbox-ui ===== */
#page-toolbox {
  --tb-gold: #FFB800;
  --tb-gold-deep: #E89A00;
  --tb-gold-soft: #FFF1C9;
  --tb-cream: #FFEFC2;
  --tb-band: #FFD700;
  --tb-red: #E84C3D;
  --tb-stroke: #5C3D17;
  --tb-blue: #3B82F6;
  --tb-blue-soft: #E8F1FF;
  --tb-ink: #1F2330;
  --tb-ink-2: #4A5160;
  --tb-ink-3: #8B92A3;
  --tb-ink-4: #B7BCC9;
  --tb-line: #ECEEF3;
  --tb-bg: #F5F6FA;
  --tb-card: #FFFFFF;
  --tb-card-2: #FAFBFD;
  --tb-success: #16A34A;
  --tb-r-sm: 10px;
  --tb-r-md: 14px;
  --tb-r-lg: 20px;
  --tb-r-xl: 28px;
  --tb-r-pill: 999px;
  --tb-sh-1: 0 1px 2px rgba(20,24,40,.04), 0 2px 8px rgba(20,24,40,.04);
  --tb-sh-2: 0 4px 12px rgba(20,24,40,.06), 0 12px 28px rgba(20,24,40,.06);
  --tb-t-fast: .18s cubic-bezier(.2,.7,.3,1);
  background:
    linear-gradient(180deg, #FFF8E5 0%, #FFFCF1 18%, #F5F6FA 38%, #F5F6FA 100%);
  color: var(--tb-ink);
}
#page-toolbox > .nav-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
#page-toolbox .toolbox-page-content {
  padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Hero */
#page-toolbox .toolbox-hero {
  position: relative;
  margin: 8px 16px 24px;
  border-radius: var(--tb-r-xl);
  overflow: hidden;
  background:
    radial-gradient(140px 100px at 90% 10%, rgba(255,215,0,0.65) 0%, transparent 60%),
    radial-gradient(220px 180px at 12% 80%, rgba(255,184,0,0.30) 0%, transparent 60%),
    linear-gradient(135deg, #FFF1C9 0%, #FFD98A 60%, #FFC24A 100%);
  padding: 22px;
  box-shadow: 0 14px 28px rgba(255,184,0,0.18), 0 4px 8px rgba(255,184,0,0.10);
}
#page-toolbox .toolbox-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.45) 0, rgba(255,255,255,0) 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.35) 0, rgba(255,255,255,0) 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.40) 0, rgba(255,255,255,0) 2px);
  background-size: 80px 80px, 100px 100px, 120px 120px;
  pointer-events: none;
}
#page-toolbox .toolbox-hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--tb-r-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--tb-stroke);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 2px rgba(92, 61, 23, 0.08);
}
#page-toolbox .toolbox-hero-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tb-success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: toolbox-pulse 1.6s infinite;
}
@keyframes toolbox-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
#page-toolbox .toolbox-hero-title {
  position: relative;
  margin: 12px 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--tb-stroke);
  line-height: 1.15;
  letter-spacing: 0.5px;
  padding-right: 118px;
}
#page-toolbox .toolbox-hero-accent {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE7A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tb-stroke);
}
#page-toolbox .toolbox-hero-sub {
  position: relative;
  margin: 0 0 16px;
  font-size: 12.5px;
  color: rgba(92, 61, 23, 0.78);
  line-height: 1.5;
  padding-right: 122px;
}
#page-toolbox .toolbox-hero-stats {
  position: relative;
  display: flex;
  gap: 8px;
}
#page-toolbox .toolbox-hero-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--tb-r-md);
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(92, 61, 23, 0.06);
}
#page-toolbox .toolbox-hero-stat .num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--tb-stroke);
  line-height: 1.1;
}
#page-toolbox .toolbox-hero-stat .num em {
  font-style: normal;
  font-size: 13px;
  color: var(--tb-ink-2);
  font-weight: 600;
  margin-left: 2px;
}
#page-toolbox .toolbox-hero-stat .lbl {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--tb-ink-2);
  font-weight: 500;
}
#page-toolbox .toolbox-hero-stat.is-locked .num { color: var(--tb-ink-2); }
#page-toolbox .toolbox-hero-mask {
  position: absolute;
  right: 10px;
  top: 14px;
  width: 132px;
  height: 132px;
  pointer-events: none;
  z-index: 3;
}
#page-toolbox .toolbox-hero-ip {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 4px 8px rgba(92, 61, 23, 0.18));
  animation: toolbox-wukong-idle 3.2s ease-in-out infinite;
}
@keyframes toolbox-wukong-idle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-1.5deg); }
}

/* Sections */
#page-toolbox .toolbox-section {
  padding: 0 16px;
  margin-bottom: 18px;
}
#page-toolbox .toolbox-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 12px;
}
#page-toolbox .toolbox-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tb-ink);
  letter-spacing: 0.3px;
}
#page-toolbox .toolbox-sec-emoji {
  font-size: 16px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.06));
}
#page-toolbox .toolbox-sec-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--tb-r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--tb-stroke);
  background: var(--tb-gold-soft);
}

/* Shortcuts */
#page-toolbox .toolbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#page-toolbox .toolbox-sc {
  position: relative;
  background: var(--tb-card);
  border-radius: var(--tb-r-lg);
  padding: 0;
  box-shadow: var(--tb-sh-1);
  overflow: hidden;
  isolation: isolate;
}
#page-toolbox .toolbox-sc::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 110px; height: 110px;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
#page-toolbox .toolbox-sc--gold::before {
  background: radial-gradient(circle, #FFE7A0 0%, transparent 70%);
}
#page-toolbox .toolbox-sc--blue::before {
  background: radial-gradient(circle, #D6E6FF 0%, transparent 70%);
}
#page-toolbox .toolbox-sc-edit {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  padding: 0; border: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.04);
  color: var(--tb-ink-3);
  z-index: 2;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
#page-toolbox .toolbox-sc-edit:active { background: rgba(0,0,0,.08); }
#page-toolbox .toolbox-sc-edit svg { width: 12px; height: 12px; }
#page-toolbox .toolbox-sc-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 14px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  min-height: 156px;
  transition: transform var(--tb-t-fast);
}
#page-toolbox .toolbox-sc-main:active { transform: scale(0.98); }
#page-toolbox .toolbox-sc-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}
#page-toolbox .toolbox-sc-icon svg { width: 22px; height: 22px; }
#page-toolbox .toolbox-sc--gold .toolbox-sc-icon {
  background: linear-gradient(135deg, #FFD700 0%, #FFB800 60%, #E89A00 100%);
}
#page-toolbox .toolbox-sc--blue .toolbox-sc-icon {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1D4ED8 100%);
}
#page-toolbox .toolbox-sc-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tb-ink);
  line-height: 1.2;
  margin: 0 0 4px;
  word-break: break-word;
}
#page-toolbox .toolbox-sc-host {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--tb-ink-3);
  margin-bottom: 10px;
  word-break: break-all;
}
#page-toolbox .toolbox-sc-host.is-empty { color: var(--tb-ink-4); }
#page-toolbox .toolbox-sc-host .globe { width: 10px; height: 10px; flex-shrink: 0; }
#page-toolbox .toolbox-sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--tb-line);
}
#page-toolbox .toolbox-sc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--tb-success);
  background: rgba(22, 163, 74, 0.10);
  padding: 3px 7px;
  border-radius: var(--tb-r-pill);
}
#page-toolbox .toolbox-sc-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tb-success);
}
#page-toolbox .toolbox-sc-tag.is-empty {
  color: var(--tb-ink-3);
  background: rgba(139, 146, 163, 0.12);
}
#page-toolbox .toolbox-sc-tag.is-empty::before { background: var(--tb-ink-3); }
#page-toolbox .toolbox-sc-go {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tb-ink-2);
  background: var(--tb-card-2);
}
#page-toolbox .toolbox-sc-go svg { width: 12px; height: 12px; }

/* AI skill card */
#page-toolbox .toolbox-ai-card {
  width: 100%;
  background: var(--tb-card);
  border-radius: var(--tb-r-lg);
  padding: 16px;
  border: none;
  box-shadow: var(--tb-sh-1);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
#page-toolbox .toolbox-ai-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
#page-toolbox .toolbox-ai-card:active { transform: scale(0.99); }
#page-toolbox .toolbox-ai-card.is-open { box-shadow: var(--tb-sh-2); }
#page-toolbox .toolbox-ai-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #34D399 0%, #10B981 60%, #047857 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.30);
}
#page-toolbox .toolbox-ai-icon svg { width: 22px; height: 22px; }
#page-toolbox .toolbox-ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#page-toolbox .toolbox-ai-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--tb-ink);
  margin: 0 0 2px;
}
#page-toolbox .toolbox-ai-new {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #F59E0B, #E84C3D);
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
#page-toolbox .toolbox-ai-desc {
  font-size: 11px;
  color: var(--tb-ink-3);
}
#page-toolbox .toolbox-ai-go {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tb-card-2);
  color: var(--tb-ink-2);
}
#page-toolbox .toolbox-ai-go svg { width: 14px; height: 14px; }

/* FX panel */
#page-toolbox .toolbox-fx-panel {
  margin-top: 10px; padding: 14px; background: var(--tb-card); border-radius: var(--tb-r-lg);
  box-shadow: var(--tb-sh-1);
}
#page-toolbox .toolbox-fx-dirs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
#page-toolbox .toolbox-fx-dir {
  padding: 10px 8px; border: 1px solid var(--tb-line); border-radius: var(--tb-r-sm);
  background: var(--tb-card-2); color: var(--tb-ink-2); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#page-toolbox .toolbox-fx-dir.is-active {
  border-color: var(--tb-blue); background: var(--tb-blue-soft); color: var(--tb-blue);
}
#page-toolbox .toolbox-fx-rate { font-size: 12px; color: var(--tb-ink-2); margin-bottom: 12px; }
#page-toolbox .toolbox-fx-label {
  display: block; font-size: 12px; color: var(--tb-ink-3); margin-bottom: 6px;
}
#page-toolbox .toolbox-fx-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px;
  border: 1px solid var(--tb-line); border-radius: var(--tb-r-sm); font-size: 18px; font-weight: 600;
  color: var(--tb-ink); font-family: inherit; outline: none; background: var(--tb-card-2);
}
#page-toolbox .toolbox-fx-input:focus { border-color: var(--tb-blue); background: #fff; }
#page-toolbox .toolbox-fx-result { margin: 14px 0 8px; text-align: center; }
#page-toolbox .toolbox-fx-cny-label { font-size: 12px; color: var(--tb-ink-3); }
#page-toolbox .toolbox-fx-cny {
  font-size: 28px; font-weight: 700; color: var(--tb-blue); margin-top: 4px; line-height: 1.2;
}
#page-toolbox .toolbox-fx-tip {
  font-size: 11px; color: var(--tb-ink-3); line-height: 1.45; margin: 0 0 12px; text-align: center;
}
#page-toolbox .toolbox-fx-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
#page-toolbox .toolbox-btn {
  flex: 1; padding: 12px; border-radius: var(--tb-r-sm); border: none; font-size: 14px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#page-toolbox .toolbox-btn--primary { background: var(--tb-blue); color: #fff; }
#page-toolbox .toolbox-btn--ghost { background: var(--tb-blue-soft); color: var(--tb-blue); }
#page-toolbox .toolbox-btn:active { opacity: 0.9; }

/* Soon */
#page-toolbox .toolbox-soon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#page-toolbox .toolbox-soon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--tb-card);
  border-radius: var(--tb-r-lg);
  padding: 16px 14px;
  box-shadow: var(--tb-sh-1);
  overflow: hidden;
  isolation: isolate;
}
#page-toolbox .toolbox-soon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,245,250,0.7) 0%, rgba(245,245,250,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
#page-toolbox .toolbox-soon-card > * { position: relative; z-index: 2; }
#page-toolbox .toolbox-soon-lock {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.04);
  color: var(--tb-ink-4);
  z-index: 3;
}
#page-toolbox .toolbox-soon-lock svg { width: 11px; height: 11px; }
#page-toolbox .toolbox-soon-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
  color: var(--tb-ink-3);
  margin-bottom: 10px;
}
#page-toolbox .toolbox-soon-icon svg { width: 18px; height: 18px; }
#page-toolbox .toolbox-soon-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tb-ink-2);
  line-height: 1.2;
  margin: 0 0 2px;
}
#page-toolbox .toolbox-soon-eta {
  font-size: 11px;
  color: var(--tb-ink-4);
}

/* Foot brand */
#page-toolbox .toolbox-foot-brand {
  margin: 24px 16px 0;
  padding: 16px;
  border-radius: var(--tb-r-lg);
  background: linear-gradient(135deg, #FFF8E5 0%, #FFEFC2 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(92, 61, 23, 0.05);
}
#page-toolbox .toolbox-foot-avatar {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD700, #FFB800);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(255, 184, 0, 0.30);
}
#page-toolbox .toolbox-foot-text { flex: 1; }
#page-toolbox .toolbox-foot-text .t {
  font-size: 13px;
  font-weight: 700;
  color: var(--tb-stroke);
}
#page-toolbox .toolbox-foot-text .s {
  font-size: 11px;
  color: rgba(92, 61, 23, 0.7);
  margin-top: 2px;
}

/* Dark tokens (ready; wire to [data-theme=dark] when product enables) */
#page-toolbox[data-theme="dark"] {
  background:
    linear-gradient(180deg, #1A1812 0%, #1F1C14 18%, #15161D 38%, #0E1018 100%);
  color: #E8EAF1;
}
#page-toolbox[data-theme="dark"] > .nav-header { background: rgba(20, 20, 28, 0.85); }
#page-toolbox[data-theme="dark"] .nav-title { color: #F3F4F8; }
#page-toolbox[data-theme="dark"] .nav-back { color: #B7BCC9; }
#page-toolbox[data-theme="dark"] .toolbox-hero {
  background:
    radial-gradient(140px 100px at 90% 10%, rgba(255,215,0,0.35) 0%, transparent 60%),
    radial-gradient(220px 180px at 12% 80%, rgba(255,184,0,0.20) 0%, transparent 60%),
    linear-gradient(135deg, #3D2F0F 0%, #5A4318 60%, #8B6511 100%);
  box-shadow: 0 14px 28px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.2);
}
#page-toolbox[data-theme="dark"] .toolbox-hero-title { color: #FFE7A0; }
#page-toolbox[data-theme="dark"] .toolbox-hero-accent {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFD700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
}
#page-toolbox[data-theme="dark"] .toolbox-hero-sub { color: rgba(255, 247, 220, 0.7); }
#page-toolbox[data-theme="dark"] .toolbox-hero-eyebrow { background: rgba(255,255,255,0.10); color: #FFE7A0; }
#page-toolbox[data-theme="dark"] .toolbox-hero-stat { background: rgba(255,255,255,0.08); }
#page-toolbox[data-theme="dark"] .toolbox-hero-stat .num { color: #FFE7A0; }
#page-toolbox[data-theme="dark"] .toolbox-hero-stat .lbl { color: rgba(255,247,220,0.7); }
#page-toolbox[data-theme="dark"] .toolbox-sec-title { color: #F3F4F8; }
#page-toolbox[data-theme="dark"] .toolbox-sec-count { background: rgba(255,215,0,0.20); color: #FFE7A0; }
#page-toolbox[data-theme="dark"] .toolbox-sc,
#page-toolbox[data-theme="dark"] .toolbox-ai-card,
#page-toolbox[data-theme="dark"] .toolbox-soon-card,
#page-toolbox[data-theme="dark"] .toolbox-fx-panel {
  background: #1A1D27;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
}
#page-toolbox[data-theme="dark"] .toolbox-sc-name,
#page-toolbox[data-theme="dark"] .toolbox-ai-name { color: #F3F4F8; }
#page-toolbox[data-theme="dark"] .toolbox-sc-host,
#page-toolbox[data-theme="dark"] .toolbox-ai-desc,
#page-toolbox[data-theme="dark"] .toolbox-sc-edit { color: #8B92A3; }
#page-toolbox[data-theme="dark"] .toolbox-sc-edit,
#page-toolbox[data-theme="dark"] .toolbox-ai-go,
#page-toolbox[data-theme="dark"] .toolbox-sc-go {
  background: rgba(255,255,255,0.06);
  color: #B7BCC9;
}
#page-toolbox[data-theme="dark"] .toolbox-sc-foot { border-top-color: rgba(255,255,255,0.06); }
#page-toolbox[data-theme="dark"] .toolbox-soon-name { color: #B7BCC9; }
#page-toolbox[data-theme="dark"] .toolbox-soon-eta { color: #6B7280; }
#page-toolbox[data-theme="dark"] .toolbox-soon-icon {
  background: linear-gradient(135deg, #2A2D38 0%, #1F222B 100%);
  color: #8B92A3;
}
#page-toolbox[data-theme="dark"] .toolbox-soon-lock { background: rgba(255,255,255,0.06); color: #6B7280; }
#page-toolbox[data-theme="dark"] .toolbox-soon-card::before {
  background: linear-gradient(135deg, rgba(40,42,52,0.4) 0%, rgba(20,22,30,0.4) 100%);
}
#page-toolbox[data-theme="dark"] .toolbox-foot-brand {
  background: linear-gradient(135deg, rgba(255,215,0,0.10) 0%, rgba(255,184,0,0.05) 100%);
  border: 1px solid rgba(255,215,0,0.20);
}
#page-toolbox[data-theme="dark"] .toolbox-foot-text .t { color: #FFE7A0; }
#page-toolbox[data-theme="dark"] .toolbox-foot-text .s { color: rgba(255,247,220,0.6); }
#page-toolbox[data-theme="dark"] .toolbox-fx-dir {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #B7BCC9;
}
#page-toolbox[data-theme="dark"] .toolbox-fx-dir.is-active {
  border-color: var(--tb-blue); background: rgba(59,130,246,0.18); color: #93C5FD;
}
#page-toolbox[data-theme="dark"] .toolbox-fx-input {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #F3F4F8;
}
#page-toolbox[data-theme="dark"] .toolbox-fx-rate,
#page-toolbox[data-theme="dark"] .toolbox-fx-label,
#page-toolbox[data-theme="dark"] .toolbox-fx-tip,
#page-toolbox[data-theme="dark"] .toolbox-fx-cny-label { color: #8B92A3; }

/* legacy profile (其他页若仍引用) */
.profile-header {
  background: linear-gradient(135deg, var(--color-brand) 0%, #1D4ED8 100%);
  padding: 28px 20px 24px; text-align: center; color: white;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; margin: 0 auto 12px;
}
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.profile-role { font-size: 13px; opacity: 0.8; }
.profile-stats { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-size: 22px; font-weight: 700; }
.profile-stat-label { font-size: 12px; opacity: 0.75; }

/* ===== P2-B ??? ===== */
.plans-page-content { padding-top: 0 !important; padding-bottom: 24px; }

.plans-current-hero {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: #fff;
  padding: 24px 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0 -16px 0;
}
.plans-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}
.plans-current-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.plans-current-meta { font-size: 13px; opacity: 0.85; line-height: 1.6; }
.plans-current-expires {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.plans-feature-list { padding: 16px 0; }
.plans-feature-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 8px 0;
  margin-top: 8px;
}
.plans-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.plans-feature-icon { font-size: 18px; flex-shrink: 0; }
.plans-feature-label { flex: 1; font-size: 14px; }
.plans-feature-value { font-size: 12px; color: var(--color-text-tertiary); }

.plans-section-title {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 0 8px;
}
.plans-card-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.plans-tier-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border-light);
  position: relative;
}
.plans-tier-card.recommended { border-color: var(--color-brand); }
.plans-recommended-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  background: var(--color-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}
.plans-tier-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.plans-tier-price { font-size: 28px; font-weight: 700; color: var(--color-brand); margin-bottom: 12px; }
.plans-tier-price-unit { font-size: 14px; font-weight: 400; color: var(--color-text-secondary); }
.plans-tier-features { font-size: 13px; color: var(--color-text-secondary); line-height: 1.8; }
.plans-tier-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.plans-tier-btn.secondary {
  background: var(--color-bg);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}
.plans-tier-btn:disabled { opacity: 0.5; cursor: default; }

/* ===== P2-B ????? ===== */
.stats-page-content { padding: 0 0 24px !important; }

.stats-date-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border-light);
  overflow-x: auto;
}
.stats-date-btn {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}
.stats-date-btn.active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.stats-kpi-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.stats-kpi-label { font-size: 12px; color: var(--color-text-tertiary); margin-bottom: 4px; }
.stats-kpi-value { font-size: 24px; font-weight: 700; color: var(--color-brand); }
.stats-kpi-change { font-size: 11px; margin-top: 4px; }
.stats-kpi-change.up { color: var(--color-success); }
.stats-kpi-change.down { color: var(--color-error); }

.stats-chart-card {
  margin: 0 16px 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.stats-chart-card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }

.stats-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-bottom: 24px;
  position: relative;
}
.stats-bar-chart .stats-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.stats-bar-chart .stats-bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  background: var(--color-brand);
  min-height: 4px;
  position: relative;
}
.stats-bar-chart .stats-bar-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-brand);
  font-weight: 600;
  white-space: nowrap;
}
.stats-bar-chart .stats-bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.stats-rank-section { padding: 0 16px 16px; }
.stats-rank-title { font-size: 15px; font-weight: 600; padding: 8px 0 12px; }
.stats-rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.stats-rank-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.stats-rank-num.top1 { background: #FEF3C7; color: #92400E; }
.stats-rank-num.top2 { background: var(--color-border-light); color: var(--color-text-secondary); }
.stats-rank-num.top3 { background: #FED7AA; color: #92400E; }
.stats-rank-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.stats-rank-info { flex: 1; min-width: 0; }
.stats-rank-name { font-size: 14px; font-weight: 500; }
.stats-rank-desc { font-size: 12px; color: var(--color-text-tertiary); }
.stats-rank-value { font-size: 15px; font-weight: 700; color: var(--color-brand); }

/* ===== ??????????/????? ? ????? ===== */
.login-page {
  background:
    radial-gradient(130% 60% at 50% 0%, var(--color-brand-light) 0%, rgba(219, 234, 254, 0) 62%),
    var(--color-bg-page);
  padding-bottom: 0;
}

/* Hero????? + ?????? profile / stats ????? */
.login-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 52px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--color-brand) 0%, #1E40AF 100%);
}
.login-hero-glow {
  position: absolute;
  top: -42%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.login-logo {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.login-logo svg { width: 40px; height: 40px; color: #fff; }
.login-app-name {
  position: relative; z-index: 1;
  font-size: 25px; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px;
}
.login-slogan {
  position: relative; z-index: 1;
  font-size: 13px; opacity: 0.82; letter-spacing: 0.5px;
}

/* ????????? hero????????????? */
.login-form {
  position: relative;
  z-index: 2;
  flex: 1;
  margin: -30px 16px 0;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--color-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-card);
  animation: loginRise 0.4s ease both;
}
@keyframes loginRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-input-group { position: relative; margin-bottom: 14px; }
.login-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--color-card);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input::placeholder { color: var(--color-text-tertiary); }
.login-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.login-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  pointer-events: none;
}
.login-input-icon svg { width: 20px; height: 20px; display: block; }

/* ??????WCAG AA ???? + ??? */
.login-error {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 2px 2px 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #B91C1C;
  background: var(--color-error-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
}
.login-error:not([hidden]) { display: flex; }
.login-error svg { width: 16px; height: 16px; flex-shrink: 0; }

.login-btn {
  width: 100%;
  margin-top: 4px;
  padding: 15px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.login-btn:active { transform: translateY(1px) scale(0.99); box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25); }
.login-btn:disabled { opacity: 0.6; box-shadow: none; cursor: not-allowed; }
.login-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.login-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.login-link-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 2px 12px;
}
.login-text-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13px;
  color: var(--color-brand);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.login-back-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
}
.login-input-group--code {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding-left: 0;
}
.login-input-group--code .login-input {
  flex: 1;
  min-width: 0;
  padding-left: 14px;
}
.login-code-btn {
  flex: 0 0 auto;
  min-width: 108px;
  padding: 0 12px;
  border: 1.5px solid var(--color-brand);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.login-code-btn:disabled {
  border-color: var(--color-border, #ddd);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .login-form { animation: none; }
  .login-btn { transition: opacity 0.2s ease; }
  .login-btn:active { transform: none; }
}

/* ===== ??????? ===== */
.stats-header {
  background: linear-gradient(135deg, var(--color-brand) 0%, #1E40AF 100%);
  padding: 20px; color: white;
}
.stats-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stats-header-title { font-size: 18px; font-weight: 700; }
.stats-date-selector {
  padding: 6px 12px; background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full); font-size: 12px; font-weight: 500;
  cursor: pointer; border: none; color: white;
}
.stats-big-number { font-size: 36px; font-weight: 800; margin-bottom: 2px; }
.stats-big-label { font-size: 13px; opacity: 0.75; margin-bottom: 16px; }
.stats-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-overview-card {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border-radius: var(--radius-md); padding: 12px;
}
.stats-overview-num { font-size: 22px; font-weight: 700; }
.stats-overview-label { font-size: 11px; opacity: 0.7; margin-top: 2px; }

.stats-section-title {
  padding: 16px 16px 10px; font-size: 15px; font-weight: 700;
  color: var(--color-text-primary);
}
.stats-grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  padding: 0 16px; margin-bottom: 12px;
}
.stats-mini-card {
  background: var(--color-card); border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center; box-shadow: var(--shadow-sm);
}
.stats-mini-num { font-size: 20px; font-weight: 700; color: var(--color-brand); }
.stats-mini-label { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }

.stats-chart {
  margin: 0 16px 12px; background: var(--color-card);
  border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
}
.stats-chart-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--color-text-primary); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-bottom: 24px; position: relative; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; }
.bar { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; transition: all 0.3s; min-height: 4px; }
.bar-label { font-size: 10px; color: var(--color-text-tertiary); margin-top: 6px; position: absolute; bottom: 0; transform: translateX(-50%); }

.donut-chart {
  width: 80px; height: 80px; border-radius: 50%;
  background: conic-gradient(var(--color-brand) 0% 45%, var(--color-success) 45% 70%, var(--color-warning) 70% 85%, var(--color-text-tertiary) 85% 100%);
  position: relative; flex-shrink: 0;
}
.donut-chart::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 52px; height: 52px;
  background: white; border-radius: 50%;
}
.donut-legend { flex: 1; }
.donut-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px;
}
.donut-legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

.stats-rank-list { padding: 0 16px 12px; }
.stats-rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--color-card);
  border-radius: var(--radius-md); margin-bottom: 6px; box-shadow: var(--shadow-sm);
}
.stats-rank-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.stats-rank-num.gold { background: #FEF3C7; color: #92400E; }
.stats-rank-num.silver { background: #F3F4F6; color: #374151; }
.stats-rank-num.bronze { background: #FEF3C7; color: #92400E; }
.stats-rank-num.normal { background: var(--color-border-light); color: var(--color-text-tertiary); }
.stats-rank-name { flex: 1; font-size: 14px; font-weight: 500; }
.stats-rank-value { font-size: 14px; font-weight: 700; color: var(--color-brand); }
.stats-rank-value span { font-size: 11px; color: var(--color-text-tertiary); font-weight: 400; }

/* ????? */
.visitor-activity-content { padding: 0 0 28px !important; }
.va-kpi { padding: 12px 16px 4px; }
.va-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.va-kpi-card {
  background: var(--color-card); border-radius: var(--radius-md);
  padding: 12px 6px; text-align: center; box-shadow: var(--shadow-sm);
}
.va-kpi-card--hot .va-kpi-num { color: #DC2626; }
.va-kpi-num { font-size: 20px; font-weight: 700; color: var(--color-brand); line-height: 1.2; }
.va-kpi-label { font-size: 11px; color: var(--color-text-tertiary); margin-top: 4px; }
.va-kpi-tip {
  margin: 10px 0 0; font-size: 12px; line-height: 1.5;
  color: var(--color-text-secondary);
}
.va-tab-bar { margin-top: 4px; }
.va-list { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.va-card {
  display: block; width: 100%; text-align: left; border: none; cursor: pointer;
  background: var(--color-card); border-radius: var(--radius-md);
  padding: 14px 14px 12px; box-shadow: var(--shadow-sm);
}
.va-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.va-heat {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.va-heat--hot { background: #FEE2E2; color: #B91C1C; }
.va-heat--warm { background: #FFEDD5; color: #C2410C; }
.va-heat--cold { background: #F3F4F6; color: #6B7280; }
.va-tag {
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: #EFF6FF; color: #1D4ED8;
}
.va-tag--hot { background: #FEE2E2; color: #B91C1C; }
.va-time { margin-left: auto; font-size: 12px; color: var(--color-text-tertiary); }
.va-card-path { font-size: 14px; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; }
.va-card-hint { font-size: 12px; color: var(--color-text-secondary); margin-top: 6px; line-height: 1.45; }
.va-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--color-brand);
}
.va-card-arrow { font-size: 16px; opacity: 0.7; }
.va-empty { padding: 8px 0 24px; }
.va-detail-panel { max-height: 82vh; }
.va-detail-body { padding: 0 16px 20px; overflow-y: auto; max-height: calc(82vh - 56px); }
.va-detail-loading { padding: 24px 0; text-align: center; color: var(--color-text-tertiary); }
.va-detail-summary { margin-bottom: 14px; }
.va-detail-path { margin: 10px 0 6px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.va-detail-hint { margin: 0; font-size: 13px; color: var(--color-text-secondary); line-height: 1.45; }
.va-timeline-title-row { font-size: 13px; font-weight: 600; margin: 8px 0 10px; color: var(--color-text-secondary); }
.va-timeline { position: relative; padding-left: 14px; margin-bottom: 16px; }
.va-timeline::before {
  content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px;
  background: var(--color-border-light);
}
.va-timeline-item { display: flex; gap: 10px; position: relative; margin-bottom: 14px; }
.va-timeline-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand);
  margin-left: -14px; margin-top: 4px; flex-shrink: 0; box-shadow: 0 0 0 3px #fff;
}
.va-timeline-title { font-size: 13px; color: var(--color-text-primary); line-height: 1.4; }
.va-timeline-time { font-size: 11px; color: var(--color-text-tertiary); margin-top: 2px; }
.va-detail-actions { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.va-card-sub {
  margin-top: 4px; font-size: 12px; color: var(--color-text-secondary); line-height: 1.4;
}
.va-detail-subpath {
  margin: 0 0 6px; font-size: 13px; color: var(--color-text-secondary); line-height: 1.4;
}
.va-chat-block {
  margin: 0 0 16px; padding: 12px;
  background: #F0F9FF; border-radius: var(--radius-md);
  border: 1px solid #BAE6FD;
}
.va-chat-summary { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--color-text-primary); }
.va-chat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.va-chat-meta { margin: 0 0 8px; font-size: 11px; color: var(--color-text-tertiary); }
.va-chat-recent { display: flex; flex-direction: column; gap: 6px; }
.va-chat-line { font-size: 12px; line-height: 1.45; color: var(--color-text-secondary); }
.va-kpi-tip--ab { font-size: 11px; color: #64748B; margin-top: 4px; }
.va-chat-followup-script { margin-top: 10px; padding: 10px; background: #fff; border-radius: 10px; border: 1px solid #BAE6FD; }
.va-chat-followup-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 6px; }
.va-chat-followup-text { font-size: 13px; line-height: 1.55; color: var(--color-text-primary); margin-bottom: 10px; white-space: pre-wrap; }
.va-identity {
  margin: 0 0 16px; padding: 12px 12px 10px;
  background: #F8FAFC; border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light, #E5E7EB);
}
.va-identity-title {
  font-size: 13px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 8px;
}
.va-identity-desc {
  margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary);
}
.va-identity-card--linked {
  margin-bottom: 10px;
}
.va-identity-name {
  font-size: 16px; font-weight: 700; color: var(--color-text-primary);
}
.va-identity-meta, .va-identity-extra {
  margin-top: 4px; font-size: 12px; color: var(--color-text-secondary); line-height: 1.4;
}
.va-identity-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.va-link-panel { margin-top: 12px; }
.va-link-tabs {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.va-link-tab {
  flex: 1; border: 1px solid var(--color-border-light, #E5E7EB);
  background: #fff; border-radius: 8px; padding: 8px; font-size: 13px;
  color: var(--color-text-secondary); cursor: pointer;
}
.va-link-tab.active {
  border-color: var(--color-brand); color: var(--color-brand); font-weight: 600;
  background: #EFF6FF;
}
.va-link-input { width: 100%; margin-bottom: 8px; box-sizing: border-box; }
.va-link-results { max-height: 200px; overflow-y: auto; }
.va-link-hint { font-size: 12px; color: var(--color-text-tertiary); padding: 8px 0; margin: 0; }
.va-link-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; border: none; background: #fff;
  border-radius: 8px; padding: 10px 12px; margin-bottom: 6px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.va-link-item-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.va-link-item-meta { font-size: 12px; color: var(--color-text-tertiary); }
.va-timeline-tip {
  margin-top: 2px; font-size: 12px; color: #B45309; line-height: 1.4;
}

/* ??????????????? */
.share-visitor-id-tip {
  position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 1200; pointer-events: none;
}
.share-visitor-id-tip-inner {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.94); color: #fff;
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.share-visitor-id-tip-head {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45; margin-bottom: 10px;
}
.share-visitor-id-tip-head span { flex: 1; }
.share-visitor-id-tip-close {
  border: none; background: transparent; color: rgba(255,255,255,0.7);
  font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer;
}
.share-visitor-id-tip-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.share-visitor-id-btn {
  border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.share-visitor-id-btn--primary {
  background: #fff; color: #0f172a; border-color: #fff; font-weight: 600;
}
.share-visitor-id-btn--ghost {
  border-color: transparent; color: rgba(255,255,255,0.65);
}
.share-visitor-id-input {
  width: 100%; box-sizing: border-box; margin-bottom: 8px;
  border-radius: 8px; border: none; padding: 8px 10px; font-size: 14px;
}

/* ===== 公众号收集箱：紧凑卡片列表 ===== */
#page-wx-inbox {
  --wx-inbox-bg: #f5f3f0;
  --wx-inbox-card: #ffffff;
  --wx-inbox-ink: #2c2c2c;
  --wx-inbox-muted: #8a8780;
  --wx-inbox-faint: #b0aea5;
  --wx-inbox-line: #f0ede8;
  --wx-inbox-radius: 14px;
  --color-content-accent: #4A9E8E;
  --color-content-accent-bg: rgba(74, 158, 142, 0.08);
  --status-active: var(--color-content-accent);
  --status-sealed: #B0AEA5;
  --wx-inbox-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--wx-inbox-bg);
  font-family: var(--wx-inbox-font);
  /* flomo：整页一起滚，顶栏+三入口随列表上滑隐藏（勿拆成 .content 内滚） */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#page-wx-inbox > .nav-header {
  position: static !important;
  top: auto;
  z-index: auto;
  flex: 0 0 auto;
  background: transparent;
  border: none;
  border-bottom: none;
  box-shadow: none;
}
#page-wx-inbox .wx-inbox-select-btn {
  border: 0;
  background: transparent;
  color: var(--wx-inbox-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 0 4px;
  width: auto;
  min-width: 44px;
}
#page-wx-inbox .wx-inbox-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px 6px;
  background: var(--wx-inbox-bg);
  border: none;
  border-bottom: none;
  box-shadow: none;
  flex: 0 0 auto;
}
#page-wx-inbox .wx-inbox-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: var(--wx-inbox-card);
  padding: 11px 6px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  box-shadow: none;
  transition: opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
#page-wx-inbox .wx-inbox-shortcut:active {
  opacity: 0.7;
  transform: none;
}
#page-wx-inbox .wx-inbox-shortcut-ico {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-shortcut-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--wx-inbox-ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
#page-wx-inbox .wx-inbox-tag-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 2px;
  background: var(--wx-inbox-bg);
  border: none;
  border-bottom: none;
  flex: 0 0 auto;
}
#page-wx-inbox .wx-inbox-tag-filter[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-tag-filter-label {
  font-size: 12px;
  color: var(--wx-inbox-faint);
  white-space: nowrap;
}
#page-wx-inbox .wx-inbox-tag-filter-pill {
  font-size: 12px;
  color: var(--color-brand, #3B82F6);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}
#page-wx-inbox .wx-inbox-tag-filter-clear {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--wx-inbox-muted);
  font-size: 12px;
  padding: 4px 6px;
  cursor: pointer;
}
#page-wx-inbox .wx-inbox-list,
#page-wx-inbox > .content.wx-inbox-list {
  flex: 0 0 auto !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0;
  padding: 6px 14px calc(120px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--wx-inbox-bg);
  box-sizing: border-box;
}
#page-wx-inbox .wx-inbox-empty {
  padding: 48px 24px 32px;
  text-align: center;
}
#page-wx-inbox .wx-inbox-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--color-content-accent-bg);
  color: var(--color-content-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
#page-wx-inbox .wx-inbox-empty-wukong {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
}
#page-wx-inbox .wx-inbox-empty-wukong-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 184, 0, 0.3);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.2);
}
#page-wx-inbox .wx-inbox-empty-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--wx-inbox-ink);
  margin-bottom: 6px;
}
#page-wx-inbox .wx-inbox-empty-wukong + .wx-inbox-empty-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}
#page-wx-inbox .wx-inbox-empty-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--wx-inbox-muted);
}
#page-wx-inbox .wx-inbox-empty-wukong + .wx-inbox-empty-title + .wx-inbox-empty-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}
#page-wx-inbox .wx-inbox-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 18px 18px 16px 20px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: var(--wx-inbox-card);
  border: none;
  border-left: 3px solid var(--status-sealed);
  border-radius: var(--wx-inbox-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  overflow: visible;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
#page-wx-inbox .wx-inbox-card::before {
  display: none;
}
#page-wx-inbox .wx-inbox-card.is-open {
  border-left-color: var(--status-active);
}
#page-wx-inbox .wx-inbox-card.is-cluster:not(.is-open) {
  border-left-color: #8FBFB4;
}
#page-wx-inbox .wx-inbox-card.is-open::before {
  display: none;
}
#page-wx-inbox a.wx-inbox-card:active,
#page-wx-inbox button.wx-inbox-card:active {
  background: #faf9f7;
}
#page-wx-inbox .wx-inbox-card.is-selected {
  background: var(--color-content-accent-bg);
  box-shadow: 0 0 0 1.5px var(--color-content-accent), 0 1px 2px rgba(0, 0, 0, 0.03);
}
/* 收集箱 · 卡片交错进入（v1→8.8 精稿） */
@keyframes wx-inbox-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#page-wx-inbox .wx-inbox-list > .wx-inbox-card {
  opacity: 0;
  animation: wx-inbox-card-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(1) { animation-delay: 0ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(2) { animation-delay: 50ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(3) { animation-delay: 100ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(4) { animation-delay: 150ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(5) { animation-delay: 200ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(6) { animation-delay: 250ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(7) { animation-delay: 300ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(8) { animation-delay: 350ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(9) { animation-delay: 400ms; }
#page-wx-inbox .wx-inbox-list > .wx-inbox-card:nth-child(10) { animation-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  #page-wx-inbox .wx-inbox-list > .wx-inbox-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
#page-wx-inbox .wx-inbox-check {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: transparent;
}
#page-wx-inbox .wx-inbox-check.is-on {
  border-color: var(--color-content-accent);
  background: var(--color-content-accent);
}
#page-wx-inbox .wx-inbox-body {
  flex: 1;
  min-width: 0;
}
#page-wx-inbox .wx-inbox-top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
#page-wx-inbox .wx-inbox-type {
  display: none;
}
#page-wx-inbox .wx-inbox-type--image,
#page-wx-inbox .wx-inbox-type--voice,
#page-wx-inbox .wx-inbox-type--link,
#page-wx-inbox .wx-inbox-type--text,
#page-wx-inbox .wx-inbox-type--open {
  display: none;
}
#page-wx-inbox .wx-inbox-time {
  font-size: 12px;
  color: var(--wx-inbox-faint);
  margin-left: 0;
  white-space: nowrap;
}
#page-wx-inbox .wx-inbox-frag {
  font-size: 12px;
  color: var(--wx-inbox-faint);
  margin-left: 0;
}
#page-wx-inbox .wx-inbox-more {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--wx-inbox-faint);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 2px 4px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 1;
}
#page-wx-inbox .wx-inbox-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wx-inbox-ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
#page-wx-inbox .wx-inbox-preview {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wx-inbox-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
#page-wx-inbox .wx-inbox-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F9;
  display: block;
}
#page-wx-inbox .wx-inbox-merge-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--wx-inbox-line);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#page-wx-inbox .wx-inbox-merge-bar[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-merge-meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--wx-inbox-muted);
  line-height: 1.4;
}
#page-wx-inbox .wx-inbox-merge-meta b {
  color: var(--wx-inbox-ink);
  font-weight: 700;
}
#page-wx-inbox .wx-inbox-merge-btn {
  width: auto;
  margin: 0;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 10px;
}
#page-wx-inbox .wx-inbox-merge-btn:disabled {
  opacity: 0.45;
}

/* 收集箱 / 备忘录 · 正文直出 + 操作 Sheet */
#page-wx-inbox .wx-inbox-type--open {
  background: #ECFDF5;
  color: #059669;
}
#page-wx-inbox .wx-inbox-type--due-today,
#page-memo .wx-inbox-type--due-today {
  background: #FEF3C7;
  color: #B45309;
}
#page-wx-inbox .wx-inbox-type--due-over,
#page-memo .wx-inbox-type--due-over {
  background: #FEE2E2;
  color: #DC2626;
}
#page-wx-inbox .wx-inbox-frag,
#page-memo .wx-inbox-frag {
  font-size: 10px;
  color: var(--wx-inbox-faint);
  margin-left: 2px;
}
#page-wx-inbox .wx-inbox-body-text,
#page-memo .wx-inbox-body-text {
  display: block;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
  color: #2c2c2c;
  word-break: break-word;
  white-space: pre-wrap;
  overflow: visible;
  max-height: none;
}
#page-wx-inbox .wx-inbox-body-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.015em;
  color: #2c2c2c;
}
#page-wx-inbox .wx-inbox-body-text.is-clamped,
#page-memo .wx-inbox-body-text.is-clamped {
  overflow: hidden;
  max-height: calc(1.72em * 6);
}
#page-memo .wx-inbox-body-text.is-clamped {
  max-height: calc(1.55em * 4);
}
#page-wx-inbox .wx-inbox-body-text.is-expanded,
#page-memo .wx-inbox-body-text.is-expanded {
  display: block;
  max-height: none;
  overflow: visible;
}
#page-wx-inbox .wx-inbox-prose-wrap {
  position: relative;
}
#page-wx-inbox .wx-inbox-body-text strong {
  font-weight: 700;
  color: #1a1a1a;
}
#page-wx-inbox .wx-inbox-body-text .wx-inbox-li {
  display: block;
  padding-left: 0.15em;
  line-height: 1.65;
}
#page-wx-inbox .wx-inbox-body-text .wx-inbox-li-num {
  padding-left: 0;
}
#page-wx-inbox .wx-inbox-body-media {
  margin-top: 10px;
}
#page-wx-inbox .wx-inbox-body-audio .wx-inbox-inline-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  height: 36px;
}
#page-wx-inbox .wx-inbox-body-text .wx-inbox-inline-img,
#page-wx-inbox .wx-inbox-body-media .wx-inbox-inline-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  margin: 8px 0 0;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
  cursor: zoom-in;
}
#page-wx-inbox .wx-inbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
}
#page-wx-inbox .wx-inbox-tag {
  border: 0;
  background: transparent;
  padding: 2px 0;
  min-height: 28px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-brand, #3B82F6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#page-wx-inbox .wx-inbox-tag:active {
  opacity: 0.7;
}
#page-wx-inbox .wx-inbox-fab {
  position: fixed;
  right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 25;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 26px;
  background: #2c2c2c;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#page-wx-inbox .wx-inbox-fab[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-fab:active {
  transform: scale(0.96);
}
#page-wx-inbox .wx-inbox-composer {
  position: fixed;
  inset: 0;
  z-index: 45;
}
#page-wx-inbox .wx-inbox-composer[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-composer-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#page-wx-inbox .wx-inbox-composer-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  padding: 0 0 calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08), 0 -1px 0 rgba(0, 0, 0, 0.04);
  will-change: bottom, transform;
  transition: bottom 0.18s ease-out, transform 0.2s ease-out;
}
#page-wx-inbox .wx-inbox-composer-panel.is-dragging {
  transition: none;
}
#page-wx-inbox .wx-inbox-composer-grab {
  flex-shrink: 0;
  padding: 6px 0 2px;
  touch-action: none;
  cursor: grab;
}
#page-wx-inbox .wx-inbox-composer-handle {
  width: 36px;
  height: 4px;
  margin: 4px auto;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
}
#page-wx-inbox .wx-inbox-composer-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 8px 18px;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-composer-status-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--wx-inbox-faint, #b0aea5);
  letter-spacing: 0.02em;
}
#page-wx-inbox .wx-inbox-composer-status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--status-sealed, #B0AEA5);
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-composer-status-dot.is-open {
  background: var(--color-content-accent, #4A9E8E);
}
#page-wx-inbox .wx-inbox-composer-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--wx-inbox-faint, #b0aea5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
#page-wx-inbox .wx-inbox-composer-close:active {
  background: var(--wx-inbox-bg, #f5f3f0);
}
#page-wx-inbox .wx-inbox-composer-input {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  min-height: 140px;
  max-height: 50vh;
  margin: 0;
  padding: 8px 20px 12px;
  border: none;
  border-radius: 0;
  overflow-y: auto;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: #2c2c2c;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  white-space: pre-wrap;
  word-break: break-word;
}
/* 内联 #xxx 标签 · 品牌蓝（正文换行后恢复默认色） */
#page-wx-inbox .wx-inbox-composer-input .wx-inbox-hashtag {
  color: var(--color-brand, #3B82F6);
}
/* 加粗视觉 */
#page-wx-inbox .wx-inbox-composer-input b,
#page-wx-inbox .wx-inbox-composer-input strong {
  font-weight: 600;
}
/* 列表缩进收紧 */
#page-wx-inbox .wx-inbox-composer-input ul,
#page-wx-inbox .wx-inbox-composer-input ol {
  margin: 4px 0;
  padding-left: 18px;
}
#page-wx-inbox .wx-inbox-composer-input li {
  margin: 1px 0;
}
/* contentEditable placeholder */
#page-wx-inbox .wx-inbox-composer-input:empty::before {
  content: attr(data-placeholder);
  color: #c8c6c0;
  pointer-events: none;
}
#page-wx-inbox .wx-inbox-composer-input b,
#page-wx-inbox .wx-inbox-composer-input strong {
  font-weight: 600;
}
#page-wx-inbox .wx-inbox-composer-input:focus {
  border: none;
  outline: none;
}
#page-wx-inbox .wx-inbox-composer-counter {
  font-size: 11px;
  color: #c8c6c0;
  text-align: right;
  padding: 0 20px 4px;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-composer-counter[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-composer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 14px 4px;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-composer-mic-hint {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-brand, #3b82f6);
  background: var(--color-brand-light, #dbeafe);
}
#page-wx-inbox .wx-inbox-composer-mic-hint[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-composer-mic-hint.is-recording::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand, #3b82f6);
  flex-shrink: 0;
  animation: wx-inbox-mic-dot 1s ease-in-out infinite;
}
#page-wx-inbox .wx-inbox-composer-mic-hint.is-busy {
  color: var(--color-brand, #3b82f6);
  background: var(--color-brand-light, #dbeafe);
}
@keyframes wx-inbox-mic-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}
#page-wx-inbox .wx-inbox-composer-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
#page-wx-inbox .wx-inbox-composer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 6px;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-composer-chips[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-composer-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 8px;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-composer-media[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-composer-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
#page-wx-inbox .wx-inbox-composer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#page-wx-inbox .wx-inbox-composer-thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
#page-wx-inbox .wx-inbox-composer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-brand, #3B82F6);
  font-size: 12px;
  border: 0;
  cursor: pointer;
}
#page-wx-inbox .wx-inbox-composer-chip-x {
  opacity: 0.7;
  font-size: 14px;
  line-height: 1;
}
#page-wx-inbox .wx-inbox-composer-tool {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
#page-wx-inbox .wx-inbox-composer-tool:focus,
#page-wx-inbox .wx-inbox-composer-tool:focus-visible,
#page-wx-inbox .wx-inbox-composer-tool:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}
#page-wx-inbox .wx-inbox-composer-tool-glyph {
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  color: inherit;
  font-family: var(--font-family);
}
/* B 字符加重传达语义 */
#page-wx-inbox #wxInboxToolBold .wx-inbox-composer-tool-glyph {
  font-weight: 700;
}
/* 仅录音中保留强调色；普通工具点击不留蓝底 */
#page-wx-inbox .wx-inbox-composer-tool.is-on:not(.is-recording) {
  color: #6b7280;
  background: transparent;
}
#page-wx-inbox .wx-inbox-composer-tool.is-recording {
  color: #fff;
  background: var(--color-brand, #3B82F6);
  animation: wx-inbox-mic-btn 1.2s ease-in-out infinite;
}
@keyframes wx-inbox-mic-btn {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
#page-wx-inbox .wx-inbox-composer-tool.is-phase2::after {
  display: none;
}
#page-wx-inbox .wx-inbox-composer-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px 9px 14px;
  border: 0;
  border-radius: 22px;
  background: var(--color-brand, #3B82F6);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    color 0.2s ease;
}
#page-wx-inbox .wx-inbox-composer-send:not(:disabled) {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
#page-wx-inbox .wx-inbox-composer-send:active:not(:disabled) {
  transform: scale(0.94);
  background: var(--color-brand-dark, #2563EB);
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}
#page-wx-inbox .wx-inbox-composer-send:disabled {
  background: var(--wx-inbox-bg, #f5f3f0);
  color: #c8c6c0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#page-wx-inbox .wx-inbox-composer-send-label {
  line-height: 1;
}
#page-wx-inbox .wx-inbox-expand,
#page-memo .wx-inbox-expand {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: #3B82F6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 4px 2px;
  min-height: 32px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#page-wx-inbox .wx-inbox-expand {
  color: var(--color-brand, #3B82F6);
}
/* 收起：挂在 body，相对真视口左下（对齐 flomo，约与 FAB 同高） */
#wxInboxCollapseFloat.wx-inbox-expand--float,
#page-wx-inbox .wx-inbox-expand--float {
  position: fixed !important;
  left: 20px !important;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  top: auto !important;
  right: auto !important;
  z-index: 1200 !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 5px 12px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3B82F6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
#page-wx-inbox .wx-inbox-prose-wrap.is-expanded-wrap {
  position: relative;
}
#page-wx-inbox .wx-inbox-more,
#page-memo .wx-inbox-more {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: var(--wx-inbox-faint);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 2px 4px;
  cursor: pointer;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-more {
  margin-left: auto;
  opacity: 1;
}
#page-wx-inbox .wx-inbox-card.is-open {
  border-left-color: var(--status-active);
}
#page-memo .memo-due-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
}
#page-wx-inbox .wx-inbox-sheet,
#page-memo .wx-inbox-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}
#page-wx-inbox .wx-inbox-sheet[hidden],
#page-memo .wx-inbox-sheet[hidden] {
  display: none !important;
}
#page-wx-inbox .wx-inbox-sheet-mask,
#page-memo .wx-inbox-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
#page-wx-inbox .wx-inbox-sheet-panel,
#page-memo .wx-inbox-sheet-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
#page-wx-inbox .wx-inbox-sheet-item,
#page-memo .wx-inbox-sheet-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--wx-inbox-ink);
  text-align: center;
  cursor: pointer;
}
#page-wx-inbox .wx-inbox-sheet-item:last-child,
#page-memo .wx-inbox-sheet-item:last-child {
  border-bottom: 0;
}
#page-wx-inbox .wx-inbox-sheet-cancel,
#page-memo .wx-inbox-sheet-cancel {
  color: var(--wx-inbox-muted);
  font-weight: 500;
}
#page-memo .wx-inbox-sheet-danger {
  color: #DC2626;
}

/* 今日焦点（原备忘录）· v7 */
#page-memo.today-focus {
  --c-gold: #FFB800;
  --c-cream: #FFEFC2;
  --c-gold-soft: #FFF1C9;
  --c-stroke: #5C3D17;
  --c-blue: #3B82F6;
  --c-accent: #4A9E8E;
  --c-accent-bg: rgba(74, 158, 142, 0.07);
  --c-s: #B0AEA5;
  --c-t: #c8c6c0;
  --divider: #f0ede8;
  --bg-page: #f5f3f0;
  --bg-card: #ffffff;
  background: linear-gradient(180deg, #FFFBF0 0%, var(--bg-page) 80px, var(--bg-page) 100%);
}
#page-memo.today-focus > .nav-header.memo-nav {
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#page-memo.today-focus .nav-date {
  font-size: 13px;
  color: var(--c-s);
  min-width: 52px;
  text-align: right;
}
#page-memo.today-focus .memo-focus-content {
  padding: 10px 14px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  min-height: 0;
}
/* 禁止子卡片被 flex 压扁（否则 overflow:hidden 会裁掉待处理正文） */
#page-memo.today-focus .memo-focus-content > * {
  flex-shrink: 0;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
#page-memo.today-focus .frog-section {
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 18px 18px 16px;
}
#page-memo.today-focus .frog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
#page-memo.today-focus .wukong-figure {
  width: 56px;
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--c-cream) 0%, rgba(255, 239, 194, 0.4) 100%);
  border: 1px solid rgba(255, 184, 0, 0.12);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.08);
  position: relative;
}
#page-memo.today-focus .wukong-figure video,
#page-memo.today-focus .wukong-figure .memo-wukong-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: transparent;
  mix-blend-mode: multiply;
  animation: wukongIdle 4s ease-in-out infinite;
}
@keyframes wukongIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
#page-memo.today-focus .frog-header-text { flex: 1; min-width: 0; }
#page-memo.today-focus .frog-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-s);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
#page-memo.today-focus .frog-label-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--c-accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
#page-memo.today-focus .wukong-tagline {
  font-size: 13px;
  color: var(--c-stroke);
  font-weight: 500;
  line-height: 1.4;
}
#page-memo.today-focus .wukong-tagline strong { font-weight: 600; }
#page-memo.today-focus .frog-progress {
  font-size: 13px;
  color: var(--c-s);
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
}
#page-memo.today-focus .frog-progress strong {
  color: var(--c-accent);
  font-size: 20px;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}
#page-memo.today-focus .frog-list { display: flex; flex-direction: column; gap: 0; }
#page-memo.today-focus .frog-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
#page-memo.today-focus .frog-item:last-child { border-bottom: none; }
#page-memo.today-focus .frog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s;
}
#page-memo.today-focus .frog-row:active { transform: scale(0.985); }
#page-memo.today-focus .frog-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #dcd8d2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#page-memo.today-focus .frog-item.done .frog-check {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 2px 8px rgba(74, 158, 142, 0.2);
  animation: frogPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes frogPop {
  0% { transform: scale(0.7); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
#page-memo.today-focus .frog-check svg {
  width: 12px;
  height: 12px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#page-memo.today-focus .frog-text {
  font-size: 15px;
  color: #2c2c2c;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
#page-memo.today-focus .frog-item.done .frog-text {
  color: var(--c-s);
  text-decoration: line-through;
  text-decoration-color: var(--c-t);
}
#page-memo.today-focus .frog-placeholder {
  color: #8a8680;
  font-style: italic;
  font-size: 14px;
}
#page-memo.today-focus .wukong-ai {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 184, 0, 0.02);
  cursor: pointer;
}
#page-memo.today-focus .wukong-ai-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cream), var(--c-gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
#page-memo.today-focus .wukong-ai-hint { font-size: 13px; color: var(--c-t); flex: 1; }
#page-memo.today-focus .wukong-ai-badge {
  font-size: 10px;
  color: var(--c-stroke);
  background: linear-gradient(135deg, var(--c-gold-soft), var(--c-cream));
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 500;
}
#page-memo.today-focus .frog-encourage {
  text-align: center;
  padding-top: 6px;
  font-size: 12px;
  color: var(--c-accent);
  font-weight: 500;
}
#page-memo.today-focus .frog-encourage[hidden] {
  display: none !important;
}
#page-memo.today-focus .quicknote-section,
#page-memo.today-focus .pending-section {
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
#page-memo.today-focus .quicknote-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
}
#page-memo.today-focus .quicknote-list {
  padding: 4px 16px 12px;
  display: flex;
  flex-direction: column;
}
#page-memo.today-focus .quicknote-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}
#page-memo.today-focus .quicknote-item .quicknote-text { flex: 1; min-width: 0; }
#page-memo.today-focus .quicknote-item.historic { opacity: 0.72; }
#page-memo.today-focus .quicknote-item.historic .quicknote-time { width: 72px; }
#page-memo.today-focus .quicknote-item:last-child { border-bottom: none; }
#page-memo.today-focus .quicknote-time {
  font-size: 11px;
  color: var(--c-t);
  flex-shrink: 0;
  width: 36px;
  padding-top: 2px;
}
#page-memo.today-focus .quicknote-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.3;
  flex-shrink: 0;
  margin-top: 8px;
}
#page-memo.today-focus .quicknote-text {
  font-size: 14px;
  color: #2c2c2c;
  flex: 1;
  min-width: 0;
  line-height: 1.55;
  word-break: break-word;
}
#page-memo.today-focus .quicknote-empty {
  text-align: center;
  padding: 18px 0 8px;
  font-size: 12px;
  color: var(--c-t);
  font-style: italic;
}
#page-memo.today-focus .quicknote-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #2c2c2c;
  outline: none;
  font-family: inherit;
}
#page-memo.today-focus .quicknote-input::placeholder { color: var(--c-t); font-size: 14px; }
#page-memo.today-focus .quicknote-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #2c2c2c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: all 0.2s;
  position: relative;
  z-index: 2;
}
#page-memo.today-focus .quicknote-send.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
#page-memo.today-focus .quicknote-send svg { width: 15px; height: 15px; }
#page-memo.today-focus .pending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
  margin-bottom: 2px;
}
#page-memo.today-focus .pending-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-s);
  letter-spacing: 0.06em;
}
#page-memo.today-focus .pending-label svg {
  flex-shrink: 0;
  color: var(--c-s);
}
#page-memo.today-focus .pending-count {
  font-size: 11px;
  color: var(--c-s);
  background: rgba(0, 0, 0, 0.03);
  padding: 3px 10px;
  border-radius: 10px;
}
#page-memo.today-focus .pending-list { padding: 6px 16px 14px; }
#page-memo.today-focus .pending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  min-height: 44px;
}
#page-memo.today-focus .pending-item:not(:last-child) {
  border-bottom: 1px solid var(--divider);
}
#page-memo.today-focus .pending-source {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  margin-top: 6px;
  flex-shrink: 0;
  opacity: 0.7;
}
#page-memo.today-focus .pending-source.self { background: var(--c-accent); }
#page-memo.today-focus .pending-body { flex: 1; min-width: 0; }
#page-memo.today-focus .pending-title {
  font-size: 15px;
  color: #2c2c2c;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#page-memo.today-focus .pending-meta {
  font-size: 11px;
  color: var(--c-s);
  margin-top: 2px;
}
#page-memo.today-focus .pending-empty {
  text-align: center;
  padding: 8px 0 4px;
  font-size: 12px;
  color: var(--c-s);
}
#page-memo.today-focus .memo-composer-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.25);
}
#page-memo.today-focus .memo-composer-overlay[hidden],
#page-memo.today-focus .memo-composer-panel[hidden] { display: none !important; }
#page-memo.today-focus .memo-composer-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 401;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}
#page-memo.today-focus .memo-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
#page-memo.today-focus .memo-composer-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c2c2c;
}
#page-memo.today-focus .memo-composer-close {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--bg-page);
  border: none;
  font-size: 18px;
  color: var(--c-s);
  line-height: 1;
}
#page-memo.today-focus .memo-composer-input {
  width: 100%;
  border: none;
  background: var(--bg-page);
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  color: #2c2c2c;
  outline: none;
  resize: none;
  box-sizing: border-box;
}
#page-memo.today-focus .memo-composer-send {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #2c2c2c;
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
}
#page-memo .wx-inbox-sheet { position: fixed; inset: 0; z-index: 420; }
#page-memo .wx-inbox-sheet[hidden] { display: none !important; }
#page-memo .wx-inbox-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
#page-memo .wx-inbox-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
#page-memo .wx-inbox-sheet-item {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--divider, #f0ede8);
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
}
#page-memo .wx-inbox-sheet-item:last-child { border-bottom: none; }
#page-memo .wx-inbox-sheet-cancel { color: var(--c-s, #B0AEA5); }
#page-memo .wx-inbox-sheet-danger { color: #E84C3D; }

#page-memo.today-focus .ai-suggest {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(59, 130, 246, 0.01));
  border: 1px solid rgba(59, 130, 246, 0.08);
}
#page-memo.today-focus .ai-suggest[hidden] { display: none !important; }
#page-memo.today-focus .ai-suggest-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
#page-memo.today-focus .ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-blue);
}
#page-memo.today-focus .ai-label {
  font-size: 10px;
  color: var(--c-blue);
  font-weight: 600;
  letter-spacing: 0.04em;
}
#page-memo.today-focus .ai-text {
  font-size: 13px;
  color: #2c2c2c;
  line-height: 1.55;
  margin-bottom: 8px;
}
#page-memo.today-focus .ai-actions { display: flex; gap: 8px; }
#page-memo.today-focus .ai-btn {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
}
#page-memo.today-focus .ai-btn.adopt { background: var(--c-blue); color: #fff; }
#page-memo.today-focus .ai-btn.dismiss { background: transparent; color: var(--c-s); }
#page-memo.today-focus .ai-source { font-size: 10px; color: var(--c-t); margin-top: 3px; }
#page-memo.today-focus .frog-meta {
  margin-left: 34px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#page-memo.today-focus .frog-goal-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--c-s);
}
#page-memo.today-focus .frog-goal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E8813B;
  opacity: 0.6;
}
#page-memo.today-focus .frog-mini-bar {
  height: 2px;
  background: var(--divider);
  border-radius: 1px;
  overflow: hidden;
}
#page-memo.today-focus .frog-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), rgba(74, 158, 142, 0.3));
}
#page-memo.today-focus .achieve-strip {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
  flex-wrap: wrap;
}
#page-memo.today-focus .achieve-strip[hidden] {
  display: none !important;
}
#page-memo.today-focus .achieve-item {
  font-size: 11px;
  color: var(--c-s);
  display: flex;
  align-items: center;
  gap: 3px;
}
#page-memo.today-focus .achieve-item strong { color: #2c2c2c; }
#page-memo.today-focus .achieve-item .hl { color: #E84C3D; font-weight: 600; }
/* info-strip chip bar — v7 设计稿对齐 */
#page-memo.today-focus .info-strip {
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#page-memo.today-focus .info-strip::-webkit-scrollbar { display: none; }
#page-memo.today-focus .info-strip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-s);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
#page-memo.today-focus .info-strip-label:active {
  color: var(--c-blue, #3B82F6);
}
#page-memo.today-focus .info-strip-label::after {
  content: "›";
  margin-left: 3px;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.5;
  text-transform: none;
  letter-spacing: 0;
}
#page-memo.today-focus .info-strip-empty {
  font-size: 12px;
  color: var(--c-t);
  font-style: italic;
  flex-shrink: 0;
}
#page-memo.today-focus .info-chip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 4px 5px 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.018);
  font-size: 12px;
  color: #2c2c2c;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
#page-memo.today-focus .info-chip-main {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
#page-memo.today-focus .info-chip-more {
  padding: 2px 6px;
  font-size: 14px;
}
#page-memo.today-focus .info-chip:active { background: rgba(0, 0, 0, 0.04); }
#page-memo.today-focus .info-chip.secret { color: #b85c2e; }
#page-memo.today-focus .info-add {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px dashed var(--c-t);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-t);
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
#page-memo.today-focus .info-add:active {
  border-color: var(--c-s);
  color: var(--c-s);
  background: rgba(0, 0, 0, 0.02);
}
#page-memo.today-focus .info-add svg { width: 13px; height: 13px; }
#page-memo.today-focus .memo-sec-add {
  border: none;
  background: rgba(74, 158, 142, 0.12);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1.2;
}
#page-memo.today-focus .memo-sec-add:active { opacity: 0.75; }
#page-memo.today-focus .memo-sec-add-nav {
  margin-right: 4px;
}
#page-memo.today-focus .memo-sec-add-inline {
  margin-top: 10px;
  display: inline-block;
}
#page-memo.today-focus .memo-item-more {
  border: none;
  background: transparent;
  color: var(--c-t);
  font-size: 16px;
  letter-spacing: 1px;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}
#page-memo.today-focus .frog-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
#page-memo.today-focus .summary-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#page-memo.today-focus .goal-progress-item { margin-bottom: 14px; }
#page-memo.today-focus .goal-progress-item:last-child { margin-bottom: 0; }
#page-memo.today-focus .goal-progress-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
#page-memo.today-focus .quicknote-hist-label {
  font-size: 11px;
  color: var(--c-t);
  padding: 10px 0 4px;
  letter-spacing: 0.04em;
}
#page-memo.today-focus .quicknote-history-toggle {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--c-s);
  font-size: 12px;
  padding: 10px 4px 4px;
  text-align: center;
}
#page-memo.today-focus .quicknote-history-toggle[hidden] { display: none !important; }
#page-memo.today-focus .summary-section {
  margin: 0;
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 18px;
}
#page-memo.today-focus .summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
#page-memo.today-focus .summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-s);
  letter-spacing: 0.06em;
  margin-bottom: 0;
}
#page-memo.today-focus .summary-label svg {
  flex-shrink: 0;
  color: var(--c-s);
}
#page-memo.today-focus .summary-range { font-size: 11px; color: var(--c-t); }
#page-memo.today-focus .summary-empty {
  text-align: center;
  padding: 6px 0 2px;
  font-size: 12px;
  color: #8a8680;
}
#page-memo.today-focus .summary-encourage[hidden] {
  display: none !important;
}
#page-memo.today-focus .goal-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
#page-memo.today-focus .goal-progress-name {
  font-size: 14px;
  color: #2c2c2c;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}
#page-memo.today-focus .goal-progress-stat { font-size: 11px; color: var(--c-s); }
#page-memo.today-focus .goal-progress-stat strong { color: #E8813B; }
#page-memo.today-focus .goal-progress-bar {
  height: 3px;
  background: var(--divider);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
#page-memo.today-focus .goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent), rgba(74, 158, 142, 0.3));
}
#page-memo.today-focus .goal-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--c-t);
}
#page-memo.today-focus .summary-encourage {
  text-align: center;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid var(--divider);
  font-size: 12px;
  color: var(--c-s);
  line-height: 1.6;
}
#page-memo.today-focus .summary-encourage strong { color: var(--c-stroke); }
#page-memo.today-focus .memo-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #2c2c2c;
  color: #fff;
  border: none;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#page-memo.today-focus .memo-fab svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
#page-memo.today-focus .memo-fab:active { transform: scale(0.92); }
#page-memo.today-focus.is-typing .memo-fab,
#page-memo.today-focus.is-typing .fab-menu,
#page-memo.today-focus.is-typing .fab-overlay {
  display: none !important;
}
#page-memo.today-focus .memo-fab.open svg { transform: rotate(45deg); }
#page-memo.today-focus .fab-overlay {
  position: fixed;
  inset: 0;
  z-index: 148;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#page-memo.today-focus .fab-overlay:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
#page-memo.today-focus .fab-overlay[hidden],
#page-memo.today-focus .fab-menu[hidden] { display: none !important; }
#page-memo.today-focus .fab-menu {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 62px);
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 160;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#page-memo.today-focus .fab-menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#page-memo.today-focus .fab-menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#page-memo.today-focus .fab-menu-label {
  font-size: 12px;
  color: #2c2c2c;
  background: #fff;
  padding: 7px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  font-weight: 500;
  pointer-events: none;
}
#page-memo.today-focus .fab-menu-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  pointer-events: none;
  flex-shrink: 0;
}
#page-memo.today-focus .fab-menu-row:active .fab-menu-dot { transform: scale(0.92); }
#page-memo.today-focus .fab-menu-dot.frog { background: var(--c-accent); color: #fff; }
#page-memo.today-focus .fab-menu-dot.note { background: var(--c-blue); color: #fff; }
#page-memo.today-focus .fab-menu-dot.info { background: #f5f3f0; color: #2c2c2c; }
#page-memo.today-focus .fab-menu-dot.wukong { background: var(--c-gold); color: var(--c-stroke); }
#page-memo.today-focus .memo-focus-content {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}



/* ===== Phase7a wx-inbox v7 visual (keep single FAB + no-tab; no dual FAB) ===== */
#page-wx-inbox.wx-inbox-page--v7 {
  --wx-inbox-bg: var(--bg-page, #f5f3f0);
  --wx-inbox-card: var(--bg-card, #ffffff);
  --wx-inbox-ink: var(--text-p, #2c2c2c);
  --wx-inbox-muted: var(--text-s, #B0AEA5);
  --wx-inbox-faint: var(--text-t, #c8c6c0);
  --wx-inbox-line: var(--divider, #f0ede8);
  --wx-inbox-radius: var(--card-radius, 14px);
  --color-content-accent: var(--c-accent, #4A9E8E);
  --color-content-accent-bg: var(--c-accent-bg, rgba(74,158,142,0.07));
  --status-active: var(--color-content-accent);
  --status-sealed: var(--c-s, #B0AEA5);
  --wx-inbox-font: var(--font, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif);
  /* inherit Phase1 warm gradient from .page — do not paint flat over it */
  background: transparent;
  font-family: var(--wx-inbox-font);
}
#page-wx-inbox.wx-inbox-page--v7 > .nav-header.wx-inbox-nav {
  position: static !important;
  top: auto;
  z-index: auto;
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-shortcuts--v7 {
  background: transparent;
  padding: 10px 14px 8px;
  gap: 8px;
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-shortcut {
  border-radius: var(--card-radius, 14px);
  background: var(--wx-inbox-card);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
  padding: 12px 6px;
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-shortcut:active {
  transform: scale(0.98);
  opacity: 1;
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-tag-filter {
  background: transparent;
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-list,
#page-wx-inbox.wx-inbox-page--v7 > .content.wx-inbox-list,
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-list--v7 {
  background: transparent;
  gap: var(--card-gap, 12px);
  padding: 8px 14px calc(120px + env(safe-area-inset-bottom));
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-card {
  border-radius: var(--wx-inbox-radius);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
  padding: 18px 18px 16px 20px;
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-body-text {
  font-size: var(--size-body, 15px);
  line-height: 1.72;
  letter-spacing: 0.015em;
  color: var(--wx-inbox-ink);
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-time,
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-frag {
  font-size: 12px;
  color: var(--wx-inbox-faint);
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-tag {
  color: var(--c-blue, var(--color-brand, #3B82F6));
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-fab {
  background: var(--text-p, #2c2c2c);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-composer-send:not(:disabled) {
  background: var(--c-blue, var(--color-brand, #3B82F6));
}
#page-wx-inbox.wx-inbox-page--v7 .wx-inbox-merge-btn {
  background: var(--c-blue, var(--color-brand, #3B82F6));
}


/* ===== Phase8a today-focus schedule strip (keep single FAB + no-tab; no dual FAB) ===== */
#page-memo.memo-page--v8.today-focus {
  --c-gold: var(--c-gold, #FFB800);
  --c-cream: var(--c-cream, #FFEFC2);
}
#page-memo.memo-page--v8 .memo-schedule-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 10px 0 8px;
  background: linear-gradient(180deg, rgba(255,251,240,0.95) 0%, rgba(245,243,240,0.85) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
#page-memo.memo-page--v8 .memo-schedule-today {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--c-blue, #3B82F6);
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}
#page-memo.memo-page--v8 .memo-schedule-today[hidden] {
  display: none !important;
}
#page-memo.memo-page--v8 .memo-schedule-today:active {
  background: rgba(59,130,246,0.14);
}
#page-memo.memo-page--v8 .memo-schedule-scroll {
  flex: 1;
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2px;
  -webkit-overflow-scrolling: touch;
}
#page-memo.memo-page--v8 .memo-schedule-scroll::-webkit-scrollbar {
  display: none;
}
#page-memo.memo-page--v8 .memo-schedule-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 2px 6px;
  border: none;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
#page-memo.memo-page--v8 .memo-schedule-day:active {
  transform: scale(0.94);
}
#page-memo.memo-page--v8 .memo-schedule-day.is-active {
  background: rgba(44,44,44,0.06);
}
#page-memo.memo-page--v8 .memo-schedule-day.is-today.is-active {
  background: var(--c-blue, #3B82F6);
}
#page-memo.memo-page--v8 .memo-schedule-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-p, #2c2c2c);
  line-height: 1.1;
}
#page-memo.memo-page--v8 .memo-schedule-day.is-active .memo-schedule-date {
  font-weight: 600;
}
#page-memo.memo-page--v8 .memo-schedule-day.is-today .memo-schedule-date {
  color: var(--c-blue, #3B82F6);
}
#page-memo.memo-page--v8 .memo-schedule-day.is-today.is-active .memo-schedule-date {
  color: #fff;
}
#page-memo.memo-page--v8 .memo-schedule-day.is-future .memo-schedule-date {
  color: var(--text-s, #B0AEA5);
}
#page-memo.memo-page--v8 .memo-schedule-day.is-future.is-active .memo-schedule-date {
  color: var(--text-p, #2c2c2c);
}
#page-memo.memo-page--v8 .memo-schedule-weekday {
  font-size: 10px;
  color: var(--text-t, #c8c6c0);
  line-height: 1.2;
  margin-top: 1px;
}
#page-memo.memo-page--v8 .memo-schedule-day.is-today .memo-schedule-weekday {
  color: var(--c-blue, #3B82F6);
  opacity: 0.7;
}
#page-memo.memo-page--v8 .memo-schedule-day.is-today.is-active .memo-schedule-weekday {
  color: rgba(255,255,255,0.75);
  opacity: 1;
}
#page-memo.memo-page--v8 .memo-schedule-dot {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-gold, #FFB800);
  opacity: 0;
}
#page-memo.memo-page--v8 .memo-schedule-day.has-tasks .memo-schedule-dot {
  opacity: 0.85;
}
#page-memo.memo-page--v8 .memo-schedule-day.is-today.is-active.has-tasks .memo-schedule-dot {
  background: #fff;
  opacity: 0.65;
}
#page-memo.memo-page--v8.is-future-view .quicknote-section,
#page-memo.memo-page--v8.is-future-view .pending-section,
#page-memo.memo-page--v8.is-future-view .info-strip,
#page-memo.memo-page--v8.is-future-view .summary-section {
  display: none !important;
}
#page-memo.memo-page--v8 .frog-section {
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04));
}
#page-memo.memo-page--v8 .memo-fab {
  background: var(--text-p, #2c2c2c);
}
