/* Position and available height come from the actual account trigger. */
#ruMemberAccountDialog{position:fixed;inset:auto;margin:0;padding:0;left:var(--ru-account-left,12px);top:var(--ru-account-top,87px);width:328px;max-width:calc(100vw - 24px);max-height:calc(100dvh - var(--ru-account-top,87px) - 12px);overflow:auto;overscroll-behavior:contain;z-index:2147482000;border-radius:0;box-shadow:0 12px 36px #111b2d26}
#ruMemberAccountDialog .ru-dialog-header{align-items:center;gap:12px;padding:16px 20px 14px}
#ruMemberAccountDialog .ru-dialog-header small{font-size:9px;margin-bottom:5px}
#ruMemberAccountDialog .ru-dialog-header h2{font-size:20px;line-height:1.4}
#ruMemberAccountDialog .ru-close{width:32px;height:32px;padding:0}
#ruMemberAccountDialog .ru-dialog-body{padding:16px 20px 20px}
#ruMemberAccountDialog .ru-account-email{margin:0 0 12px;overflow-wrap:anywhere;line-height:1.6}
#ruMemberAccountDialog .ru-account-number{padding:12px 0}
#ruMemberAccountDialog .ru-account-number strong{font-size:16px}
#ruMemberAccountDialog :is(.ru-services-entry,.ru-inbox-entry,.ru-vault-entry){min-height:48px;margin:0;padding:12px 0;font-size:14px;background:transparent;color:var(--ru-ink);border:0;border-bottom:1px solid var(--ru-line);border-radius:0}
#ruMemberAccountDialog #ruMemberLogout{min-height:42px;margin-top:18px;font-size:13px}
#ruMemberAccountDialog #ruMemberAuthState{margin:0 0 16px;font-size:14px;line-height:1.7;color:var(--ru-muted)}
#ruMemberAccountDialog .ru-account-guest-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#ruMemberAccountDialog .ru-account-guest-actions button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid var(--ru-blue);border-radius:0;font:700 14px/1.5 Arial,"Microsoft YaHei",sans-serif;background:var(--ru-blue);color:#fff;cursor:pointer}
#ruMemberAccountDialog .ru-account-guest-actions button+button{background:transparent;color:var(--ru-blue)}
#ruMemberAccountDialog .ru-account-guest-actions button:hover{background:#1E4CBB;color:#fff}
#ruMemberAccountDialog :is(.ru-services-entry,.ru-inbox-entry,.ru-vault-entry):hover{color:var(--ru-blue)}
html[data-ru-theme="dark"] #ruMemberAccountDialog .ru-account-guest-actions button+button{color:#b7ceff;border-color:#6886c7}
html[data-ru-theme="dark"] #ruMemberAccountDialog .ru-account-guest-actions button:hover{background:#416fe2;color:#fff}
html[data-ru-theme="dark"] #ruMemberAccountDialog :is(.ru-services-entry,.ru-inbox-entry,.ru-vault-entry):hover{color:#97b6ff}
#ruMemberAccountDialog [hidden]{display:none!important}
/* Existing modal-centering rule is important: override only the nonmodal account. */
#ruCoreMemberRoot #ruMemberAccountDialog.ru-account-dropdown[open]{inset:auto!important;margin:0!important;left:var(--ru-account-left,12px)!important;top:var(--ru-account-top,87px)!important;max-height:calc(100dvh - var(--ru-account-top,87px) - 12px)!important}
/* Sidebar's late injected dark rule must not turn white navigation onto pale gray. */
html.visitor-v2[data-ru-theme="dark"] .ru-sidebar{background:#111b2d!important;border-color:#29354a!important;box-shadow:none!important}
