.wecom-brand-icon { display: block; width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.wecom-brand-icon.is-muted { filter: grayscale(1); opacity: .5; }
.wecom-popover { display: inline-flex; align-items: center; flex: 0 0 auto; }
.patient-title-line .wecom-popover { align-self: center; }
.wecom-binding-link { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; padding: 3px 0; }
.statusbar-user .wecom-binding-link span { color: #2475bb; font-size: 12px; }
.wecom-icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 4px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.wecom-icon-button:hover, .wecom-icon-button[aria-expanded="true"] { border-color: #c9e0f6; background: #f0f7ff; }
.wecom-popover-panel { position: fixed; z-index: 100; width: min(340px, calc(100vw - 24px)); padding: 16px; background: #fff; color: #263343; border: 1px solid #dce4ed; border-radius: 12px; box-shadow: 0 12px 40px rgba(28, 48, 73, .17); overflow: auto; animation: wecom-popover-in .16s ease-out; text-align: left; font-size: 13px; line-height: 1.6; }
.wecom-popover-panel[hidden], .wecom-popover [hidden], .wecom-bind-page [hidden] { display: none !important; }
.wecom-popover-panel:focus { outline: none; }
.wecom-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #eef1f5; }
.wecom-popover-head h2 { margin: 0; font-size: 15px; font-weight: 600; color: #263343; }
.wecom-popover-close { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: #f3f5f7; color: #687689; font-size: 20px; line-height: 1; }
.wecom-popover-close:hover { background: #e9eef4; }
.wecom-bind-card { text-align: center; font-size: 13px; line-height: 1.6; }
.wecom-bind-card p { margin: 8px 0; white-space: normal; }
.wecom-bind-feedback { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 30px; color: #50647c; }
.wecom-bind-card[data-state="error"] .wecom-bind-feedback { color: #a94f28; padding: 12px 6px; }
.wecom-spinner { display: inline-block; width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid #dceafa; border-top-color: #2685d8; border-radius: 50%; animation: wecom-spin .8s linear infinite; }
.wecom-qr-frame { width: 232px; max-width: 100%; padding: 12px; margin: 12px auto; border: 1px solid #e5ebf2; border-radius: 10px; background: #fff; }
.wecom-qr-frame img { display: block; width: 100%; height: auto; }
.wecom-scan-instruction { color: #344a61; }
.wecom-help { color: #83909e; font-size: 12px; line-height: 1.6; }
.wecom-secondary-button { border: 1px solid #d8e1ec; border-radius: 6px; padding: 5px 12px; background: #fff; color: #346d9b; font-size: 12px; margin-top: 8px; }
.wecom-bind-success { padding: 16px 0 20px; color: #237456; }
.wecom-bind-success strong { display: block; font-size: 17px; }
.wecom-bind-success p { color: #6c7c79; }
.wecom-success-mark { display: grid; place-items: center; margin: 0 auto 12px; width: 46px; height: 46px; border-radius: 50%; background: #e9f7ef; color: #29a467; font-size: 26px; }
.wecom-bind-page { width: min(380px, 100%); margin: 24px auto; }
.wecom-contact-summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #f3f8fe; margin-bottom: 14px; }
.wecom-contact-summary strong { display: block; color: #244f78; overflow-wrap: anywhere; font-size: 14px; }
.wecom-contact-summary small { color: #6789a7; font-size: 12px; }
.wecom-field-label { margin: 12px 0 6px; font-size: 12px; color: #7b8794; font-weight: 400; }
.wecom-employee-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; }
.wecom-employee-list li { background: #f0f5f3; color: #3b6657; border: 1px solid #e1ebe6; border-radius: 5px; padding: 3px 9px; font-size: 12px; overflow-wrap: anywhere; }
.wecom-empty-note { color: #7c8792; font-size: 12px; margin: 6px 0; }
.wecom-audit-note { margin-top: 14px; padding-top: 10px; border-top: 1px solid #edf1f4; color: #8a949f; font-size: 11px; }
.wecom-correction { border-top: 1px solid #edf1f4; padding-top: 10px; margin-top: 10px; }
.wecom-correction summary { color: #7e8893; cursor: pointer; font-size: 12px; }
.wecom-correction form { margin-top: 8px; display: grid; gap: 8px; }
.wecom-correction input { width: 100%; margin-top: 4px; border: 1px solid #dce3e9; border-radius: 5px; padding: 6px 8px; font-size: 12px; }
.wecom-correction button { justify-self: start; font-size: 12px; padding: 5px 10px; }
.mobile-wecom-panel { margin: 14px 0; }
.mobile-wecom-panel form { margin: 0; }
.wecom-contact-qr { display: block; width: min(260px, 100%); height: auto; margin: 16px auto; }
@keyframes wecom-spin { to { transform: rotate(360deg); } }
@keyframes wecom-popover-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wecom-popover-panel { animation: none; } .wecom-spinner { animation-duration: 1.8s; } }
