/* English Study Bot — V4.8.9 account outer-shell exact width fix
   Overlay on V4.8.6. Desktop/tablet only. */
@media (min-width: 768px) {
  /* Release clipping only on account-only ancestors tagged by V489. */
  body.esb-home-desktop-v486 .esb-account-unclip-v489 {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    contain: none !important;
  }

  /* The actual white account card. Width is assigned from JS to the same V486 shell target. */
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 {
    width: var(--esb-v489-account-width) !important;
    min-width: var(--esb-v489-account-width) !important;
    max-width: var(--esb-v489-account-width) !important;
    inline-size: var(--esb-v489-account-width) !important;
    max-inline-size: none !important;
    flex: 0 0 var(--esb-v489-account-width) !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: translateX(var(--esb-v489-shift, 0px)) !important;
    overflow: visible !important;
    z-index: 2 !important;
  }

  /* Button text must be geometrically centered, including User Center. */
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 .esb-action-primary-v486,
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 .esb-action-secondary-v486,
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 .esb-login-cta-v486 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    max-width: max-content !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 .esb-action-primary-v486 > *,
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 .esb-action-secondary-v486 > *,
  body.esb-home-desktop-v486 .esb-user-status-v486.esb-account-outer-v489 .esb-login-cta-v486 > * {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  /* Logged-out premium CTA retains its star but the label stays centered. */
  body.esb-home-desktop-v486 .esb-login-cta-v486 {
    min-width: 156px !important;
    padding-left: 38px !important;
    padding-right: 38px !important;
  }
  body.esb-home-desktop-v486 .esb-login-cta-v486::before {
    right: 15px !important;
    pointer-events: none !important;
  }
}
