/* Reference authentication layout; scoped to this forum and its real forms. */
.cf-forum .cf-auth-fragment { min-width: 0; }
.cf-forum .cf-content > .cf-auth-fragment { max-width: 620px; margin: 10px auto 30px; }
.cf-forum .cf-auth-modal { margin: 0 auto; font-family: inherit; text-align: left; }
/* Own the panel geometry: theme libraries use .modal for hidden, full-screen widgets. */
.cf-forum .cf-auth-modal:not(.cf-staff-drawer) { display: block; position: relative; inset: auto; width: min(460px, 100%); height: auto; max-height: 88vh; overflow: auto; visibility: visible; opacity: 1; background: var(--surface, #fff); border: 1px solid var(--line, #dcdcec); border-radius: 20px; box-shadow: var(--shadow-l); animation: cf-reference-pop .2s cubic-bezier(.2,.8,.3,1); }
.cf-forum .cf-auth-modal .modal-h h2 { margin: 0; line-height: 1.25; font-size: 19px; }
.cf-forum .cf-auth-modal .modal-h p { margin: 5px 0 0; font-size: 13.3px; line-height: 1.6; }
.cf-forum .cf-auth-modal .modal-x { padding: 0; min-width: 0; min-height: 0; width: 30px; height: 30px; }
.cf-forum .cf-auth-modal .modal-x[hidden] { display: none; }
.cf-forum .cf-auth-overlay { z-index: 100000; }
.cf-forum dialog.cf-auth-overlay { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: inherit; }
.cf-forum dialog.cf-auth-overlay::backdrop { background: transparent; }
.cf-forum .cf-auth-modal .cf-auth-tabs { display: flex; gap: 2px; padding: 4px; margin: 0 0 18px; border: 0; border-radius: 11px; background: var(--surface-2, #f5f5fc); }
.cf-forum .cf-auth-modal .cf-auth-tabs a { flex: 1; text-align: center; background: none; padding: 9px; border: 0; border-radius: 8px; font-size: 13.3px; font-weight: 600; color: var(--muted, #7b789a); text-decoration: none; }
.cf-forum .cf-auth-modal .cf-auth-tabs a.on { background: var(--surface, #fff); color: var(--ink, #1a0d4e); box-shadow: var(--shadow-s, 0 1px 2px rgba(26,13,78,.06)); }
.cf-forum .cf-auth-factor { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line, #dcdcec); border-radius: 9px; padding: 8px 10px; margin: 12px 0 0; background: var(--surface, #fff); }
.cf-forum .cf-auth-factor svg { flex: none; color: var(--indigo, #4436a8); }
.cf-forum .cf-auth-factor b { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink, #1a0d4e); }
.cf-forum .cf-auth-factor span { display: block; margin-top: 3px; font-size: 12.3px; line-height: 1.5; color: var(--muted, #7b789a); }
.cf-forum .cf-auth-modal .cf-auth-form { margin: 0; display: block; }
.cf-forum .cf-auth-modal .field { margin: 0 0 15px; }
.cf-forum .cf-auth-modal .field label { display: flex; margin: 0 0 7px; font-size: 13px; font-weight: 600; color: var(--ink, #1a0d4e); }
.cf-forum .cf-auth-modal .inp { display: block; width: 100%; margin: 0; padding: 11px 13px; font-size: 14px; font-weight: 400; line-height: 1.6; background: var(--surface-2, #f5f5fc); border: 1px solid var(--line, #dcdcec); border-radius: 11px; }
.cf-forum .cf-auth-modal .help { font-size: 12.2px; line-height: 1.5; color: var(--muted, #7b789a); margin: 6px 0 0; }
.cf-forum .cf-auth-modal .cf-auth-submit, .cf-forum .cf-auth-modal .cf-auth-forgot, .cf-forum .cf-auth-modal .cf-auth-back { width: 100%; justify-content: center; text-decoration: none; }
.cf-forum .cf-auth-modal .cf-auth-submit { margin-top: 12px; }
.cf-forum .cf-auth-modal .cf-auth-forgot { margin-bottom: 10px; }
.cf-forum .cf-auth-modal .cf-auth-back { margin-top: 9px; }
.cf-forum .cf-auth-modal .cf-recovery-link { margin-top: 9px; }
.cf-forum .cf-auth-modal .cf-recovery-form .cf-auth-submit { margin-top: 0; }
.cf-forum .cf-auth-modal .cf-recovery-form input::placeholder, .cf-forum .cf-auth-modal .cf-recovery-form textarea::placeholder { color: #757575; opacity: 1; }
.cf-forum .cf-auth-consent { font-weight: 400; }
.cf-forum .cf-auth-consent a { color: inherit; text-decoration: underline; }
.cf-forum .cf-auth-modal .cf-auth-registration-closed { margin-top: 16px; }
.cf-forum .cf-auth-modal .cf-notice { margin: 0 0 16px; font-size: 13px; }
.cf-forum .cf-auth-modal .cf-notice p { margin: 0; }
.cf-forum .cf-auth-modal .verifybox p { margin: 0 auto 6px; max-width: 38ch; }
.cf-forum .cf-auth-modal .cf-actions { margin-top: 18px; }
.cf-forum .cf-auth-security-modal .cf-panel { margin: 0; padding: 0; max-width: none; border: 0; box-shadow: none; background: transparent; border-radius: 0; }
.cf-forum .cf-auth-security-modal .cf-security-setup-grid { grid-template-columns: minmax(0, 1fr); }
.cf-forum .cf-auth-security-modal .cf-security-qr { margin: auto; }
.cf-forum .cf-auth-security-modal .cf-security-qr-image svg { max-width: 240px; height: auto; }
.cf-forum .cf-auth-security-modal .cf-security-manual { text-align: left; }
.cf-forum .cf-auth-security-modal .cf-player-form > label { font-size: 13px; }
.cf-forum .cf-auth-security-modal .cf-security-nav { font-size: 12.6px; }
.cf-forum .cf-auth-modal [aria-busy="true"] { opacity: .65; }
.cf-forum .cf-drawer-overlay { padding: 0; }
.cf-forum .cf-staff-drawer { position: absolute; inset: 0 0 0 auto; margin: 0; width: min(660px, 100%); height: 100%; max-height: none; border-radius: 0; border: 0; border-left: 1px solid var(--line, #dcdcec); overflow-y: auto; }
.cf-forum .cf-staff-drawer .drawer-h { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line, #dcdcec); background: var(--surface-2, #f5f5fc); z-index: 2; }
.cf-forum .cf-staff-drawer .drawer-h .cf-eyebrow { margin: 0; }
.cf-forum .cf-staff-drawer .drawer-h .modal-x { margin-left: auto; }
.cf-forum .cf-staff-drawer .drawer-b { padding: 20px 22px 40px; }
.cf-forum .cf-staff-drawer .cf-backlink { display: none; }
.cf-forum .cf-staff-drawer .cf-review-reference { display: none; }
.cf-forum .cf-staff-drawer .cf-case-grid { display: block; }
.cf-forum .cf-staff-drawer .cf-case-grid > * { margin-bottom: 16px; }
.cf-forum .cf-staff-drawer .cf-case-statement { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.cf-forum .cf-staff-drawer .cf-case-statement > .cf-eyebrow { display: none; }
.cf-forum .cf-staff-drawer .cf-case-statement h2 { font-size: 18px; margin: 0 0 6px; }
.cf-forum .cf-staff-drawer .cf-player-form input:not([type="checkbox"]):not([type="radio"]), .cf-forum .cf-staff-drawer .cf-player-form select, .cf-forum .cf-staff-drawer .cf-player-form textarea { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
    .cf-forum .cf-auth-overlay, .cf-forum .cf-auth-modal:not(.cf-staff-drawer), .cf-forum .cf-staff-drawer { animation: none; }
}
.cf-forum :is(.cf-auth-fragment,.cf-auth-modal) .cf-reset-sent { padding:16px 0; }
.cf-forum :is(.cf-auth-fragment,.cf-auth-modal) .cf-reset-sent .big { margin:0 auto; }
.cf-forum :is(.cf-auth-fragment,.cf-auth-modal) .cf-reset-actions { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px; margin-top:8px; }
.cf-forum :is(.cf-auth-fragment,.cf-auth-modal) .cf-reset-actions form { margin:0; }
.cf-forum :is(.cf-auth-fragment,.cf-auth-modal) .cf-reset-actions .btn { margin:0; min-height:44px; }
@media (max-width:700px) {
    .cf-forum .cf-auth-overlay { padding:12px; }
    .cf-forum .cf-auth-modal:not(.cf-staff-drawer) { width:100%; max-width:460px; max-height:calc(100dvh - 24px); overscroll-behavior:contain; }
    .cf-forum .cf-auth-modal .modal-h { padding:20px 20px 14px; }
    .cf-forum .cf-auth-modal .modal-h h2 { padding-right:32px; }
    .cf-forum .cf-auth-modal .modal-b { padding:0 20px 20px; }
    .cf-forum .cf-auth-modal .modal-x { width:44px; height:44px; top:10px; right:10px; }
    .cf-forum .cf-auth-modal .cf-auth-tabs a { min-height:44px; display:flex; align-items:center; justify-content:center; }
    .cf-forum .cf-auth-modal .cf-auth-forgot { min-height:44px; }
    .cf-forum .cf-auth-modal .help { font-size:13px; }
    .cf-forum .cf-auth-modal .cf-auth-consent { padding:8px 0; }
    .cf-forum .cf-staff-drawer .drawer-b { padding:16px 16px 24px; }
    .cf-forum .cf-staff-drawer .drawer-h { padding:12px 16px; }
}
