/* Shared sizing and quiet, theme-aware states for the account controls. */
.header{position:sticky;top:0;z-index:90}
.market-browse .sticky-filters .filters,.market-browse .sticky-filters .filters:not([hidden]){top:var(--filter-top,86px)}
html[data-theme] .header .header-actions .header-icon{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:10px;color:var(--muted);transition:background .16s,color .16s,border-color .16s}
html[data-theme] .header .header-actions .header-icon:is(:hover,[aria-expanded=true]){color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 9%,var(--theme-surface));border-color:color-mix(in srgb,var(--theme-accent) 20%,var(--theme-border));box-shadow:none}
.header .header-actions .header-icon>.icon{width:20px;height:20px;stroke-width:1.8;display:block}
html[data-theme] .header .header-actions .sign-in.avatar-trigger{padding:0;border:0;box-shadow:none;background:transparent;overflow:hidden}
html[data-theme] .header .header-actions .sign-in.avatar-trigger:is(:hover,[aria-expanded=true]){border:0;box-shadow:none;background:transparent}
html[data-theme] .header .avatar-trigger .profile-avatar{padding:0;border:0;box-shadow:none;background:transparent;overflow:hidden}
html[data-theme] .header .avatar-trigger .profile-avatar img{border:0;border-radius:inherit;box-shadow:none;width:100%;height:100%;display:block}
html[data-theme] .header-actions .profile-popover{width:170px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow:auto;overscroll-behavior:contain;background:color-mix(in srgb,var(--theme-surface) 78%,transparent);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid var(--theme-border);border-radius:11px;box-shadow:0 18px 50px #0006}
.profile-popover .profile-menu-title{padding:18px 18px 15px;font-size:13px;color:var(--text);border-color:var(--theme-border)}
.profile-popover .profile-menu-title span{color:var(--muted)}
.profile-popover nav{padding:6px}
html[data-theme] .profile-popover nav a{min-height:35px;padding:8px 10px;gap:12px;color:var(--text);font-size:12px;font-weight:500;border-radius:6px;transition:background .15s,color .15s}
html[data-theme] .profile-popover nav a>.icon{width:19px;height:19px;stroke-width:1.8;color:var(--menu-icon,var(--muted))}
.profile-popover .menu-admin{--menu-icon:#ab9cff}.profile-popover .menu-user{--menu-icon:#e8edf5}.profile-popover .menu-wallet{--menu-icon:#60d69b}.profile-popover .menu-trades{--menu-icon:#ff9a51}.profile-popover .menu-sell,.profile-popover .menu-stall{--menu-icon:#f5cd56}.profile-popover .menu-order{--menu-icon:#78aaff}.profile-popover .menu-offers{--menu-icon:#b18aff}.profile-popover .menu-eye{--menu-icon:#45d4e5}.profile-popover .menu-settings{--menu-icon:#a9b7cb}
.profile-popover .account-menu-divider{height:0;margin:5px 4px;border:0;border-top:1px solid color-mix(in srgb,var(--theme-border) 85%,transparent)}
html[data-theme] .profile-popover nav a:is(:hover,:focus-visible){background:var(--theme-raised);color:var(--theme-accent)}
html[data-theme] .profile-popover nav a:is(:hover,:focus-visible)>.icon{color:var(--menu-icon,var(--theme-accent))}
.profile-popover .profile-logout{min-height:37px;padding:8px 16px 11px;gap:12px;border:0;border-top:1px solid var(--theme-border);border-radius:0;color:#f07883;font-size:12px}
.profile-popover .profile-logout>.icon{width:18px;height:18px}
.profile-popover .profile-logout:hover{background:color-mix(in srgb,#ef929b 7%,var(--theme-surface));color:#ffb1b7}
@media(prefers-reduced-motion:reduce){html[data-theme] .header .header-actions .header-icon,html[data-theme] .profile-popover nav a{transition:none}}

/* The navigation shell keeps identical geometry on every route. */
html{scrollbar-gutter:stable}
.header .header-inner{width:calc(100% - 64px);max-width:1800px;margin-inline:auto;box-sizing:border-box}
@media(max-width:1100px){.header .header-inner{width:calc(100% - 32px)}}
@media(max-width:760px){.header .header-inner{width:calc(100% - 24px)}}
