body.wemx-modal-open{overflow:hidden}.wemx-modal-backdrop{position:fixed;inset:0;z-index:10001;display:flex;align-items:center;justify-content:center;background:#0009;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;transition:opacity .15s ease}.wemx-modal-backdrop.hidden{display:none}.wemx-modal-backdrop.active{opacity:1}:root:not(.dark) .wemx-modal-backdrop{background:#0006}.wemx-modal{position:relative;width:100%;max-height:90vh;display:flex;flex-direction:column;border-radius:1rem;transform:scale(.95) translateY(8px);transition:transform .25s ease,opacity .25s ease;opacity:0}.wemx-modal-backdrop.active .wemx-modal{transform:scale(1) translateY(0);opacity:1}.dark .wemx-modal{background:#111;border:1px solid rgba(255,255,255,.08);box-shadow:0 25px 60px #00000080}:root:not(.dark) .wemx-modal{background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 25px 60px #00000026}.wemx-modal--sm{max-width:360px}.wemx-modal--md{max-width:460px}.wemx-modal--lg{max-width:600px}.wemx-modal--xl{max-width:800px}.wemx-modal__header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem}.wemx-modal__header-left{display:flex;align-items:center;gap:.75rem}.wemx-modal__header-right{display:flex;align-items:center;gap:.5rem}.wemx-modal__icon{width:2.25rem;height:2.25rem;border-radius:.625rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.dark .wemx-modal__icon--default{background:#6366f126;color:#818cf8}.dark .wemx-modal__icon--danger{background:#ef444426;color:#f87171}.dark .wemx-modal__icon--warning{background:#f59e0b26;color:#fbbf24}.dark .wemx-modal__icon--info{background:#14b8a626;color:#2dd4bf}:root:not(.dark) .wemx-modal__icon--default{background:#6366f11a;color:#6366f1}:root:not(.dark) .wemx-modal__icon--danger{background:#ef44441a;color:#ef4444}:root:not(.dark) .wemx-modal__icon--warning{background:#f59e0b1a;color:#d97706}:root:not(.dark) .wemx-modal__icon--info{background:#14b8a61a;color:#0d9488}.wemx-modal__title{font-size:1rem;font-weight:600;line-height:1.4}.dark .wemx-modal__title{color:#f5f5f5}:root:not(.dark) .wemx-modal__title{color:#111}.wemx-modal__close{width:2rem;height:2rem;border-radius:.5rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;border:none;background:transparent;transition:background .15s ease}.dark .wemx-modal__close{color:#a0a0a0}.dark .wemx-modal__close:hover{background:#ffffff14;color:#f5f5f5}:root:not(.dark) .wemx-modal__close{color:#6b7280}:root:not(.dark) .wemx-modal__close:hover{background:#0000000f;color:#111}.wemx-modal__divider{height:1px;margin:0 1.5rem;border:none}.dark .wemx-modal__divider{background:#ffffff0f}:root:not(.dark) .wemx-modal__divider{background:#0000000f}.wemx-modal__body{padding:1.25rem 1.5rem;font-size:.875rem;line-height:1.6;overflow-y:auto;flex:1 1 auto;min-height:0}.dark .wemx-modal__body{color:#a0a0a0}:root:not(.dark) .wemx-modal__body{color:#555}.wemx-modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:.625rem;padding:1rem 1.5rem 1.25rem}.wemx-modal__btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;padding:.5625rem 1.25rem;border-radius:.625rem;font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;border:none;transition:background .15s ease,opacity .15s ease;text-decoration:none}.wemx-modal__btn:disabled{opacity:.5;cursor:not-allowed}.dark .wemx-modal__btn--secondary{background:#ffffff0f;color:#d1d5db}.dark .wemx-modal__btn--secondary:hover:not(:disabled){background:#ffffff1a}:root:not(.dark) .wemx-modal__btn--secondary{background:#f3f4f6;color:#374151}:root:not(.dark) .wemx-modal__btn--secondary:hover:not(:disabled){background:#e5e7eb}.wemx-modal__btn--primary{background:#6366f1;color:#fff}.wemx-modal__btn--primary:hover:not(:disabled){background:#4f46e5}.wemx-modal__btn--danger{background:#ef4444;color:#fff}.wemx-modal__btn--danger:hover:not(:disabled){background:#dc2626}.wemx-modal__btn--warning{background:#f59e0b;color:#fff}.wemx-modal__btn--warning:hover:not(:disabled){background:#d97706}.wemx-modal__btn--info{background:#14b8a6;color:#fff}.wemx-modal__btn--info:hover:not(:disabled){background:#0d9488}.wemx-modal__badge{display:inline-flex;align-items:center;padding:.1875rem .625rem;border-radius:.375rem;font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;line-height:1}.dark .wemx-modal__badge--danger{background:#ef444426;color:#f87171}.dark .wemx-modal__badge--warning{background:#f59e0b26;color:#fbbf24}:root:not(.dark) .wemx-modal__badge--danger{background:#ef44441a;color:#ef4444}:root:not(.dark) .wemx-modal__badge--warning{background:#f59e0b1a;color:#d97706}
