/* Password dialog: scoped styling for the form moved out of profile settings. */
.im-profile-source-modal[data-recovery-kind="password"] .m-modal { width:min(520px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; background:#261b14; border-radius:0; }
.im-profile-source-modal[data-recovery-kind="password"] .m-modal-header { padding:20px 54px 19px 24px !important; }
.im-profile-source-modal[data-recovery-kind="password"] .m-modal-header .micro-label { display:none; }
.im-profile-source-modal[data-recovery-kind="password"] .m-modal-header h2 { margin:0 !important; color:#f3dfcb; font-size:28px !important; line-height:1.2; }
.im-profile-source-modal[data-recovery-kind="password"] .m-modal-body { padding:22px 24px 24px !important; }
.im-profile-source-modal[data-recovery-kind="password"] #settings-password-recovery { padding:0 !important; margin:0 !important; }
.im-profile-source-modal[data-recovery-kind="password"] #settings-password-recovery > p { margin:0 0 20px; color:#c3aa96; font:400 14px/1.6 var(--font,Arial,sans-serif); }
.im-profile-source-modal[data-recovery-kind="password"] #profile-password-recovery-form { margin:0; display:grid; gap:14px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-label { color:#ead0b8; font:600 14px/1.5 var(--font,Arial,sans-serif); }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-channels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel { display:flex; align-items:center; gap:12px; min-height:60px; padding:14px; border:1px solid #795537; background:#211710; border-radius:0; cursor:pointer; transition:background .15s,border-color .15s; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel > span { display:flex; align-items:center; gap:10px; color:#f3dfcb; font:600 15px/1.4 var(--font,Arial,sans-serif); }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel input { appearance:none; -webkit-appearance:none; width:16px; height:16px; min-height:0; border:1px solid #ac805f; border-radius:50%; padding:0; margin:0; background:transparent; box-sizing:border-box; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel input:checked { border:5px solid #e8aa79; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel:has(:checked) { background:#38271b; border-color:#e8aa79; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel:hover:not(:has(:disabled)) { border-color:#e8aa79; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel:has(:disabled) { opacity:.45; cursor:default; }
.im-profile-source-modal[data-recovery-kind="password"] label.profile-password-recovery-channel:has(:focus-visible) { outline:2px solid #edb183; outline-offset:3px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-channel svg { width:22px !important; height:22px !important; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-channel .profile-recovery-telegram-icon { fill:currentColor; stroke:none; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-send-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:2px 0 4px; }
.im-profile-source-modal[data-recovery-kind="password"] :is(.profile-password-recovery-send,.profile-password-recovery-reset) { display:flex; justify-content:center; align-items:center; min-height:44px; padding:10px 18px; margin:0; border:1px solid #e8aa79; border-radius:0; background:#e8aa79; color:#24170e; font:600 14px/1.4 var(--font,Arial,sans-serif); letter-spacing:normal; text-transform:none; }
.im-profile-source-modal[data-recovery-kind="password"] :is(.profile-password-recovery-send,.profile-password-recovery-reset):hover:not(:disabled) { background:#f2bd94; }
.im-profile-source-modal[data-recovery-kind="password"] :is(.profile-password-recovery-send,.profile-password-recovery-reset):disabled { opacity:.5; cursor:default; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-timer { color:#c3aa96; font:400 14px/1.4 var(--font,Arial,sans-serif); font-variant-numeric:tabular-nums; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-wrap,.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-password-wrap { position:relative; display:block; margin:0; }
.im-profile-source-modal[data-recovery-kind="password"] #profile-password-recovery-form :is(input[type="text"],input[type="password"]) { width:100%; height:48px; padding:12px 46px 12px 14px; box-sizing:border-box; border:1px solid #88603f; border-radius:0; background:#1c140f; color:#f3dfcb; font:400 16px/1.4 var(--font,Arial,sans-serif); }
.im-profile-source-modal[data-recovery-kind="password"] #profile-password-recovery-form input::placeholder { color:#b29a87; opacity:1; }
.im-profile-source-modal[data-recovery-kind="password"] #profile-password-recovery-form input:not([type="radio"]):focus-visible { outline:2px solid #edb183; outline-offset:2px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-status { position:absolute; right:14px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:20px; height:20px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-status svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-status.is-valid { color:#a4da86; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-status.is-invalid { color:#ff7373; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-status.is-invalid svg { display:none; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-code-status.is-invalid::before { content:'×'; font-size:23px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-passwords { display:grid; gap:12px; padding-top:4px; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-eye { position:absolute; right:7px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:34px; height:34px; padding:7px; margin:0; border:0; background:transparent; color:#d7b89e; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-eye svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-feedback { margin:0 !important; padding:0 !important; border:0; background:none; box-shadow:none; color:#e8c5a6; font:400 14px/1.5 var(--font,Arial,sans-serif); }
.im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-feedback.is-error { color:#ff7373; }
.im-profile-source-modal[data-recovery-kind="password"] button:focus-visible { outline:2px solid #edb183; outline-offset:3px; }
.im-profile-source-modal[data-recovery-kind="password"] [hidden] { display:none !important; }
@media(max-width:380px) {
  .im-profile-source-modal[data-recovery-kind="password"] .m-modal-body { padding:18px !important; }
  .im-profile-source-modal[data-recovery-kind="password"] .profile-password-recovery-channels { grid-template-columns:1fr; }
}
