/* Scoped to new security controls; existing page typography stays untouched. */
.ez-security-dialog,.ez-confirm-card{box-sizing:border-box;width:min(480px,calc(100vw - 32px));border:1px solid #e3e7f1;border-radius:24px;padding:28px;background:#fff;color:#101a2c;box-shadow:0 24px 80px #191d3140;font-family:inherit;line-height:1.5}
/* The shared theme clips modal surfaces; native dialogs must remain scroll containers. */
.ez-security-dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ez-security-dialog::backdrop{background:#0b142b99;backdrop-filter:blur(4px)}
.ez-security-brand{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,#2d2a92,#10b981);color:white;font-size:21px;font-weight:800;margin-bottom:18px}
.ez-security-dialog h2,.ez-confirm-card h1{font-family:inherit;font-size:24px;line-height:1.25;margin:0 0 10px;color:inherit}
.ez-security-description{color:#596a83;margin:0 0 24px}
.ez-security-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;flex-wrap:wrap}
.ez-security-actions button,.ez-security-actions a{box-sizing:border-box;border:1px solid #e3e7f1;border-radius:12px;padding:11px 18px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;width:auto;margin:0}
.ez-security-actions .ez-security-cancel{background:#f5f5fb;color:#152136}
.ez-security-actions .ez-security-primary{background:linear-gradient(135deg,#2d2a92,#3b38a6);color:#fff;border-color:transparent}
.ez-security-actions button:disabled{opacity:.6;cursor:wait}
.ez-security-dialog :focus-visible,.ez-confirm-card :focus-visible{outline:3px solid #a6a4e9;outline-offset:3px}
.ez-security-label{display:block;margin-bottom:8px;font-weight:700}
.ez-security-dialog .ez-security-input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #c9d8eb;border-radius:12px;background:white;color:#101a2c;font:inherit}
.ez-password-feedback{font:inherit;font-size:13px;line-height:1.5;margin:10px 0 18px;padding:12px 14px;border:1px solid #e3e7f1;border-radius:12px;background:#f6f9fe;color:#46566d}
.ez-password-feedback p{margin:0 0 5px;font:inherit;color:inherit}
.ez-password-feedback ul{margin:0 0 8px;padding-left:20px}
.ez-password-feedback li{font:inherit;color:inherit;margin:3px 0}
.ez-password-feedback li[data-met="true"]{color:#087443}
.ez-password-feedback meter{display:block;width:100%;height:12px;margin:8px 0}
.ez-password-feedback[data-valid="true"]{border-color:#75cba3;background:#f0fdf6}
.ez-password-feedback[data-valid="true"] .ez-password-status{color:#087443}
.ez-security-message{font-size:14px;color:#46566d}
.ez-confirm-page{margin:0;min-height:100vh;display:grid;place-items:center;background:radial-gradient(at top left,#d8f4ea,transparent 55%),radial-gradient(at top right,#dce8ff,transparent 60%),#eef3f8;font-family:Arial,sans-serif}

.ez-dialog-error{border-top:6px solid #dc2626}.ez-dialog-error .ez-security-brand,.ez-dialog-error .ez-security-primary{background:#dc2626}.ez-dialog-warning{border-top:6px solid #f59e0b}.ez-dialog-warning .ez-security-brand{background:#f59e0b}

.ez-security-dialog [hidden]{display:none!important}
.ez-dialog-success{border-top:6px solid #16a34a}.ez-dialog-success .ez-security-brand,.ez-dialog-success .ez-security-primary{background:linear-gradient(135deg,#15803d,#16a34a)}

/* Keep action headings consistent even when a page loads Bootstrap or its own heading rules. */
dialog.ez-security-dialog > h2,.ez-confirm-card > h1{
 font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 font-size:22px!important;font-weight:900!important;line-height:1.25!important;
 letter-spacing:-.03em!important;margin:0 0 10px!important;color:#101a2c!important;
 text-transform:none!important;overflow-wrap:anywhere;
}
.modal .modal-header .modal-title{
 font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 font-weight:900!important;letter-spacing:-.03em!important;
}
