/* Shared navigation sizing, including the larger union menu. */
.mw-header nav>details[data-navigation="more"]>div{left:auto;right:0;width:min(520px,calc(100vw - 24px));grid-template-columns:repeat(2,minmax(0,1fr));max-height:calc(100dvh - 90px);overflow-y:auto}
.mw-header nav>details[data-navigation="more"][open]>div{display:grid}
.mw-header nav>details[data-navigation="more"]>div>a{white-space:normal;overflow-wrap:anywhere}
.starcore-nav-fallback-menu,.local-mobile-nav-menu{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
/* Scope player styles so archived shop pages retain their existing layout. */
#mw-music-popover{position:fixed;inset:auto;margin:0;width:min(370px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:16px;border:1px solid var(--border,#dedde3);border-radius:14px;background:var(--background,#fff);color:var(--foreground,#18181b);box-shadow:0 16px 48px #0002;font-family:inherit;font-size:14px;line-height:1.5}
#mw-music-popover::backdrop{background:transparent}
#mw-music-popover .mw-music-current{display:flex;align-items:center;gap:12px}
#mw-music-popover .mw-music-current button{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:0;border-radius:50%;background:#7c22fe;color:white;cursor:pointer}
#mw-music-popover svg{width:20px;height:20px}
#mw-music-popover h3{font-size:15px;margin:0}
#mw-music-popover p{font-size:12px;margin:6px 0;color:var(--muted-foreground,#71717a)}
#mw-music-popover .mw-music-catalog{margin-top:16px;border-top:1px solid var(--border,#dedde3);padding-top:8px}
#mw-music-popover .mw-music-list{display:grid;gap:4px}
#mw-music-popover label{display:flex;align-items:center;gap:10px;padding:8px;border-radius:8px;cursor:pointer}
#mw-music-popover label:has(:checked){background:color-mix(in srgb,#7c22fe 10%,transparent)}
#mw-music-popover strong,#mw-music-popover small{display:block}
#mw-music-popover small{color:var(--muted-foreground,#71717a);font-size:12px}
#mw-music-popover :focus-visible{outline:2px solid #7c22fe;outline-offset:3px}
@media(max-width:1100px){.mw-header nav>details[data-navigation="more"]>div{width:100%;grid-template-columns:1fr;max-height:55dvh}}

@media(max-width:767px){
 header.sticky .mw-legacy-tools{order:2;flex:0 0 100%;justify-content:flex-end;gap:8px!important;min-height:44px}
 header.sticky .mw-legacy-tool-buttons,header.sticky .mw-legacy-tools>a,header.sticky .mw-legacy-tools>button{display:inline-flex!important}
 header.sticky .mw-legacy-tools button{min-height:40px;min-width:40px}
 header.sticky .mw-legacy-tools .starcore-account-popover{max-width:calc(100vw - 28px);max-height:60dvh;overflow:auto}
}
@media(max-width:767px){header.sticky .mw-legacy-tools>div:not(.sf-hidden){display:flex!important}}
