#pp-my-account{position:relative;z-index:105;max-width:240px}#pp-my-account[hidden],#pp-account-menu[hidden],.pp-dash-actions [hidden]{display:none!important}#pp-account-trigger{display:flex;align-items:center;gap:8px;max-width:230px;min-height:41px;padding:4px 9px 4px 5px;background:#081e36e8;color:#fff;border:1px solid #ffffff75;border-radius:30px;backdrop-filter:blur(8px);font-size:12px;font-weight:850;cursor:pointer}#pp-account-name{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pp-account-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border:2px solid #ffffff7a;background:#ed3158;color:#fff;border-radius:50%;font-size:11px;overflow:hidden}.pp-account-avatar img{width:100%;height:100%;object-fit:cover}#pp-account-menu{position:absolute;top:calc(100% + 7px);right:0;width:220px;padding:8px;border:1px solid #d9e5f2;box-shadow:0 14px 40px #071d3680;background:#fff;border-radius:16px;z-index:1000}#pp-account-menu a,#pp-account-menu button{width:100%;display:block;background:transparent;border:0;border-radius:10px;padding:12px 11px;text-align:left;text-decoration:none;color:#122f4c;font-weight:750;font-size:12px;cursor:pointer}#pp-account-menu a:hover,#pp-account-menu button:hover{background:#eff5fd}#pp-member-welcome{display:inline-flex;background:#0b4c8c!important;color:#fff!important;border-color:#0b4c8c!important}@media(max-width:650px){#pp-my-account{position:fixed;top:59px;right:11px;z-index:202;width:auto}#pp-account-trigger{padding:3px;border-radius:50%;width:44px;height:44px;justify-content:center;box-shadow:0 5px 18px #071d3666}#pp-account-name,#pp-account-trigger>span:last-child{display:none}.pp-account-avatar{flex:0 0 36px;width:36px;height:36px}#pp-account-menu{right:0;top:51px}body.portal #pp-session-controls{display:none!important}}

/* 23 Oct 2026: Account belongs to the masthead, NOT to the phone viewport.
   Keep language and account controls together in the top of the sunset header. */
@media (max-width:650px){
  body.portal .pp-sunset-header{overflow:visible!important;z-index:50!important}
  body.portal .pp-sunset-header .pp-header-actions{
    position:absolute!important;
    top:10px!important;bottom:auto!important;
    left:auto!important;right:9px!important;
    width:auto!important;max-width:calc(100% - 94px)!important;
    display:flex!important;align-items:center!important;justify-content:flex-end!important;
    gap:7px!important;flex-wrap:nowrap!important;
  }
  body.portal .pp-sunset-header .pp-header-actions .pp-lang-switch{
    position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    transform:none!important;order:0!important;flex:0 0 auto!important;
  }
  body.portal .pp-sunset-header .pp-header-actions #pp-my-account{
    position:relative!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;
    margin:0!important;z-index:12!important;flex:0 0 auto!important;order:1!important;max-width:none!important;
  }
  body.portal .pp-sunset-header .pp-header-actions #pp-account-trigger{
    width:43px;height:43px;min-height:43px;padding:3px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;box-shadow:0 5px 18px #071d3666;
  }
  body.portal .pp-sunset-header .pp-header-actions #pp-account-menu{
    position:absolute;top:calc(100% + 8px);right:0;left:auto;max-width:calc(100vw - 20px);
  }
  body.portal .pp-sunset-header .pp-header-actions:has(#pp-my-account:not([hidden])) > button[data-action="portal"]{
    display:none!important;
  }
}
