/* Shared history, retaining familiar Frame rail labels. */
.mg-history{width:100%;}
.mg-history-icon{display:none;}
/* Wrap familiar tray controls according to the room between its two rails. */
#boardsTray,#photosTray{container-type:inline-size;}
@container(max-width:600px){
 #boardsTray .mg-tray-head{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
 #boardsTray .mg-tray-right{grid-column:1/-1;grid-row:2;flex-wrap:wrap;justify-content:flex-end;gap:12px;max-width:100%;}
 #boardsTray .mg-tray-right:not(:has(button:not([hidden]))){display:none;}
 #photosTray .mg-tray-bar{flex-wrap:wrap;gap:10px;}
 #photosTray .mg-tray-source{margin-left:0;min-width:0;max-width:calc(100% - 70px);}
 #photosTray .mg-tray-source-open{max-width:100%;}
 #photosTray #mgTraySourceLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 #photosTray .mg-tray-row{flex-basis:100%;justify-content:space-between;flex-wrap:wrap;gap:10px;}
}
