/* RC36 security restoration — scoped CSS, no overrides to global authentication flows. */
.arithmetic-captcha{margin:8px 0 14px;padding:12px 14px;border-radius:16px;background:#f4faf7;border:1px solid #d3e8df;color:#20493f;display:grid;gap:9px;min-width:0}
.arithmetic-captcha>label{font-size:.86rem;display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-weight:700;margin:0}
.arithmetic-captcha>label small{font-weight:500;color:#597267;font-size:.76rem}
.arithmetic-captcha-row{display:flex;align-items:center;gap:10px;min-width:0}
.arithmetic-captcha-question{font-size:1.08rem;line-height:1.4;letter-spacing:.025em;white-space:nowrap;font-variant-numeric:tabular-nums;color:#205f53;flex:none}
.arithmetic-captcha-row input[name=captcha_answer]{flex:1;min-width:72px;max-width:154px;height:44px;padding:9px 14px!important;margin:0!important;border:1px solid #c4d8d2;border-radius:12px;background:#fff;color:#143c34;box-sizing:border-box;text-align:center;font-size:1.02rem;font-variant-numeric:tabular-nums}
.arithmetic-captcha-row input[name=captcha_answer]:focus-visible{outline:2px solid #318e81;outline-offset:2px}
.two-factor-page .auth-form-card{max-width:100%;width:100%;margin:auto}.two-factor-page .two-factor-card{width:min(100%,470px);margin:0 auto}.two-factor-page .two-factor-form{display:grid;gap:12px;justify-items:stretch}.two-factor-page .two-factor-form #two-factor-code{min-height:54px;width:100%!important;max-width:100%!important;letter-spacing:.14em;text-align:center;font-variant-numeric:tabular-nums}.two-factor-page .two-factor-form>small{color:#687c75;text-align:center}
.auth2fa-panel{margin-block:20px;padding:clamp(18px,3vw,28px);scroll-margin-top:90px}
.auth2fa-panel .admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.auth2fa-panel .admin-card-head h2{margin:5px 0 8px}.auth2fa-panel .admin-card-head p{margin:0;color:#60746d}
.auth2fa-status{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:99px;background:#f1f4f4;color:#60736f;font-size:.78rem;font-weight:800;white-space:nowrap;border:1px solid #dde5e2}
.auth2fa-status.is-active{color:#186b4d;background:#e6f7ec;border-color:#bee1c9}.auth2fa-status.is-active:before{content:'✓';font-weight:900}
.auth2fa-lead,.auth2fa-note{margin:0 0 16px;color:#587069;max-width:72ch;line-height:1.58}
.auth2fa-form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:10px 0 0}
.auth2fa-form label{display:grid;gap:6px;min-width:200px;flex:1;font-weight:650;font-size:.86rem;color:#314e47}
.auth2fa-form input{width:100%;box-sizing:border-box;border:1px solid #d4e2dc;border-radius:12px;min-height:44px;padding:10px 12px;background:#fff;color:#133b31}
.auth2fa-form button{min-height:44px;margin:0;white-space:normal}
.auth2fa-details{padding:14px 0;border-top:1px solid #e5ece8}.auth2fa-details summary{cursor:pointer;font-size:.91rem;font-weight:700;color:#285e52;list-style-position:inside}
.auth2fa-details[open]{padding-bottom:20px}.auth2fa-secret{display:grid;gap:8px;padding:14px;border-radius:14px;background:#f2f8f4;border:1px dashed #bad5c7;margin:12px 0}.auth2fa-secret span{font-size:.79rem;color:#4a685c;font-weight:700}
.auth2fa-secret code{font-size:clamp(.9rem,2vw,1.17rem);letter-spacing:.11em;overflow-wrap:anywhere;user-select:all;color:#195441}
.auth2fa-recovery{border:1px solid #eccd96;border-radius:14px;padding:16px;background:#fff9ed;color:#543d13;margin:14px 0}
.auth2fa-recovery p{margin:6px 0 12px}.auth2fa-code-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:7px}.auth2fa-code-list code{background:#fff;padding:8px 10px;border-radius:8px;border:1px solid #ecd8ae;font-weight:800;letter-spacing:.06em;text-align:center}
@media(max-width:600px){.arithmetic-captcha>label{flex-direction:column;gap:2px}.auth2fa-form{display:grid;align-items:stretch}.auth2fa-form label{min-width:0}.auth2fa-form button{width:100%}}
@media(prefers-reduced-motion:reduce){.arithmetic-captcha *,.auth2fa-panel *{transition:none!important;animation:none!important}}
