/* Size the cabinet to its dialog, rather than forcing eight desktop columns. */
body #socialDialog.achievement-dialog .achievement-cabinet{
 grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:12px;
}
body #socialDialog.achievement-dialog .achievement-tile{
 min-width:0;max-width:100%;width:100%;box-sizing:border-box;
 grid-template-columns:minmax(0,1fr);padding:14px 10px;gap:8px;text-align:center;
}
body #socialDialog.achievement-dialog .achievement-tile .achievement-art{
 width:72px!important;height:72px!important;max-width:100%!important;object-fit:contain;
}
body #socialDialog.achievement-dialog .achievement-tile b{
 display:flex;align-items:center;justify-content:center;min-height:2.8em;
 width:100%;min-width:0;font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere;
}
body #socialDialog.achievement-dialog .achievement-tile small{
 width:100%;min-width:0;font-size:12px!important;line-height:1.5;text-align:center;overflow-wrap:anywhere;
}
body #socialDialog.achievement-dialog .achievement-tile small:first-of-type{min-height:3em}
body #socialDialog.achievement-dialog .achievement-tile progress{
 min-width:0;max-width:100%;width:100%;height:7px!important;box-sizing:border-box;
}
@media(max-width:600px){
 body #socialDialog.achievement-dialog .achievement-cabinet{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body #socialDialog.achievement-dialog .achievement-tile{padding:10px 6px;gap:6px}
 body #socialDialog.achievement-dialog .achievement-tile .achievement-art{width:57px!important;height:57px!important}
 body #socialDialog.achievement-dialog .achievement-tile b{font-size:11px!important}
 body #socialDialog.achievement-dialog .achievement-tile small{font-size:10px!important}
}
@media(max-width:360px){
 body #socialDialog.achievement-dialog .achievement-cabinet{grid-template-columns:repeat(2,minmax(0,1fr))}
}
