/* One shared header for the public pages and dashboard. */
.topbar { grid-column:1 / -1; grid-row:1; position:sticky; top:0; z-index:20; display:flex; height:68px; min-width:0; align-items:center; gap:24px; padding:0 24px; border-bottom:1px solid #302e3a; background:#111118; }
.topbar .brand { display:flex; flex:none; align-items:center; gap:12px; padding:0 6px; white-space:nowrap; }
.topbar .brand-mark { width:40px; height:40px; flex:none; border:1px solid #615481; border-radius:13px; object-fit:cover; }
.topbar .brand-copy strong { display:block; font-size:19px; line-height:1.15; letter-spacing:-.7px; }
.topbar .brand-copy strong span { color:#b59cff; }
.topbar .brand-copy small { display:block; margin-top:4px; color:#918b9c; font-size:9px; font-weight:800; letter-spacing:1.3px; }
.topbar-nav { display:flex; min-width:0; align-items:center; gap:4px; margin-left:auto; overflow-x:auto; scrollbar-width:none; }
.topbar-nav::-webkit-scrollbar { display:none; }
.topbar-nav a { flex:none; padding:8px 12px; border-radius:8px; color:#b4afbd; font-size:12px; font-weight:700; white-space:nowrap; }
.topbar-nav a:hover,.topbar-nav a[aria-current='page'] { background:#272331; color:#eee6ff; }
.topbar-nav a span { color:#817b8b; }
.topbar .account-menu { position:relative; flex:none; margin-left:0; }
.topbar .account-toggle { display:flex; min-height:44px; align-items:center; gap:10px; padding:5px 8px 5px 12px; border:1px solid transparent; border-radius:9px; background:transparent; color:#e9e4ed; cursor:pointer; }
.topbar .account-toggle:hover,.topbar .account-toggle[aria-expanded='true'] { border-color:#494150; background:#26232d; }
.topbar .account-name { max-width:150px; overflow:hidden; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.topbar .avatar { display:grid; width:34px; height:34px; flex:none; overflow:hidden; place-items:center; border:1px solid #685777; border-radius:50%; background:#30273c; color:#dbcaff; font-weight:700; }
.topbar .avatar img { width:100%; height:100%; object-fit:cover; }
.topbar .account-chevron { color:#aaa3b4; font-size:16px; }
.topbar .account-dropdown { position:absolute; top:calc(100% + 8px); right:0; width:210px; padding:8px; border:1px solid #46404d; border-radius:10px; background:#1d1b25; box-shadow:0 16px 36px #0008; }
.topbar .account-dropdown-label { display:block; padding:7px 10px; color:#8f8798; font-size:9px; font-weight:800; letter-spacing:1.1px; }
.topbar .account-action { display:flex; width:100%; min-height:40px; align-items:center; gap:10px; padding:0 10px; border:0; border-radius:7px; background:transparent; color:#eee8f7; text-align:left; cursor:pointer; }
.topbar .account-action:hover { background:#302939; }
.fluxer-action { align-items:center; line-height:1.2; }
.fluxer-action > span { line-height:1.2; }
.fluxer-logo { display:block; width:18px; height:18px; flex:none; align-self:center; object-fit:contain; }
.fluxer-logo-dark { filter:brightness(0); }
@media(max-width:760px) {
  .topbar { height:64px; gap:8px; padding:0 12px; }
  .topbar .brand { gap:8px; padding:0; }
  .topbar .brand-mark { width:36px; height:36px; }
  .topbar .brand-copy strong { font-size:16px; }
  .topbar .brand-copy small { font-size:7px; }
  .topbar-nav { margin-left:auto; }
  .topbar-nav a { padding:8px; font-size:11px; }
  .topbar .account-toggle { gap:5px; padding:4px; }
  .topbar .account-name { display:none; }
  .topbar .avatar { width:32px; height:32px; }
}
@media(max-width:420px) { .topbar .brand-copy { display:none; } }
