/* Verified customer account name beneath wordmark — all authenticated headers.
   Reuses the existing plan-subline styles and spacing without changing billing. */

header.msh-unified-header .msh-unified-header-row > .msh-unified-brand-stack {
 display:flex;flex:0 1 auto;flex-direction:column;align-items:flex-start;
 justify-content:center;gap:3px;min-width:0;
}
header.msh-unified-header .msh-unified-brand-stack > .msh-unified-brand{
 display:block;margin:0!important;line-height:1.05!important;
 text-decoration:none;white-space:nowrap;
}
html[data-msh-theme="command"] header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan,
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan{
 display:block!important;min-width:0!important;max-width:100%!important;
 width:auto!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;
 border-radius:0!important;background:transparent!important;
 box-shadow:none!important;filter:none!important;
 color:#607687!important;
 font-family:inherit!important;font-size:11px!important;
 font-weight:650!important;letter-spacing:.005em!important;line-height:1.3!important;
 text-align:left!important;white-space:nowrap!important;
 overflow:hidden!important;text-overflow:ellipsis!important;
 text-decoration:none!important;
}
html[data-msh-theme="command"] header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[hidden],
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[hidden]{
 display:none!important;
}
/* The full verified plan and approval wording remains readable on phones,
   rather than using the old forced two-line green badge wording. */
header.msh-unified-header .msh-unified-brand-stack .msh-unified-plan-desktop{
 display:inline!important;
}
header.msh-unified-header .msh-unified-brand-stack .msh-unified-plan-mobile{
 display:none!important;
}
html[data-msh-theme="command"] header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[data-plan-tone="approved"],
html[data-msh-theme="command"] header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[data-plan-tone="active"],
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[data-plan-tone="approved"],
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[data-plan-tone="active"]{
 background:transparent!important;border:0!important;color:#607687!important;
}
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[data-plan-tone="warning"]{
 background:transparent!important;border:0!important;color:#916829!important;
}
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan:hover{
 filter:none!important;text-decoration:underline!important;text-underline-offset:2px;
}
header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan:focus-visible{
 outline:2px solid #19a7da!important;outline-offset:3px!important;border-radius:3px!important;
}
/* Keep the customer business/account selector at the right-hand end. */
header.msh-unified-header .msh-unified-header-row > .msh-unified-header-actions{
 margin-left:auto!important;
}
@media(max-width:700px){
 header.customer-header.msh-unified-header .msh-unified-header-row > .msh-unified-brand-stack,
 header.msh-unified-header .msh-unified-header-row > .msh-unified-brand-stack{
  grid-column:2!important;grid-row:1!important;justify-self:center!important;
  align-self:center!important;align-items:center!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  gap:3px!important;
 }
 html[data-msh-theme="command"] header.msh-unified-header .msh-unified-brand-stack > .msh-unified-brand,
 header.msh-unified-header .msh-unified-brand-stack > .msh-unified-brand{
  font-size:clamp(19px,5.8vw,26px)!important;
  line-height:1!important;letter-spacing:-.055em!important;
 }
 html[data-msh-theme="command"] header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan,
 header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan{
  display:block!important;font-size:clamp(9px,2.65vw,11px)!important;
  line-height:1.22!important;max-width:100%!important;
  text-align:center!important;
 }
 header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan[hidden]{
  display:none!important;
 }
}
/* Very narrow phones may wrap the status within the space below the logo. */
@media(max-width:350px){
 header.msh-unified-header .msh-unified-brand-stack > a.msh-unified-header-plan{
  font-size:9px!important;letter-spacing:-.015em!important;
 }
}

/* Mobile-only fine alignment: raise the logo/status and person trigger together.
   Preserve the header curve, hamburger placement, click targets and dropdown. */
@media(max-width:700px){
 html[data-msh-surface="customer"] body header.msh-unified-header
 .msh-unified-header-row > .msh-unified-brand-stack{
  position:relative!important;
  top:-5px!important;
 }
 html[data-msh-surface="customer"] body header.msh-unified-header
 .msh-unified-header-row > .msh-unified-header-actions > .msh-unified-account{
  position:relative!important;
  top:-5px!important;
 }
}
