.popup-overlay{position:fixed;inset:0;z-index:10001;background:#000000b3;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s ease;backdrop-filter:blur(2px)}.popup-overlay.popup-visible{opacity:1;pointer-events:all}.popup-dialog{background:var(--th-bg-surface);border:1px solid var(--th-border);border-radius:.75rem;display:flex;flex-direction:column;box-shadow:0 24px 64px #00000080;transform:translateY(12px) scale(.97);transition:transform .25s ease;max-width:calc(100vw - 2rem);overflow:hidden}.popup-overlay.popup-visible .popup-dialog{transform:none}.popup-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--th-border-muted);flex-shrink:0}.popup-title-wrap{display:flex;align-items:center;gap:.65rem;min-width:0}.popup-title{font-size:.9375rem;font-weight:700;color:var(--th-text-primary);margin:0;line-height:1.3}.popup-close-btn{background:none;border:none;cursor:pointer;color:var(--th-text-muted);font-size:1rem;padding:.25rem .375rem;border-radius:.375rem;line-height:1;transition:color .15s ease,background .15s ease;flex-shrink:0;margin-left:.75rem}.popup-close-btn:hover{color:var(--th-text-primary);background:var(--th-bg-muted)}.popup-body{padding:1.25rem;overflow-y:auto;flex:1 1 auto;scrollbar-width:thin;scrollbar-color:var(--th-scrollbar) transparent}.popup-body::-webkit-scrollbar{width:6px}.popup-body::-webkit-scrollbar-track{background:transparent}.popup-body::-webkit-scrollbar-thumb{background:var(--th-scrollbar);border-radius:3px}.popup-footer{display:flex;align-items:center;justify-content:flex-end;padding:.875rem 1.25rem;border-top:1px solid var(--th-border-muted);flex-shrink:0}.popup-footer.popup-footer-with-left{justify-content:space-between}.popup-footer-left{display:flex;align-items:center;gap:.5rem}.popup-btn-row{display:flex;gap:.5rem}.tox-tinymce-aux,.tox.tox-silver-sink,.tox-dialog-wrap{z-index:10600!important}
