/* One shared header strip: brand, available navigation, then corner controls. */
.app-sidebar.starxbullion-header{
  position:sticky;inset:0 0 auto;z-index:60;width:100%;height:auto;min-height:72px;
  display:flex;flex-direction:row;align-items:center;gap:16px;padding:8px 20px;
  transform:none;transition:none;overflow:visible;
}
.starxbullion-header .sidebar-brand{flex:0 0 260px;min-height:0;padding:0;display:flex;justify-content:flex-start;border:0}
.starxbullion-header .sidebar-brand-link{width:260px;max-width:100%}
.starxbullion-header .starxbullion-navigation{flex:1;min-width:64px;overflow:visible;padding:0;border:0;display:block}
.starxbullion-header .starxbullion-menu{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:0;width:100%}
.starxbullion-header .starxbullion-menu>li{flex:none}
.starxbullion-header .starxbullion-menu>li[hidden]{display:none}
.starxbullion-header .starxbullion-menu-link,.starxbullion-header .starxbullion-menu-trigger{
  width:auto;min-height:44px;padding:10px;gap:6px;border-radius:4px;font:600 13px/1.4 var(--font-ui);white-space:nowrap;justify-content:flex-start;
}
.starxbullion-header .starxbullion-menu>li>.starxbullion-menu-link>.starxbullion-link-icon,
.starxbullion-header .starxbullion-menu>li>.starxbullion-menu-trigger>.starxbullion-link-icon{display:none}
.starxbullion-header .starxbullion-menu .starxbullion-menu-account{margin:0 0 0 auto;align-self:center}
.starxbullion-header .starxbullion-menu-account .starxbullion-menu-link{padding-inline:12px}
.starxbullion-header .starxbullion-submenu{
  position:fixed;min-width:0;max-width:calc(100vw - 16px);padding:8px;overflow-y:auto;
  overscroll-behavior:contain;border:1px solid var(--border-strong);border-radius:8px;z-index:65;
}
.starxbullion-header .starxbullion-submenu[hidden]{display:none}
.starxbullion-header .starxbullion-submenu .starxbullion-menu-link,
.starxbullion-header .starxbullion-submenu .starxbullion-menu-trigger{width:100%;min-height:44px;padding:10px 12px;white-space:normal;text-align:left}
.starxbullion-header #starxbullion-more-menu>.starxbullion-menu-group>.starxbullion-submenu{
  position:static;width:auto!important;max-height:none!important;margin:0;padding:0 0 4px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;
}
.starxbullion-header #starxbullion-more-menu .starxbullion-menu-trigger .starxbullion-chevron{margin-left:auto}
.starxbullion-header .topbar-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto}
.starxbullion-header-downloads{display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px}
.starxbullion-header-downloads>a,.starxbullion-header-downloads>span{display:flex;align-items:center;justify-content:center;height:32px;border-radius:5px;overflow:hidden}
.starxbullion-header-downloads>a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.starxbullion-header-downloads>a:hover{filter:brightness(1.08)}
.starxbullion-header-downloads>.is-unavailable{cursor:not-allowed;opacity:.68;filter:saturate(.65)}
.starxbullion-header-downloads img{display:block;width:auto;height:32px;max-width:none;object-fit:contain}
.starxbullion-header .topbar-actions .theme-toggle,
.starxbullion-header .topbar-actions .pill-btn{display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:10px 12px;margin:0;white-space:nowrap;font-size:12px}
.starxbullion-header .topbar-actions .theme-symbol{display:inline;font-size:18px}
.starxbullion-header .topbar-actions .starxbullion-link-icon{display:inline-block;margin:0;font-size:16px}
.starxbullion-header .topbar-actions :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.app-shell:has(.starxbullion-header) .app-topbar{top:var(--starxbullion-header-offset,72px);height:36px;min-height:0;padding-inline:20px;z-index:45}
.app-shell:has(.starxbullion-header) .app-topbar:not(:has(.ticker-track:not(:empty))){display:none}
@media(max-width:1399px){
  .app-sidebar.starxbullion-header{gap:12px;padding-inline:16px}
  .starxbullion-header-downloads>a,.starxbullion-header-downloads>span,.starxbullion-header-downloads img{height:29px}
  .starxbullion-header .topbar-actions .theme-toggle>span:not(.theme-symbol),
  .starxbullion-header .topbar-actions .starxbullion-motion-label{display:none}
}
@media(max-width:900px){
  .app-sidebar.starxbullion-header{min-height:64px;padding:8px 12px;gap:8px}
  .starxbullion-header .sidebar-brand{flex-basis:110px}
  .starxbullion-header .sidebar-brand-link{width:110px}
  .starxbullion-header .starxbullion-menu-account .starxbullion-menu-link{justify-content:flex-start}
  .starxbullion-header .topbar-actions .pill-btn .starxbullion-link-label{display:none}
  .starxbullion-header .topbar-actions .theme-toggle,.starxbullion-header .topbar-actions .pill-btn{width:44px;padding:10px}
  .starxbullion-header-downloads{width:100%;gap:10px;padding-top:6px}
  .starxbullion-header-downloads>a,.starxbullion-header-downloads>span,.starxbullion-header-downloads img{height:36px}
  .app-shell:has(.starxbullion-header) .app-topbar{display:none}
}
@media(max-width:479px){
  .app-sidebar.starxbullion-header{padding-inline:8px;gap:8px}
  .starxbullion-header .sidebar-brand{flex-basis:72px}
  .starxbullion-header .sidebar-brand-link{width:72px}
  .starxbullion-header .topbar-actions{gap:4px}
  .starxbullion-header .starxbullion-menu-trigger{padding-inline:8px}
}
