/* Compact OTP dialogs; all QR rendering stays in this browser. */
.otp-dialog{width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid #294a66;border-radius:14px;background:#0c1d2e;color:#e4edf9;box-shadow:0 24px 80px #0008;overflow:auto;font:inherit}
.otp-dialog::backdrop{background:#020b13bf;backdrop-filter:blur(4px)}
.otp-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #263e54;gap:12px}.otp-head h2{font-size:16px;line-height:1.4;margin:0;overflow-wrap:anywhere}.otp-head .icon-button{flex-shrink:0;font-size:22px}
.otp-body{padding:18px 20px 20px}.otp-subtitle{font-size:12px;color:#9eb4cc;line-height:1.5;margin:0 0 16px}.otp-status{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;font-size:13px}
.otp-pill{border-radius:20px;padding:5px 10px;font-size:11px;font-weight:700;background:#233b50;color:#b7c6d6;white-space:nowrap}.otp-pill.on{background:#0c483f;color:#62e2bb}
.otp-body form{display:grid;gap:9px}.otp-body label{font-size:12px;color:#b6c9dd;font-weight:600;text-align:left}.otp-body input{box-sizing:border-box;width:100%;min-width:0;height:42px;border:1px solid #345674;background:#10283f;color:#eef5ff;border-radius:7px;padding:10px 12px;font:inherit}.otp-body input:focus{outline:2px solid #5398ff;outline-offset:2px}.otp-body input.otp-code{height:48px;text-align:center;font-size:24px;letter-spacing:.35em;font-variant-numeric:tabular-nums;padding-left:calc(12px + .35em)}
.otp-actions{display:flex;justify-content:center;gap:18px;margin-top:6px;flex-wrap:wrap}.otp-actions .btn{min-width:104px;min-height:36px;justify-content:center;text-align:center}.otp-error{font-size:12px;color:#ffaaaa;margin:0;line-height:1.5}.otp-error:empty{display:none}.otp-note{font-size:12px;color:#efba75;margin:0}.otp-qr{width:184px;max-width:100%;margin:0 auto 12px;background:#fff;border-radius:8px;padding:8px;box-sizing:border-box}.otp-qr svg{display:block;width:100%;height:auto}
.otp-key-row{display:flex;gap:8px;align-items:center;border:1px solid #2a455e;background:#10283f;border-radius:7px;padding:9px;margin-bottom:17px}.otp-key{overflow-wrap:anywhere;min-width:0;font-family:Consolas,monospace;font-size:12px;line-height:1.7;flex:1;user-select:all}.otp-key-row button{flex-shrink:0}.otp-table-button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.otp-table-button .otp-dot{width:7px;height:7px;border-radius:50%;background:#768ba1}.otp-table-button[aria-pressed=true] .otp-dot{background:#40d5a5}
body.light .otp-dialog,body[data-theme=light] .otp-dialog{background:#fff;color:#14304b}
@media(max-width:420px){.otp-head{padding:14px 16px}.otp-body{padding:16px}.otp-key{font-size:11px}.otp-qr{width:174px}}
.light .otp-dialog{border-color:#b9cede}.light .otp-head{border-color:#d3e0ed}.light .otp-subtitle,.light .otp-body label{color:#405d77}.light .otp-body input{background:#f5f9fd;border-color:#aac4dc;color:#173650}.light .otp-key-row{background:#edf4fb;border-color:#bdcfe2;color:#173650}.light .otp-error{color:#b62640}.light .otp-note{color:#845212}.light .otp-pill{background:#e1eaf3;color:#425c76}.light .otp-pill.on{background:#d5f4e7;color:#126a50}

/* Center only the OTP login form and confirmation actions. */
#otpLoginForm{max-width:310px;margin-inline:auto;gap:14px}#otpLoginForm>label{text-align:center}#otpLoginForm .otp-code{text-align:center}#otpLoginForm .otp-error{text-align:center}
.otp-actions,#confirmBackdrop .confirm-body .form-actions,.session-policy-actions{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap;width:100%}
.otp-actions .btn,#confirmBackdrop .confirm-body .form-actions>.btn,.session-policy-actions>.btn{display:inline-flex;align-items:center;justify-content:center;min-width:104px;text-align:center}
.session-limit-modal{width:min(390px,calc(100vw - 28px))}.session-limit-modal #modalBody{padding:20px}.session-limit-modal .eyebrow{display:none}#sessionLimitForm{display:grid;gap:12px}#sessionLimitForm label{font-size:12px;color:var(--muted)}#sessionLimitForm input{width:100%;min-height:42px;text-align:center;font-size:20px}.session-policy-status{margin:0;font-size:12px;color:var(--muted)}.session-policy-actions{margin-top:8px}.session-limit-button{min-width:55px;justify-content:center;font-variant-numeric:tabular-nums}
