/* Single customer header visual layout; old DOM remains for existing page logic. */
header.msh-unified-header{position:sticky!important;top:0!important;height:78px!important;min-height:78px!important;z-index:120!important;background:#fff!important;border-bottom:1px solid #e4eaf2!important}
header.msh-unified-header>.header-inner,header.msh-unified-header>.msh-inner{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important}
header.msh-unified-header .msh-unified-header-row{height:100%;max-width:1510px;margin:auto;padding:0 clamp(16px,2vw,30px);display:flex;align-items:center;gap:16px;box-sizing:border-box}
.msh-unified-brand{font:850 25px/1.1 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.05em;color:#0c1729;white-space:nowrap;text-decoration:none}
.msh-unified-brand span{color:#0857f8}
.msh-unified-header-nav{flex:1;display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}
.msh-unified-header-nav a{font:750 12px/1.4 Inter,"Segoe UI",Arial,sans-serif;color:#455875;text-decoration:none;border-radius:9px;padding:10px}
.msh-unified-header-nav a:hover,.msh-unified-header-nav a[aria-current=page]{background:#edf4ff;color:#0758e7}
.msh-unified-header-actions{display:flex;align-items:center;gap:13px;font:750 12px/1.4 Inter,"Segoe UI",Arial,sans-serif;white-space:nowrap}
.msh-unified-header-actions>a{color:#0d1930;text-decoration:none}
.msh-unified-account{position:relative}
.msh-unified-account>summary{display:flex;align-items:center;gap:8px;max-width:260px;padding:12px;border-radius:11px;background:#edf4ff;color:#0757e8;cursor:pointer;list-style:none}
.msh-unified-account>summary::-webkit-details-marker{display:none}
.msh-unified-business-name{max-width:170px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.msh-unified-account-panel{
 position:absolute;right:0;top:calc(100% + 8px);z-index:140;
 background:#fff;border:1px solid #dce6f5;border-radius:12px;
 box-shadow:0 18px 36px #13295027;width:270px;padding:8px;white-space:normal;
 /* The account menu is its own scrollport, sized to the visible browser viewport. */
 box-sizing:border-box;max-height:min(560px,var(--msh-account-panel-max-height,calc(100dvh - 120px)));
 overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;
 -webkit-overflow-scrolling:touch;touch-action:pan-y;
 scrollbar-width:thin;scrollbar-color:#bdcbd7 transparent;
}
.msh-unified-account-panel>a,.msh-unified-signout{display:block;width:100%;box-sizing:border-box;font:650 12px/1.4 Inter,"Segoe UI",Arial,sans-serif;text-align:left;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:#465872;text-decoration:none}
.msh-unified-account-panel>a:hover,.msh-unified-signout:hover{background:#f0f5ff;color:#0757e8}
.msh-unified-signout{color:#b42b43;cursor:pointer;font-weight:750}
.msh-unified-account-divider{height:1px;margin:6px 4px;background:#e5eaf2}
@media(max-width:700px){header.msh-unified-header{height:72px!important;min-height:72px!important}.msh-unified-header-nav{display:none}.msh-unified-brand{font-size:20px}.msh-unified-header-actions{margin-left:auto;gap:7px}.msh-unified-account>summary{max-width:160px;padding:8px}.msh-unified-business-name{max-width:100px}.msh-unified-header-actions>a{font-size:11px}}

/* Ver046: the workspace sidebar is the only operational navigation. */
.msh-unified-header-row>.msh-unified-header-actions{margin-left:auto!important}
.msh-unified-header-row>.msh-unified-mobile-toggle{
 display:none;border:1px solid #d6e3f5;background:#fff;color:#135ad1;
 border-radius:9px;width:40px;height:40px;font-size:21px;cursor:pointer;
 align-items:center;justify-content:center;flex:0 0 40px;
}
@media(max-width:860px){
 .msh-dashboard-page .msh-unified-header-row>.msh-unified-mobile-toggle{display:inline-flex}
}
@media(max-width:700px){
 .msh-unified-header-row>.msh-unified-header-actions{margin-left:auto!important}
}

/* Ver047 — Classic business-menu arrow: left when closed, down when open. */
.msh-unified-account>summary .msh-unified-account-chevron{
 display:block;width:16px;height:16px;flex:0 0 16px;
 transform:rotate(0deg);transform-origin:50% 50%;
 transition:transform 180ms ease-in-out;
}
.msh-unified-account[open]>summary .msh-unified-account-chevron{transform:rotate(-90deg)}
@media(prefers-reduced-motion:reduce){
 .msh-unified-account>summary .msh-unified-account-chevron{transition:none}
}

/* Ver048: hide original customer header layout from first paint, rather than
   displaying it temporarily before the shared header is mounted. */
header.customer-header:not(.msh-customer-header)>.header-inner{
 position:absolute!important;width:1px!important;height:1px!important;
 overflow:hidden!important;clip-path:inset(50%)!important;
 visibility:hidden!important;pointer-events:none!important;
}
header.customer-header:not(.msh-customer-header){
 min-height:78px!important;height:78px!important;
}
header.msh-unified-header .msh-unified-header-row{
 width:100%!important;max-width:1510px!important;
 height:100%!important;padding-inline:clamp(16px,2vw,30px)!important;
 margin-inline:auto!important;box-sizing:border-box!important;
}
header.msh-unified-header .msh-unified-header-row>.msh-unified-brand{
 flex:0 0 auto;letter-spacing:-.05em!important;
 font:850 25px/1.1 Inter,"Segoe UI",Arial,sans-serif!important;
}
.msh-unified-account[hidden]{display:none!important}
@media(max-width:700px){
 header.customer-header:not(.msh-customer-header){height:72px!important;min-height:72px!important}
 header.msh-unified-header .msh-unified-header-row>.msh-unified-brand{font-size:20px!important}
}

/* Reserve identical account/menu geometry while session name resolves. */
header.msh-unified-header .msh-unified-account{flex:0 0 220px!important;width:220px!important}
header.msh-unified-header .msh-unified-account>summary{width:100%!important;max-width:none!important;box-sizing:border-box!important}
header.msh-unified-header .msh-unified-business-name{flex:1 1 auto!important;min-width:0!important}
@media(max-width:700px){
 header.msh-unified-header .msh-unified-account{flex-basis:150px!important;width:150px!important}
}
@media(max-width:360px){
 header.msh-unified-header .msh-unified-account{flex-basis:125px!important;width:125px!important}
}

/* Ver049: keep customer header visible as the same visual element while
   switching between separate full-document customer pages (Edge/Chrome). */
@view-transition { navigation: auto; }
header.msh-unified-header .msh-unified-header-row{view-transition-name:msh-customer-header}
::view-transition-old(msh-customer-header),
::view-transition-new(msh-customer-header){animation-duration:0s;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){
 ::view-transition-old(root),::view-transition-new(root){animation-duration:0s}
}

/* Ver062: verified plan and access badge, same header on every customer page. */
.msh-unified-header-plan{
 display:inline-flex;align-items:center;justify-content:center;
 max-width:230px;min-height:33px;padding:6px 12px;
 border-radius:999px;background:#eaf2ff;color:#0757e8;
 font:750 12px/1.35 Inter,"Segoe UI",Arial,sans-serif;
 text-decoration:none;white-space:normal;text-align:center;
}
.msh-unified-header-plan[hidden]{display:none!important}
.msh-unified-header-plan[data-plan-tone="approved"],
.msh-unified-header-plan[data-plan-tone="active"]{background:#eaf8f1;color:#146a45}
.msh-unified-header-plan[data-plan-tone="warning"]{background:#fff4e3;color:#875719}
.msh-unified-header-plan:hover{filter:brightness(.96)}
.msh-unified-header-plan:focus-visible{outline:3px solid #a7c4fa;outline-offset:2px}
@media(max-width:700px){
 .msh-unified-header-plan{font-size:10px;padding:5px 7px;max-width:115px}
}

/* Ver066: accessible customer navigation reused on non-Dashboard mobile pages. */
.msh-unified-account-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px}
.msh-unified-account-icon svg{display:block;width:16px;height:16px}
.msh-unified-plan-mobile{display:none}
header.msh-unified-header{position:sticky!important}
.msh-unified-mobile-drawer{
 position:absolute;top:calc(100% + 1px);left:12px;right:12px;z-index:150;
 background:#fff;border:1px solid #dce6f5;border-radius:13px;
 padding:7px;box-shadow:0 12px 28px rgba(12,35,74,.10);
 display:grid;gap:2px;max-height:60dvh;overflow-y:auto;
}
.msh-unified-mobile-drawer[hidden]{display:none!important}
.msh-unified-mobile-drawer>a{
 display:block;padding:13px 14px;border-radius:9px;min-height:44px;
 font:750 13px/1.4 Inter,"Segoe UI",Arial,sans-serif;
 color:#244568;text-decoration:none;
}
.msh-unified-mobile-drawer>a:hover,.msh-unified-mobile-drawer>a:focus-visible{
 background:#edf4ff;color:#0757e8;
}
/* Two rows on iPhone: workspace menu | centered logo | empty balancing column,
   then the sole account dropdown | subscription status. */
@media(max-width:700px){
 header.customer-header.msh-unified-header{
  height:119px!important;min-height:119px!important;max-height:119px!important;
 }
 header.customer-header.msh-unified-header .msh-unified-header-row{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  grid-template-rows:46px 44px!important;
  align-content:center!important;align-items:center!important;
  gap:4px 9px!important;
  width:100%!important;max-width:none!important;
  padding:8px 12px!important;
 }
 header.msh-unified-header .msh-unified-header-row>.msh-unified-mobile-toggle{
  display:inline-flex!important;grid-column:1;grid-row:1;
  justify-self:start;margin:0;width:44px;height:44px;
  min-width:44px;min-height:44px;font-size:23px;
 }
 header.msh-unified-header .msh-unified-header-row>.msh-unified-brand{
  grid-column:2;grid-row:1;justify-self:center;min-width:0;
  font-size:clamp(18px,5.6vw,23px)!important;
  line-height:1.08!important;margin:0!important;letter-spacing:-.05em!important;
  white-space:nowrap;
 }
 header.msh-unified-header .msh-unified-header-row>.msh-unified-header-actions{
  grid-column:1/-1;grid-row:2;display:grid!important;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  align-items:stretch!important;gap:9px!important;
  width:100%;min-width:0;margin:0!important;margin-left:0!important;
 }
 header.msh-unified-header .msh-unified-account{
  width:100%!important;min-width:0!important;max-width:none!important;
  flex:none!important;
 }
 header.msh-unified-header .msh-unified-account>summary{
  width:100%!important;max-width:none!important;min-width:0;
  height:44px;min-height:44px;padding:9px 10px!important;
  gap:7px!important;box-sizing:border-box;
  border-radius:11px;
 }
 header.msh-unified-header .msh-unified-business-name{
  max-width:none!important;flex:1 1 auto!important;min-width:0;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
  font-size:13px;line-height:1.3;
 }
 header.msh-unified-header .msh-unified-account-chevron{width:14px;height:14px;flex-basis:14px}
 header.msh-unified-header .msh-unified-account-panel{
  left:0;right:auto;width:min(285px,calc(100vw - 24px));
 }
 header.msh-unified-header .msh-unified-header-plan{
  display:flex;align-items:center;justify-content:center;
  width:100%;max-width:none;min-width:0;
  height:44px;min-height:44px;box-sizing:border-box;
  margin:0;padding:4px 7px;
  white-space:normal;text-align:center;
  font-size:11px;line-height:1.2;
  overflow-wrap:normal;word-break:normal;
 }
 header.msh-unified-header .msh-unified-plan-desktop{display:none}
 header.msh-unified-header .msh-unified-plan-mobile{
  display:block;white-space:pre-line;line-height:1.25;
 }
 header.msh-unified-header.msh-unified-anonymous{
  height:72px!important;min-height:72px!important;max-height:72px!important;
 }
 header.msh-unified-header.msh-unified-anonymous .msh-unified-header-row{
  grid-template-rows:46px!important;
 }
 header.msh-unified-header.msh-unified-anonymous .msh-unified-header-actions{
  display:none!important;
 }
}

/* Private header first paint: match the 30%-transparent frosted surface.
   The shared divider script replaces this fallback with a line-shaped frosted
   layer, leaving the area below the desktop curve entirely transparent. */
html[data-msh-theme="command"] body header.msh-unified-header{
 background:rgba(255,255,255,.70)!important;
 background-color:rgba(255,255,255,.70)!important;
 background-image:none!important;
 backdrop-filter:blur(24px) saturate(1.1)!important;
 -webkit-backdrop-filter:blur(24px) saturate(1.1)!important;
 box-shadow:none!important;
}

/* Center the three bars inside the signed-in customer mobile menu control. */
@media (max-width:860px){
 html body header.msh-unified-header .msh-unified-header-row>.msh-unified-mobile-toggle{
  align-items:center!important;justify-content:center!important;
  padding:0!important;line-height:0!important;text-align:center!important;
 }
 html body header.msh-unified-header .msh-unified-mobile-toggle>.msh-menu-glyph{
  display:block!important;flex:0 0 22px!important;
  width:22px!important;height:22px!important;
  margin:0!important;align-self:center!important;
  position:static!important;transform:none!important;
 }
}

/* Clean & Classic business trigger — button only, leave the dropdown panel unchanged. */
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account > summary,
body header.msh-unified-header .msh-unified-account > summary{
 display:flex!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:9px!important;
 min-height:44px;
 padding:4px 2px!important;
 background:transparent!important;
 background-color:transparent!important;
 background-image:none!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 color:#172b45!important;
 font-weight:750!important;
 cursor:pointer;
 transition:color .18s ease!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account > summary:hover,
body header.msh-unified-header .msh-unified-account > summary:hover{
 color:#0757dd!important;
 background:transparent!important;
 box-shadow:none!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account > summary:focus-visible,
body header.msh-unified-header .msh-unified-account > summary:focus-visible{
 outline:2px solid #4d8dfa!important;
 outline-offset:3px;
 border-radius:4px!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-icon,
body header.msh-unified-header .msh-unified-account-icon{
 display:inline-flex!important;
 flex:0 0 32px!important;
 width:32px!important;height:32px!important;
 border:0!important;border-radius:50%!important;
 align-items:center!important;justify-content:center!important;
 background:#e9f2ff!important;
 color:#4a6486!important;
 transition:background-color .18s ease,color .18s ease!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-icon svg,
body header.msh-unified-header .msh-unified-account-icon svg{
 display:block!important;width:17px!important;height:17px!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account > summary:hover .msh-unified-account-icon,
body header.msh-unified-header .msh-unified-account > summary:hover .msh-unified-account-icon{
 color:#085ef4!important;background:#e4efff!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-business-name,
body header.msh-unified-header .msh-unified-business-name{
 min-width:0!important;overflow:hidden!important;
 text-overflow:ellipsis!important;white-space:nowrap!important;
 font-size:13px!important;line-height:1.35!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-chevron,
body header.msh-unified-header .msh-unified-account-chevron{
 display:block!important;
 width:14px!important;height:14px!important;flex:0 0 14px!important;
 margin-left:auto!important;
 color:#1c4676!important;
 transform:rotate(0deg)!important;
 transition:transform .18s ease,color .18s ease!important;
}
html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account[open] .msh-unified-account-chevron,
body header.msh-unified-header .msh-unified-account[open] .msh-unified-account-chevron{
 transform:rotate(180deg)!important;
}
@media(max-width:700px){
 /* Keep the compact icon-only control required by the existing one-row phone header. */
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account > summary,
 body header.msh-unified-header .msh-unified-account > summary{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:44px!important;height:44px!important;min-height:44px!important;
  padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;
 }
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-icon,
 body header.msh-unified-header .msh-unified-account-icon{
  flex:0 0 36px!important;width:36px!important;height:36px!important;
 }
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-business-name,
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-chevron{
  display:none!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account > summary,
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-icon,
 html[data-msh-theme="command"] body header.msh-unified-header .msh-unified-account-chevron{transition:none!important}
}


/* Customer account menu matches the main station sidebar typography on both
   Windows and phones. This applies only to the signed-in customer dropdown;
   avatar/trigger sizing, navigation, and Master Admin remain unchanged. */
html[data-msh-surface="customer"][data-msh-theme="command"] body
header.msh-unified-header .msh-unified-account-panel > :is(a,.msh-unified-signout){
 font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",Arial,sans-serif!important;
 font-size:14px!important;
 font-weight:500!important;
 line-height:1.4!important;
 letter-spacing:0!important;
 color:#333b43!important;
 text-decoration:none!important;
}
html[data-msh-surface="customer"][data-msh-theme="command"] body
header.msh-unified-header .msh-unified-account-panel > :is(a,.msh-unified-signout):is(:hover,:focus-visible,:active,[aria-current="page"]){
 background:#E8F0F3!important;
 color:#292e33!important;
}
