/* YES TO FOREVER — unified account and management actions.
 * Name on the left; People, Wedding Party Roster and Sign Out on the right.
 * Covers manager and guest portals without altering capabilities or links.
 */
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px 16px;
}
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
  div:not(.ytfp-account-actions):not(.ytfp-brand){
  flex:0 1 auto;
  width:auto;
  min-width:0;
  overflow-wrap:anywhere;
}
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready > .ytfp-account-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex:0 1 auto;
  flex-wrap:wrap;
  gap:9px;
  margin-left:auto;
  width:auto;
  min-width:0;
}
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready > .ytfp-account-actions > .ytfp-people-shortcut{
  display:inline-flex;
  flex:0 1 auto;
  width:auto;
  max-width:100%;
  min-height:42px;
  margin:0;
  padding:9px 13px;
  white-space:normal;
  text-align:center;
}
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready > .ytfp-account-actions > .ytfp-toolbar-logout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:42px;
  padding:9px 14px;
  margin:0 0 0 5px !important;
  border:1px solid #d3c6ac;
  border-radius:9px;
  background:#fffaf1;
  color:#425a45;
  text-decoration:none;
  font:700 12px/1.4 Arial,sans-serif;
  white-space:nowrap;
}
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready > .ytfp-account-actions > .ytfp-toolbar-logout:hover{
  background:#edf3e8;
  border-color:#b6c8ac;
  color:#264a34;
}
#ytfp-app .ytfp-top.ytfp-account-toolbar-ready > .ytfp-account-actions > .ytfp-toolbar-logout:focus-visible{
  outline:3px solid #bf9a61;
  outline-offset:3px;
}
/* At phone widths: the account stays top-left and Sign Out top-right;
 * management links share the next row, rather than taking three lines.
 */
@media(max-width:680px){
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:9px 10px;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
    div:not(.ytfp-account-actions):not(.ytfp-brand){
    grid-column:1;
    grid-row:1;
    width:auto !important;
    min-width:0;
    flex:none;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready > .ytfp-account-actions{
    display:contents;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
    .ytfp-account-actions > .ytfp-toolbar-logout{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    min-height:42px;
    margin:0 !important;
    padding:9px 12px;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
    .ytfp-account-actions > .ytfp-people-shortcut{
    display:flex;
    grid-row:2;
    width:100% !important;
    min-height:44px;
    margin:0 !important;
    padding:9px 8px;
    font-size:11px;
    overflow-wrap:anywhere;
    justify-content:center;
    align-items:center;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
    .ytfp-account-actions > .ytfp-people-shortcut:not(.ytfp-party-roster-shortcut){
    grid-column:1;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
    .ytfp-account-actions > .ytfp-party-roster-shortcut{
    grid-column:2;
  }
  #ytfp-app .ytfp-top.ytfp-account-toolbar-ready >
    .ytfp-account-actions:not(.ytfp-has-roster) > .ytfp-people-shortcut{
    grid-column:1 / -1;
  }
}
