.wrm2-auth-dialog{width:min(470px,calc(100vw - 22px));max-height:calc(100dvh - 24px);overflow:auto;padding:0}
.wrm2-auth-head{display:flex;align-items:start;justify-content:space-between;padding:21px 22px 17px;gap:20px}
.wrm2-auth-head small{color:var(--wrm2-mint);font-size:10px;letter-spacing:.14em;font-weight:900}
.wrm2-auth-head h2{margin:5px 0 0;font:900 23px/1.2 var(--wrm2-display)}
.wrm2-auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--wrm2-line);border-bottom:1px solid var(--wrm2-line)}
.wrm2-auth-tabs button{min-height:43px;background:var(--wrm2-panel);border:0;border-bottom:2px solid transparent;color:var(--wrm2-muted);font:900 11px/1.2 var(--wrm2-font);letter-spacing:.07em}
.wrm2-auth-tabs button[aria-selected="true"]{background:#1cfb8c0f;border-color:var(--wrm2-mint);color:var(--wrm2-mint)}
.wrm2-auth-body{padding:23px}
.wrm2-form{display:flex;flex-direction:column;align-items:stretch;gap:9px}
.wrm2-form label:not(.wrm2-auth-checkbox){display:block;margin:7px 0 0;font-size:10px;color:var(--wrm2-muted);font-weight:900;letter-spacing:.1em}
.wrm2-form input:not([type="checkbox"]){width:100%;min-width:0;min-height:42px;border:1px solid var(--wrm2-line-strong);border-radius:1px;background:var(--wrm2-canvas2);padding:9px 11px;color:var(--wrm2-text);font-size:13px}
/* Shared native DLE modal and full-page form controls. */
.wrm2-form textarea{display:block;width:100%;min-height:115px;resize:vertical;border:1px solid var(--wrm2-line-strong);border-radius:1px;background:var(--wrm2-canvas2);padding:11px 12px;color:var(--wrm2-text);font:13px/1.65 var(--wrm2-font)}
.wrm2-form :is(textarea,input:not([type="checkbox"]),select):focus{outline:2px solid var(--wrm2-mint);outline-offset:1px;border-color:var(--wrm2-mint)}
/* Same compact file control for registration and editing an existing profile. */
:is(.wrm2-form,.wrm2-profile-settings) input[type="file"]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:42px;min-height:42px;padding:4px 7px;border:1px solid var(--wrm2-line-strong);border-radius:1px;background:var(--wrm2-canvas2);font:13px var(--wrm2-font);cursor:pointer;color:var(--wrm2-muted)}
:is(.wrm2-form,.wrm2-profile-settings) input[type="file"]::file-selector-button{margin-right:12px;height:32px;padding:4px 12px;background:var(--wrm2-panel2);color:var(--wrm2-mint);border:1px solid var(--wrm2-line-strong);border-radius:1px;font:900 11px/1 var(--wrm2-font);cursor:pointer}
:is(.wrm2-form,.wrm2-profile-settings) input[type="file"]:hover::file-selector-button{border-color:var(--wrm2-mint)}
/* DLE user xfields are table rows: render registration and profile labels consistently. */
:is(.wrm2-extra-fields,.wrm2-profile-settings-xfields) table{width:100%;border-collapse:collapse}
:is(.wrm2-extra-fields,.wrm2-profile-settings-xfields) tr{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:10px}
:is(.wrm2-extra-fields,.wrm2-profile-settings-xfields) td{display:block;min-width:0;padding:0}
:is(.wrm2-extra-fields,.wrm2-profile-settings-xfields) td:first-child{width:auto;color:var(--wrm2-muted);font:900 10px/1.3 var(--wrm2-font);letter-spacing:.1em;text-transform:uppercase}
:is(.wrm2-extra-fields,.wrm2-profile-settings-xfields) :is(input,textarea,select){width:100%;max-width:100%;min-width:0;box-sizing:border-box}

.wrm2-form #result-registration{font-size:12px;line-height:1.55;color:var(--wrm2-muted)}
.wrm2-form #result-registration :is(.error,.error-message){color:#ff7d91}
.wrm2-auth-checkbox{display:flex;align-items:center;gap:8px;color:var(--wrm2-muted);font-size:11px;margin-top:10px}
.wrm2-auth-submit{margin-top:13px;width:100%}
.wrm2-auth-divider{display:flex;align-items:center;gap:12px;margin:21px 0 15px;color:var(--wrm2-subtle);font-size:10px;letter-spacing:.1em}
.wrm2-auth-divider:before,.wrm2-auth-divider:after{content:"";height:1px;flex:1;background:var(--wrm2-line)}
.wrm2-provider-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wrm2-provider{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--wrm2-panel);border:1px solid var(--wrm2-line-strong);font-size:12px;font-weight:800}
.wrm2-provider:hover{border-color:var(--wrm2-mint)}
.wrm2-provider img,.wrm2-provider svg{width:20px;height:20px}
.wrm2-auth-remote{padding:12px 0;color:var(--wrm2-muted);min-height:50px}
.wrm2-auth-remote .wrm2-native-form{border:0;padding:0;margin:0;box-shadow:none}
.wrm2-auth-remote .wrm2-native-form>h1{display:none}
.wrm2-auth-remote .wrm2-native-form>p{display:none}
.wrm2-auth-remote-status{padding:12px 0;color:var(--wrm2-muted);font-size:12px;line-height:1.65}
.wrm2-auth-remote .wrm2-captcha{max-width:100%;overflow-x:auto}
.wrm2-auth-rules{display:grid;gap:13px;min-width:0}
.wrm2-auth-rules__scroll{box-sizing:border-box;max-height:min(340px,42dvh);min-height:130px;overflow-y:auto;overscroll-behavior:contain;min-width:0;padding:14px 16px;border:1px solid var(--wrm2-line-strong);background:var(--wrm2-panel);color:var(--wrm2-muted);font:12px/1.75 var(--wrm2-font);overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:var(--wrm2-mint) var(--wrm2-panel2)}
.wrm2-auth-rules__scroll:focus-visible{outline:2px solid var(--wrm2-mint);outline-offset:2px}
.wrm2-auth-rules__scroll :is(h1,h2,h3,h4,strong){color:var(--wrm2-text)}
.wrm2-auth-rules__scroll :is(h1,h2,h3,h4){margin:1em 0 .5em;line-height:1.35}
.wrm2-auth-rules__scroll :is(ul,ol){padding-left:22px}
.wrm2-auth-rules__scroll a{color:var(--wrm2-mint)}
.wrm2-auth-rules__scroll :is(img,video){max-width:100%;height:auto}
.wrm2-auth-rules__scroll table{display:block;max-width:100%;overflow:auto}
.wrm2-auth-rules__scroll::-webkit-scrollbar{width:8px}
.wrm2-auth-rules__scroll::-webkit-scrollbar-track{background:var(--wrm2-panel2)}
.wrm2-auth-rules__scroll::-webkit-scrollbar-thumb{background:var(--wrm2-mint)}
.wrm2-auth-rules__actions{display:flex;align-items:center;min-width:0}
.wrm2-auth-rules__actions .wrm2-btn{width:100%}
.wrm2-auth-error{border:1px solid var(--wrm2-red);color:#ffc0cd;background:#ff315f15;padding:12px;font-size:12px;margin:10px 0}
.wrm2-auth-note{border:1px solid var(--wrm2-line-strong);padding:12px;background:var(--wrm2-panel);font-size:12px;color:var(--wrm2-text);margin:10px 0}

.wrm2-auth-dialog :is(.wrm2-auth-note,.wrm2-auth-error){line-height:1.65;overflow-wrap:anywhere}
.wrm2-auth-dialog :is(.wrm2-auth-note,.wrm2-auth-error) strong{display:block;margin-bottom:8px}
.wrm2-auth-dialog :is(.wrm2-auth-note,.wrm2-auth-error) p{margin:0}
@media(max-width:470px){.wrm2-auth-head{padding:17px}.wrm2-auth-body{padding:17px}.wrm2-auth-head h2{font-size:21px}}

/* Stage 3.442: original modal controls, with balanced recovery actions. */
.wrm2-auth-recovery-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;min-width:0}
.wrm2-auth-recovery-actions>.wrm2-btn{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 9px;white-space:normal;overflow-wrap:anywhere}
.wrm2-auth-dialog [data-auth-close]{box-sizing:border-box;width:32px;height:32px;flex:0 0 32px;padding:0;outline:0}
.wrm2-auth-dialog [data-auth-close]:focus-visible{border-color:var(--wrm2-mint)!important;outline:0}
.wrm2-auth-dialog .wrm2-captcha>a{display:inline-flex;align-items:center;min-height:80px}
.wrm2-auth-dialog .wrm2-captcha img{display:block;max-width:100%;height:auto}
.wrm2-auth-dialog .wrm2-auth-note{line-height:1.65;overflow-wrap:anywhere}
.wrm2-auth-dialog .wrm2-auth-note strong{display:block;margin-bottom:8px}
.wrm2-auth-dialog .wrm2-auth-note p{margin:0}

.wrm2-auth-dialog:focus{outline:0}
