/* One compact account frame across the platform, with navigation outside it. */
/* Fixed, so the account bar stays at the top right on every page as the page scrolls (Nov 13 2026, Kyle: "the profile
   header menu ... should be on all page"); it used to scroll away on long pages such as Identity. */
body:has(.view-panel.is-active) .platform-main > .platform-topbar {
 position:fixed; top:28px; right:3%; left:auto; width:auto; min-height:0;
 display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; justify-content:flex-end; gap:10px;
 margin:0; padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; z-index:30;
}
body:has(.view-panel.is-active) .platform-main > .platform-topbar::before {
 content:""; position:absolute; inset:-8px -10px; z-index:-1; pointer-events:none;
 border:1px solid #d6b7f04d; border-radius:18px;
 background:linear-gradient(135deg,#151321c9,#07101bcc);
 box-shadow:0 8px 28px #0004,inset 0 1px 0 #ffffff12;
 backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
}
body:has(.view-panel.is-active) .platform-main > .platform-topbar::after { display:none; }
body:has(.view-panel.is-active) .platform-topbar .topbar-page-heading {
 position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
 clip-path:inset(50%); white-space:nowrap;
}
body:has(.view-panel.is-active) .platform-main > .platform-topbar .topbar-actions { flex:0 0 auto; margin:0; }
body:has(.view-panel.is-active) .platform-main > .platform-topbar .zealz-bar { margin:0; min-width:0; }
body:has(.view-panel.is-active) #zealz-connect-root:empty { display:none; }
body:not(:has(:is(#command,.member-profile,.vice-market).is-active)) .platform-main { padding-top:96px; }
.vm-floor-brand,.member-profile-brand { display:none; }
@media(max-width:760px) {
 body:has(.view-panel.is-active) .platform-main > .platform-topbar { top:20px; left:92px; right:12px; gap:6px; }
 body:has(.view-panel.is-active) .platform-main > .platform-topbar .mobile-sidebar-button {
  position:fixed; top:14px; left:12px; display:inline-flex; align-items:center; justify-content:center;
  min-height:40px; margin:0; padding:0 13px; font-size:13px;
 }
 body:has(.view-panel.is-active) .platform-main > .platform-topbar .zealz-bar { max-width:calc(100% - 64px); flex-shrink:1; }
 body:has(#command.is-active) .platform-main > .platform-topbar .mobile-sidebar-button { display:none; }
}
/* Signed out (Kyle, Nov 13 2026: "Why is there a background box around login / sign up"): with no account bar and no
   ZEALZ balance strip in it, the header has no glass frame at all; the Log in or sign up pill stands on its own, and on a
   phone it sits at the right at the same height as Menu. */
body:has(.view-panel.is-active) .platform-main > .platform-topbar:not(:has(#zealzBar:not([hidden]), .topbar-actions:not(:empty)))::before,
body:has(#command.is-active .city-home) .platform-topbar:not(:has(#zealzBar:not([hidden]), .topbar-actions:not(:empty)))::before { display:none; }
@media(max-width:760px) {
 body:has(.view-panel.is-active) .platform-main > .platform-topbar:not(:has(#zealzBar:not([hidden]), .topbar-actions:not(:empty))) { top:14px; min-height:40px; }
}
