/* Restore the original blue/WeChat-green palette inside the WeCom workspace only. */
.wecom-console {
  --wecom-blue: #1677ff;
  --wecom-blue-dark: #1268df;
  --wecom-blue-soft: #eaf3ff;
  --wecom-green: #14a66f;
  --wecom-green-soft: #e5f7ed;
}

.wecom-groups-panel,
.wecom-members-panel,
.wecom-list-tabs button,
.wecom-detail-tabs button { background: #fff; }
.wecom-online-dot,
.wecom-account-status i { background: #14c982 !important; box-shadow: 0 0 0 4px #e5faf2 !important; }
.wecom-list-tabs button.active,
.wecom-detail-tabs button.active { border-color: transparent !important; background: #fff !important; color: #1677ff !important; box-shadow: none !important; }
.wecom-list-tabs button.active::after,
.wecom-detail-tabs button.active::after { background: #1677ff; }
.wecom-group-search { border-color: #e6ebf2; background: #f6f8fb; }
.wecom-group-row:hover { background: #f5f9ff; }
.wecom-group-row.active { border-color: transparent !important; background: #eaf3ff !important; color: inherit !important; box-shadow: none !important; }
.wecom-group-row .wecom-avatar.group,
.wecom-patient-head .avatar { background: linear-gradient(135deg,#dceaff,#dff7ee); color: #1976d2; }
.wecom-group-collage img,
.wecom-group-collage i { background: #e7eef7; color: #607089; }
.wecom-chat-panel { background: #f3f7fb; }
.wecom-date-divider span { background: #e9eef5; color: #8490a1; }
.wecom-message.out p { border-color: transparent; background: linear-gradient(135deg,#d9f8df,#c7f1d4); color: #20362a; }
.wecom-media-image { background: #e7edf3; color: #7c8797; }
.wecom-file-card b { background: #eef5ff; }
.wecom-file-card i { color: #1677ff; }
.wecom-compose-tools button:hover:not(:disabled) { border-color: #d8e2ee; background: #edf3f9; color: #1677ff; }
.wecom-composer > .primary-button,
.wecom-ai-save,
.wecom-sop-footer button { border-color: #1677ff !important; background: #1677ff !important; color: #fff !important; }
.wecom-composer > .primary-button:hover,
.wecom-ai-save:hover,
.wecom-sop-footer button:hover { border-color: #1268df !important; background: #1268df !important; }
#wecomMembersSection > header span { background: #eaf3ff; color: #1677ff; }
#wecomMembersSection > header button { border-color: #cfe0f5; background: #f4f8fd; color: #1677ff; }
#wecomMembersSection > header button:hover { border-color: #8dbcf2; background: #eaf3ff; }
.wecom-patient-section { background: #f7f9fc; }
.wecom-patient-head > button,
.wecom-patient-card > header button,
.wecom-create-button,
.wecom-ai-head > span,
.wecom-ai-log article small { color: #1677ff; }
.wecom-create-button:hover,
.wecom-account-button:hover strong { color: #1268df; }
.wecom-patient-tags b { background: #eaf3ff; color: #246fca; }
.wecom-device-status article.bound { border-color: #cfeadd; background: #f1fbf6; }
.wecom-device-status article.bound > i { background: #dff5e9; color: #13a46a; }
.wecom-device-status article.bound > b { color: #109761; }
.wecom-patient-empty > span { background: #eaf3ff; color: #1677ff; }
.wecom-patient-picker-row:hover { background: #f5f9ff; }
.wecom-rename-button:hover { background: #edf3f9; color: #1677ff; }
.wecom-member-row > button:hover { border-color: #9bc7f8; color: #1677ff; }
.wecom-account-list > div.active { border-color: #9bc8ff; background: #f2f7ff; }
.wecom-status-online,
.wecom-online { background: #e5f7ed !important; color: #10a264 !important; }

.wecom-workspace-tabs button.active,
.wecom-period-tabs button.active,
.wecom-glucose-day-picker button.active { border-color: #1677ff !important; background: #edf5ff !important; color: #1677ff !important; box-shadow: none !important; }
.wecom-service-control select { border-color: #9bc4fb; background: #edf5ff; color: #1677ff; }
.wecom-feature-panel,
.wecom-feature-page.glucose { background: #f4f7fb; }
.wecom-feature-title > div > span { color: #1677ff !important; }
.wecom-feature-title > b { background: #e7f7ef; color: #0c9b61; }
.wecom-feature-metrics article > strong.good,
.wecom-stage-kpis p.good,
.wecom-stage-table em.good { color: #07965e !important; }
.wecom-feature-metrics article > strong.warn { color: #e07b16 !important; }
.wecom-feature-metrics article > strong.danger { color: #df4b55 !important; }
.wecom-progress-card > div i { background: linear-gradient(90deg,#27b77a,#1677ff); }
.wecom-phase-list article.done > b { background: #dcf5e8; color: #13a368; }
.wecom-phase-list article.active > b { background: #1677ff; color: #fff; }
.wecom-question-grid header > i { background: #edf5ff; color: #1677ff; }
.wecom-question-grid header > b.done,
.wecom-ai-log article header b.replied,
.wecom-ai-log article header b.sent { background: #e5f7ed; color: #10a264; }
.wecom-question-progress i { background: #3f91ff; }
.wecom-switch input:checked + i { background: #1677ff !important; }
.wecom-ai-fields select:focus,
.wecom-ai-fields input:focus,
.wecom-ai-fields textarea:focus,
.wecom-meal-card textarea:focus,
.wecom-sop-day-items input:focus,
.wecom-sop-day-items textarea:focus { border-color: #78acf1 !important; box-shadow: 0 0 0 3px rgba(22,119,255,.08) !important; }
.wecom-sop-day > header button { border-color: #b9d5fa; background: #edf5ff; color: #1677ff; }
.wecom-sop-item-enabled input { accent-color: #1677ff; }

.wecom-stage-summary { background: #f5f7f7; }
.wecom-stage-person > i { background: #dff3e8; color: #17805b; }
.wecom-stage-patient > div:last-child b { background: #e9f3ff; color: #1677ff; }
.wecom-stage-heading button.primary,
.wecom-stage-editor button.primary,
.wecom-glucose-date-controls button { border-color: #1677ff !important; background: #1677ff !important; color: #fff !important; }
.wecom-stage-phases button.active { border-color: #1677ff !important; background: #eef6ff !important; color: inherit !important; box-shadow: inset 0 0 0 1px #1677ff !important; }
.wecom-stage-phases article.done > span,
.wecom-stage-phases button.done > span { background: #35b87f; }
.wecom-stage-phases article.active > span,
.wecom-stage-phases button.active > span,
.wecom-stage-phases button.current > span { background: #ff883d; }
.wecom-stage-diagnosis.stable { border-left-color: #35b77c; background: #eaf8f1; }
.wecom-stage-diagnosis > b { background: #eaf4ff; color: #1677ff; }
.wecom-cgm-status > div:first-child > i.online { background: #20b878; box-shadow: 0 0 0 4px #e4f7ee; }
.wecom-cgm-sync-banner.live { border-color: #cfeadd; background: #f1fbf6; color: #12865a; }
.wecom-cgm-sync-banner.live::before { background: #20b878; }
.wecom-time-analysis > nav button.active { border-color: #ffd3d6 !important; background: #fff0f1 !important; color: #d93a45 !important; }
.wecom-time-legend span::before,
.wecom-time-bar i.target { background: #21b9a8; }
.wecom-time-legend span.high::before,
.wecom-time-bar i.high { background: #ffad20; }
.wecom-time-legend span.low::before,
.wecom-time-bar i.low { background: #e4404c; }
