/* Isolate account entry from the site's generic button/navigation rules. */
.ru-sidebar-nav > a[data-id="account"] {
  flex: 0 0 auto !important;
  width: auto !important;
}
.ru-sidebar .ru-account-mobile-entry { display: none; }
#ruCoreMemberRoot dialog.ru-dialog[open] {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  height: fit-content !important;
  max-height: calc(100dvh - 24px) !important;
}
@media (max-width: 900px) {
  .ru-sidebar-nav > a[data-id="account"] { display: none !important; }
  .ru-sidebar .ru-account-mobile-entry {
    appearance: none;
    position: absolute;
    z-index: 30;
    top: 7px;
    right: 136px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(191, 210, 238, .45);
    border-radius: 4px;
    background: #f5f7fb;
    color: #172b4d;
    cursor: pointer;
  }
  .ru-sidebar .ru-account-mobile-entry svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .ru-sidebar .ru-account-mobile-entry:hover,
  .ru-sidebar .ru-account-mobile-entry:focus-visible {
    background: var(--brand-wash,#E9EFFC);
    outline: 2px solid #2459d8;
    outline-offset: 1px;
  }
}
@media (max-width: 370px) {
  html body .ru-sidebar .ru-sidebar-logo .brand-copy { display: none !important; }
}
